/**
 * Vigilant International School - Brand Theme & Mobile Responsiveness Stylesheet
 * 
 * Target Palette:
 * - Primary (Royal Blue): #0c4598 (Hover: #093472, Subtle: #e8f0fe)
 * - Secondary (Crimson Red): #e31b23 (Hover: #be1218, Subtle: #fde8e8)
 * - Accent (Emerald Green): #0e9f4b (Hover: #0b803c, Subtle: #e8f5e9)
 * - Accent Lime: #8dc63f
 * - Golden Amber: #f59e0b (Subtle: #fef3c7)
 * - Dark Navy: #0a2240
 * - Light Tint: #f0f4fa
 */

:root {
    --bs-primary: #0c4598;
    --bs-primary-rgb: 12, 69, 152;
    --bs-secondary: #e31b23;
    --bs-secondary-rgb: 227, 27, 35;
    --bs-success: #0e9f4b;
    --bs-success-rgb: 14, 159, 75;
    --bs-info: #0284c7;
    --bs-info-rgb: 2, 132, 199;
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-dark: #0a2240;
    --bs-dark-rgb: 10, 34, 64;
    --bs-light: #f0f4fa;
    --bs-light-rgb: 240, 244, 250;
    --vigilant-blue: #0c4598;
    --vigilant-blue-dark: #093472;
    --vigilant-blue-subtle: #e8f0fe;
    --vigilant-red: #e31b23;
    --vigilant-red-dark: #be1218;
    --vigilant-red-subtle: #fde8e8;
    --vigilant-green: #0e9f4b;
    --vigilant-green-subtle: #e8f5e9;
    --vigilant-lime: #8dc63f;
    --vigilant-gold: #f59e0b;
    --vigilant-gold-subtle: #fef3c7;
    --vigilant-dark: #0a2240;
}

/* ==========================================================================
   1. Global Reset & Viewport Stability
   ========================================================================== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #4a5568;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure WOW animated elements & all card sections are ALWAYS visible on mobile devices */
@media (max-width: 991.98px) {
    .wow,
    [class*="wow"],
    .classes-item,
    .classes-item-body,
    .team-item,
    .testimonial-item,
    .facility-item,
    .animated,
    [style*="visibility: hidden"],
    [style*="visibility:hidden"] {
        visibility: visible !important;
        opacity: 1 !important;
        animation: none !important;
        -webkit-animation: none !important;
        transform: none !important;
    }
}

a {
    color: #0c4598;
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: #093472;
}

::selection {
    background-color: #0c4598;
    color: #ffffff;
}

/* Headings Typography */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    font-weight: 700;
    color: #0a2240;
    letter-spacing: -0.02em;
}

.brand-font-cursive {
    font-family: 'Lobster Two', cursive !important;
}

/* ==========================================================================
   2. Bootstrap Color Utilities Overrides
   ========================================================================== */
.text-primary { color: #0c4598 !important; }
.text-secondary { color: #e31b23 !important; }
.text-success { color: #0e9f4b !important; }
.text-warning { color: #f59e0b !important; }
.text-info { color: #0284c7 !important; }
.text-dark { color: #0a2240 !important; }

.bg-primary { background-color: #0c4598 !important; color: #ffffff; }
.bg-secondary { background-color: #e31b23 !important; color: #ffffff; }
.bg-success { background-color: #0e9f4b !important; color: #ffffff; }
.bg-warning { background-color: #f59e0b !important; color: #ffffff; }
.bg-info { background-color: #0284c7 !important; color: #ffffff; }
.bg-dark { background-color: #0a2240 !important; color: #ffffff; }
.bg-light { background-color: #f0f4fa !important; }

.border-primary { border-color: #0c4598 !important; }
.border-secondary { border-color: #e31b23 !important; }
.border-success { border-color: #0e9f4b !important; }

/* Subtle badge / pill backgrounds */
.bg-primary-subtle {
    background-color: #e8f0fe !important;
    color: #0c4598 !important;
    border: 1px solid #c2d7fc !important;
}

.bg-secondary-subtle,
.bg-danger-subtle {
    background-color: #fde8e8 !important;
    color: #e31b23 !important;
    border: 1px solid #f8b4b4 !important;
}

.bg-success-subtle {
    background-color: #e8f5e9 !important;
    color: #0e9f4b !important;
    border: 1px solid #c8e6c9 !important;
}

.bg-warning-subtle {
    background-color: #fef3c7 !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
}

.bg-info-subtle {
    background-color: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
}

/* ==========================================================================
   3. Buttons Overrides & Variants
   ========================================================================== */
.btn {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: #0c4598 !important;
    border-color: #0c4598 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(12, 69, 152, 0.25);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #093472 !important;
    border-color: #072757 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(12, 69, 152, 0.35);
}

.btn-secondary {
    background-color: #e31b23 !important;
    border-color: #e31b23 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(227, 27, 35, 0.25);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #be1218 !important;
    border-color: #9e0e13 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(227, 27, 35, 0.35);
}

.btn-outline-primary {
    color: #0c4598 !important;
    border-color: #0c4598 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #0c4598 !important;
    color: #ffffff !important;
}

.btn-outline-secondary {
    color: #e31b23 !important;
    border-color: #e31b23 !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover {
    background-color: #e31b23 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   4. Navbar & Mobile Navigation
   ========================================================================== */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    min-width: 0;
}

.navbar-brand img,
.navbar-logo-img {
    height: 66px !important;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.navbar-brand:hover .navbar-logo-img {
    transform: scale(1.03);
}

.brand-title-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    justify-content: center;
    min-width: 0;
    flex: 1 1 auto;
}

.brand-title-main {
    font-family: 'Lobster Two', cursive;
    font-size: 2.1rem;
    font-weight: 700;
    color: #0c4598;
    letter-spacing: 0.5px;
    line-height: 1.05;
    white-space: normal;
}

.brand-title-sub {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #e31b23;
    line-height: 1.18;
    display: block;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    max-width: 100%;
}

.navbar .navbar-nav .nav-link {
    color: #0a2240;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.25s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #0c4598 !important;
}

.navbar .dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 25px rgba(10, 34, 64, 0.12);
    border-top: 3px solid #0c4598 !important;
}

.navbar .dropdown-item {
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    color: #2d3748;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.navbar .dropdown-item i {
    width: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
    background-color: #f0f4fa;
    color: #0c4598;
}

.navbar .dropdown-item:hover i {
    transform: scale(1.15);
}

/* Desktop Intermediate Adjustments (992px - 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand {
        max-width: 330px;
    }

    .brand-title-main {
        font-size: 1.85rem;
    }

    .brand-title-sub {
        font-size: 0.78rem;
        letter-spacing: 0.8px;
    }

    .navbar .navbar-nav .nav-link {
        padding: 0.5rem 0.55rem !important;
        font-size: 0.92rem;
    }
}

/* Mobile Navbar Adjustments (< 992px) */
@media (max-width: 991.98px) {
    .navbar {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    /* Keep navbar brand and toggler on the same row: toggler never drops to line 2 */
    .navbar-brand {
        flex: 1 1 auto;
        max-width: calc(100% - 56px);
        min-width: 0;
        margin-right: 0.35rem;
        overflow: hidden;
    }

    .navbar-brand img,
    .navbar-logo-img {
        height: 56px !important;
        max-width: 76px;
        flex-shrink: 0;
    }

    .brand-title-wrap {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-title-main {
        font-size: 1.55rem;
        line-height: 1.05;
        white-space: normal;
    }

    .brand-title-sub {
        font-size: 0.74rem;
        font-weight: 800;
        letter-spacing: 0.8px;
        color: #e31b23;
        line-height: 1.15;
        display: block;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .navbar-toggler {
        flex-shrink: 0;
        margin-left: auto;
        padding: 0.42rem 0.6rem;
        font-size: 1.15rem;
        border: 1px solid rgba(12, 69, 152, 0.2);
        border-radius: 8px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(12, 69, 152, 0.2);
    }

    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        background: #ffffff;
        border-radius: 12px;
        padding: 1rem 1.25rem;
        margin-top: 0.75rem;
        box-shadow: 0 8px 24px rgba(10, 34, 64, 0.08);
        border: 1px solid #edf2f7;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 14px;
        border-radius: 8px;
        margin-bottom: 2px;
    }

    .navbar .navbar-nav .nav-link.active,
    .navbar .navbar-nav .nav-link:hover {
        background-color: #f0f4fa;
        color: #0c4598 !important;
    }

    .navbar .dropdown-menu {
        background: #f8fafc;
        border-radius: 8px;
        border: 1px solid #e2e8f0 !important;
        box-shadow: none;
        padding: 0.5rem;
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        max-width: calc(100% - 50px);
        margin-right: 0.25rem;
    }

    .navbar-brand img,
    .navbar-logo-img {
        height: 50px !important;
        max-width: 66px;
    }

    .brand-title-main {
        font-size: 1.35rem;
    }

    .brand-title-sub {
        font-size: 0.66rem;
        letter-spacing: 0.5px;
        line-height: 1.12;
    }
}

@media (max-width: 375px) {
    .navbar-brand {
        max-width: calc(100% - 46px);
        margin-right: 0.2rem;
    }

    .navbar-brand img,
    .navbar-logo-img {
        height: 44px !important;
        max-width: 58px;
    }

    .brand-title-main {
        font-size: 1.2rem;
    }

    .brand-title-sub {
        font-size: 0.58rem;
        letter-spacing: 0.3px;
        line-height: 1.1;
    }
}

/* ==========================================================================
   5. Hero Carousel Mobile Overhaul
   ========================================================================== */
.header-carousel {
    position: relative;
    overflow: hidden;
}

.header-carousel .owl-carousel-item {
    position: relative;
    min-height: 520px;
    max-height: 650px;
    overflow: hidden;
}

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

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 34, 64, 0.84) 0%, rgba(10, 34, 64, 0.58) 100%);
    padding: 2rem 0;
}

.slider-badge {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(227, 27, 35, 0.95);
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(227, 27, 35, 0.3);
}

.slider-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: clamp(1.45rem, 4.2vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.slider-desc {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    max-width: 680px;
}

/* Header Carousel Nav Arrows */
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 6px 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(10, 34, 64, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: #0c4598 !important;
    border-color: #0c4598 !important;
    color: #ffffff;
    transform: scale(1.08);
}

/* Carousel on Mobile Devices (< 768px) */
@media (max-width: 767.98px) {
    .header-carousel .owl-carousel-item {
        min-height: 420px;
        max-height: 480px;
    }

    .slider-overlay {
        padding: 1.5rem 0.5rem;
        background: linear-gradient(135deg, rgba(10, 34, 64, 0.88) 0%, rgba(10, 34, 64, 0.68) 100%);
    }

    .slider-badge {
        font-size: 0.72rem;
        letter-spacing: 1px;
        padding: 4px 10px;
        margin-bottom: 0.65rem;
    }

    .slider-title {
        font-size: 1.45rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.65rem !important;
    }

    .slider-desc {
        font-size: 0.85rem;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Move carousel arrows to bottom right on mobile so they NEVER block text */
    .header-carousel .owl-nav {
        top: auto;
        bottom: 18px;
        right: 18px;
        transform: none;
        flex-direction: row;
        gap: 8px;
    }

    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        width: 34px;
        height: 34px;
        font-size: 13px;
        margin: 0;
    }

    /* Adjust wavy scalloped borders on mobile */
    .header-carousel::before,
    .header-carousel::after,
    .page-header::before,
    .page-header::after {
        height: 6px !important;
    }
}

/* ==========================================================================
   6. Attractive & Space-Efficient Facility Cards (Desktop & Mobile-Optimized)
   ========================================================================== */
.facility-item {
    border-radius: 18px !important;
    padding: 1.75rem 1.25rem 1.5rem !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    height: 100% !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    overflow: hidden !important;
}

.facility-item:hover {
    transform: translateY(-5px) !important;
}

/* Top Accent Highlight Bar (Soft Muted Accent) */
.facility-item::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    z-index: 2 !important;
    transition: height 0.3s ease !important;
}

.facility-item:hover::before {
    height: 4px !important;
}

/* Elevated White Icon Badge on Tinted Card */
.facility-item .facility-icon {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.facility-item:hover .facility-icon {
    transform: scale(1.06) rotate(-1deg) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08) !important;
}

.facility-item .facility-icon::before,
.facility-item .facility-icon span {
    display: none !important;
}

.facility-item .facility-icon i {
    font-size: 1.55rem !important;
    position: relative !important;
    z-index: 3 !important;
    filter: none !important;
}

/* Facility Text Content */
.facility-item .facility-text {
    background: transparent !important;
    border-radius: 0 !important;
    min-height: auto !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: inherit !important;
}

.facility-item .facility-text::before {
    display: none !important;
}

.facility-item .facility-text h3 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.45rem !important;
    line-height: 1.35 !important;
    transition: color 0.25s ease !important;
}

.facility-item .facility-text p {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    color: #475569 !important;
    margin-bottom: 0 !important;
}

/* Low Contrast Pastel Card Background Themes */
/* 1. Primary - Soft Pastel Blue Card */
.facility-card-primary,
.facility-item.facility-card-primary {
    background: #f0f6ff !important;
    border: 1px solid #dbeafe !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.05) !important;
}
.facility-card-primary::before,
.facility-item.facility-card-primary::before {
    background: linear-gradient(90deg, #93c5fd, #bfdbfe) !important;
}
.facility-card-primary .facility-icon,
.facility-item.facility-card-primary .facility-icon,
.facility-icon.bg-primary {
    background: #ffffff !important;
    border-color: rgba(191, 219, 254, 0.6) !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.08) !important;
}
.facility-card-primary .facility-icon i,
.facility-item.facility-card-primary .facility-icon i,
.facility-icon.bg-primary i {
    color: #2563eb !important;
}
.facility-item.facility-card-primary:hover {
    background: #e6f0fe !important;
    border-color: #bfdbfe !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12) !important;
}
.facility-item.facility-card-primary:hover .facility-text h3 {
    color: #1d4ed8 !important;
}

/* 2. Success - Soft Pastel Mint Card */
.facility-card-success,
.facility-item.facility-card-success {
    background: #f0fdf4 !important;
    border: 1px solid #dcfce7 !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.05) !important;
}
.facility-card-success::before,
.facility-item.facility-card-success::before {
    background: linear-gradient(90deg, #86efac, #bbf7d0) !important;
}
.facility-card-success .facility-icon,
.facility-item.facility-card-success .facility-icon,
.facility-icon.bg-success {
    background: #ffffff !important;
    border-color: rgba(187, 247, 208, 0.6) !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.08) !important;
}
.facility-card-success .facility-icon i,
.facility-item.facility-card-success .facility-icon i,
.facility-icon.bg-success i {
    color: #059669 !important;
}
.facility-item.facility-card-success:hover {
    background: #e4f8ec !important;
    border-color: #bbf7d0 !important;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.12) !important;
}
.facility-item.facility-card-success:hover .facility-text h3 {
    color: #047857 !important;
}

/* 3. Warning - Soft Pastel Amber Card */
.facility-card-warning,
.facility-item.facility-card-warning {
    background: #fffbeb !important;
    border: 1px solid #fef3c7 !important;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.05) !important;
}
.facility-card-warning::before,
.facility-item.facility-card-warning::before {
    background: linear-gradient(90deg, #fcd34d, #fde68a) !important;
}
.facility-card-warning .facility-icon,
.facility-item.facility-card-warning .facility-icon,
.facility-icon.bg-warning {
    background: #ffffff !important;
    border-color: rgba(253, 230, 138, 0.6) !important;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.08) !important;
}
.facility-card-warning .facility-icon i,
.facility-item.facility-card-warning .facility-icon i,
.facility-icon.bg-warning i {
    color: #d97706 !important;
}
.facility-item.facility-card-warning:hover {
    background: #fef5d6 !important;
    border-color: #fde68a !important;
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.12) !important;
}
.facility-item.facility-card-warning:hover .facility-text h3 {
    color: #b45309 !important;
}

/* 4. Info - Soft Pastel Sky Blue Card */
.facility-card-info,
.facility-item.facility-card-info {
    background: #f0f9ff !important;
    border: 1px solid #e0f2fe !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.05) !important;
}
.facility-card-info::before,
.facility-item.facility-card-info::before {
    background: linear-gradient(90deg, #7dd3fc, #bae6fd) !important;
}
.facility-card-info .facility-icon,
.facility-item.facility-card-info .facility-icon,
.facility-icon.bg-info {
    background: #ffffff !important;
    border-color: rgba(186, 230, 253, 0.6) !important;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.08) !important;
}
.facility-card-info .facility-icon i,
.facility-item.facility-card-info .facility-icon i,
.facility-icon.bg-info i {
    color: #0284c7 !important;
}
.facility-item.facility-card-info:hover {
    background: #e3f3fe !important;
    border-color: #bae6fd !important;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.12) !important;
}
.facility-item.facility-card-info:hover .facility-text h3 {
    color: #0369a1 !important;
}

/* 5. Danger - Soft Pastel Rose Card */
.facility-card-danger,
.facility-item.facility-card-danger {
    background: #fef2f2 !important;
    border: 1px solid #fee2e2 !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.05) !important;
}
.facility-card-danger::before,
.facility-item.facility-card-danger::before {
    background: linear-gradient(90deg, #fca5a5, #fecaca) !important;
}
.facility-card-danger .facility-icon,
.facility-item.facility-card-danger .facility-icon,
.facility-icon.bg-danger {
    background: #ffffff !important;
    border-color: rgba(254, 202, 202, 0.6) !important;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.08) !important;
}
.facility-card-danger .facility-icon i,
.facility-item.facility-card-danger .facility-icon i,
.facility-icon.bg-danger i {
    color: #dc2626 !important;
}
.facility-item.facility-card-danger:hover {
    background: #fee4e4 !important;
    border-color: #fecaca !important;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.12) !important;
}
.facility-item.facility-card-danger:hover .facility-text h3 {
    color: #b91c1c !important;
}

/* 6. Secondary - Soft Pastel Lavender Card */
.facility-card-secondary,
.facility-item.facility-card-secondary {
    background: #faf5ff !important;
    border: 1px solid #f3e8ff !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.05) !important;
}
.facility-card-secondary::before,
.facility-item.facility-card-secondary::before {
    background: linear-gradient(90deg, #d8b4fe, #e9d5ff) !important;
}
.facility-card-secondary .facility-icon,
.facility-item.facility-card-secondary .facility-icon,
.facility-icon.bg-secondary {
    background: #ffffff !important;
    border-color: rgba(233, 213, 255, 0.6) !important;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.08) !important;
}
.facility-card-secondary .facility-icon i,
.facility-item.facility-card-secondary .facility-icon i,
.facility-icon.bg-secondary i {
    color: #7c3aed !important;
}
.facility-item.facility-card-secondary:hover {
    background: #f3e8fe !important;
    border-color: #e9d5ff !important;
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.12) !important;
}
.facility-item.facility-card-secondary:hover .facility-text h3 {
    color: #6d28d9 !important;
}

.facility-tap-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    opacity: 0.85;
    transition: all 0.25s ease;
    z-index: 5;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.facility-item:hover .facility-tap-badge {
    opacity: 1;
    transform: scale(1.1);
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Mobile Minimal 2-Column Grid (< 768px) */
@media (max-width: 767.98px) {
    .facility-item {
        padding: 0.85rem 0.5rem 0.75rem !important;
        border-radius: 12px !important;
        box-shadow: 0 3px 10px rgba(10, 34, 64, 0.04) !important;
    }

    .facility-tap-badge {
        top: 5px;
        right: 5px;
        width: 18px;
        height: 18px;
        font-size: 0.52rem;
        opacity: 0.75;
    }

    .facility-item .facility-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 10px !important;
        margin-bottom: 0.45rem !important;
    }

    .facility-item .facility-icon i {
        font-size: 0.95rem !important;
    }

    .facility-item .facility-text h3 {
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .facility-item .facility-text p {
        font-size: 0.68rem !important;
        line-height: 1.25 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ==========================================================================
   6.1 Facility Full-Size Interactive Modal Popup (Desktop & Mobile)
   ========================================================================== */
.facility-modal .modal-content {
    border-radius: 24px !important;
    border: none !important;
    background: #ffffff !important;
    box-shadow: 0 25px 60px rgba(10, 34, 64, 0.25) !important;
}

.facility-modal-bar {
    height: 4px;
    width: 100%;
}
.facility-modal-bar-primary { background: linear-gradient(90deg, #93c5fd, #bfdbfe); }
.facility-modal-bar-success { background: linear-gradient(90deg, #86efac, #bbf7d0); }
.facility-modal-bar-warning { background: linear-gradient(90deg, #fcd34d, #fde68a); }
.facility-modal-bar-info { background: linear-gradient(90deg, #7dd3fc, #bae6fd); }
.facility-modal-bar-danger { background: linear-gradient(90deg, #fca5a5, #fecaca); }
.facility-modal-bar-secondary { background: linear-gradient(90deg, #d8b4fe, #e9d5ff); }

.facility-modal-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
}
.facility-modal-icon-primary {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.facility-modal-icon-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}
.facility-modal-icon-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.08);
}
.facility-modal-icon-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}
.facility-modal-icon-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}
.facility-modal-icon-secondary {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.facility-modal-highlights {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

@media (max-width: 767.98px) {
    .facility-modal .modal-dialog {
        margin: 1rem;
    }
    .facility-modal .modal-content {
        border-radius: 20px !important;
    }
    .facility-modal-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   7. About Us Section & Image Collage Responsiveness
   ========================================================================== */
.about-img-overlap {
    margin-top: -120px;
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .about-img-overlap {
        margin-top: -80px;
    }
}

@media (max-width: 767.98px) {
    .about-img-overlap {
        margin-top: 15px !important;
    }

    .about-img .col-6 {
        margin-top: 10px !important;
    }

    .about-img img {
        padding: 6px !important;
    }
}

/* Checklist items on About & Facilities */
.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(10, 34, 64, 0.03);
    transition: all 0.25s ease;
}

.checklist-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(10, 34, 64, 0.07);
}

.checklist-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e8f0fe;
    color: #0c4598;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 12px;
}

/* ==========================================================================
   7.1 School Classes & Academic Programs Cards (Strict Equal Heights & Mobile UX)
   ========================================================================== */
.classes-item {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}

.classes-item:hover {
    transform: translateY(-6px) !important;
}

.classes-img-wrapper {
    position: relative !important;
    z-index: 2 !important;
    width: 145px !important;
    height: 145px !important;
    max-width: 80% !important;
    margin: 0 auto !important;
    padding: 6px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 24px rgba(10, 34, 64, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid #f0f4fa !important;
    transition: transform 0.3s ease !important;
}

.classes-item:hover .classes-img-wrapper {
    transform: scale(1.04) !important;
    border-color: #e8f0fe !important;
}

.classes-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.classes-item-body {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 5rem 1.25rem 1.25rem !important;
    margin-top: -65px !important;
    position: relative !important;
    z-index: 1 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border: 1px solid rgba(12, 69, 152, 0.1) !important;
    box-shadow: 0 6px 20px rgba(10, 34, 64, 0.05) !important;
    transition: all 0.3s ease !important;
}

.classes-item:hover .classes-item-body {
    border-color: rgba(12, 69, 152, 0.28) !important;
    box-shadow: 0 16px 36px rgba(10, 34, 64, 0.1) !important;
}

.classes-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0a2240 !important;
    text-align: center !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
    margin-bottom: 0.85rem !important;
    text-decoration: none !important;
    line-height: 1.35 !important;
    transition: color 0.25s ease !important;
    word-break: normal !important;
}

.classes-title:hover {
    color: #0c4598 !important;
}

.classes-teacher-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 48px !important;
    margin-bottom: 0.95rem !important;
    padding: 5px 12px !important;
    background: #f8fafc !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 30px !important;
}

.classes-teacher-box .teacher-info {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
    flex: 1 1 auto !important;
}

.classes-teacher-box .teacher-info h6 {
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-bottom: 1px !important;
    font-weight: 700 !important;
}

.classes-teacher-box .teacher-info small {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    color: #64748b !important;
}

.classes-teacher-box span {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    padding: 4px 10px !important;
}

.classes-stats {
    margin-top: auto !important;
    width: 100% !important;
}

.classes-stat-col {
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 8px 4px !important;
    text-align: center !important;
    border-top: 3px solid #0c4598 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.classes-stat-col.stat-time {
    border-top-color: #0e9f4b !important;
}

.classes-stat-col.stat-capacity {
    border-top-color: #f59e0b !important;
}

.classes-stat-col h6 {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
}

.classes-stat-col small {
    font-size: 0.72rem !important;
    color: #64748b !important;
    line-height: 1.25 !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

@media (max-width: 767.98px) {
    .classes-img-wrapper {
        width: 88px !important;
        height: 88px !important;
        padding: 4px !important;
        border-width: 2px !important;
    }

    .classes-item-body {
        padding: 3.25rem 0.65rem 0.65rem !important;
        margin-top: -42px !important;
        border-radius: 14px !important;
    }

    .classes-title {
        font-size: 0.88rem !important;
        min-height: 36px !important;
        margin-top: 0 !important;
        margin-bottom: 0.45rem !important;
        line-height: 1.25 !important;
    }

    .classes-teacher-box {
        padding: 3px 6px !important;
        margin-bottom: 0.55rem !important;
        min-height: 36px !important;
        border-radius: 30px !important;
        gap: 4px !important;
    }

    .classes-teacher-box .teacher-info img {
        width: 24px !important;
        height: 24px !important;
    }

    .classes-teacher-box .teacher-info h6 {
        font-size: 0.7rem !important;
    }

    .classes-teacher-box .teacher-info small {
        font-size: 0.6rem !important;
    }

    .classes-teacher-box span {
        font-size: 0.62rem !important;
        padding: 2px 6px !important;
    }

    .classes-stat-col {
        padding: 4px 2px !important;
        border-radius: 6px !important;
        border-top-width: 2px !important;
    }

    .classes-stat-col h6 {
        font-size: 0.64rem !important;
        margin-bottom: 1px !important;
    }

    .classes-stat-col small {
        font-size: 0.6rem !important;
        line-height: 1.15 !important;
        min-height: 22px !important;
    }
}

/* ==========================================================================
   7.2 Dedicated Teachers & Faculty Cards (Modern Profile Design)
   ========================================================================== */
.team-item {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 0 1.25rem 1.35rem !important;
    border: 1px solid rgba(12, 69, 152, 0.09) !important;
    box-shadow: 0 8px 24px -4px rgba(10, 34, 64, 0.06), 0 2px 6px -1px rgba(10, 34, 64, 0.03) !important;
    text-align: center !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.team-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 38px -6px rgba(12, 69, 152, 0.16), 0 6px 12px -2px rgba(10, 34, 64, 0.05) !important;
    border-color: rgba(12, 69, 152, 0.3) !important;
}

/* Card Header Backdrop Banner */
.team-header-backdrop {
    width: calc(100% + 2.5rem) !important;
    margin-left: -1.25rem !important;
    margin-right: -1.25rem !important;
    height: 80px !important;
    background: linear-gradient(135deg, rgba(12, 69, 152, 0.12) 0%, rgba(227, 27, 35, 0.07) 100%) !important;
    border-top: 3.5px solid #0c4598 !important;
    border-bottom: 1px solid rgba(12, 69, 152, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.team-header-backdrop::before {
    content: "";
    position: absolute;
    top: -24px;
    right: -24px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12, 69, 152, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.team-header-backdrop::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 27, 35, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Avatar Frame & Photo */
.team-avatar-wrap {
    position: relative !important;
    margin-top: -50px !important;
    margin-bottom: 0.75rem !important;
    display: inline-block !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
}

.team-item .team-photo,
.team-item img {
    width: 114px !important;
    height: 114px !important;
    min-width: 114px !important;
    max-width: 114px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #ffffff !important;
    padding: 4px !important;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px rgba(12, 69, 152, 0.14), 0 8px 20px rgba(10, 34, 64, 0.12) !important;
    border: none !important;
    margin: 0 auto !important;
    display: block !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.team-item:hover .team-photo,
.team-item:hover img {
    transform: scale(1.06) !important;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #0c4598, 0 12px 28px rgba(12, 69, 152, 0.28) !important;
}

/* Verified Faculty Badge */
.team-verified-badge {
    position: absolute !important;
    bottom: 4px !important;
    right: 4px !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0c4598 0%, #1e5bb8 100%) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(12, 69, 152, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    z-index: 3 !important;
    transition: all 0.3s ease !important;
}

.team-item:hover .team-verified-badge {
    transform: scale(1.15) rotate(12deg) !important;
    background: #e31b23 !important;
    box-shadow: 0 4px 10px rgba(227, 27, 35, 0.4) !important;
}

/* Faculty Info Body */
.team-item .team-text {
    position: static !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    height: auto !important;
}

.team-item .team-text h3,
.team-item .team-name {
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    color: #0a2240 !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    transition: color 0.3s ease !important;
}

.team-item:hover .team-name,
.team-item:hover .team-text h3 {
    color: #0c4598 !important;
}

/* Designation Pill */
.team-designation-wrap {
    margin-bottom: 0.75rem !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.team-item .team-designation-badge,
.team-item .team-text .team-designation {
    display: inline-block !important;
    font-size: 0.73rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #0c4598 !important;
    background: rgba(12, 69, 152, 0.07) !important;
    border: 1px solid rgba(12, 69, 152, 0.16) !important;
    padding: 0.25rem 0.85rem !important;
    border-radius: 50px !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease !important;
}

.team-item:hover .team-designation-badge,
.team-item:hover .team-text .team-designation {
    background: #0c4598 !important;
    color: #ffffff !important;
    border-color: #0c4598 !important;
    box-shadow: 0 4px 12px rgba(12, 69, 152, 0.25) !important;
}

/* Teacher Bio Quote Inset */
.team-bio-box {
    width: 100% !important;
    background: #f8fafc !important;
    border: 1px dashed rgba(12, 69, 152, 0.18) !important;
    border-radius: 12px !important;
    padding: 0.65rem 0.85rem !important;
    margin-bottom: 0.85rem !important;
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    text-align: left !important;
    transition: all 0.3s ease !important;
}

.team-item:hover .team-bio-box {
    background: #ffffff !important;
    border-color: rgba(12, 69, 152, 0.35) !important;
    border-style: solid !important;
    box-shadow: 0 4px 14px rgba(12, 69, 152, 0.06) !important;
}

.team-quote-icon {
    color: #0c4598 !important;
    opacity: 0.55 !important;
    font-size: 0.72rem !important;
    margin-right: 0.45rem !important;
    margin-top: 0.2rem !important;
    flex-shrink: 0 !important;
}

.team-bio,
.team-item .team-text .team-bio {
    font-size: 0.78rem !important;
    color: #475569 !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Social Buttons */
.team-social {
    margin-top: auto !important;
    padding-top: 0.25rem !important;
    width: 100% !important;
}

.team-social-btn,
.team-item .btn-square {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 3px !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.team-social-fb:hover {
    background: #1877f2 !important;
    color: #ffffff !important;
    border-color: #1877f2 !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4) !important;
}

.team-social-tw:hover {
    background: #0f1419 !important;
    color: #ffffff !important;
    border-color: #0f1419 !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(15, 20, 25, 0.35) !important;
}

.team-social-ig:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4) !important;
}

.team-item .btn-square:not(.team-social-fb):not(.team-social-tw):not(.team-social-ig):hover {
    background: #0c4598 !important;
    color: #ffffff !important;
    border-color: #0c4598 !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(12, 69, 152, 0.35) !important;
}

/* Mobile Responsiveness for Cards */
@media (max-width: 767.98px) {
    .team-item {
        padding: 0 0.55rem 0.75rem !important;
        border-radius: 15px !important;
        box-shadow: 0 3px 12px rgba(10, 34, 64, 0.05) !important;
    }

    .team-header-backdrop {
        height: 48px !important;
        margin-left: -0.55rem !important;
        margin-right: -0.55rem !important;
        width: calc(100% + 1.1rem) !important;
        border-top-width: 2.5px !important;
    }

    .team-avatar-wrap {
        margin-top: -30px !important;
        margin-bottom: 0.45rem !important;
    }

    .team-item .team-photo,
    .team-item img {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        padding: 2px !important;
        box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(12, 69, 152, 0.12), 0 4px 12px rgba(10, 34, 64, 0.1) !important;
    }

    .team-verified-badge {
        width: 17px !important;
        height: 17px !important;
        font-size: 8px !important;
        bottom: 2px !important;
        right: 2px !important;
        border-width: 1.5px !important;
    }

    .team-item .team-text h3,
    .team-item .team-name {
        font-size: 0.82rem !important;
        margin-bottom: 0.15rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .team-designation-wrap {
        margin-bottom: 0.35rem !important;
    }

    .team-item .team-designation-badge,
    .team-item .team-text .team-designation {
        font-size: 0.62rem !important;
        padding: 0.12rem 0.5rem !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        display: block !important;
    }

    .team-bio-box {
        padding: 0.35rem 0.45rem !important;
        margin-bottom: 0.45rem !important;
        border-radius: 8px !important;
    }

    .team-quote-icon {
        font-size: 0.58rem !important;
        margin-right: 0.25rem !important;
        margin-top: 0.1rem !important;
    }

    .team-bio,
    .team-item .team-text .team-bio {
        font-size: 0.64rem !important;
        line-height: 1.25 !important;
        -webkit-line-clamp: 2 !important;
    }

    .team-social-btn,
    .team-item .btn-square {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.65rem !important;
        margin: 0 1px !important;
    }
}

/* ==========================================================================
   7.2.1 Team / Teachers Auto-Sliding Carousel
   ========================================================================== */
.team-carousel {
    position: relative;
    padding: 0 0.5rem;
}

.team-carousel .owl-stage-outer {
    padding-top: 14px;
    padding-bottom: 22px;
    margin-top: -14px;
    margin-bottom: -22px;
}

.team-carousel .owl-stage {
    display: flex !important;
}

.team-carousel .owl-item {
    display: flex !important;
    flex: 1 0 auto !important;
    height: auto !important;
}

.team-carousel .team-item {
    margin: 6px !important;
    width: calc(100% - 12px) !important;
    min-height: 330px !important;
    display: flex !important;
    flex-direction: column !important;
}

.team-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 44px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
    transition: all 0.3s ease;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #0c4598;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(12, 69, 152, 0.28);
    opacity: 0.85;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: #e31b23;
    opacity: 1;
    transform: scale(1.1);
}

.team-carousel .owl-nav .owl-prev {
    margin-left: -22px;
}

.team-carousel .owl-nav .owl-next {
    margin-right: -22px;
}

.team-carousel .owl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1.75rem;
}

.team-carousel .owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1 !important;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    padding: 0;
}

.team-carousel .owl-dot.active {
    width: 28px;
    border-radius: 10px;
    background: #0c4598 !important;
}

@media (max-width: 991.98px) {
    .team-carousel .owl-nav {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .team-carousel {
        padding: 0 !important;
    }

    .team-carousel .team-item {
        min-height: auto !important;
        margin: 2px !important;
        width: calc(100% - 4px) !important;
    }

    .team-carousel .owl-dots {
        margin-top: 1rem !important;
    }
}

/* ==========================================================================
   7.3 Testimonials & Parent Reviews (Desktop & Mobile-Optimized)
   ========================================================================== */
.testimonial-carousel {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.testimonial-item {
    background: #f8fafc !important;
    border-radius: 18px !important;
    padding: 1.75rem 1.5rem !important;
    border: 1px solid rgba(12, 69, 152, 0.08) !important;
    box-shadow: 0 4px 16px rgba(10, 34, 64, 0.04) !important;
}

@media (max-width: 767.98px) {
    .testimonial-item {
        padding: 1rem 0.75rem !important;
        border-radius: 12px !important;
    }

    .testimonial-item p {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.65rem !important;
    }

    .testimonial-item img {
        width: 38px !important;
        height: 38px !important;
    }

    .testimonial-item h5,
    .testimonial-item h3 {
        font-size: 0.82rem !important;
    }

    .testimonial-item small,
    .testimonial-item span {
        font-size: 0.68rem !important;
    }

    .testimonial-carousel .owl-nav .owl-prev,
    .testimonial-carousel .owl-nav .owl-next {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }
}

/* ==========================================================================
   7.4 Admission Appointment Form & Controls Mobile UX
   ========================================================================== */
@media (max-width: 767.98px) {
    .form-floating > .form-control,
    .form-floating > .form-select {
        height: calc(2.75rem + 2px) !important;
        min-height: calc(2.75rem + 2px) !important;
        font-size: 0.8rem !important;
        padding: 0.65rem 0.75rem !important;
    }

    .form-floating > label {
        font-size: 0.72rem !important;
        padding: 0.65rem 0.75rem !important;
    }

    .form-floating > textarea.form-control {
        height: 65px !important;
        font-size: 0.8rem !important;
    }
}

/* ==========================================================================
   7.5 Page Header Banner on Subpages
   ========================================================================== */
.page-header {
    background: linear-gradient(rgba(10, 34, 64, 0.75), rgba(10, 34, 64, 0.75)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
    border-radius: 0 0 20px 20px;
}

.page-header .page-header-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

@media (max-width: 767.98px) {
    .page-header {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }

    .page-header .container {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .page-header .page-header-title,
    .page-header h1.display-2,
    .page-header h1.display-3 {
        font-size: 1.35rem !important;
        margin-bottom: 0.35rem !important;
        line-height: 1.2 !important;
    }

    .page-header .breadcrumb {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
    }
}

/* ==========================================================================
   8. Shift Schedule Cards on Mobile
   ========================================================================== */
.shift-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(10, 34, 64, 0.06);
    border: 1px solid #e9eff8;
}

.shift-card .card-header {
    padding: 1rem 1.25rem;
    font-weight: 700;
}

.shift-card .list-group-item {
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border-color: #edf2f7;
}

.shift-card .time-badge {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    white-space: nowrap;
    border-radius: 30px;
}

/* ==========================================================================
   9. Call To Action Banners
   ========================================================================== */
.cta-banner {
    background: #f0f4fa;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

@media (max-width: 767.98px) {
    .cta-banner-content {
        padding: 1.25rem 0.85rem !important;
    }

    .cta-banner-content h1 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    .cta-banner-content p {
        font-size: 0.8rem !important;
        margin-bottom: 0.75rem !important;
    }

    .cta-banner-content .btn {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.82rem !important;
    }
}

/* ==========================================================================
   10. Global Mobile Section Typography & Spacing (< 768px)
   ========================================================================== */
@media (max-width: 767.98px) {
    .container-xxl {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    h1, .h1 {
        font-size: clamp(1.2rem, 4.5vw, 1.45rem) !important;
        line-height: 1.25 !important;
    }

    h2, .h2 {
        font-size: 1.15rem !important;
    }

    .text-muted, p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .badge {
        font-size: 0.68rem !important;
        padding: 3px 9px !important;
        margin-bottom: 0.35rem !important;
    }

    .btn {
        font-size: 0.84rem;
    }

    /* Compact checklist */
    .checklist-item {
        padding: 0.55rem 0.65rem !important;
        border-radius: 8px !important;
    }

    .checklist-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
        margin-right: 8px !important;
        border-radius: 8px !important;
    }

    .checklist-item h6 {
        font-size: 0.78rem !important;
    }

    .checklist-item small,
    .checklist-item p {
        font-size: 0.68rem !important;
    }
}

/* ==========================================================================
   11. Footer Mobile UX
   ========================================================================== */
.footer {
    background-color: #0a2240 !important;
}

.footer .btn.btn-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.25s ease;
}

.footer .btn.btn-social:hover {
    border-color: #e31b23 !important;
    background: #e31b23 !important;
    transform: translateY(-2px);
}

.footer .btn.btn-link {
    padding: 6px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.25s ease;
}

.footer .btn.btn-link:hover {
    color: #e31b23 !important;
    padding-left: 6px;
}

.footer .footer-menu a:hover,
.footer .copyright a:hover {
    color: #e31b23 !important;
}

/* ==========================================================================
   12. Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    display: none;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0c4598;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(12, 69, 152, 0.35);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #093472;
    transform: translateY(-3px);
}

@media (max-width: 767.98px) {
    .back-to-top {
        right: 16px;
        bottom: 18px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* ==========================================================================
   13. Form Controls Focus
   ========================================================================== */
.form-control:focus,
.form-select:focus {
    border-color: #0c4598;
    box-shadow: 0 0 0 0.25rem rgba(12, 69, 152, 0.18);
}

.spinner-border.text-primary {
    color: #0c4598 !important;
}
