/* --- Global Reset & Fonts --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* ================================================================= */
/* UPDATED: Header & Top Banner Styles                              */
/* ================================================================= */
.main-header {
    width: 100%;
}

.top-banner {
    display: flex;
    justify-content: space-between;
    
    /* MODIFIED: Aligns items to the bottom edge so they stick to the navbar */
    align-items: flex-end; 
    
    /* MODIFIED: Kept top and side padding, but removed bottom padding (0) */
    padding: 15px 5% 0 5%; 
    background-color: #ffffff;
}

.banner-left, .banner-right {
    display: flex;
    
    /* MODIFIED: Aligns the text inside side-boxes to the bottom with the images */
    align-items: flex-end; 
    gap: 12px;
}

.banner-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    
    /* MODIFIED: Forces block display to eliminate hidden font baseline gaps */
    display: block; 
}

.banner-text p {
    font-size: 13px;
    font-weight: bold;
    color: #444;
    line-height: 1.3;
    
    /* MODIFIED: Pushes the text up slightly so it doesn't hug the very bottom line */
    margin-bottom: 5px; 
}

.text-right {
    text-align: right;
}

.school-logo {
    max-height: 70px;
    max-width: 100%;
    
    /* MODIFIED: Keeps center logo nicely balanced with the bottom-aligned sides */
    margin-bottom: 5px; 
}
.banner-center-logo {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* ADD THIS LINE: Adjust the 15px value higher or lower to change the spacing */
    margin-bottom: 15px; 
}
/* ================================================================= */
/* Navigation Bar                                                    */
/* ================================================================= */
.navbar {
    background-color: #0099e5; /* Distinct bright blue from screenshot */
    padding: 0 2%;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s ease-in-out;
}

.nav-links li a:hover, 
.nav-links li a.active {
    background-color: #007cc0;
}

/* --- Main Content Layout --- */
.content-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
            text-align: center;
            margin-bottom: 40px;
            font-family: Arial, sans-serif;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

.about-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.school-building-img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-text-wrapper {
    flex: 1.2;
}

.about-text-wrapper p {
    font-size: 14px;
    color: #444444;
    margin-bottom: 20px;
    text-align: justify;
}

/* --- Footer & Quick Link Utilities --- */
.main-footer {
    margin-top: 60px;
    width: 100%;
}

.footer-icons-row {
    background: linear-gradient(to bottom, #0096dc, #005a9c);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 35px 20px;
    flex-wrap: wrap;
}

.footer-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    gap: 10px;
    transition: transform 0.2s;
}

.footer-icon-card:hover {
    transform: translateY(-3px);
}

.footer-icon-card i {
    font-size: 32px;
}

.footer-icon-card span {
    font-size: 13px;
    font-weight: bold;
}

.footer-copyright {
    background-color: #2e3e4f;
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    font-size: 11px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 850px) {
    .about-section {
        flex-direction: column;
    }
    
    .top-banner {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
        padding-bottom: 15px;
    }
    
    .banner-left, .banner-right {
        align-items: center;
    }
    
    .text-right {
        text-align: left;
    }
    
    .footer-icons-row {
        gap: 30px;
    }
}

.image-gallery {
            display: flex;
            justify-content: space-between;
            gap: 15px;
            margin: 20px 0;
            width: 100%;
        }
        .image-gallery img {
            width: 23%; /* Ensures 4 images fit perfectly in one line with spacing */
            height: auto;
            border-radius: 8px; /* Optional: rounds the corners slightly */
            object-fit: cover;
        }

        /* Accordion Container */
        .accordion-container {
            max-width: 1000px;
            margin: 0 auto 40px auto;
            padding: 0 15px;
            font-family: Arial, sans-serif;
        }

        /* Individual Accordion Item */
        .accordion-item {
            margin-bottom: 12px;
            border-radius: 4px;
            overflow: hidden;
        }

        /* The clickable header bar */
        .accordion-header {
            background-color: #555555;
            color: #ffffff;
            padding: 14px 20px;
            font-size: 16px;
            cursor: pointer;
            user-select: none;
            transition: background-color 0.2s ease, color 0.2s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Hover effect for header */
        .accordion-header:hover {
            background-color: #444444;
        }

        /* Content Panel - hidden by default */
        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            background-color: #ffffff;
            border: 0px solid transparent;
        }

        /* Content inner text container */
        .accordion-text {
            padding: 25px;
            font-size: 16px;
            line-height: 1.6;
            color: #333333;
        }

        /* Active/Expanded State Styles matching your image */
        .accordion-item.active .accordion-header {
            background-color: #e5a913; /* Gold/yellow background */
            color: #ffffff;
            font-weight: bold;
        }

        .accordion-item.active .accordion-content {
            border: 1px solid #e5a913;
            border-top: none;
        }

        /* Optional: CSS rotating chevron icon indicator */
        .accordion-header::after {
            content: '\f107'; /* FontAwesome Chevron Down */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            transition: transform 0.3s ease;
        }
        .accordion-item.active .accordion-header::after {
            transform: rotate(180deg);
        }
        /* Main Container layout split into two columns */
        .activities-container {
            display: flex;
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto 50px auto;
            padding: 0 20px;
            font-family: Arial, sans-serif;
        }

        /* Left Side Column: Vertical Image Stack */
        .activities-images {
            flex: 0 0 30%; /* Takes up roughly 30% width */
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .activities-images img {
            width: 100%;
            height: auto;
            border-radius: 4px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Gives that soft shadow edge */
            object-fit: cover;
        }

        /* Right Side Column: Text content */
        .activities-text {
            flex: 1; /* Takes up the remaining 70% width */
        }

        .activities-text p {
            font-size: 16px;
            line-height: 1.7;
            color: #555555;
            margin-bottom: 20px;
            text-align: justify;
        }

        /* Custom Highlighted Blue Heading */
        .games-heading {
            color: #0091ff; /* Bright blue color from image */
            font-weight: bold;
            font-size: 16px;
            margin-top: 25px;
            margin-bottom: 10px;
        }

        /* Responsive Design Rules */
        @media (max-width: 768px) {
            .activities-container {
                flex-direction: column; /* Stack images on top of text for mobile screens */
            }
            .activities-images {
                flex: 1;
                flex-direction: row; /* Layout images horizontally on mobile if space allows */
                gap: 15px;
            }
            .activities-images img {
                width: 48%;
            }
            .activities-text p {
                text-align: left;
            }
        }