/* advanced-placement.css */

/* ======================================================
   PAGE-SPECIFIC BANNER IMAGES
   ====================================================== */

/* Programs main page */
.banner-programs {
    background-image: url('../img/banners/programs.jpg');
}

/* Early Years */
.banner-early-years {
    background-image: url('../img/banners/early-year.webp');
}

/* Elementary */
.banner-elementary {
    background-image: url('../img/banners/elementary.webp');
}

/* Middle School */
.banner-middle-school {
    background-image: url('../img/banners/middle-school2.webp');
}

/* High School */
.banner-high-school {
    background-image: url('../img/banners/high-school.webp');
}

/* Advanced Placement */
.banner-ap {
    background-image: url('../img/banners/advanced-placement.jpg');
}

/* Clubs */
.banner-clubs {
    background-image: url('../img/banners/clubs.webp');
}

/* Sports */
.banner-sports {
    background-image: url('../img/banners/sports.jpg');
}

/* Fine-tuned focal points */
.banner-early-years {
    background-position: center 10%;
}

.banner-middle-school {
    background-position: center 90%;
}

.banner-high-school {
    background-position: center 45%;
}

.banner-sports {
    background-position: center 50%;
}

.banner-clubs {
    background-position: center 10%;
}

/* ======================================================
   GENERAL
   ====================================================== */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f9f9f9;
    color: #333;
}

body,
button,
input,
select,
textarea {
    font-family: 'Poppins', 'Nunito', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', 'Nunito', Arial, sans-serif;
    font-weight: 600;
}

.btn,
.learn-more-btn {
    font-family: 'Poppins', 'Nunito', Arial, sans-serif;
    font-weight: 600;
}

/* ======================================================
   BANNER
   ====================================================== */
.lis-mv-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;

    background-repeat: no-repeat;
    background-size: cover;

    /* key improvement */
    background-position: center 70%;
}


.lis-mv-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(122, 105, 189, 0.65),
            rgba(46, 115, 185, 0.65));
}

.lis-mv-banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.lis-mv-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.35));
    z-index: 1;
}

@media (max-width: 768px) {
    .lis-mv-banner {
        height: 220px;
        background-position: center 30%;
    }
}


/* ======================================================
   SECTION HEADINGS
   ====================================================== */
h2.text-primary {
    color: #2e73b9 !important;
}

.section-divider {
    border: none;
    height: 2px;
    width: 120px;
    margin: 0 auto;
    background-color: #2e73b9;
    opacity: 0.6;
}

/* ======================================================
   PROGRAMS GRID
   ====================================================== */
.row.g-4 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.program-box {
    background: #ffffff;
    padding: 2rem 1.6rem;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg,
            rgba(46, 115, 185, 0.08),
            rgba(46, 115, 185, 0.02));
}

/* Program icons */
.program-box i {
    transition: transform 0.3s ease;
}

.program-box:hover i {
    transform: scale(1.12);
}

/* Program headings */
.program-box h5 {
    font-size: 1.2rem;
    color: #2e73b9;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Program text */
.program-box p {
    font-size: 0.95rem;
    color: #000;
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
}

/* Middle School – bridge emphasis */
a[href*="middle-school"] .program-box:hover {
    background: linear-gradient(180deg,
            rgba(238, 189, 55, 0.12),
            rgba(46, 115, 185, 0.08));
}

/* Large screens readability */
@media (min-width: 1200px) {
    .program-box {
        padding: 2.2rem 1.8rem;
    }

    .program-box h5 {
        font-size: 1.2rem;
    }

    .program-box p {
        font-size: 0.95rem;
    }
}

/* ===============================
   Early Years Gallery - PAGE
=============================== */

/* ======================================================
   EARLY YEARS PAGE STYLES
====================================================== */

/* ---------------------------
   Info Section Description
--------------------------- */
.early-years-description p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555555;
}

/* ---------------------------
   Cards Container
--------------------------- */
.early-years-cards-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    max-width: 960px;
    margin: 2rem auto 0;
}

/* Individual Card */
.early-years-card {
    flex: 0 0 30%;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1rem;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-align: center;
}

.early-years-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

/* Icon */
.early-years-card .info-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    background-color: #2e73b9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}

/* Card Title */
.early-years-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2e73b9;
}

/* Card Description */
.early-years-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333333;
}

/* ---------------------------
   Gallery Thumbnails
--------------------------- */
.gallery-card {
    position: relative;
    width: 280px;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    margin: 0 auto;
    display: block;
    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease;
}

.gallery-card img.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.gallery-card:hover img.thumbnail {
    transform: scale(1.05);
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: rgba(46, 115, 185, 0.85);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* Position arrows directly on the left and right edges of the image */
.glightbox-arrow-left,
.glightbox-arrow-right {
    top: 50%;
    /* vertically center */
    transform: translateY(-50%);
    /* center properly */
    width: 50px;
    /* clickable area */
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    /* semi-transparent */
    border-radius: 50%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.glightbox-arrow-left:hover,
.glightbox-arrow-right:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Left arrow */
.glightbox-arrow-left {
    left: 0;
    /* directly on the left edge */
}

/* Right arrow */
.glightbox-arrow-right {
    right: 0;
    /* directly on the right edge */
}

/* Optional: make the arrow icons bigger */
.glightbox-arrow-left:after,
.glightbox-arrow-right:after {
    font-size: 2rem;
    color: #fff;
}

.gallery-credit {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    margin-top: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.glightbox-container .gslide .ginner-container {
    background-color: #1a1a1a;
    /* dark background instead of white */
}

.glightbox-container .gprev,
.glightbox-container .gnext {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    opacity: 0.8;
}

.glightbox-container .gprev:hover,
.glightbox-container .gnext:hover {
    opacity: 1;
}


/* Responsive Adjustments */
@media (max-width: 991px) {
    .early-years-cards-container {
        flex-wrap: wrap;
    }

    .early-years-card {
        flex: 0 0 48%;
        margin-bottom: 1.5rem;
    }

    .gallery-card {
        width: 48%;
        height: 180px;
    }
}

@media (max-width: 767px) {
    .early-years-card {
        flex: 0 0 100%;
    }

    .gallery-card {
        width: 100%;
        height: 180px;
    }
}

.gallery-icon i,
.club-icon i {
    font-size: 48px;
    color: #2e73b9;
    display: inline-block;
    margin-bottom: 12px;
}



/* ======================================================
   CLUBS & SPORTS – UNIFIED SECTION
   ====================================================== */
.life-block {
    position: relative;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    background-color: #000;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.life-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradient overlay */
.life-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(46, 115, 185, 0.92),
            rgba(46, 115, 185, 0.55),
            rgba(0, 0, 0, 0.15));
    z-index: 1;
}

.life-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.25);
}

/* Content overlay */
.life-content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 30px;
    color: #fff;
    z-index: 2;
}

.life-content i {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.life-content h4 {
    font-weight: 700;
    margin-bottom: 10px;
}

.life-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Links */
.life-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* View gallery button */
.view-gallery-btn {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2e73b9;
    background-color: #ffc107;
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    transition: all 0.25s ease;
}

.view-gallery-btn:hover {
    background-color: #e0a800;
    color: #fff;
    transform: translateY(-1px);
}

/* ======================================================
   MODAL GALLERY
   ====================================================== */
.modal-body .carousel {
    background-color: #000;
}

/* -----------------------------
   MODAL CAROUSEL IMAGES - FULL VIEW
------------------------------ */
.modal-body .carousel-item {
    height: auto;
    /* let height adjust to image */
    max-height: 80vh;
    /* restrict very tall images */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

/* Fix for modal carousel images */
.modal-body .carousel-item img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 70vh;
    /* ensures image fits viewport */
    height: auto;
    /* maintain aspect ratio */
    width: auto;
    /* maintain aspect ratio */
    object-fit: contain;
    /* ensures the whole image is visible */
}


/* Image credit */
.carousel-item {
    position: relative;
}

.gallery-credit {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.55);
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(3px);
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-indicators .active {
    background-color: #fff;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 992px) {
    .life-block {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .lis-mv-banner {
        height: 220px;
    }

    .life-block {
        height: 260px;
    }

    .life-content {
        padding: 22px;
    }

    .life-content i {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .life-content p {
        font-size: 0.9rem;
    }

    .view-gallery-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .gallery-credit {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}


/* ======================================================
   Student CLUBS Page – EXPANDABLE ACCORDION
====================================================== */

/* ======================================================
   CLUBS & INTERACTIVE CARDS
   ====================================================== */

/* Card Container */
.club-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.club-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.club-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.club-card-header i,
.club-card-header svg {
    font-size: 2rem;
    color: #2e73b9;
}

.club-card-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Club Author */
.club-author {
    font-size: 0.875rem;
    color: #6c757d;
    display: block;
    font-weight: 600;
    margin-top: 2px;
}

/* Teaser */
.club-teaser {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
}

/* Action Buttons */
.club-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.club-actions .btn-link,
.club-actions .btn-outline-primary,
.club-actions .btn-outline-secondary {
    font-weight: 600;
}

/* Expandable Card Back / Full Description */
.club-card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f9fa;
    padding: 30px;
    overflow-y: auto;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    border-radius: 18px;
}

.club-card.active {
    z-index: 50;
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.club-card.active .club-card-back {
    max-height: 1000px;
    opacity: 1;
}

.club-card.active .club-card-front {
    opacity: 0;
}

/* Card Front */
.club-card-front {
    position: relative;
    z-index: 1;
    text-align: center;
    height: 100%;
}

/* Flip Cards */
.flip-card {
    perspective: 1200px;
    cursor: pointer;
    height: 300px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-back .btn {
    margin-top: 10px;
}

/* Card Icons */
.flip-card-front i,
.flip-card-back i,
.flip-card-front svg,
.flip-card-back svg {
    font-size: 2rem;
    color: #2e73b9;
    margin-bottom: 8px;
}

/* Gallery Carousel */
.carousel-item {
    position: relative;
    height: 70vh;
    min-height: 420px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.gallery-credit {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.75rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: 4px 10px;
    border-radius: 999px;
    pointer-events: none;
}

/* ===========================
   MODAL STYLING
   =========================== */
.modal-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: none;
}

.modal-header {
    border-bottom: none;
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 0;
    position: relative;
}

.modal-header h5.modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #2e73b9;
    text-align: center;
    margin: 0;
}

.modal-header .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    filter: invert(0.4);
    background: transparent;
}

.modal-body {
    padding: 2rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    background-color: #fdfdfd;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body .club-author {
    font-weight: 600;
    color: #2e73b9;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: block;
}

/* Club Icon inside Modal */
.modal-club-icon {
    display: block;
    margin: 0 auto 1rem auto;
    font-size: 3rem;
    color: #2e73b9;
    text-align: center;
}

.modal-club-icon svg {
    width: 64px;
    height: 64px;
    fill: #2e73b9;
}

/* Optional Divider under Icon */
.modal-club-divider {
    width: 60px;
    height: 3px;
    background-color: #2e73b9;
    margin: 12px auto 20px auto;
    border-radius: 2px;
}

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 768px) {
    .club-card {
        padding: 22px;
    }

    .flip-card {
        height: 260px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-header h5.modal-title {
        font-size: 1.4rem;
    }

    .modal-club-icon svg,
    .modal-club-icon i {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 576px) {
    .flip-card {
        height: 240px;
    }
}

/* ======================================================
   Elementary Page Styles
   ====================================================== */
:root {
    --primary: #2e73b9;
    --accent: #f5c400;
    --dark: #1f2933;
    --light: #f9fafb;
    --soft: #eef2f7;
}

/* ---------- BASE ---------- */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section.light {
    background: var(--light);
}

/* ---------- HERO ---------- */

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* ---------- TITLES ---------- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    max-width: 700px;
    margin: auto;
    color: #555;
    font-size: 0.95rem;
}

/* ---------- GRID & CARDS ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.card p,
.card li {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #444;
}

.card ul {
    padding-left: 18px;
    margin: 0;
}

/* ---------- HIGHLIGHT ---------- */
.highlight {
    background: linear-gradient(135deg, #ffffff, var(--soft));
    border-radius: 18px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.highlight h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* ---------- GALLERY ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.gallery img:hover {
    transform: scale(1.04);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .highlight {
        padding: 35px 25px;
    }
}

/* ===============================
   ELEMENTARY PAGE REDESIGN
================================ */

.lis-program-intro h2 {
    font-weight: 700;
    color: #2e73b9;
}

.lis-program-intro .lead {
    font-size: 1.05rem;
    color: #555;
}

.section-heading {
    font-weight: 700;
    color: #2e73b9;
}

.section-subheading {
    font-size: 0.95rem;
    color: #666;
}

/* Feature Boxes */
.feature-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.feature-box i {
    font-size: 2rem;
    color: #f5c400;
    margin-bottom: 15px;
}

.feature-box h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Icon List */
.icon-list-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.icon-list-box i {
    display: block;
    font-size: 1.6rem;
    color: #2e73b9;
    margin-bottom: 8px;
}

.icon-list-box span {
    font-weight: 600;
}

/* Text Box */
.text-box {
    background: linear-gradient(135deg, #ffffff, #f1f4f9);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
}

/* Highlight */
.highlight-box {
    background: linear-gradient(135deg, #ffffff, #eef2f7);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.highlight-box h3 {
    color: #2e73b9;
    margin-bottom: 15px;
}

/* ===============================
   GALLERY FIX – LARGE & CLEAN
================================ */

.gallery img {
    height: 250px;
    /* same height for all images */
    object-fit: cover;
    /* crop nicely */
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.gallery img:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* Mobile adjustment */
@media (max-width: 576px) {
    .gallery img {
        height: 180px;
    }
}

/* Background alternates */
.lis-program-section {
    background: #ffffff;
}

.lis-program-alt {
    background: #f9fafb;
}

/* ===============================
   ELEMENTARY PAGE GALLERY OVERRIDE
================================ */

.elementary-gallery>.col-12 {
    flex: 0 0 33.3333% !important;
    /* force 3 columns on desktop */
    max-width: 33.3333% !important;
}

.elementary-gallery img {
    width: 100% !important;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.elementary-gallery img:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* Responsive: tablet */
@media (max-width: 991.98px) {
    .elementary-gallery>.col-12 {
        flex: 0 0 50% !important;
        /* 2 columns on tablet */
        max-width: 50% !important;
    }
}

/* Responsive: mobile */
@media (max-width: 575.98px) {
    .elementary-gallery>.col-12 {
        flex: 0 0 100% !important;
        /* 1 column on mobile */
        max-width: 100% !important;
    }

    .elementary-gallery img {
        height: 180px;
    }
}

.elementary-gallery a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    font-family: 'Poppins', 'Nunito', Arial, sans-serif;
}

.elementary-gallery a::after {
    content: "\f065";
    /* Font Awesome search-plus icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.elementary-gallery a:hover::after {
    opacity: 1;
}

.elementary-gallery img {
    transition: transform 0.3s ease;
}

.elementary-gallery a:hover img {
    transform: scale(1.05);
}

/* -----------------------------
   GLightbox caption font override
------------------------------- */

/* This targets caption text inside GLightbox */
.glightbox-container .gslide .gdesc,
.glightbox-container .gdesc {
    font-family: 'Poppins', 'Nunito', Arial, sans-serif !important;
    font-size: 1rem !important;
    color: #333 !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.glightbox-container .gdesc {
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

/* ===============================
   HIGH SCHOOL PAGE CSS
================================ */
/* Thumbnail style for gallery */
.gallery-thumb {
    aspect-ratio: 4 / 3;
    /* width:height ratio, adjust as needed */
}

.gallery-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    font-size: 0.9rem;
}