/* Demos Page Styling */

.demos-hero {
    text-align: center;
    padding: 80px 20px 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.demos-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.demos-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.demos-grid-section {
    padding: 80px 20px;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch; /* KEY FIX: All cards same height */
}

.demo-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* KEY FIX: Column layout for alignment */
    height: 100%; /* KEY FIX: Full height */
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.demo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

.demo-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.demo-content {
    flex-grow: 1; /* KEY FIX: Content grows to fill available space */
    margin-bottom: 20px;
    text-align: center;
}

.demo-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.demo-content p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
}

.demo-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-features li {
    padding: 8px 0;
    color: #4a5568;
    text-align: center;
    width: 100%;
}

.demo-features li:before {
    content: "✓ ";
    color: #667eea;
    font-weight: bold;
}

.demo-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* KEY FIX: Actions always at bottom */
}

.demo-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.demo-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.demo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.demos-cta {
    background: #f7fafc;
    padding: 80px 20px;
    text-align: center;
}

.demos-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.demos-cta p {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demos-cta .cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .demos-hero h1 {
        font-size: 2rem;
    }

    .demos-hero p {
        font-size: 1.1rem;
    }

    .demos-grid {
        grid-template-columns: 1fr;
    }

    .demo-actions {
        flex-direction: column;
    }

    .demos-cta h2 {
        font-size: 2rem;
    }
}
