/* 
 *  Color Palette:
 *  Sky Blue (Accent): #87CEEB
 *  Deep Cobalt Blue (Header/Footer): #0047AB
 *  White: #ffffff
 *  Light Gray (Background): #f4f4f4
 *  Text Color: #333
*/

/* Basic Setup */
body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Global */
.container {
    width: 85%;
    margin: auto;
    overflow: hidden;
}

ul {
    margin: 0;
    padding: 0;
}

.button {
    display: inline-block;
    height: 40px;
    line-height: 40px; /* Changed from 40px to 40px */
    background: #87CEEB; /* Changed from #009B77 to #87CEEB */
    border: none;
    padding: 0 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px; /* Changed from 18px to 18px */
    border-radius: 5px;
    cursor: pointer; 
    transition: background-color 0.3s ease;
}

.button:hover {
    background: #0047AB;
}

.dark-bg {
    padding: 20px;
    background: #0047AB;
    color: #ffffff;
    margin: 20px 0;
    border-radius: 5px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #0047AB;
}

/* Responsive Video Container */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.video-responsive iframe,
.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.video-responsive::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.video-responsive.playing::after {
    opacity: 0;
}

.video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.video-content h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Header */
header {
    background: #0047AB;
    color: #ffffff;
    padding-top: 20px;
    min-height: 80px;
    border-bottom: #87CEEB 5px solid;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
}

header li {
    float: left;
    display: inline;
    padding: 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
    font-size: 26px;
    color: #fff;
}

header #branding h1 a {
    display: flex;
    align-items: center;
}

header #branding img {
    height: 60px; /* Adjusted to fit header */
    width: 60px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 50%;
    padding: 5px;
}

.school-name {
    margin-left: 15px;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

 
header nav {
    float: right;
    margin-top: 10px;
}
 
header .highlight {
    color: #87CEEB; /* Changed from #009B77 to #87CEEB */
    font-weight: bold;
}

header a:hover {
    color: #87CEEB;
    font-weight: bold;
}
 
/* Hamburger Menu Button - Hidden on Desktop */
.hamburger {
    display: none;
    float: right;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    margin-top: 5px;
}


/* Page Switching Logic */
.page {
    display: none; /* Hide all pages by default */
    padding: 20px 0;
    animation: fadeIn 0.5s;
}

.page:target {
    display: block; /* Show the targeted page */
}

/* Make the #home page visible by default if no specific target is set */
body:not(:has(.page:target)) #home {
    display: block;
}

/* Showcase (Home Page) */
#showcase {
    min-height: 500px;
    position: relative;
    width: 100%;
    padding: 0;
}

.slideshow-container {
    width: 100%;
    height: 500px;
    position: relative;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    width: 80%;
}

.slide-text h1 {
    font-size: 55px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-text p {
    font-size: 22px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

/* Boxes (Home Page) */
#boxes { 
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#boxes .box {
    flex-basis: 31%;
    background: #fff;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#boxes .box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}
#boxes .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Inner Pages Layout */
.main-col {
    float: left;
    width: 65%;
}

.sidebar {
    float: right;
    width: 30%;
}

/* Gallery Page */
#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-item {
    display: none; /* Hide gallery items by default */
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
#loadMoreBtn {
    display: block;
    margin: 30px auto 10px auto;
}

/* Registration & Donation Forms */
.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.form-container .form-group {
    margin-bottom: 20px;
}
.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container input[type="date"],
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    border-color: #87CEEB;
    outline: none;
    box-shadow: 0 0 5px rgba(135, 206, 235, 0.5);
}

/* Academics Page */
.department-list {
    margin-top: 20px;
}
.department-item {
    background: #fff;
    border-left: 5px solid #87CEEB;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Policies Page */
.policy-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
}
.policy-section ul {
    list-style-position: inside;
}

/* Activities Page */
.activity-item {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px; /* Add space between activity sections */
    background: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.07);
}
.activity-item:last-child { margin-bottom: 0; }

.activity-item:nth-child(even) {
    flex-direction: row-reverse;
}

.activity-text, .activity-images {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.activity-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Flexible columns */
    gap: 20px;
    margin-top: 20px;
}

.activity-image-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.activity-image-item img:hover {
    transform: scale(1.03);
}


/* Contact Page */
#map-container {
    position: relative;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 5px;
}
#map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
footer.main-footer {
    padding: 25px;
    margin-top: 20px;
    color: #ffffff;
    background-color: #0047AB;
    text-align: center;
}

/* Lightbox Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80vh; /* Limit height to 80% of viewport height */
    object-fit: contain; /* Ensure the image fits within the bounds */
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
}

/* Lightbox Navigation */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Back to Top Button */
#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500; /* Below lightbox, above everything else */
    border: none;
    outline: none;
    background-color: #0047AB;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 20px;
    transition: background-color 0.3s, opacity 0.4s;
}
#backToTopBtn:hover {
    background-color: #87CEEB;
}

/* Cookie Consent Banner */
#cookie-banner {
    display: none; /* Hidden by default, shown via JS */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #3a3a3a;
    color: white;
    padding: 15px;
    z-index: 2100; /* Make sure it's on top */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    text-align: center;
}
#cookie-banner p {
    margin: 0 0 10px 0;
    color: white;
    font-size: 15px;
}




/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade {
    from {
        opacity: .4
    }
    to {
        opacity: 1
    }
}
/* Media Queries for Responsiveness */
@media(max-width: 768px){
    header #branding,
    header nav,
    header #branding {
        float: left;
        width: auto;
    }

    header nav {
        display: none; /* Hide nav by default on mobile */
        width: 100%;
        margin-top: 20px;
    }

    header nav.active {
        display: block; /* Show nav when hamburger is clicked */
    }

    header nav li {
        float: none;
        text-align: center;
        width: 100%;
        padding: 5px 0;
    }

    header {
        padding-bottom: 20px;
        position: static; /* Remove sticky header on mobile */
    }
    .hamburger {
        display: block; /* Show hamburger button on mobile */
    }
    .activity-item, .activity-item:nth-child(even) {
        flex-direction: column;
        padding: 15px;
    }
    .slide-text h1 {
        font-size: 40px;
    }
    .activity-images {
        grid-template-columns: 1fr; /* Stack images on mobile */
    }
    #boxes .box,
    .main-col,
    .sidebar {
        flex-basis: 100%;
        width: 100%;
        float: none;
    }
    .container {
        width: 95%;
    }
    #cookie-banner {
        padding: 10px;
    }
    #cookie-banner p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .school-name {
        font-size: 14px; /* Smaller on mobile to fit */
        margin-left: 10px;
    }
}
