/* ═══════════════════════════════════════════════════════════════════
   ELMYFY HOME PAGE - Modern Professional Design
   ═══════════════════════════════════════════════════════════════════ */

/* Override the margin-top that's applied to first section when nav exists */
body.has-site-nav > .home-hero {
    margin-top: 0 !important;
}

/* Featured Courses Section */
.featured-courses-section {
    padding: 4rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Statistics Section */
.stats-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1f3a93 0%, #7c3aed 100%);
    padding: 4rem;
    border-radius: 20px;
    color: white;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: white;
    color: #1f3a93;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f9fafb, #ffffff);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Trust Badges Section */
.trust-section {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.trust-text {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.trust-logo {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-courses-section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-section {
        padding: 2.5rem;
        border-radius: 12px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-logos {
        gap: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .featured-courses-section {
        background: #0f172a;
    }
    
    .section-title {
        color: #ffffff;
    }
    
    .section-subtitle {
        color: #cbd5e1;
    }
    
    .features-section {
        background: #1a1a2e;
    }
    
    .testimonials-section {
        background: #0f172a;
    }
}
