:root {
    /* Palette - 'Didactic & Friendly' (Trust for Parents, Fun for Youth) */
    --color-canvas: #ffffff;
    /* Pure White */
    --color-charcoal: #2D3436;
    /* Soft Ink Black (Easier reading) */
    --color-ochre: #FF9F43;
    /* Soft Orange (Creativity/Joy) - Replaces Yellow */
    --color-crimson: #EE5253;
    /* Coral Red (Passion/Action) - "Love for Art" */
    --color-blue-deep: #0C2461;
    /* Dark Navy (Serious/Academic) - Balances the Orange */
    --color-white: #ffffff;

    /* Typography */
    --font-heading: 'Montserrat',
        sans-serif;
    --font-body: 'Raleway',
        sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-canvas);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--color-ochre);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-charcoal);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-charcoal);
    color: var(--color-charcoal);
}

.btn-secondary:hover {
    background-color: var(--color-charcoal);
    color: var(--color-white);
}

/* Header */
header {
    padding: var(--spacing-lg) 0;
    position: absolute;
    width: 100%;
    z-index: 10;
    top: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-heading);
    color: var(--color-white);
    /* Assumes dark hero */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links .admin-link {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 4px 12px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    height: 90vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Benefits Bar (High Impact) */
.benefits-bar {
    background-color: var(--color-blue-deep);
    padding: var(--spacing-lg) 0;
    color: var(--color-white);
    margin-top: -5px;
    /* Visual connector to Hero if needed */
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    color: var(--color-blue-deep);
    margin-bottom: var(--spacing-md);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

/* Courses Grid */
.courses {
    padding: var(--spacing-xl) 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.course-card {
    background: var(--color-canvas);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.course-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-crimson);
}

.course-price {
    display: block;
    margin: var(--spacing-md) 0;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-charcoal);
}

/* Promotions Section (Dynamic) */
.promotions {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-crimson);
    color: var(--color-white);
    text-align: center;
}

.promo-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.promo-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
}

/* Footer */
footer {
    background-color: var(--color-charcoal);
    color: #888;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

footer p {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: var(--color-ochre);
    transform: translateY(-3px);
    border-color: var(--color-ochre);
}

.social-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--color-white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mobile Optimization */
@media (max-width: 768px) {

    /* Layout & Spacing */
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }

    /* Fix for blurred hero image on Mobile (iOS/Android) */
    /* background-attachment: fixed causes zooming issues on mobile viewports */
    .hero {
        background-attachment: scroll !important;
        background-position: center top !important;
        background-size: cover !important;
        height: 85vh;
        /* Taller to fit content */
        min-height: 550px;
    }

    /* Typography */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title,
    .about h2,
    .location-info h2 {
        font-size: 2rem;
    }

    /* Navigation - Mobile Drawer style */
    header {
        position: relative;
        background-color: var(--color-charcoal);
        padding: 1rem 0;
        /* Slimmer header */
    }

    nav {
        flex-direction: row;
        /* Keep row to align logo and burger */
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .logo {
        font-size: 0.95rem;
        /* Smaller font to fit on one line or 2 lines cleanly */
        max-width: 80%;
    }

    /* Hamburger Icon */
    /* Hamburger Icon - Enlarged for Touch */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 45px;
        /* Significantly wider */
        height: 30px;
        /* Taller */
        cursor: pointer;
        z-index: 1002;
        padding: 5px;
        /* Touch buffer */
        /* Total touch target approx 55x40 */
    }

    .hamburger span {
        display: block;
        height: 4px;
        /* Thicker bars */
        width: 100%;
        background-color: var(--color-white);
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    /* Menu Drawer */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--color-charcoal);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 1.5rem 0;
    }

    /* Hamburger Animation when Active */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links .admin-link {
        display: inline-block;
        margin-top: 5px;
    }

    /* Interactive Elements */
    .btn {
        width: 100%;
        text-align: center;
        padding: 15px;
        /* Larger touch target */
    }
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Default Hamburger state for Desktop (Hidden) */
.hamburger {
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}