/* ================================================
   BRAINWOOD GLOBAL SCHOOL - Custom Stylesheet
   Uses Bootstrap 5.3 as base
   ================================================ */

/* ---- ROOT VARIABLES ---- */
:root {
    --bgs-blue: #1a3a6e;
    --bgs-blue-dark: #122b55;
    --bgs-orange: #f47c20;
    --bgs-orange-hover: #d96a10;
    --bgs-gold: #f5a623;
    --bgs-light: #f8f9fc;
    --bgs-text: #2d3748;
    --bgs-muted: #718096;
    --font-sans: 'Poppins', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.14);
}

/* ---- BASE ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--bgs-text);
    background: #fff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

/* ================================================
   NAVIGATION
   ================================================ */
.bgs-navbar {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
    transition: var(--transition);
}

.bgs-navbar .navbar-brand img {
    transition: var(--transition);
}

.bgs-navbar .nav-link {
    color: var(--bgs-blue) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px !important;
    border-radius: 6px;
    transition: var(--transition);
}

.bgs-navbar .nav-link:hover {
    color: var(--bgs-orange) !important;
    background: rgba(244, 124, 32, 0.07);
}

.bgs-navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.btn-bgs-primary {
    background: var(--bgs-orange);
    color: #fff !important;
    border: none;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.btn-bgs-primary:hover {
    background: var(--bgs-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(244, 124, 32, 0.4);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    min-height: 100vh;
    background: url('assets/images/brainwoodhero.png') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(15, 30, 70, 0.45) 60%,
            rgba(15, 30, 70, 0.72) 100%);
}

.hero-bg-fallback {
    background: linear-gradient(135deg, #1a3a6e 0%, #2d6bb5 50%, #5090d3 100%) !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #fff;
    line-height: 1.15;
    font-weight: 800;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    line-height: 1.7;
    font-weight: 400;
}

/* ================================================
   CBSE PROGRAMS SECTION
   ================================================ */
.programs-section {
    padding: 80px 0 60px;
    background: #fff;
}

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bgs-orange);
    margin-bottom: 4px;
}

.programs-section .section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--bgs-blue);
    font-weight: 700;
    margin-bottom: 0;
}

.programs-section .section-desc {
    color: var(--bgs-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 400px;
}

.program-card {
    padding: 28px 20px 24px;
    border-radius: 14px;
    border: 1.5px solid #eef1f8;
    background: #fff;
    transition: var(--transition);
    height: 100%;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--bgs-blue);
}

.program-img-wrap {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: rgba(26, 58, 110, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.program-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.program-card h5 {
    color: var(--bgs-blue);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.program-card p {
    color: var(--bgs-muted);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

/* ================================================
   AERIAL CAMPUS IMAGE SECTION
   ================================================ */
.campus-section {
    overflow: hidden;
}

.campus-section img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* ================================================
   WHY CHOOSE US SECTION
   ================================================ */
.why-choose-section {
    padding: 80px 0;
    background: var(--bgs-light);
}

.why-choose-section .section-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--bgs-blue);
    font-weight: 700;
    margin-bottom: 48px;
}

.reason-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 20px;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.reason-card:hover {
    border-color: var(--bgs-blue);
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.reason-number {
    min-width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a3a6e, #2d6bb5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-serif);
    flex-shrink: 0;
}

.reason-body h5 {
    color: var(--bgs-blue);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.reason-body p {
    color: var(--bgs-muted);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

/* ================================================
   TESTIMONIALS SECTION
   ================================================ */
.testimonial-section {
    padding: 80px 0;
    background: var(--bgs-blue);
    position: relative;
    overflow: hidden;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.testimonial-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.testimonial-section .section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #fff;
    font-weight: 700;
}

.testimonial-section .section-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Carousel controls */
.testimonial-section .carousel-control-prev,
.testimonial-section .carousel-control-next {
    width: auto;
    opacity: 1;
}

.testimonial-section .carousel-control-prev-icon,
.testimonial-section .carousel-control-next-icon {
    display: none;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 28px 24px;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-4px);
}

.quote-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.testimonial-card p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-card .reviewer-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
}

/* ================================================
   FOOTER
   ================================================ */
.bgs-footer {
    background: #0f1e3a;
    color: #fff;
}

.footer-logo {
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-heading {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bgs-footer .text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}

.footer-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--bgs-orange);
}

.bgs-footer .text-primary {
    color: var(--bgs-orange) !important;
}

.social-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    color: var(--bgs-orange);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.12);
}

.footer-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(244, 124, 32, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bgs-orange);
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

/* ================================================
   ADMISSIONS MODAL
   ================================================ */
#admissionsModal .modal-content {
    border-radius: 18px;
}

#admissionsModal .form-control:focus,
#admissionsModal .form-select:focus {
    border-color: var(--bgs-blue);
    box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.15);
}

#admissionsModal .form-label {
    color: var(--bgs-text);
}

#admissionsModal .modal-body {
    max-height: 75vh;
    overflow-y: auto;
}

/* ================================================
   UTILITIES / RESPONSIVE
   ================================================ */
@media (max-width: 991.98px) {
    .bgs-navbar .navbar-collapse {
        background: #fff;
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        margin-top: 10px;
    }

    .bgs-navbar .nav-link {
        padding: 10px 12px !important;
    }

    .hero-section {
        min-height: 85vh;
        padding-bottom: 60px;
    }

    .campus-section img {
        height: 280px;
    }
}

/* Dropdown hover behavior for desktop */
@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.2s ease-in;
    }

    .dropdown-menu {
        top: 100%;
        /* keep flush to avoid mouseout */
        margin-top: -5px !important;
        /* overlap slightly to never lose hover */
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        padding-top: 10px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .programs-section,
    .why-choose-section {
        padding: 60px 0;
    }

    .testimonial-section {
        padding: 60px 0;
    }

    .campus-section img {
        height: 220px;
    }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   ABOUT US PAGE
   ================================================ */

/* Hero / title area */
.about-banner-section {
    padding-top: 80px;
    /* account for fixed navbar */
    background: var(--bgs-light);
}

.about-title-wrap {
    padding-top: 20px;
}

.about-main-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--bgs-blue);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.about-title-divider {
    width: 3px;
    height: 48px;
    background: linear-gradient(to bottom, var(--bgs-blue), var(--bgs-orange));
    border-radius: 2px;
}

.about-hero-img-wrap {
    width: 100%;
    overflow: hidden;
    max-height: 420px;
}

.about-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Section headings (about-specific) */
.about-section-heading {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--bgs-blue);
    font-weight: 700;
    font-family: var(--font-serif);
}

.about-intro-text {
    font-size: 1.05rem;
    color: var(--bgs-muted);
    line-height: 1.85;
    max-width: 740px;
    margin: 0 auto;
}

/* ---- Vision / Mission Cards ---- */
.vm-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: var(--shadow-soft);
    border: 1.5px solid #eef1f8;
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.vm-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--bgs-blue), #2d6bb5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

.vm-title {
    color: var(--bgs-blue);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.vm-text {
    color: var(--bgs-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* ---- Team Cards ---- */
.team-section-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    color: var(--bgs-blue);
    font-weight: 700;
}

.team-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.team-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

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

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 30, 70, 0.95) 0%, rgba(15, 30, 70, 0.6) 70%, transparent 100%);
    padding: 28px 18px 18px;
    color: #fff;
}

.team-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.team-role {
    font-size: 0.85rem;
    color: var(--bgs-orange);
    font-weight: 600;
    margin-bottom: 4px;
}

.team-qual {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ---- Message Cards ---- */
.message-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: var(--shadow-soft);
    border: 1.5px solid #eef1f8;
    transition: var(--transition);
}

.message-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.message-card--featured {
    background: linear-gradient(135deg, var(--bgs-blue) 0%, #2d6bb5 100%);
    border-color: transparent;
    color: #fff;
}

.message-card--featured .message-quote p {
    color: rgba(255, 255, 255, 0.88);
}

.message-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(244, 124, 32, 0.1);
    color: var(--bgs-orange);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
}

.message-badge--featured {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.message-quote p {
    color: var(--bgs-muted);
    font-size: 0.92rem;
    line-height: 1.8;
    font-style: italic;
}

.message-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bgs-blue), #2d6bb5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.message-author strong {
    font-size: 0.9rem;
    display: block;
}

/* ---- Location Card ---- */
.location-info-card {
    background: var(--bgs-light);
    border-radius: 16px;
    padding: 28px 24px;
    border: 1.5px solid #eef1f8;
}

.location-info-card .footer-icon-wrap {
    background: rgba(26, 58, 110, 0.1);
    color: var(--bgs-blue);
}

.map-embed-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid #eef1f8;
}

.map-embed-wrap iframe {
    display: block;
}

/* About page responsive */
@media (max-width: 767.98px) {
    .about-hero-img {
        height: 260px;
    }

    .about-banner-section {
        padding-top: 72px;
    }

    .team-img-wrap {
        aspect-ratio: 1/1;
    }
}

/* ================================================
   VIRTUAL TOUR SECTION (HOME)
   ================================================ */
.virtual-tour-section {
    background-color: #f7f9fa;
    min-height: 480px;
}

.virtual-tour-bg {
    width: 58%;
    background-color: var(--bgs-blue);
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    z-index: 1;
}

@media (max-width: 991.98px) {
    .virtual-tour-section {
        background-color: var(--bgs-blue) !important;
        min-height: auto;
        padding: 60px 0 !important;
    }

    .virtual-tour-bg {
        display: none;
    }

    .virtual-tour-section h2,
    .virtual-tour-section p {
        text-align: center;
    }

    .video-wrapper {
        margin: 20px auto 0 !important;
        max-width: 100% !important;
    }
}

/* ================================================
   LEADERSHIP DESK PAGES
   ================================================ */

.desk-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding-top: 100px; /* Offset for fixed navbar */
    padding-bottom: 80px;
    z-index: 1;
}

.desk-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Remove heavy gradient, use very subtle tint if needed for legibility */
    background: transparent;
    z-index: 1;
}

.desk-hero-content {
    position: relative;
    z-index: 2;
    padding-left: 40px;
    margin-bottom: 20px;
}

.desk-main-title {
    color: #1a2a44;
    /* Dark Navy/Blue as seen in screenshot */
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1;
}

.desk-breadcrumb {
    color: #007bff;
    /* Bright blue for the home link */
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.desk-breadcrumb:hover {
    text-decoration: underline;
}

.desk-hero-portrait-wrap {
    position: absolute;
    bottom: -80px;
    right: 40px;
    z-index: 10;
}

.desk-hero-portrait {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border: 8px solid #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.desk-content-portrait {
    width: 100%;
    max-width: 380px;
    height: 520px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
}

.desk-message-section {
    padding-top: 100px;
}

.desk-message-content {
    padding-top: 40px;
}

.desk-message-quote {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--bgs-blue);
    font-family: var(--font-serif);
    font-style: italic;
    background: rgba(26, 58, 110, 0.05);
    padding: 40px;
    border-radius: 20px;
    position: relative;
}

.desk-message-quote::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    font-family: serif;
    color: var(--bgs-orange);
    opacity: 0.2;
}

/* Side Enquiry Button */
.side-enquiry-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right bottom;
    background: var(--bgs-gold);
    color: var(--bgs-blue);
    padding: 12px 25px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    z-index: 999;
    box-shadow: -2px -2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.side-enquiry-btn:hover {
    background: var(--bgs-orange);
    color: #fff;
    padding-bottom: 20px;
}

@media (max-width: 991.98px) {
    .desk-portrait-wrap {
        margin-top: 20px;
    }
}

/* ================================================
   LIFE @ BRAINWOOD SECTION
   ================================================ */
.life-gallery-section {
    background: #fff;
}

.elephant-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.elephant-divider::before,
.elephant-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    max-width: 100px;
}

.elephant-icon {
    width: 40px;
    height: auto;
    opacity: 0.8;
}

.life-video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.life-video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.life-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.life-video-card:hover .life-video-thumb {
    opacity: 1;
}

.play-btn-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.play-icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.life-video-card:hover .play-icon-circle {
    background: var(--bgs-blue);
    border-color: var(--bgs-blue);
    transform: scale(1.1);
}

/* Floating Social Icons */
.floating-social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.social-float-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.social-float-item:hover {
    transform: translateX(-5px) scale(1.1);
    color: #fff;
}

.social-float-item.fb {
    background: #1877F2;
}

.social-float-item.yt {
    background: #FF0000;
}

.social-float-item.li {
    background: #0077b5;
}

.social-float-item.ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Social Connect Card */
.social-connect-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.social-connect-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.social-connect-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* Refined Vision/Mission Cards */
.vm-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px 30px;
    border-radius: 24px;
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Desktop navbar adjustment for submenus */
@media (min-width: 992px) {
    /* desk-hero padding handled in global for consistency */
}

/* ================================================
   GALLERY SECTION
   ================================================ */
.gallery-hero {
    background: linear-gradient(rgba(26, 58, 110, 0.85), rgba(26, 58, 110, 0.85)), url('assets/images/school.png');
    background-size: cover;
    background-position: center;
    padding: 180px 0 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

.snap-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.snap-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.snap-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.snap-card:hover .snap-img {
    transform: scale(1.1);
}

.snap-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.snap-card:hover .snap-overlay {
    opacity: 1;
}

.snap-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.snap-category {
    color: var(--bgs-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.snap-card:hover .snap-title,
.snap-card:hover .snap-category {
    transform: translateY(0);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: var(--bgs-blue);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--bgs-blue);
    color: #fff;
    border-color: var(--bgs-blue);
}