/* Google Fonts Import handled in HTML */

:root {
    /* Color Palette */
    --primary-color: #1e40af;
    /* Deep Royal Blue */
    --secondary-color: #1e3a8a;
    /* Dark Navy Blue */
    --accent-color: #f59e0b;
    /* Amber/Gold */
    --accent-light: #fef3c7;
    /* Light Amber bg */
    --text-color: #1f2937;
    /* Dark Gray */
    --light-text: #4b5563;
    /* Medium Gray */
    --white: #ffffff;
    --background-gray: #f3f4f6;
    --footer-bg: #111827;
    /* Very Dark Gray/Black */

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    /* Slightly sharper for professional feel */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for sticky header + top bar approx */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-white:hover {
    background-color: #f0fdf4;
    /* Slight green tint or just gray */
    color: var(--secondary-color);
    border-color: var(--white);
}

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--light-text);
    font-size: 1.125rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-details {
    display: flex;
    gap: 20px;
}

.contact-details span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-details i {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    /* Or just below top bar if using script, but standard sticky works well */
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links li:not(.cta) a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links li:not(.cta) a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 6px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-color: #f8fafc;
    /* Very light blue-gray */
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.75rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--light-text);
    max-width: 90%;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h3 {
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin-bottom: 15px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 30px;
    color: var(--light-text);
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.check-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    padding-top: 2px;
}

/* Features / Why Choose Us */
.features {
    background-color: var(--background-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    /* Keeping this as it's a nice subtle effect not conflicting */
    text-align: center;
    /* Center all text */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.feature-card .icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(30, 64, 175, 0.1);
    /* Light blue circle */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 25px;
    /* Center the icon box horizontally */
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--light-text);
}

/* Clubs Section */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.club-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.club-image {
    height: 220px;
    overflow: hidden;
}

.club-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.club-card:hover .club-image img {
    transform: scale(1.05);
}

.club-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.club-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.club-content p {
    color: var(--light-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.club-details {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.club-link {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.club-link:hover {
    gap: 10px;
}

/* Tuition Section */
.tuition-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.tuition-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.tuition-list li {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-color);
}

.tuition-list .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* Testimonials */
.testimonials {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

.testimonials .section-title h2,
.testimonials .section-title p {
    color: var(--white);
}

.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    /* Lighter blue effect */
    border: none;
    padding: 30px;
    border-radius: 8px;
    flex: 1 1 300px;
    max-width: 380px;
    text-align: left;
}

.testimonial-card .stars {
    color: #FFD700;
    /* Gold */
    margin-bottom: 15px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1rem;
    opacity: 1;
    margin-bottom: 20px;
    line-height: 1.5;
}

.testimonial-author {
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    letter-spacing: normal;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-form {
    padding: 60px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background-color: #f9fafb;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #9ca3af;
    padding: 80px 0 30px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    margin-top: 60px;
    font-size: 0.9rem;
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
    color: white;
}

/* Responsive */
@media (max-width: 900px) {

    .hero-content,
    .about-container,
    .tuition-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .tuition-image {
        order: -1;
    }

    /* Mobile Navigation - Dropdown Style */
    .nav-links {
        position: absolute;
        right: 0;
        top: 100%;
        /* Push it below the header */
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-height: 0;
        /* Hidden by default */
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, box-shadow 0.3s ease;
        padding: 0;
        /* Reset padding */
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border-top: 1px solid #f3f4f6;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        /* Hide links initially for animation */
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links li a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    .nav-links .cta {
        margin: 15px 0 25px;
    }

    /* Active State for Nav */
    .nav-links.nav-active {
        max-height: 500px;
        /* Large enough to fit content */
        padding: 20px 0;
    }

    .nav-links.nav-active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for links handled nicely by transition-delay in CSS if possible, 
       otherwise the JS animation works. Let's rely on simple CSS transitions here for smoothness. */
    .nav-links.nav-active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.nav-active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.nav-active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.nav-active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.nav-active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.nav-active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    /* Ensure header relative positioning for absolute dropdown */
    header .container nav {
        position: static;
        /* Or typically relative, but we want the nav-links relative to the header or nav */
    }

    header {
        position: sticky;
        /* Keep sticky */
    }

    /* Top Bar Stacking */
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .contact-details {
        flex-direction: column;
        gap: 8px;
    }

    /* Adjust grid for tablets specifically if needed */
    .features-grid,
    .subjects-grid,
    .ideal-grid,
    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .contact-wrapper {
        padding: 0;
    }

    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
}