/* General Styling & Variables */
:root {
    --primary-color: #ff6f61; /* A nice coral color for buttons */
    --dark-bg1: #2c3e50; /* First dark color */
    --dark-bg2: #233142; /* Second dark color, in sync with the first */
    --light-bg: #f4f8fa; /* Off-white for light sections */
    --eye-catching-bg: #e0f7fa; /* Light cyan for 'How it Works' */
    --text-light: #ffffff;
    --text-dark: #333333;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

/* Header and Navigation */
header {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Container for the navigation links */
.nav-links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

/* Hide the checkbox and hamburger icon by default on desktop */
.menu-toggle,
.menu-icon {
    display: none;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Underline animation for nav items */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1752213753284-e3055b4a06a0?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    padding: 6rem 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* General Section Styling */
section {
    padding: 4rem 2rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Call-to-Action Button Styling */
.cta-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #e65a4c;
    transform: translateY(-3px);
}

/* Dark Sections: "Why Us" and "Our Lessons" */
.dark-section {
    background-color: var(--dark-bg1);
    color: var(--text-light);
}

.dark-section h2 {
    color: var(--text-light);
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background-color: #3b5068;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    flex: 1 1 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation for feature cards */
.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.lesson-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #3b5068;
    padding: 2rem;
    border-radius: 10px;
    flex: 1 1 300px;
}

/* Eye-Catching Section: "How It Works" */
.how-it-works {
    background-color: var(--eye-catching-bg);
    text-align: center;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    flex: 1 1 250px;
}

.step span {
    display: block;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-bg);
}

.testimonial-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
    font-style: italic;
}

.testimonial span {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    font-style: normal;
    color: var(--primary-color);
}

/* Darker Sections: "Who We Help" and Footer */
.darker-section {
    background-color: var(--dark-bg2);
    color: var(--text-light);
}

.darker-section h2 {
    color: var(--text-light);
}

/* Who We Help list with checkmarks */
.who-we-help {
    text-align: center;
}

.who-we-help ul {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.who-we-help li {
    font-size: 1.1rem;
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.who-we-help li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================== */
/* MOBILE-FRIENDLY & RESPONSIVE STYLES    */
/* =========================================== */
@media (max-width: 768px) {
    /* EXISTING RESPONSIVE STYLES (Kept for completeness) */
    
    /* Reduce font sizes for better readability */
    .hero h1 {
        font-size: 2.2rem;
    }

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

    h2 {
        font-size: 2rem;
    }

    /* Reduce padding on sections to save space */
    section {
        padding: 3rem 1rem;
    }
    .hero {
        padding: 4rem 1rem;
    }

    /* Stack flex items vertically */
    .features,
    .lesson-cards,
    .steps,
    .testimonial-cards {
        flex-direction: column;
    }

    /* === NEW NAVBAR STYLES FOR MOBILE === */
    
    /* Show the hamburger icon */
    .menu-icon {
        display: block;
        font-size: 2rem; /* Make the icon a good size */
        cursor: pointer;
        color: var(--text-dark);
    }
    
    /* Hide the navigation links by default */
    .nav-links {
        display: none;
        width: 100%; /* Take up full width */
    }
    
    /* Make the main nav container stack vertically */
    nav {
        flex-wrap: wrap; /* Allows the logo and icon to be on one line, and menu below */
        justify-content: space-between; /* Keep logo and icon apart */
    }

    /* Style the list of links for vertical stacking */
    .nav-links ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        padding: 1rem 0;
        border-top: 1px solid #eee; /* Separator line */
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    /* CSS Magic: Show the menu when the hidden checkbox is checked */
    #menu-toggle:checked ~ .nav-links {
        display: block;
    }
    
    /* Ensure the underline animation doesn't look weird on mobile links */
    .nav-links a::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Fix for the underline on mobile */
    .nav-links a:hover::after {
        width: 50%; /* Make the underline narrower for mobile links */
    }
}
