/* Basic Reset & Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header & Navigation */
header {
    background-color: #004d40; /* Dark Teal */
    color: #fff;
    padding: 15px 0; /* Adjusted padding for better fit */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative; /* Needed for positioning of mobile toggle */
    z-index: 10000; /* Ensure header is above main content */
}

.header-content {
    display: flex;
    justify-content: space-between; /* Space out logo and nav */
    align-items: center; /* Align them vertically */
    width: 100%;
}

.logo {
    text-align: left; /* Align logo to left on desktop */
    margin: 0; /* Remove margin-bottom from desktop */
    padding: 0;
    border-bottom: none; /* Remove border from desktop */
}

.logo a {
    display: flex; /* Use flex to align logo image and text */
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo img {
    height: 60px; /* Slightly adjusted logo size for desktop */
    margin-right: 10px;
    vertical-align: middle;
}

.logo h1 {
    font-size: 2.2em; /* Adjusted desktop font for better balance */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    white-space: nowrap; /* Keep title on one line */
}

nav {
    width: auto; /* Allow nav to take natural width on desktop */
}

nav ul {
    list-style: none;
    display: flex; /* Makes menu items horizontal */
    justify-content: flex-end; /* Align menu items to the right */
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
    margin: 0 15px; /* Adjust spacing between menu items */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
    line-height: 1.2;
    white-space: nowrap;
}

nav ul li a:hover {
    color: #a7d9b9; /* Light Green */
}

/* Make "Donate Now" a distinct button */
nav ul li.highlight a {
    background-color: #a7d9b9; /* Light Green background */
    color: #004d40; /* Dark Teal text */
    padding: 8px 18px; /* Adjust padding for button look */
    border-radius: 5px;
    margin-left: 20px;
    border: 2px solid #a7d9b9;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

nav ul li.highlight a:hover {
    background-color: #004d40; /* Dark Teal background on hover */
    color: #a7d9b9; /* Light Green text on hover */
    border-color: #a7d9b9;
}

/* Highlight the active page */
nav ul li.active-page a {
    color: #a7d9b9;
    font-weight: 700;
    border-bottom: 2px solid #a7d9b9;
    padding-bottom: 8px;
}

/* Ensure highlight effect overrides base hover for active page */
nav ul li.active-page a:hover {
    color: #a7d9b9;
    background-color: transparent;
}


/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #00332c; /* Darker Teal */
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 5px;
    overflow: hidden;
    left: 0;
    top: 100%;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #005f51; /* Slightly lighter Teal */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn i {
    margin-left: 5px;
    font-size: 0.8em;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.8em;
    cursor: pointer;
    color: #fff;
    z-index: 10001; /* Above the header content */
    /* Position is handled in media query for mobile */
}

/* Main Content Styling */
main {
    padding-top: 0;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.bg-dark {
    background-color: #00332c;
    color: #fff;
}

.text-white {
    color: #fff;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: #004d40;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #a7d9b9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #a7d9b9; /* Light Green */
    color: #004d40;
    border: 2px solid #a7d9b9;
}

.btn-primary:hover {
    background-color: #004d40;
    color: #fff;
    border-color: #004d40;
}

.btn-secondary {
    background-color: transparent;
    color: #004d40;
    border: 2px solid #004d40;
}

.btn-secondary:hover {
    background-color: #004d40;
    color: #fff;
}

.text-center {
    text-align: center;
    margin-top: 30px;
}

/* Welcome Slider */
.welcome-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust height as needed */
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%); /* Darken image for better text readability */
}

.slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 80%;
}

.slide-caption h2 {
    color: #fff;
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-caption h2::after {
    display: none; /* Hide underline for slider caption */
}

/* Slider Navigation Arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 100;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0; /* Consistent border-radius for prev/next */
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Slider Dots */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}


/* Chairman's Message */
.chairman-message .message-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.chairman-message .message-photo {
    flex: 0 0 300px;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.chairman-message .message-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.chairman-message .message-text {
    flex: 1;
    min-width: 300px;
}

.chairman-message .message-text h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 2em;
    color: #004d40;
}

.chairman-message .message-text h2::after {
    left: 0;
    transform: translateX(0);
}

.chairman-message .message-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
}

.chairman-message .signature {
    font-style: italic;
    text-align: right;
    margin-top: 20px;
    color: #004d40;
}

/* Mission & Vision */
.mission-vision {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap;
}

.mission-vision .vision,
.mission-vision .mission {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background-color: #fff;
}

.mission-vision .vision h2,
.mission-vision .mission h2 {
    text-align: left;
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #004d40;
}

.mission-vision .vision h2::after,
.mission-vision .mission h2::after {
    left: 0;
    transform: translateX(0);
    width: 40px;
}

.mission-vision ul {
    list-style: none;
    padding-left: 0;
}

.mission-vision ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.mission-vision ul li::before {
    content: "\f00c"; /* Font Awesome checkmark icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #a7d9b9;
    position: absolute;
    left: 0;
    top: 0;
}

/* Counter Stats */
.counter-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.counter-stats .stat-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.counter-stats .stat-item .icon {
    font-size: 3em;
    color: #a7d9b9;
    margin-bottom: 15px;
}

.counter-stats .stat-item .number {
    font-size: 3.5em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.counter-stats .stat-item p {
    font-size: 1.2em;
    color: #ccc;
}

/* Testimonials */
.testimonials .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonials .testimonial-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
}

.testimonials .testimonial-item::before {
    content: "\f10d"; /* Font Awesome quote-left icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2em;
    color: #e0e0e0;
    position: absolute;
    top: 15px;
    left: 20px;
}

.testimonials .testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #a7d9b9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonials .testimonial-content {
    font-style: italic;
    margin-bottom: 15px;
    color: #666;
}

.testimonials .testimonial-author {
    font-weight: 600;
    color: #004d40;
}

/* Contact Us Form */
.contact-us .contact-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-us .contact-info,
.contact-us .contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-us .contact-info h3,
.contact-us .contact-form-container h3 {
    color: #004d40;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.contact-us .contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-us .contact-info p i {
    margin-right: 10px;
    color: #a7d9b9;
    font-size: 1.2em;
}

.contact-us .social-icons {
    margin-top: 20px;
    text-align: center;
}

.contact-us .social-icons a {
    color: #004d40;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.contact-us .social-icons a:hover {
    color: #a7d9b9;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: #004d40;
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #00332c;
}

/* Footer */
footer {
    background-color: #00221c; /* Even darker teal */
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: #a7d9b9;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.footer-col p, .footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-col .social-icons a {
    color: #a7d9b9;
    font-size: 1.4em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-col .social-icons a:hover {
    color: #fff;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter-form button {
    padding: 10px 15px;
    background-color: #a7d9b9;
    border: none;
    border-radius: 0 5px 5px 0;
    color: #00221c;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #8cbf99;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 0;
        min-height: unset; /* Remove min-height */
    }

    .header-content {
        display: flex;
        justify-content: space-between; /* Keep logo and toggle side-by-side in header bar */
        align-items: center;
        flex-wrap: nowrap; /* Prevent wrapping in the header bar */
        padding: 0 15px; /* Add horizontal padding to the header content */
    }

    .logo {
        margin: 0;
        flex-grow: 1; /* Allow logo to take available space */
        text-align: left; /* Keep it left-aligned */
    }
    
    /* REDUCE THE TITLE SIZE HERE FOR MOBILE */
    .logo h1 {
        font-size: 1.1em; /* Significantly smaller title on mobile */
        white-space: normal; /* Allow title to wrap if needed on very small screens */
        max-width: calc(100% - 60px); /* Adjust based on logo img width + margin */
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .logo img {
        height: 40px; /* Smaller logo image on mobile */
        margin-right: 8px; /* Reduce margin to make more space for text */
    }
    .logo a {
        padding-right: 10px; /* Ensure space before menu toggle */
    }

    /* MOBILE MENU SLIDE-IN (APP STYLE) */
    nav {
        position: fixed; /* Fixed to viewport */
        top: 0;
        left: -100%; /* Start off-screen to the left */
        width: 80%; /* Menu takes up 80% of screen width */
        max-width: 300px; /* Max width for larger mobile devices */
        height: 100vh; /* Full viewport height */
        background-color: #00332c; /* Darker background for the menu */
        color: #fff;
        padding-top: 60px; /* Space for a potential close button or just margin from top */
        box-shadow: 2px 0 5px rgba(0,0,0,0.5); /* Shadow for depth */
        transition: left 0.3s ease-out; /* Smooth slide-in transition */
        z-index: 10000; /* Ensure it's above other content */
        overflow-y: auto; /* Enable scrolling for long menus */
        display: block; /* Always block display, control visibility with left */
    }

    nav.active {
        left: 0; /* Slide into view */
    }

    nav ul {
        flex-direction: column; /* Stack menu items vertically */
        padding: 0;
        list-style: none;
        width: 100%; /* Ensure ul takes full width of nav */
        margin: 0;
    }

    nav ul li {
        width: 100%; /* Each list item takes full width */
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Separator */
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        padding: 15px 20px; /* More padding for easier tapping */
        display: block;
        color: #fff;
        text-decoration: none;
        text-align: left; /* Align text to left */
    }

    nav ul li a:hover,
    nav ul li.active-page a {
        background-color: #004d40; /* Slightly lighter on hover */
        color: #a7d9b9;
    }

    /* "Donate Now" button in mobile menu */
    nav ul li.highlight a {
        background-color: #a7d9b9;
        color: #004d40;
        padding: 12px 20px; /* Adjust padding for mobile button */
        margin: 15px 20px; /* Add margin within the menu */
        border-radius: 5px;
        border: 2px solid #a7d9b9;
        text-align: center; /* Center text within the button */
    }

    nav ul li.highlight a:hover {
        background-color: #004d40;
        color: #a7d9b9;
        border-color: #a7d9b9;
    }

    /* Dropdown specific styles within the slide-in menu */
    .dropdown-content {
        position: static; /* Stack items vertically within the menu */
        display: none; /* Hide by default */
        background-color: #00221c; /* Even darker background for sub-menu */
        width: 100%;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .dropdown-content.show {
        display: block; /* Show when 'show' class is added by JS */
    }

    .dropdown-content a {
        padding: 10px 30px; /* Indent sub-menu items */
        color: #eee;
        background-color: #00221c; /* Match parent background */
    }

    .dropdown-content a:hover {
        background-color: #004d40; /* Hover effect */
    }

    /* Dropdown button (dropbtn) within the mobile menu */
    nav ul li.dropdown .dropbtn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 15px 20px; /* Ensure full padding */
        color: #fff;
    }

    nav ul li.dropdown .dropbtn .fas {
        margin-left: auto;
        transition: transform 0.2s ease-out;
    }

    nav ul li.dropdown .dropbtn.expanded .fas {
         transform: rotate(180deg);
    }

    .menu-toggle {
        display: block; /* Show mobile menu icon */
        position: relative; /* Position relative to header-content */
        margin-left: auto; /* Push to the right */
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        color: #fff;
        font-size: 24px; /* Slightly larger icon */
    }

    /* Overlay to dim content when menu is open */
    body.menu-open .overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5); /* Semi-transparent black */
        z-index: 99; /* Below the menu, above content */
    }

    /* Prevent body scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* General responsive adjustments */
    .slider-container {
        height: 300px;
    }

    .slide-caption h2 {
        font-size: 2em;
    }

    .chairman-message .message-content {
        flex-direction: column;
    }

    .chairman-message .message-photo {
        flex: unset;
        width: 80%;
        margin: 0 auto 30px;
    }

    .mission-vision {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul {
        padding: 0;
    }
}
/* About Page Specific Styles */
.about-hero-image {
    width: 100%;
    margin-bottom: 40px; /* Space below the image section */
    overflow: hidden; /* Ensures image doesn't overflow its container */
}

.about-hero-image .container {
    /* Set padding to 0 if you want the image to stretch full width of the viewport */
    /* If you want it to align with the rest of your content's container, keep the default container padding. */
    padding: 0;
    max-width: 100%; /* Allows the image to span the full width */
}

.about-hero-image img {
    width: 100%;
    height: 400px; /* Adjust this height as needed for your design */
    object-fit: cover; /* Ensures the image covers the area, cropping if necessary */
    display: block; /* Removes any extra space below the image */
    filter: brightness(80%); /* Slightly dims the image, useful if you plan to overlay text */
}

/* Responsive adjustments for the featured image */
@media (max-width: 768px) {
    .about-hero-image img {
        height: 250px; /* Make the image shorter on smaller screens */
    }
}

/* Optional: If you decide to add a text caption directly over the image, here's some example CSS: */
/*
.about-hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    height: 400px; // Match image height
    overflow: hidden;
}
.about-hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%); // Make it darker for text readability
    z-index: 1;
}
.about-hero-image .container {
    position: relative;
    z-index: 2;
    padding: 0; // Or keep default if caption fits within it
    max-width: 1200px; // Use your standard container width for text
}
.hero-caption {
    font-size: 3em;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    padding: 0;
}
@media (max-width: 768px) {
    .about-hero-image .hero-caption {
        font-size: 2em;
    }
}
*/
/* Society Registration Page Styles */
.pdf-viewer-container {
    position: relative;
    width: 100%;
    height: 700px; /* Default height for desktop PDF viewer */
    margin: 0 auto 30px; /* Center the container and add bottom margin */
    border: 1px solid #ddd; /* Add a subtle border around the viewer */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Add a soft shadow */
    background-color: #f0f0f0; /* Light background while PDF loads or if not supported */
    display: flex; /* Helps center the fallback content */
    align-items: center;
    justify-content: center;
    color: #555; /* Color for fallback text */
    font-size: 1.1em;
}

.pdf-viewer {
    width: 100%;
    height: 100%; /* Fill the container's height */
    border: none; /* Remove default iframe border */
}

/* Responsive adjustments for PDF Viewer */
@media (max-width: 768px) {
    .pdf-viewer-container {
        height: 500px; /* Shorter height on tablets and smaller desktops */
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .pdf-viewer-container {
        height: 400px; /* Even shorter on mobile phones */
    }
}
/* Schools Page Styles */
.school-detail-section {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line on smaller screens */
    align-items: center; /* Vertically aligns items in the center */
    gap: 40px; /* Space between the image and text blocks */
    margin-bottom: 60px; /* Space between different school sections */
}

.school-detail-section:last-of-type {
    margin-bottom: 0; /* No bottom margin for the very last school section */
}

.school-image {
    flex: 1 1 45%; /* Flex-grow, flex-shrink, flex-basis: Image takes ~45% width */
    min-width: 320px; /* Ensures image doesn't get too small before wrapping */
}

.school-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Slightly rounded corners for images */
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); /* Soft shadow for depth */
}

.school-text {
    flex: 1 1 50%; /* Text takes remaining ~50% width */
}

.school-text h3 {
    font-size: 2.2em; /* Slightly larger heading for school names */
    margin-bottom: 15px;
    color: var(--primary-color, #0056b3); /* Use your primary color, with a fallback */
}

/* Optional: Reverse layout for alternate school sections (image on right, text on left) */
/* This makes the layout more dynamic for multiple sections */
.school-detail-section:nth-of-type(odd) { /* Targets the 1st, 3rd, 5th, etc. .school-detail-section in its parent */
    /* This will keep default image-left, text-right */
}
.school-detail-section:nth-of-type(even) { /* Targets the 2nd, 4th, 6th, etc. .school-detail-section */
    flex-direction: row-reverse; /* Reverses the order of image and text */
}

/* Responsive adjustments for school sections */
@media (max-width: 992px) {
    .school-detail-section {
        gap: 30px; /* Reduce gap on medium screens */
    }
    .school-image,
    .school-text {
        flex: 1 1 100%; /* Stack both image and text on top of each other */
        min-width: unset; /* Remove min-width constraint */
    }
    .school-detail-section {
        flex-direction: column; /* Ensure stacking on smaller screens */
        text-align: center; /* Center align text when stacked */
    }
    .school-detail-section:nth-of-type(even) { /* Reset direction when stacking */
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .school-text h3 {
        font-size: 1.8em; /* Further reduce heading size on small mobiles */
    }
}
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* --- News & Events Page Specific Styles --- */

/* Page Title and Intro */
.section-title {
    font-size: 2.8em;
    color: #004d40; /* Dark green for prominence */
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.section-intro {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 60px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-sub-title {
    text-align: center;
    font-size: 2em;
    color: #004d40;
    margin-top: 60px; /* Space above each section title */
    margin-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Section Divider */
.section-divider {
    margin: 80px auto;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(167, 217, 185, 0.75), rgba(0, 0, 0, 0)); /* Light green fade */
    width: 80%;
    max-width: 900px;
}


/* Base Card Styles for News and Events */
.news-card,
.event-card,
.past-event-card {
    background-color: #fff;
    border-radius: 12px; /* Slightly more rounded corners */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Softer, deeper shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures cards in a row have same height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* Subtle border */
}

.news-card:hover,
.event-card:hover,
.past-event-card:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.news-card img,
.event-card img,
.past-event-card img {
    width: 100%;
    height: 220px; /* Slightly taller images for better visual impact */
    object-fit: cover; /* Ensures image covers the area, cropping if needed */
    display: block;
    border-bottom: 1px solid #f0f0f0; /* Separator between image and content */
}

.card-content {
    padding: 25px; /* More padding */
    flex-grow: 1; /* Allows content to expand and push button to bottom */
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    font-size: 1.6em; /* Larger title */
    color: #004d40;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    font-weight: 600;
}

.card-content p {
    font-size: 1em; /* Slightly larger text */
    color: #555;
    margin-bottom: 18px; /* More space before date/location */
    line-height: 1.6;
}

.card-content .card-date,
.card-content .card-location {
    font-size: 0.9em; /* Slightly larger date/location */
    color: #777;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.card-content .card-date i,
.card-content .card-location i {
    margin-right: 10px; /* More space for icon */
    color: #a7d9b9; /* Consistent light green icon color */
    font-size: 1.1em; /* Slightly larger icons */
}

.card-content .btn {
    margin-top: auto; /* Pushes button to the bottom of the card */
    align-self: flex-start; /* Aligns button to the left within the card */
    padding: 10px 20px; /* Adjust button padding */
    font-size: 0.9em; /* Adjust button font size */
    border-radius: 5px; /* Slightly rounded buttons */
}

/* Grid Layouts */
.news-grid,
.events-grid,
.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Min card width of 320px */
    gap: 35px; /* More space between cards */
    margin-bottom: 40px;
}

/* Specific adjustments for past events if needed */
.past-events-grid .past-event-card .card-content {
    text-align: center; /* Center content for smaller past event cards */
    align-items: center; /* Center button too */
}
.past-events-grid .past-event-card .card-content .btn {
    align-self: center; /* Center button */
}

/* Large button for "View All" */
.large-btn {
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 7px;
}


/* Responsive adjustments for News & Events */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2em;
    }
    .section-intro {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .section-sub-title {
        font-size: 1.8em;
        margin-top: 50px;
        margin-bottom: 30px;
    }
    .news-card img,
    .event-card img,
    .past-event-card img {
        height: 200px;
    }
    .card-content h4 {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .news-grid,
    .events-grid,
    .past-events-grid {
        grid-template-columns: 1fr; /* Stack cards vertically on smaller screens */
        gap: 30px;
    }

    .news-card img,
    .event-card img,
    .past-event-card img {
        height: 180px; /* Adjust image height for mobile */
    }

    .card-content {
        padding: 20px;
    }

    .card-content h4 {
        font-size: 1.2em;
    }

    .card-content p {
        font-size: 0.95em;
    }
    .section-divider {
        margin: 60px auto;
    }
}

@media (max-width: 480px) {
    .news-card img,
    .event-card img,
    .past-event-card img {
        height: 150px;
    }
    .card-content h4 {
        font-size: 1.1em;
    }
    .card-content p {
        font-size: 0.9em;
    }
    .card-content .card-date,
    .card-content .card-location {
        font-size: 0.8em;
    }
}
/* Styles for Expand/Collapse Feature */
.full-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, margin-top 0.5s ease-out; /* Smooth transition */
    margin-top: 0; /* No margin when collapsed */
    padding-top: 0;
    font-size: 0.95em; /* Slightly smaller text for full content */
    color: #444;
}

.card-content.expanded .full-content {
    max-height: 500px; /* Adjust as needed; should be larger than max possible content height */
    margin-top: 15px; /* Add margin when expanded */
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0; /* Subtle separator */
}

.read-more-btn {
    cursor: pointer; /* Indicate it's clickable */
    margin-top: 15px !important; /* Ensure button spacing */
}
/* --- Consolidated Audit Statement Page Styles --- */

/* Grid for the PDF cards */
.pdf-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Styling for each PDF card */
.pdf-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.pdf-card .card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pdf-card h4 {
    font-size: 1.4em;
    color: #004d40;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Styling for the download button */
.pdf-card .btn {
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 600;
}

.pdf-card .btn i {
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pdf-list-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Contact Page Specific Styles --- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

/* Contact Form Container */
.contact-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form-container h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #004d40;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a7d9b9;
    box-shadow: 0 0 5px rgba(167, 217, 185, 0.5);
}

/* Contact Details Container */
.contact-details-container {
    background-color: #004d40;
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details-container h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5em;
    margin-right: 20px;
    color: #a7d9b9;
    width: 30px;
    text-align: center;
}

.contact-item p {
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
    color: #f0f0f0;
}

.social-links {
    margin-top: 30px;
    text-align: center;
}

.social-icon {
    font-size: 1.2em;
    color: #fff;
    margin: 0 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}


/* Map Section */
.map-section {
    padding-top: 0;
    padding-bottom: 50px;
}

.map-section h3 {
    margin-bottom: 30px;
    color: #004d40;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-container,
    .contact-details-container {
        padding: 30px;
    }
}

/* --- Aggressive Z-index fix for mobile menu and slider captions --- */

/* 1. Target the Mobile Menu */
/* Replace '.navbar-collapse' or '.mobile-menu' with the actual class of your mobile navigation container.
   This is often the element that becomes visible when you click the menu icon. */
@media (max-width: 768px) {
    
    /* Ensure the header and toggle are on top of the content */
    header {
        z-index: 9999;
    }
    
    /* MOBILE MENU SLIDE-IN (APP STYLE) */
    nav {
        position: fixed; /* Fixed to viewport */
        top: 0;
        left: -100%; /* Start off-screen to the left */
        width: 80%; /* Menu takes up 80% of screen width */
        max-width: 300px; /* Max width for larger mobile devices */
        height: 100vh; /* Full viewport height */
        background-color: #00332c; /* Darker background for the menu */
        color: #fff;
        padding-top: 60px; /* Space for a potential close button or just margin from top */
        box-shadow: 2px 0 5px rgba(0,0,0,0.5); /* Shadow for depth */
        transition: left 0.3s ease-out; /* Smooth slide-in transition */
        z-index: 99999; /* Use an even higher value for maximum priority */
        overflow-y: auto; /* Enable scrolling for long menus */
        display: block; /* Always block display, control visibility with left */
    }

    nav.active {
        left: 0; /* Slide into view */
    }

    /* Your other mobile styles for nav, ul, li, etc. remain the same */
    /* ... (rest of your existing mobile menu styles) ... */
    
}
