/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif; /* Changed font to Inter */
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
    overflow-x: hidden; /* Ensures no horizontal scrolling */
}

/* Navigation Bar */
.navbar {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container { /* Specific container for navbar to keep its flex behavior */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex; /* Keep navbar items in a row */
    align-items: center;
    justify-content: space-between;
}

/* General container for other sections - ONLY controls max-width and padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Crucial for preventing content from touching edges */
}

/* --- LOGO SECTION --- */
.logo {
    font-weight: bold;
    font-size: 1.8rem;
    color: #8dc63f;
    display: flex; /* Make it a flex container to arrange image and text */
    align-items: center; /* Vertically align the image and text */
    gap: 10px; /* Adds space between the logo image and the text */
}

.logo .logo-icon { /* Specific class for the image inside the logo div */
    height: 70px; /* Adjust this value to control your small logo's height */
    width: auto; /* Maintains aspect ratio */
    border-radius: 20%; /* Keep this if you want rounded corners, change to 50% for circular */
    display: block; /* Removes any extra space below the image */
}

/* Desktop Navigation Links */
.nav-links {
    display: flex; /* Always a flex row on desktop */
    align-items: center;
    transition: all 0.3s ease-in-out; /* Smooth transition for mobile menu */
}
.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 5px 0; /* Add some padding for better touch targets */
}
.nav-links a:hover {
    color: #8dc63f;
}

/* Hamburger Menu Toggle (Hidden by default on desktop) */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 101; /* Ensure it's above other content */
}
.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Common section heading and subhead styles (used across multiple pages) */
.section-heading {
    font-size: 2.5rem;
    color: #8dc63f;
    margin-bottom: 10px;
    text-align: center;
}

.section-subhead {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 50px; /* Adjusted to be consistent with other sections */
    color: #555;
    text-align: center;
}

/* Chat Widget */
.chat-whatsapp-link {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000; /* Ensure it's above other content */
    text-decoration: none; /* Remove underline from the link */
}

.chat-widget {
    display: flex;
    align-items: flex-end;
    cursor: pointer; /* Indicate it's clickable */
}
.chat-widget .message {
    background: white;
    border-radius: 10px;
    padding: 10px 15px;
    margin-right: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    /* Initial state for animation */
    opacity: 1;
    transition: opacity 0.5s ease-in-out; /* Smooth transition for fading */
}
.chat-widget .profile-pic img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8dc63f; /* Add a subtle border */
}

/* --- FOOTER SECTION STYLES --- */
.footer {
    background: #333;
    color: white;
    padding: 60px 20px 20px;
    font-size: 0.95rem;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #8dc63f;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #8dc63f;
    margin-top: 8px;
    left: 0;
    position: absolute;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-col a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #8dc63f;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
}

.social-links img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    border-radius: 50%;
}

.footer-col.newsletter input[type="email"] {
    width: calc(100% - 80px);
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-col.newsletter button {
    width: 70px;
    padding: 10px;
    background: #8dc63f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.footer-col.newsletter button:hover {
    background: #6fa230;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Adjustments (Global) */
@media (max-width: 768px) {
    /* Navbar adjustments for mobile */
    .navbar .container {
        flex-wrap: wrap; /* Allow items to wrap */
        justify-content: space-between; /* Space out logo and toggle */
    }

    .nav-links {
        /* Initially hidden and positioned for mobile */
        display: none; /* Hidden by default */
        flex-direction: column;
        width: 100%; /* Take full width */
        background: white; /* Background for the dropdown menu */
        position: absolute; /* Position relative to navbar */
        top: 100%; /* Below the navbar */
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
        border-top: 1px solid #eee;
        z-index: 99; /* Below the toggle, above other content */
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links a {
        margin: 10px 20px; /* Adjust spacing for stacked links */
        text-align: center; /* Center links in mobile menu */
        padding: 10px 0; /* More padding for touch targets */
        border-bottom: 1px solid #eee; /* Separator for links */
    }
    .nav-links a:last-child {
        border-bottom: none; /* No border on the last link */
    }

    .menu-toggle {
        display: flex; /* Show hamburger menu on mobile */
    }

    /* Hamburger menu active state (transforms to 'X') */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0; /* Hide middle bar */
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* General responsive adjustments */
    .overlay-left {
        max-width: 90%;
        margin-left: 20px;
        font-size: 0.85rem;
        padding: 20px; /* Adjust padding for smaller screens */
    }
    .overlay-left h1 {
        font-size: 1.4rem;
    }

    /* Services section adjustments (if applicable to index.html) */
    .services > .container {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }
    .service-boxes-wrapper {
        flex-direction: column; /* Stack vertically on small screens */
        align-items: center;
        gap: 20px;
    }
    .service-box {
        width: 90%; /* Make service boxes closer to full width on mobile */
        margin: 0; /* Remove individual margins as gap handles spacing */
    }

    /* Callouts section adjustments (if applicable to index.html) */
    .callouts {
        flex-direction: column;
        align-items: center;
    }
    .callout {
        width: 90%;
        margin-bottom: 20px;
    }

    /* About section adjustments (if applicable to index.html) */
    .about-content {
        flex-direction: column;
        gap: 20px;
    }
    .about-content img, .about-content .text {
        width: 90%;
    }

    /* Team and Testimonials grid adjustments (if applicable to index.html) */
    .team-grid, .testimonial-grid, .footer .container {
        grid-template-columns: 1fr; /* Single column on mobile for cards */
    }

    /* Footer specific mobile adjustments */
    .footer-col.about-school, .footer-col.quick-links,
    .footer-col.contact-info, .footer-col.newsletter {
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        text-align: center;
        margin-top: 15px;
    }
}
