/* ============================================
   ECR International School - Modern Stylesheet
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary: #1a6e3a;
    --primary-dark: #0d5a2a;
    --secondary: #e63525;
    --accent: #f7941d;
    --dark: #1c1c2e;
    --dark-light: #2a2a3d;
    --text: #555;
    --text-light: #888;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 0 40px 5px rgb(0 0 0 / 5%);
    --shadow-lg: 0 0 40px 5px rgb(0 0 0 / 10%);
    --radius: 20px;
    --radius-lg: 30px;
    --transition: all 0.5s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 600;
    line-height: 1.3;
}

.section-padding {
    padding: 80px 0;
}

/* --- Section Title --- */
.site-heading {
    margin-bottom: 50px;
}

.site-heading .site-title-tagline {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 10px;
}

.site-heading .site-title-tagline i {
    margin-right: 8px;
    color: var(--secondary);
}

.site-heading .site-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 0;
}

.site-heading .site-title span {
    color: var(--primary);
}

.site-heading p {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 15px;
    max-width: 600px;
}

.site-heading.text-center p {
    margin-left: auto;
    margin-right: auto;
}

.heading-divider {
    width: 90px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
    margin-top: 15px;
    position: relative;
    overflow: visible;
}

.heading-divider::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 4px;
    background: var(--white);
    border-radius: 4px;
    top: 0;
    left: -14px;
    animation: dividerSlide 5s ease-in-out infinite;
}

@keyframes dividerSlide {
    0%   { left: -14px; }
    50%  { left: 80px; }
    100% { left: -14px; }
}

/* .heading-divider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background: var(--secondary);
    border-radius: 4px;
    right: -28px;
    top: 0;
} */

.text-center .heading-divider {
    margin-left: auto;
    margin-right: auto;
}

.text-center .heading-divider::after {
    right: auto;
    left: calc(100% + 8px);
}

/* --- Theme Button --- */
.theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow);
}

.theme-btn::before {
    content: "";
    height: 300px;
    width: 300px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%) scale(0);
    transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.theme-btn:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.theme-btn:hover::before {
    transform: translateY(-50%) translateX(-50%) scale(1);
}

.theme-btn i {
    transition: transform 0.3s;
    transform: rotate(-40deg);
}

.theme-btn:hover i {
    transform: rotate(0deg);
}

.theme-btn2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow);
}

.theme-btn2::before {
    content: "";
    height: 300px;
    width: 300px;
    background: var(--secondary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%) scale(0);
    transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.theme-btn2:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.theme-btn2:hover::before {
    transform: translateY(-50%) translateX(-50%) scale(1);
}

.theme-btn2 i {
    transition: transform 0.3s;
    transform: rotate(-40deg);
}

.theme-btn2:hover i {
    transform: rotate(0deg);
}

/* ==========================
   HEADER TOP BAR
   ========================== */
.header-top {
    background: #0A2155;
    padding: 12px 0;
    font-size: 14px;
    color: var(--white);
    position: relative;
    /* z-index: 1000; */
    overflow: hidden;
}

/* Constro-style diagonal accent shape */
.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 80px;
    bottom: 0;
    width: 48%;
    background: #099240;
    clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
    z-index: 0;
}

.header-top::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 8%;
    background: #099240;
    clip-path: polygon(35% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 0;
}

.header-top-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.header-top-left .header-top-list ul {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-top-left .header-top-list ul li a {
    color: var(--white);
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.header-top-left .header-top-list ul li a:hover {
    color: rgba(255,255,255,0.8);
}

.header-top-left .header-top-list ul li a i {
    margin-right: 8px;
    font-size: 13px;
    color: var(--white);
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-top-right .header-top-list a {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.header-top-right .header-top-list a:hover {
    color: rgba(255,255,255,0.8);
}

.header-top-right .header-top-list a i {
    margin-right: 6px;
}

/* Admission Enquiry blink button */
.admission-blink-btn {
    display: inline-flex !important; align-items: center; gap: 7px;
    background: linear-gradient(135deg, #e53e3e, #ff6b35) !important;
    color: #fff !important;
    border-radius: 50px; padding: 6px 16px 6px 10px !important;
    font-weight: 600; font-size: 13px !important;
    position: relative; overflow: hidden;
    animation: admPulseGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(229,62,62,0.7);
    text-decoration: none !important;
}
/* Shimmer sweep */
.admission-blink-btn::before {
    content: '';
    position: absolute; top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
    animation: admShimmer 1.5s ease-in-out infinite;
    border-radius: 50px;
}
.admission-blink-btn:hover {
    background: linear-gradient(135deg, #c53030, #e53e3e) !important;
    color: #fff !important;
    animation: none;
    box-shadow: 0 4px 20px rgba(229,62,62,0.6) !important;
}
.admission-blink-btn:hover::before { display: none; }

/* Blinking live dot */
.admission-blink-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #fff; flex-shrink: 0;
    position: relative; display: inline-block;
    animation: admDotPop 1.5s ease-in-out infinite;
}
.admission-blink-dot::after {
    content: '';
    position: absolute; inset: -4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    animation: admDotRing 1.5s ease-in-out infinite;
}

@keyframes admPulseGlow {
    0%   { box-shadow: 0 0 0 0 rgba(229,62,62,0.7); transform: scale(1); }
    50%  { box-shadow: 0 0 0 8px rgba(229,62,62,0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(229,62,62,0); transform: scale(1); }
}
@keyframes admShimmer {
    0%   { left: -75%; }
    60%, 100% { left: 130%; }
}
@keyframes admDotPop {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.6; }
}
@keyframes admDotRing {
    0%   { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.header-top-social {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-top-social span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
}

.header-top-social a {
    color: rgba(255,255,255,0.8);
    margin-left: 12px;
    font-size: 16px;
    transition: var(--transition);
}

.header-top-social a:hover {
    color: #F65801;
}

/* ==========================
   MAIN NAVIGATION
   ========================== */
.main-navigation {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: relative;
    z-index: 999;
    transition: var(--transition-slow);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.main-navigation .navbar {
    padding: 0;
}

.main-navigation .navbar-brand {
    flex-shrink: 0;
    margin-right: 40px;
}

.main-navigation .navbar-brand img {
    height: 65px;
    transition: var(--transition-slow);
    padding: 8px 0;
}

/* Override Bootstrap's offcanvas-body flex-grow: 0 on desktop */
@media (min-width: 992px) {
    .main-navigation .offcanvas.offcanvas-start {
        flex-grow: 1;
    }
    .main-navigation .offcanvas-body {
        flex-grow: 1;
        display: flex;
        align-items: center;
        padding: 0;
        overflow: visible;
    }
}

.main-navigation .navbar-nav {
    gap: 0;
}

.main-navigation .navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: #002C5B;
    padding: 22px 16px;
    transition: color 0.3s ease, background 0.3s ease;
    position: relative;
    text-transform: capitalize;
    white-space: nowrap;
    border-radius: 0;
}

@media (min-width: 1400px) {
    .main-navigation .navbar-nav .nav-link {
        font-size: 15px;
        padding: 22px 18px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .main-navigation .navbar-nav .nav-link {
        font-size: 14px;
        padding: 22px 14px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .main-navigation .navbar-nav .nav-link {
        font-size: 13px;
        padding: 20px 10px;
    }
}

/* Dropdown toggle caret - override Bootstrap default */
.main-navigation .navbar-nav .nav-item.dropdown > .nav-link.dropdown-toggle::after {
    content: '';
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-bottom: 0;
    border-left: 5px solid transparent;
    margin-left: 6px;
    vertical-align: middle;
    background: none;
    transform: none;
    transition: none;
    border-radius: 0;
}

/* Active underline for non-dropdown items */
@media (min-width: 992px) {
    .main-navigation .navbar-nav .nav-item:not(.dropdown) > .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 70%;
        height: 3px;
        background: var(--secondary);
        transition: transform 0.3s ease;
        border-radius: 2px 2px 0 0;
        transform-origin: center;
    }
    .main-navigation .navbar-nav .nav-item:not(.dropdown) > .nav-link:hover::after,
    .main-navigation .navbar-nav .nav-item:not(.dropdown) > .nav-link.active::after {
        transform: translateX(-50%) scaleX(1);
    }
    /* Active underline for dropdown items using ::before */
    .main-navigation .navbar-nav .nav-item.dropdown > .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 70%;
        height: 3px;
        background: var(--secondary);
        transition: transform 0.3s ease;
        border-radius: 2px 2px 0 0;
        transform-origin: center;
    }
    .main-navigation .navbar-nav .nav-item.dropdown > .nav-link:hover::before,
    .main-navigation .navbar-nav .nav-item.dropdown > .nav-link.active::before {
        transform: translateX(-50%) scaleX(1);
    }
}

.main-navigation .navbar-nav .nav-link:hover,
.main-navigation .navbar-nav .nav-link.active {
    color: var(--secondary);
}

@media (min-width: 992px) {
    .main-navigation .nav-item {
        perspective: 800px;
        position: relative;
    }
    
    /* Ensure dropdowns have proper stacking context */
    .main-navigation .nav-item.dropdown {
        overflow: visible;
    }
}

/* ===== DROPDOWN MENU STYLING ===== */
.main-navigation .dropdown-menu {
    background: #ffffff;
    border: none;
    border-top: 3px solid var(--secondary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 8px 8px;
    padding: 10px 8px;
    min-width: 250px;
    max-width: 95vw;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transform-origin: top center;
    transition: all 0.25s ease;
    pointer-events: none;
    margin: 0 !important;
    font-size: 14px;
}

/* Desktop Hover State */
@media (min-width: 992px) {
    .main-navigation .nav-item:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .main-navigation .nav-item.show > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    /* Prevent overflow on last menu item */
    .main-navigation .navbar-nav > .nav-item:last-child .dropdown-menu,
    .main-navigation .navbar-nav > li:last-child .dropdown-menu {
        right: 0;
        left: auto;
    }
}

/* Mobile/Tablet Dropdown */
@media (max-width: 991px) {
    .main-navigation .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(245, 88, 1, 0.05);
        backdrop-filter: blur(10px);
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
        border: none;
        border-top: 2px solid #F65801;
        border-radius: 0;
        padding: 8px 0;
        margin-top: 8px;
        margin-left: 0;
        margin-right: 0;
        pointer-events: auto;
    }
    
    .main-navigation .dropdown-menu.show {
        display: block;
    }
}

/* Dropdown Divider */
.main-navigation .dropdown-divider {
    margin: 10px 0;
    border-color: rgba(0, 0, 0, 0.12);
    border-width: 1px;
}

/* ===== DROPDOWN ITEMS ===== */
.main-navigation .dropdown-item {
    padding: 9px 16px;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 6px;
    text-transform: capitalize;
    display: block;
    text-decoration: none;
    background: transparent;
    white-space: nowrap;
    cursor: pointer;
}

/* Dropdown Item Hover State */
.main-navigation .dropdown-item:hover,
.main-navigation .dropdown-item:focus,
.main-navigation .dropdown-item.active {
    background: rgba(246, 88, 1, 0.08);
    color: var(--secondary);
    padding-left: 20px;
    text-decoration: none;
    outline: none;
}

/* Left accent line on hover */
.main-navigation .dropdown-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--secondary);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.main-navigation .dropdown-item:hover::before,
.main-navigation .dropdown-item:focus::before {
    height: 18px;
}

/* ===== SECTION TITLES (For Others Dropdown) ===== */
.main-navigation .dropdown-section-title {
    color: #F65801;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    padding: 12px 16px 8px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    display: block;
    margin-top: 8px;
    margin-bottom: 4px;
    opacity: 0.95;
}

.main-navigation .dropdown-section-title:first-child {
    margin-top: 0;
}

/* ===== SPECIAL DROPDOWN: OTHERS (Mega Dropdown) ===== */
.main-navigation .others-dropdown {
    min-width: 380px;
    max-width: 95vw;
}

.main-navigation .others-dropdown .dropdown-item {
    font-size: 13px;
    padding: 10px 16px 10px 28px;
    color: #2c3e50;
}

.main-navigation .others-dropdown .dropdown-item::before {
    left: 12px;
}

@media (max-width: 1400px) {
    .main-navigation .others-dropdown {
        min-width: 340px;
    }
}

@media (max-width: 768px) {
    .main-navigation .others-dropdown {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Nav Right (search + CTA button) */
.nav-right {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .nav-right {
        display: flex;
    }
}

.nav-right-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #002C5B;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-right-link:hover {
    background: rgba(246, 88, 1, 0.08);
    color: #F65801;
}

.nav-right .nav-btn .theme-btn {
    background: #F65801;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 14px;
    white-space: nowrap;
}

.nav-right .nav-btn .theme-btn::before {
    background: #0A2155;
}

.nav-right .nav-btn .theme-btn:hover {
    color: var(--white);
}

/* Mobile menu right controls */
.mobile-menu-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 992px) {
    .mobile-menu-right {
        display: none;
    }
}

.mobile-menu-right .search-box-outer {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #002C5B;
    font-size: 16px;
    cursor: pointer;
}

/* Sticky Nav */
.main-navigation.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    animation: slideDown 0.7s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    background: var(--white);
}

.main-navigation.sticky .navbar-brand img {
    height: 70px;
}

.main-navigation.sticky .navbar-nav .nav-link {
    padding-top: 16px;
    padding-bottom: 16px;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Mobile Nav */
.navbar-toggler {
    border: none;
    padding: 5px;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler span {
    display: block;
    width: 28px;
    height: 3px;
    background: #002C5B;
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

.offcanvas {
    /* max-width: 320px; */
        display: contents;
}

/* Offcanvas mobile nav overrides */
@media (max-width: 991px) {
    .offcanvas {
            display: block;
        }
    .offcanvas-body .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    .offcanvas-body .navbar-nav .nav-link {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
    }
    .offcanvas-body .navbar-nav .dropdown-toggle::after {
        margin-left: auto;
    }
    .offcanvas-body .navbar-nav .dropdown-menu {
        padding: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        max-width: 100%;
        text-align: left;
    }
    .offcanvas-body .navbar-nav .dropdown-item {
        padding: 11px 20px 11px 50px;
        font-size: 14px;
        border-radius: 0;
        color: #333;
        transition: all 0.25s ease-in-out;
    }
    .offcanvas-body .navbar-nav .dropdown-item:hover {
        background: rgba(246, 88, 1, 0.08);
        color: #F65801;
        padding-left: 56px;
        border-radius: 0;
    }
}

/* Mobile Navigation Enhancements */
@media (max-width: 991px) {
    .mobile-offcanvas-header {
        background: linear-gradient(135deg, #0A2155 0%, #1a6e3a 100%);
        padding: 16px 20px;
        border-bottom: 2px solid rgba(232,101,26,0.3);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .offcanvas-brand img {
        height: 45px;
        /* filter: brightness(0) invert(1); */
    }
}

.mobile-btn-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mobile-btn-close:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

/* Mobile Nav Body - scoped to mobile */
@media (max-width: 991px) {
    .mobile-nav-body {
        padding: 0;
        position: relative;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    .mobile-nav-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, transparent, rgba(0,0,0,0.02));
        pointer-events: none;
        z-index: 0;
    }
    .mobile-nav-list {
        padding: 8px 0;
        gap: 0;
        position: relative;
        z-index: 1;
        flex-direction: column;
        width: 100%;
    }
    .mobile-nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.06);
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .mobile-nav-link {
        padding: 14px 20px;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        font-size: 15px;
        font-weight: 500;
        color: #002C5B;
        transition: all 0.3s ease;
        position: relative;
        width: 100%;
        text-align: left;
    }
    .mobile-nav-link.dropdown-toggle::after {
        margin-left: auto;
    }
    .mobile-nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--secondary);
        border-radius: 0 2px 2px 0;
        transform: scaleY(0);
        transform-origin: center;
        transition: transform 0.3s ease;
    }
    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: rgba(246, 88, 1, 0.06);
        color: var(--secondary);
    }
    .mobile-nav-link:hover::before,
    .mobile-nav-link.active::before {
        transform: scaleY(1);
    }
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--secondary);
    flex-shrink: 0;
}

/* Hide nav icons on desktop */
@media (min-width: 992px) {
    .nav-icon {
        display: none;
    }
    /* Reset mobile classes on desktop */
    .mobile-nav-link::before {
        display: none !important;
    }
    .mobile-nav-link {
        background: transparent !important;
    }
}

/* Mobile Dropdown - scoped to mobile only */
@media (max-width: 991px) {
    .mobile-dropdown {
        position: static !important;
        background: #f8f9fa !important;
        border: none !important;
        box-shadow: inset 0 2px 6px rgba(0,0,0,0.04) !important;
        border-left: 4px solid var(--secondary) !important;
        border-radius: 0 !important;
        padding: 4px 0 !important;
        margin: 0 !important;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        width: 100%;
        min-width: unset !important;
    }
    .mobile-dropdown.show {
        display: block !important;
    }
    .mobile-dropdown-item {
        padding: 11px 20px 11px 50px;
        font-size: 14px;
        color: #333;
        border-radius: 0 !important;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: none !important;
        background: transparent !important;
    }
    .mobile-dropdown-item:hover {
        background: rgba(232,101,26,0.08) !important;
        color: var(--secondary);
        padding-left: 56px;
    }
    .mobile-dropdown-item i {
        font-size: 11px;
        color: var(--secondary);
    }
}

.dropdown-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    padding: 12px 20px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    opacity: 0.9;
}

.dropdown-section-title i {
    font-size: 13px;
}

/* Mobile Nav Footer */
.mobile-nav-footer {
    margin-top: auto;
    padding: 20px;
    background: linear-gradient(180deg, transparent, rgba(10,33,85,0.03));
    border-top: 2px solid rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
}

.mobile-nav-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(232,101,26,0.08), rgba(26,110,58,0.08));
    border-radius: 10px;
    border: 1px solid rgba(26,110,58,0.15);
    font-size: 13px;
    color: #002C5B;
    font-weight: 500;
}

.contact-info-item i {
    color: var(--secondary);
    font-size: 14px;
    flex-shrink: 0;
}

.contact-info-item span {
    word-break: break-word;
}

.mobile-nav-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.mobile-nav-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #ff6f20);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(232,101,26,0.3);
}

.mobile-nav-social a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(232,101,26,0.4);
    border-color: var(--white);
}

/* Align mobile nav to left */
.offcanvas-body .navbar-nav {
    justify-content: flex-start !important;
}
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Crossfade effect via CSS (no HTML changes needed) */
.hero-section .carousel-item {
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.hero-section .carousel-item.active {
    opacity: 1;
    position: relative;
}

.hero-section .carousel-item-next,
.hero-section .carousel-item-prev {
    transform: none !important;
}

.hero-section .carousel-item-next.carousel-item-start,
.hero-section .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.hero-section .carousel-item.active.carousel-item-start,
.hero-section .carousel-item.active.carousel-item-end {
    opacity: 0;
}

.hero-single {
    position: relative;
    padding-top: 180px;
    padding-bottom: 220px;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center 25% !important;
    background-repeat: no-repeat !important;
    z-index: 1;
}

/* Dark blue gradient overlay with enhanced shadow effect */
.hero-single::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(
        135deg,
        rgba(8, 24, 64, 0.88) 0%,
        rgba(15, 45, 90, 0.75) 40%,
        rgba(20, 50, 100, 0.45) 70%,
        rgba(10, 33, 85, 0.25) 100%
    );
    z-index: 1;
}

.hero-single::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 24, 64, 0.6) 0%,
        rgba(10, 33, 85, 0.3) 30%,
        transparent 60%
    );
    box-shadow: inset 0 0 60px rgba(15, 45, 90, 0.4);
    z-index: 1;
}

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

.hero-content {
    max-width: 100%;
    color: var(--white);
}

/* Hero content entrance animations */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item.active .hero-sub-title {
    animation: heroFadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.carousel-item.active .hero-title {
    animation: heroFadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.carousel-item.active .hero-content p {
    animation: heroFadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.carousel-item.active .hero-btn {
    animation: heroFadeInUp 0.6s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.hero-sub-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    z-index: 1;
    padding-bottom: 10px;
}

/* Orange underline accent for subtitle */
.hero-sub-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    z-index: 1;
}

.hero-sub-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    opacity: 0.5;
    z-index: 1;
}

.hero-sub-title i {
    margin-right: 10px;
}

.hero-title {
    font-size: 60px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin: 30px 0 35px 0;
    text-transform: capitalize;
    letter-spacing: -1px;
}

.hero-title .ecr-e { 
    color: var(--white);
    font-weight: 600;
}

.hero-title .ecr-c { 
    color: var(--white);
    font-weight: 600;
    -webkit-text-stroke: 2px var(--white);
    -webkit-text-fill-color: transparent;
}

.hero-title .ecr-r {
    color: var(--white);
    font-weight: 600;
}

.hero-title .text-outline {
    font-weight: 700;
    -webkit-text-stroke: 1.5px var(--white);
    -webkit-text-fill-color: #e8651a;
}

.hero-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 15px;
    line-height: 28px;
    font-weight: 400;
    max-width: 600px;
}

.hero-btn {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    align-items: center;
}

.hero-btn .theme-btn {
    background: var(--secondary);
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
}

.hero-btn .theme-btn::before {
    background: var(--white);
}

.hero-btn .theme-btn:hover {
    color: var(--secondary);
}

.hero-btn .theme-btn2 {
    background: #0A2155;
    border: 2px solid #0A2155;
    color: var(--white);
    padding: 11px 30px;
    font-size: 15px;
    font-weight: 600;
}

.hero-btn .theme-btn2::before {
    background: var(--secondary);
}

.hero-btn .theme-btn2:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Carousel Controls - Constro style solid white circles */
.carousel-control-prev,
.carousel-control-next {
    width: 55px;
    height: 55px;
    background: var(--white);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: var(--transition-slow);
    border: none;
}

.carousel-control-prev {
    left: 40px;
}

.carousel-control-next {
    right: 40px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: none;
    background-image: none;
    text-align: center;
        display: grid;
        place-content: center;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2.5px solid var(--primary);
    border-right: 2.5px solid var(--primary);
    transition: var(--transition);
}

.carousel-control-prev:hover .carousel-control-prev-icon::after,
.carousel-control-next:hover .carousel-control-next-icon::after {
    border-color: var(--white);
}

.carousel-control-prev-icon::after {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.carousel-control-next-icon::after {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* Carousel Indicators - Pill style */
.carousel-indicators {
    bottom: 25px;
    gap: 6px;
}

.carousel-indicators [data-bs-target],
.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    opacity: 0.5;
    margin: 0 3px;
    transition: var(--transition);
    cursor: pointer;
}

.carousel-indicators .active {
    background: var(--secondary);
    border-color: var(--white);
    opacity: 1;
    width: 32px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(26,110,58,0.5);
}

/* Hero Banner Responsive */
@media (max-width: 1199px) {
    .hero-single {
        padding-top: 140px;
        padding-bottom: 180px;
        min-height: 550px;
    }
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 767px) {
    .hero-single {
        padding-top: 100px;
        padding-bottom: 140px;
        min-height: 450px;
        background-position: center 35% !important;
    }
    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }
    .hero-sub-title {
        font-size: 14px;
        letter-spacing: 2px;
    }
    .hero-content p {
        font-size: 14px;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    .carousel-control-prev {
        left: 15px;
    }
    .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 575px) {
    .hero-single {
        padding-top: 80px;
        padding-bottom: 100px;
        min-height: 350px;
    }
    .hero-title {
        font-size: 28px;
        margin: 20px 0 25px 0;
    }
    .hero-sub-title {
        font-size: 12px;
        margin-bottom: 15px;
    }
    .hero-btn {
        gap: 10px;
        margin-top: 25px;
    }
    .hero-btn .theme-btn,
    .hero-btn .theme-btn2 {
        font-size: 13px;
        padding: 10px 20px;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 38px;
        height: 38px;
    }
}

/* ==========================
   FEATURE / CORE VALUES
   ========================== */
.feature-area {
    background: var(--white);
    position: relative;
    z-index: 2;
}

.feature-item {
    background: var(--white);
    border-radius: 16px;
    padding: 50px 28px 30px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
    position: relative;
    overflow: visible;
    height: 100%;
    border: 1px solid #eee;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: var(--transition);
    position: absolute;
    top: -20px;
    left: 25px;
    z-index: 2;
    background: #e8651a;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(232,101,26,0.35);
}

.feature-icon.purple  { background: #e8651a; color: var(--white); }
.feature-icon.orange  { background: #e8651a; color: var(--white); }
.feature-icon.teal    { background: #e8651a; color: var(--white); }
.feature-icon.green   { background: #e8651a; color: var(--white); }

.feature-item:hover .feature-icon.purple,
.feature-item:hover .feature-icon.orange,
.feature-item:hover .feature-icon.teal,
.feature-item:hover .feature-icon.green  { background: #1a2240; color: var(--white); box-shadow: 0 4px 15px rgba(26,34,64,0.35); }

.feature-text {
    position: relative;
    z-index: 2;
    text-align: left;
}

.feature-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a2240;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.7;
}

.feature-count {
    position: absolute;
    top: 8px;
    right: 20px;
    font-size: 60px;
    font-weight: 600;
    font-family: var(--font-heading);
    line-height: 1;
    z-index: 1;
    -webkit-text-stroke: 1.5px #e8651a;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
}

/* ==========================
   ABOUT SECTION
   ========================== */
.about-area {
    background: var(--light);
    position: relative;
}

.about-left {
    position: relative;
}
.about-card-f {
    padding: 20px 20px 40px 20px;
}
.text-outline {
    font-weight: 700;
    -webkit-text-stroke: 1.5px var(--white);
    -webkit-text-fill-color: #e8651a;
}
.about-card-f::before {
    content: "";
        position: absolute;
        width: 90%;
        height: 85%;
        left: -30px;
        top: -30px;
        border: 4px solid #e05555;
        border-radius: 26px;
        z-index: 0;
        pointer-events: none;
    
}

.about-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    aspect-ratio: 4/3;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.03);
}

.about-experience {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 14px;
    text-align: left;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    min-width: 170px;
}

.about-experience-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
}

.about-experience h5 {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 3px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.about-experience h5 span {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    margin-top: 4px;
    letter-spacing: 0;
    text-transform: none;
}

.about-experience p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0;
}

.about-right .about-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-list {
    margin-bottom: 30px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-weight: 500;
}

.about-list li i {
    color: var(--primary);
    font-size: 18px;
    width: 28px;
    height: 28px;
    background: rgba(26, 110, 58, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* ==========================
   COUNTER / STATS
   ========================== */
.counter-area {
    background: #1a2240;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/* Sweeping beam animation (same as CTA) */
.counter-area::before,
.counter-area::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    height: 200%;
    pointer-events: none;
}

.counter-area::before {
    width: 60%;
    background: linear-gradient(105deg, transparent 40%, rgba(232,101,26,0.12) 50%, transparent 60%);
    animation: ctaBeamSweep 5s ease-in-out infinite;
    z-index: 0;
}

.counter-area::after {
    width: 40%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
    animation: ctaBeamSweep 5s ease-in-out 2.5s infinite;
    z-index: 0;
}

.counter-item {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-left: 3px solid var(--secondary);
    border-radius: 60px;
    padding: 16px 28px 16px 16px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, background 0.3s ease;
}

.counter-item:nth-child(1) .counter-item { transition-delay: 0s; }
.counter-item:hover {
    border-color: var(--secondary);
    background: rgba(255,255,255,0.08);
}

.counter-area.animated .col-6:nth-child(1) .counter-item { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.counter-area.animated .col-6:nth-child(2) .counter-item { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.counter-area.animated .col-6:nth-child(3) .counter-item { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.counter-area.animated .col-6:nth-child(4) .counter-item { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }

.counter-item .icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--secondary);
    border: 2px solid var(--white);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.counter-item:hover .icon,
.counter-item.auto-active .icon {
    transform: scale(1.12) rotate(6deg);
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    box-shadow: 0 6px 20px rgba(232,101,26,0.45);
}

.counter-item:hover,
.counter-item.auto-active {
    border-left-color: var(--secondary);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 10px 30px rgba(0,0,0,0.2);
}

.counter-item.auto-active {
    background: rgba(232,101,26,0.12);
    box-shadow: 0 0 0 1px rgba(232,101,26,0.35), 0 10px 30px rgba(232,101,26,0.18);
}

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.counter-area.animated .counter-number {
    animation: countPulse 0.4s ease 0.8s;
}

.counter-item .content .info {
    display: flex;
    align-items: flex-start;
    gap: 1px;
}

.counter-item .content .info .counter-number {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
}

.counter-item .content .info .unit {
    font-size: 16px;
    color: var(--secondary);
    font-weight: 600;
    position: relative;
    top: 2px;
}

.counter-item .content .title {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

/* ==========================
   FACILITIES SECTION
   ========================== */
.facilities-area {
    background: #f8f9fc;
}

.facility-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid #eef0f5;
    position: relative;
}

.facility-accent {
    height: 4px;
    background: #e0e3ea;
    transition: all 0.4s ease;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.facility-card[data-color="#6059bb"]:hover .facility-accent { background: #6059bb; }
.facility-card[data-color="#e8651a"]:hover .facility-accent { background: #e8651a; }
.facility-card[data-color="#6cabb8"]:hover .facility-accent { background: #6cabb8; }
.facility-card[data-color="#8bb536"]:hover .facility-accent { background: #8bb536; }
.facility-card[data-color="#6aa5e1"]:hover .facility-accent { background: #6aa5e1; }
.facility-card[data-color="#e6a820"]:hover .facility-accent { background: #e6a820; }

.facility-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.facility-card .facility-icon {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.4s ease;
}

.facility-card[data-color="#6059bb"] .facility-icon { background: rgba(96,89,187,0.1); color: #6059bb; }
.facility-card[data-color="#e8651a"] .facility-icon { background: rgba(232,101,26,0.1); color: #e8651a; }
.facility-card[data-color="#6cabb8"] .facility-icon { background: rgba(108,171,184,0.1); color: #6cabb8; }
.facility-card[data-color="#8bb536"] .facility-icon { background: rgba(139,181,54,0.1); color: #8bb536; }
.facility-card[data-color="#6aa5e1"] .facility-icon { background: rgba(106,165,225,0.1); color: #6aa5e1; }
.facility-card[data-color="#e6a820"] .facility-icon { background: rgba(230,168,32,0.1); color: #e6a820; }

.facility-card:hover .facility-icon { transform: scale(1.1) rotate(-5deg); }

.facility-card[data-color="#6059bb"]:hover .facility-icon { background: #6059bb; color: var(--white); }
.facility-card[data-color="#e8651a"]:hover .facility-icon { background: #e8651a; color: var(--white); }
.facility-card[data-color="#6cabb8"]:hover .facility-icon { background: #6cabb8; color: var(--white); }
.facility-card[data-color="#8bb536"]:hover .facility-icon { background: #8bb536; color: var(--white); }
.facility-card[data-color="#6aa5e1"]:hover .facility-icon { background: #6aa5e1; color: var(--white); }
.facility-card[data-color="#e6a820"]:hover .facility-icon { background: #e6a820; color: var(--white); }

.facility-num {
    font-size: 42px;
    font-weight: 600;
    font-family: var(--font-heading);
    -webkit-text-stroke: 1.5px #d5d8e0;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    transition: all 0.4s ease;
}

.facility-card[data-color="#6059bb"]:hover .facility-num { -webkit-text-stroke-color: #6059bb; }
.facility-card[data-color="#e8651a"]:hover .facility-num { -webkit-text-stroke-color: #e8651a; }
.facility-card[data-color="#6cabb8"]:hover .facility-num { -webkit-text-stroke-color: #6cabb8; }
.facility-card[data-color="#8bb536"]:hover .facility-num { -webkit-text-stroke-color: #8bb536; }
.facility-card[data-color="#6aa5e1"]:hover .facility-num { -webkit-text-stroke-color: #6aa5e1; }
.facility-card[data-color="#e6a820"]:hover .facility-num { -webkit-text-stroke-color: #e6a820; }

.facility-card .facility-body {
    padding: 28px 28px 24px;
}

.facility-card h4 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
}

.facility-card h4 a {
    color: #1a2240;
    transition: color 0.3s ease;
}

.facility-card h4 a:hover {
    color: var(--secondary);
}

.facility-card p {
    font-size: 14px;
    color: #777;
    margin: 0 0 16px;
    line-height: 1.7;
}

.facility-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f2f7;
    color: #999;
    font-size: 14px;
    transition: all 0.3s ease;
}

.facility-card:hover .facility-link {
    background: var(--secondary);
    color: var(--white);
    transform: translateX(4px);
}

/* ==========================
   CTA / CALL TO ACTION
   ========================== */
.cta-area {
    background: #1a2240;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Sweeping light beam */
.cta-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 60%;
    height: 200%;
    background: linear-gradient(105deg, transparent 40%, rgba(232,101,26,0.12) 50%, transparent 60%);
    animation: ctaBeamSweep 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Second beam offset */
.cta-area::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 40%;
    height: 200%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
    animation: ctaBeamSweep 5s ease-in-out 2.5s infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes ctaBeamSweep {
    0%   { left: -80%; }
    100% { left: 130%; }
}

/* Rising stars */
.cta-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--white);
    border-radius: 50%;
    animation: ctaStarRise linear infinite;
    pointer-events: none;
    opacity: 0;
}

@keyframes ctaStarRise {
    0%   { transform: translateY(0) scale(1);   opacity: 0; }
    10%  { opacity: 0.8; }
    80%  { opacity: 0.4; }
    100% { transform: translateY(-180px) scale(0.2); opacity: 0; }
}

/* Rotating geometric shapes */
.cta-shape {
    position: absolute;
    border: 2px solid rgba(232,101,26,0.25);
    border-radius: 4px;
    animation: ctaShapeRotate linear infinite;
    pointer-events: none;
}

@keyframes ctaShapeRotate {
    0%   { transform: rotate(0deg) scale(1);   opacity: 0.5; }
    50%  { opacity: 0.15; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.5; }
}

/* Horizontal scan line */
.cta-scanline {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,101,26,0.4), transparent);
    animation: ctaScan linear infinite;
    pointer-events: none;
}

@keyframes ctaScan {
    0%   { top: 110%; opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: -10%;  opacity: 0; }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255,255,255,0.75);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-content .theme-btn {
    background: var(--secondary);
}

.cta-content .theme-btn::before {
    background: var(--white);
}

.cta-content .theme-btn:hover {
    color: var(--secondary);
}

/* ==========================
   GALLERY PREVIEW
   ========================== */
.gallery-area {
    background: #f4f6fb;
}

/* CSS Grid masonry layout — 3 cols × 3 rows, fully filled */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 220px 220px 260px;
    gap: 16px;
}

/*
  Layout:
  Row1: [item1-tall] [item2]       [item3]
  Row2: [item1-tall] [item4-wide----------]
  Row3: [item5]      [item6-wide----------]
*/
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

/* Tall item: col 1, rows 1–2 */
.gallery-item.gallery-tall {
    grid-column: 1;
    grid-row: 1 / span 2;
}

/* Wide items: span cols 2–3 */
.gallery-item.gallery-wide {
    grid-column: 2 / span 2;
}

/* Fancybox anchor covers entire card */
.fancybox {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Dark overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(26,34,64,0.15) 0%, rgba(26,34,64,0.75) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateY(12px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay-inner {
    transform: translateY(0);
}

.gallery-zoom {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(232,101,26,0.5);
}

.gallery-zoom:hover {
    transform: scale(1.15);
    background: var(--white);
    color: var(--secondary);
}

.gallery-overlay-inner p {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Numbered badge top-right */
.gallery-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,0.4);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.gallery-item:hover .gallery-badge {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* Responsive */
@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .gallery-item.gallery-tall,
    .gallery-item.gallery-wide {
        grid-row: span 1;
        grid-column: span 1;
    }
    .gallery-item { height: 180px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 200px; }
}

/* ==========================
   FOOTER
   ========================== */
/* ========================
   FOOTER
   ======================== */
.footer-area {
    background: #0A2155;
    position: relative;
    overflow: hidden;
}

/* Architectural wireframe background overlay */
.footer-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: url('../images/ban-e.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.07;
    z-index: 0;
}

.footer-widget {
    position: relative;
    z-index: 1;
    padding: 80px 0 50px;
}

/* Column headings */
.footer-col h4,
.footer-brand h4 {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 14px;
}

.footer-col h4::after,
.footer-brand h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

/* Brand / Logo column */
.footer-brand {
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 18px;
}

.footer-logo img {
    height: 65px;
    border-radius: 8px;
}

.footer-brand > p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Newsletter */
.footer-newsletter h6 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.newsletter-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 6px 6px 6px 16px;
    gap: 10px;
}

.newsletter-input-wrap i {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    flex-shrink: 0;
}

.newsletter-input-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 14px;
    flex: 1;
    min-width: 0;
}

.newsletter-input-wrap input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-input-wrap button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
}

.newsletter-input-wrap button:hover {
    background: #c9520e;
    transform: scale(1.04);
}

/* Footer links */
.footer-links {
    position: relative;
    z-index: 1;
}

.footer-links li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-links li:last-child {
    border-bottom: none;
}

.footer-links li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    padding: 3px 0;
}

.footer-links li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: var(--white);
    padding-left: 6px;
}

.footer-links li a:hover::before {
    transform: scale(1.4);
}

/* Contact items — orange circle icons */
.footer-contact-new {
    position: relative;
    z-index: 1;
}

.footer-contact-new li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-contact-new li:last-child {
    border-bottom: none;
}

.fc-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(232,101,26,0.35);
    transition: transform 0.3s ease;
}

.footer-contact-new li:hover .fc-icon {
    transform: scale(1.1);
}

.fc-text strong {
    display: block;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.fc-text span {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 18px 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin: 0;
}

.footer-bottom p span {
    color: var(--secondary);
    font-weight: 600;
}

.footer-bottom a {
    color: var(--secondary);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Social icons in footer bottom */
.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==========================
   SCROLL TO TOP
   ========================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(26, 110, 58, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #051c45 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(26, 110, 58, 0.6);
}

.scroll-top:active {
    transform: translateY(-2px) scale(1);
}

.scroll-top.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================
   POPUP MODAL
   ========================== */
/* .popup-modal .modal-dialog {
    max-width: 60%;
} */

.popup-modal .modal-content {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.popup-modal .btn-close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.popup-modal .btn-close-popup:hover {
    background: var(--secondary);
}

.popup-modal img {
    width: 100%;
    display: block;
}

/* ==========================
   INNER PAGE BANNER
   ========================== */
.page-banner {
    position: relative;
    padding: 100px 0 60px;
    background-size: cover;
    background-position: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28,28,46,0.8), rgba(26,110,58,0.4));
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    color: var(--white);
    font-size: 40px;
    font-weight: 700;
}

/* ==========================
   RESPONSIVE DESIGN
   ========================== */
@media (max-width: 1199px) {
    .hero-title { font-size: 44px; }
    .hero-single { padding-top: 140px; padding-bottom: 170px; }
    .site-heading .site-title { font-size: 32px; }
    .carousel-control-prev { left: 20px; }
    .carousel-control-next { right: 20px; }
    .header-top::before { width: 60%; left: 0; }
    .header-top::after { display: none; }
    .header-top-social { display: none; }
}

@media (max-width: 991px) {
    .section-padding { padding: 60px 0; }
    .hero-single { padding-top: 100px; padding-bottom: 140px; }
    .hero-title { font-size: 44px; }
    .hero-content p { font-size: 16px; }
    .hero-sub-title { font-size: 18px; letter-spacing: 3px; }
    .site-heading .site-title { font-size: 28px; }
    .site-heading { margin-bottom: 35px; }

    .header-top-left .header-top-list ul { gap: 12px; }
    .header-top-left .header-top-list ul li a { font-size: 12px; }
    .header-top-right { gap: 10px; }
    .header-top-right .header-top-list a { font-size: 12px; }
    .header-top-social span { font-size: 12px; }
    .header-top-social a { font-size: 14px; margin-left: 8px; }
    .header-top::before { display: none; }
    .header-top::after { display: none; }

    /* About section */
    .about-card-f { padding: 15px 10px 30px 15px; }
    .about-card-f::before { width: 90%; left: -10px; top: -10px; }
    .about-experience { padding: 12px 16px; min-width: auto; }

    .counter-item .content .info .counter-number { font-size: 32px; }

    .cta-content h2 { font-size: 28px; }

    .footer-widget { padding: 60px 0 30px; }
    .footer-bottom-inner { justify-content: center; text-align: center; flex-direction: column; }

    /* Mobile Nav Override */
    .main-navigation .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    .main-navigation .navbar-nav .nav-item:not(.dropdown) > .nav-link::after {
        display: none;
    }

    /* Feature cards — reset icon position */
    .facility-card .facility-icon { position: static; margin-bottom: 16px; }
    .facility-card .facility-body { padding: 24px 20px 20px; }

    /* Gallery grid — 2 columns, no spans */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .gallery-item.gallery-tall { grid-row: span 1; grid-column: span 1; height: 220px; }
    .gallery-item.gallery-wide { grid-column: span 1; height: 220px; }
    .gallery-item { height: 220px; }

    .carousel-control-prev,
    .carousel-control-next { width: 45px; height: 45px; }
    .carousel-control-prev { left: 15px; }
    .carousel-control-next { right: 15px; }
}

@media (max-width: 767px) {
    .section-padding { padding: 50px 0; }
    .hero-single { padding-top: 80px; padding-bottom: 100px; }
    .hero-title { font-size: 34px; }
    .hero-sub-title { font-size: 16px; letter-spacing: 2px; }
    .hero-sub-title::before { height: 10px; }
    .hero-content p { font-size: 15px; }
    .hero-content { max-width: 100%; }
    .hero-btn { margin-top: 25px; }
    .hero-btn .theme-btn,
    .hero-btn .theme-btn2 { padding: 12px 24px; font-size: 14px; }

    .site-heading .site-title { font-size: 24px; }

    .header-top { padding: 6px 0; }
    .header-top-right { display: none; }
    .header-top::before,
    .header-top::after { display: none; }
    .header-top-left .header-top-list ul { gap: 10px; }
    .header-top-left .header-top-list ul li a { font-size: 11px; }

    .carousel-control-prev,
    .carousel-control-next { width: 40px; height: 40px; }
    .carousel-control-prev { left: 10px; }
    .carousel-control-next { right: 10px; }
    .carousel-control-prev-icon::after,
    .carousel-control-next-icon::after { width: 10px; height: 10px; border-width: 2px; }

    .carousel-indicators [data-bs-target],
    .carousel-indicators li { width: 10px; height: 10px; }
    .carousel-indicators .active { width: 26px; }

    /* Counter section */
    .counter-area { padding: 40px 0; }
    .counter-item { padding: 14px 16px 14px 14px; gap: 12px; border-radius: 50px; }
    .counter-item .icon { width: 55px; height: 55px; min-width: 55px; font-size: 22px; }
    .counter-item .content .info .counter-number { font-size: 26px; }
    .counter-item .content .title { font-size: 12px; }

    /* About section */
    .about-card-f { padding: 12px 8px 25px 12px; }
    .about-card-f::before { display: none; }
    .about-experience { position: relative; bottom: auto; right: auto; margin-top: 15px; display: inline-flex; }
    .about-img { border-radius: 14px; }

    /* Feature cards */
    .feature-item { padding: 40px 20px 24px; }
    .feature-icon { top: -16px; left: 20px; width: 60px; height: 60px; font-size: 24px; }
    .feature-num { font-size: 36px; }
    .facility-header { margin-bottom: 14px; }

    .cta-content h2 { font-size: 24px; }
    .cta-area { padding: 50px 0; }

    .footer-col h4, .footer-brand h4 { margin-bottom: 20px; }
    .footer-contact-new li { gap: 12px; }
    .fc-icon { width: 40px; height: 40px; min-width: 40px; font-size: 16px; }
    .newsletter-input-wrap { flex-wrap: wrap; border-radius: 16px; padding: 10px; gap: 8px; }
    .newsletter-input-wrap input { min-width: 100%; }
    .newsletter-input-wrap button { width: 100%; justify-content: center; border-radius: 10px; }

    .theme-btn, .theme-btn2 { padding: 12px 24px; font-size: 14px; }
}

@media (max-width: 575px) {
    .hero-single { padding-top: 70px; padding-bottom: 90px; }
    .hero-title { font-size: 28px; line-height: 1.25; }
    .hero-sub-title { font-size: 14px; letter-spacing: 1.5px; }
    .hero-sub-title::before { height: 10px; }
    .hero-btn { flex-direction: column; gap: 10px; margin-top: 20px; }
    .hero-btn .theme-btn,
    .hero-btn .theme-btn2 { justify-content: center; padding: 12px 24px; font-size: 13px; }

    .carousel-control-prev,
    .carousel-control-next { width: 34px; height: 34px; }
    .carousel-control-prev { left: 8px; }
    .carousel-control-next { right: 8px; }

    .feature-count { font-size: 40px; }

    /* Gallery — single column */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item,
    .gallery-item.gallery-tall,
    .gallery-item.gallery-wide { height: 200px; grid-column: span 1; grid-row: span 1; }

    /* Counter items — vertical stack at small screens */
    .counter-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 18px 10px;
        gap: 8px;
        border-radius: 16px;
        border-left-color: transparent;
        border-top: 3px solid var(--secondary);
    }
    .counter-item .icon { width: 48px; height: 48px; min-width: 48px; font-size: 20px; }
    .counter-item .content .info { justify-content: center; }
    .counter-item .content .info .counter-number { font-size: 22px; }
    .counter-item .content .title { font-size: 11px; }

    /* About */
    .about-img { aspect-ratio: 4/3; }

    /* CTA */
    .cta-content h2 { font-size: 20px; }
    .cta-area { padding: 40px 0; }

    .popup-modal .modal-dialog { margin: 15px; }

    /* Footer */
    .footer-social a { width: 34px; height: 34px; font-size: 13px; }
    .footer-bottom p { font-size: 12px; }
}

/* ==========================
   BACKWARD COMPATIBILITY
   For inner pages that use old
   container-fluid > row wrapper
   ========================== */
.container-fluid > .row > .header,
.container-fluid > .row > header,
.container-fluid > .row > .main-navigation,
.container-fluid > .row > footer,
.container-fluid > .row > .footer-area {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
    margin-left: calc(var(--bs-gutter-x, 0.75rem) * -0.5);
    margin-right: calc(var(--bs-gutter-x, 0.75rem) * -0.5);
    width: calc(100% + var(--bs-gutter-x, 1.5rem));
}

/* Fix old page content styles for new Bootstrap 5 */
.about-banner {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ===================================================
   OVERRIDE OLD main.css CONFLICTS
   main.css has .header, .subheader styles that break
   the new design. These overrides neutralize them.
   =================================================== */

/* Kill old .header red background and padding */
header.header,
.header {
    background: none !important;
    padding: 0 !important;
}

/* Kill old .header ul margins */
header.header > .header-top ul,
.header > .header-top ul,
.header-top ul {
    margin: 0 !important;
    padding: 0 !important;
}

/* Kill old .header .left ul li border-right and font */
.header-top .header-top-left ul li,
.header-top .header-top-list ul li,
.header .header-top-left ul li,
.header .header-top-list ul li {
    list-style: none !important;
    display: initial !important;
    border-right: none !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    font-family: var(--font-body) !important;
}

/* Restore header-top background (main.css sets .header bg to red) */
.header .header-top {
    background: #0A2155 !important;
    padding: 12px 0 !important;
}

/* Ensure navbar brand image is correct size */
.main-navigation .navbar-brand img {
    height: 70px;
}

/* Ensure old page inner titles work */
.about-banner h1 {
    position: absolute;
    color: #fff;
    top: 40%;
    left: 10%;
    font-size: 23px;
    background: linear-gradient(to left, transparent, var(--primary), transparent);
    padding: 11px 40px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

/* ==========================
   PAGE BANNER (Inner Pages)
   ========================== */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0 80px;
    text-align: center;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,33,85,0.82) 0%, rgba(26,110,58,0.7) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 1;
}

.page-banner-content h1 {
    font-size: 46px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.page-banner-content .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.page-banner-content .breadcrumb-item,
.page-banner-content .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    font-weight: 500;
}

.page-banner-content .breadcrumb-item a:hover {
    color: var(--accent);
}

.page-banner-content .breadcrumb-item.active {
    color: var(--accent);
}

.page-banner-content .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ==========================
   ABOUT DETAIL SECTION
   ========================== */
.about-detail-area {
    background: var(--white);
}

/* Left image wrapper */
.about-detail-img-wrap {
    position: relative;
    padding: 30px 30px 50px 0;
}

.about-detail-img-wrap::before {
    content: '';
    position: absolute;
    width: 75%;
    height: 80%;
    bottom: 0;
    left: -20px;
    background: rgba(247, 148, 29, 0.12);
    border-radius: 30px;
    z-index: 0;
}

.about-detail-img {
    position: relative;
    z-index: 1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-detail-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 30px;
    transition: transform 0.5s ease;
}

.about-detail-img:hover img {
    transform: scale(1.04);
}

/* CBSE badge overlay */
.about-detail-badge {
    position: absolute;
    bottom: 20px;
    right: 0;
    background: var(--primary);
    color: var(--white);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    min-width: 160px;
}

.about-detail-badge-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
}

.about-detail-badge-num {
    display: block;
    font-size: 20px;
    font-weight: 600;
    font-family: var(--font-heading);
    line-height: 1;
}

.about-detail-badge-label {
    display: block;
    font-size: 11px;
    opacity: 0.85;
    font-weight: 500;
    margin-top: 3px;
    letter-spacing: 0.4px;
}

/* Right content */
.about-detail-content {
    padding-left: 10px;
}

.about-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.about-detail-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 20px;
}

.about-detail-title span {
    color: var(--accent);
}

.about-detail-text {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 16px;
}

/* Progress / Skill Bars */
.skill-bars {
    margin: 28px 0 10px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.skill-pct {
    color: var(--accent);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #e8eaf0;
    border-radius: 50px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 50px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================
   ECR FEATURES CARDS
   ========================== */
.ecr-features-area {
    background: var(--light);
}

.ecr-feature-card {
    background: var(--white);
    border-radius: 18px;
    padding: 32px 26px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-bottom: 3px solid transparent;
}

.ecr-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-bottom-color: var(--accent);
}

.ecr-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    transition: background 0.3s ease, color 0.3s ease;
}

.ecr-feature-card h5 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.ecr-feature-card p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text);
    margin: 0;
}

/* ==========================
   INNER PAGES — SHARED COMPONENT STYLES
   ========================== */

/* --- Profile / Message Pages --- */
.message-area { background: var(--white); }

.profile-hero { background: var(--light); padding: 70px 0; }
.profile-all-hero { background: var(--white); padding: 70px 0; }

.profile-img-box { position: relative; display: inline-block; }
.profile-img-box::before {
    content: ''; position: absolute; width: 100%; height: 100%;
    border-radius: 50%; background: rgba(247,148,29,0.15);
    top: 12px; left: 12px; z-index: 0;
}
.profile-img-box img {
    width: 220px; height: 220px; object-fit: cover;
    border-radius: 50%; border: 6px solid var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative; z-index: 1;
}
.profile-name { font-size: 26px; font-weight: 600; color: var(--dark); margin: 20px 0 6px; }
.profile-role { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.profile-divider { width: 50px; height: 3px; background: var(--accent); border-radius: 2px; margin: 14px auto 0; }

.message-text-area { padding: 70px 0; }
.message-quote-box {
    background: var(--light); border-left: 4px solid var(--accent);
    border-radius: 0 16px 16px 0; padding: 24px 28px; margin-bottom: 28px;
    font-size: 16px; font-style: italic; color: var(--dark); line-height: 1.85;
}
.message-body p { font-size: 15px; line-height: 1.9; color: var(--text); margin-bottom: 16px; }
.message-signature {
    margin-top: 30px; padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
}
.message-signature h5 { font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.message-signature p { font-size: 14px; color: var(--accent); font-weight: 600; margin: 0; }

/* --- Vision / Mission --- */
.vision-mission-area { background: var(--light); }
.vm-card {
    background: var(--white); border-radius: 20px; padding: 50px 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08); height: 100%;
    border-top: 4px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vm-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.vm-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--accent), #f7b731);
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: var(--white); margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(247,148,29,0.35);
}
.vm-card.vm-mission .vm-icon {
    background: linear-gradient(135deg, var(--primary), #2ecc71);
    box-shadow: 0 8px 20px rgba(26,110,58,0.35);
}
.vm-card.vm-mission { border-top-color: var(--primary); }
.vm-card h3 { font-size: 26px; font-weight: 600; margin-bottom: 16px; color: var(--dark); }
.vm-card p { font-size: 15px; line-height: 1.85; color: var(--text); margin: 0; }

/* --- Objectives --- */
.objectives-area { background: var(--light); }
.objective-card {
    background: var(--white); border-radius: 18px; padding: 36px 28px;
    height: 100%; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}
.objective-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); border-bottom-color: var(--accent); }
.objective-icon {
    width: 65px; height: 65px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--white); margin-bottom: 20px;
}
.objective-card h5 { font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 12px; }
.objective-card ul { list-style: none; padding: 0; margin: 0; }
.objective-card ul li {
    padding: 6px 0; font-size: 14px; color: var(--text);
    display: flex; align-items: flex-start; gap: 10px;
    line-height: 1.6; border-bottom: 1px dashed #f0f0f0;
}
.objective-card ul li:last-child { border-bottom: none; }
.objective-card ul li i { color: var(--accent); font-size: 13px; margin-top: 2px; flex-shrink: 0; }

/* --- House System --- */
.house-system-area { background: var(--white); }
.house-card {
    border-radius: 20px; padding: 40px 28px; text-align: center;
    height: 100%; color: var(--white); position: relative; overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15); transition: transform 0.3s ease;
}
.house-card:hover { transform: translateY(-6px); }
.house-card::before {
    content: ''; position: absolute; width: 150px; height: 150px;
    background: rgba(255,255,255,0.1); border-radius: 50%;
    bottom: -50px; right: -50px;
}
.house-card-icon {
    width: 70px; height: 70px; background: rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin: 0 auto 20px; border: 2px solid rgba(255,255,255,0.4);
}
.house-card h4 { font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.house-card p { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.7; }

/* --- Disclosure --- */
.disclosure-area { background: var(--light); }
.doc-card {
    background: var(--white); border-radius: 14px; padding: 20px 24px;
    display: flex; align-items: center; gap: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent; text-decoration: none; color: var(--dark);
}
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); border-color: var(--accent); color: var(--dark); }
.doc-card-icon {
    width: 50px; height: 50px; min-width: 50px;
    background: rgba(247,148,29,0.12); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--accent);
    transition: background 0.3s ease, color 0.3s ease;
}
.doc-card:hover .doc-card-icon { background: var(--accent); color: var(--white); }
.doc-card-label { font-weight: 600; font-size: 14px; text-transform: capitalize; letter-spacing: 0.3px; flex: 1; }
.doc-card-arrow { color: var(--accent); font-size: 14px; }

/* --- Affiliation --- */
.affiliation-area { background: var(--white); }
.affil-card {
    background: linear-gradient(135deg, #0A2155 0%, #1a6e3a 100%);
    border-radius: 24px; padding: 70px 40px; color: var(--white); text-align: center;
    box-shadow: 0 20px 60px rgba(10,33,85,0.25); position: relative; overflow: hidden;
}
.affil-card::before {
    content: ''; position: absolute; width: 300px; height: 300px;
    background: rgba(255,255,255,0.04); border-radius: 50%; top: -100px; right: -100px;
}
.affil-badge-icon {
    width: 90px; height: 90px; background: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: var(--white); margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(247,148,29,0.4);
}
.affil-card h2 { font-size: 28px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.affil-card .affil-sub { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 0; }
.affil-stat-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 36px; }
.affil-stat { background: rgba(255,255,255,0.1); border-radius: 16px; padding: 22px 36px; border: 1px solid rgba(255,255,255,0.15); }
.affil-stat-num { font-size: 30px; font-weight: 600; color: var(--accent); display: block; line-height: 1; font-family: var(--font-heading); }
.affil-stat-label { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 6px; display: block; }

/* --- Rules & Regulations --- */
.rules-area { background: var(--white); }
.rules-section-title {
    font-size: 20px; font-weight: 600; color: var(--dark);
    padding: 14px 20px;
    background: linear-gradient(90deg, rgba(247,148,29,0.12), transparent);
    border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0;
    margin-bottom: 20px; margin-top: 40px;
}
.rule-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f5f5f5; align-items: flex-start; }
.rule-num {
    width: 34px; height: 34px; min-width: 34px; background: var(--accent);
    color: var(--white); border-radius: 8px; display: flex; align-items: center;
    justify-content: center; font-size: 13px; font-weight: 600;
    font-family: var(--font-heading);
}
.rule-text { font-size: 15px; color: var(--text); line-height: 1.75; padding-top: 4px; }

/* --- Admission --- */
.admission-area { background: var(--white); }
.admission-step-card {
    background: var(--white); border-radius: 18px; padding: 34px 28px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07); height: 100%;
    position: relative; border-top: 4px solid var(--accent);
}
.admission-step-num {
    position: absolute; top: -18px; left: 24px;
    width: 36px; height: 36px; background: var(--accent); color: var(--white);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-family: var(--font-heading); font-size: 14px;
    box-shadow: 0 4px 12px rgba(247,148,29,0.4);
}
.admission-step-card h5 { font-size: 17px; font-weight: 600; color: var(--dark); margin-bottom: 14px; margin-top: 4px; }
.admission-step-card ul { list-style: none; padding: 0; margin: 0; }
.admission-step-card ul li {
    padding: 6px 0; font-size: 14px; color: var(--text);
    display: flex; align-items: flex-start; gap: 10px; line-height: 1.6;
}
.admission-step-card ul li i { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
/* Age Criteria Card Grid */
.age-card-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}
.age-grid-3 { grid-template-columns: repeat(3, 1fr); }
.age-grid-5 { grid-template-columns: repeat(5, 1fr); }
.age-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 480px; margin-left: auto; margin-right: auto; }
@media (max-width: 991px) {
    .age-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
    .age-grid-3, .age-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .age-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}

/* Stage labels */
.age-stage-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.8px;
    text-transform: uppercase; border-radius: 50px;
    padding: 6px 18px; margin-bottom: 14px;
}
.age-stage-pre       { background: #fff4e6; color: #c2530a; }
.age-stage-primary   { background: #ecfdf5; color: #065f46; }
.age-stage-middle    { background: #eff6ff; color: #1e40af; }
.age-stage-secondary { background: #f5f3ff; color: #5b21b6; }

.age-item {
    background: #fff;
    border-radius: 18px;
    padding: 28px 14px 22px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}
.age-item:hover { transform: translateY(-8px); box-shadow: 0 18px 48px rgba(0,0,0,0.13); }

/* Top accent border per stage */
.age-item-pre      { border-top-color: #f97316; }
.age-item-primary  { border-top-color: #10b981; }
.age-item-middle   { border-top-color: #3b82f6; }
.age-item-secondary{ border-top-color: #8b5cf6; }

/* Ghost number watermark */
.age-item-num {
    position: absolute; bottom: -10px; right: 4px;
    font-size: 68px; font-weight: 600; font-family: var(--font-heading);
    color: rgba(0,0,0,0.045); line-height: 1;
    user-select: none; pointer-events: none;
}

/* Colored icon circle */
.age-item-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; border-radius: 50%;
    font-size: 24px; margin-bottom: 14px;
}
.age-item-pre .age-item-icon      { background: #fff4e6; color: #f97316; }
.age-item-primary .age-item-icon  { background: #ecfdf5; color: #10b981; }
.age-item-middle .age-item-icon   { background: #eff6ff; color: #3b82f6; }
.age-item-secondary .age-item-icon{ background: #f5f3ff; color: #8b5cf6; }

.age-item h5 {
    font-size: 14px; font-weight: 600; margin: 0 0 12px;
    font-family: var(--font-heading); color: var(--dark);
}

.age-item-badge {
    display: inline-block; font-size: 12px; font-weight: 600;
    border-radius: 50px; padding: 5px 16px;
}
.age-item-pre .age-item-badge      { background: #fff4e6; color: #c2530a; border: 1.5px solid #fcd9b4; }
.age-item-primary .age-item-badge  { background: #ecfdf5; color: #065f46; border: 1.5px solid #a7f3d0; }
.age-item-middle .age-item-badge   { background: #eff6ff; color: #1e40af; border: 1.5px solid #bfdbfe; }
.age-item-secondary .age-item-badge{ background: #f5f3ff; color: #5b21b6; border: 1.5px solid #ddd6fe; }

/* --- Admission Open Page --- */

/* Hero announcement */
.admopen-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 60%, var(--accent) 100%);
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.admopen-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.admopen-hero-inner { position: relative; z-index: 1; }
.admopen-badge-row { margin-bottom: 20px; }
.admopen-live-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff; border-radius: 50px; padding: 8px 22px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
}
.admopen-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,0.35);
    animation: admopen-pulse 1.5s infinite;
}
@keyframes admopen-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.35); }
    50%       { box-shadow: 0 0 0 7px rgba(74,222,128,0.1); }
}
.admopen-hero-title {
    font-size: 52px; font-weight: 600; color: #fff;
    font-family: var(--font-heading); line-height: 1.15;
    margin-bottom: 20px;
}
.admopen-hero-title span { color: #fde68a; }
.admopen-hero-sub {
    font-size: 17px; color: rgba(255,255,255,0.88);
    max-width: 640px; margin: 0 auto 36px; line-height: 1.7;
}
.admopen-hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.admopen-hero-btns .theme-btn { background: #fff; color: var(--secondary); border-color: #fff; }
.admopen-hero-btns .theme-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 767px) { .admopen-hero-title { font-size: 32px; } }

/* Contact cards */
.admopen-contact-card {
    background: #fff; border-radius: 20px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.08);
    padding: 36px 28px; text-align: center; height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.admopen-contact-card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(0,0,0,0.13); }
.admopen-contact-icon {
    width: 66px; height: 66px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff; margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.admopen-contact-card h5 {
    font-size: 18px; font-weight: 600; color: var(--dark);
    font-family: var(--font-heading); margin-bottom: 12px;
}
.admopen-contact-card a, .admopen-contact-card p {
    display: block; font-size: 15px; color: var(--text);
    margin-bottom: 4px; text-decoration: none;
}
.admopen-contact-card a:hover { color: var(--accent); }

/* Feature cards */
.admopen-feature-card {
    background: #fff; border-radius: 20px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.08);
    padding: 34px 24px 28px; height: 100%; position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}
.admopen-feature-card:hover {
    transform: translateY(-7px); box-shadow: 0 18px 48px rgba(0,0,0,0.13);
    border-bottom-color: var(--accent);
}
.admopen-feature-num {
    position: absolute; top: 16px; right: 18px;
    font-size: 42px; font-weight: 600; color: rgba(0,0,0,0.05);
    font-family: var(--font-heading); line-height: 1;
}
.admopen-feature-icon {
    width: 58px; height: 58px; border-radius: 16px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.admopen-feature-card h5 {
    font-size: 17px; font-weight: 600; color: var(--dark);
    font-family: var(--font-heading); margin-bottom: 10px;
}
.admopen-feature-card p { font-size: 14px; color: var(--text); margin: 0; }

/* Steps strip */
.admopen-steps-strip {
    background: var(--secondary);
    padding: 40px 0;
}
.admopen-steps-row {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap;
}
.admopen-step {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.1); border-radius: 50px;
    padding: 12px 22px; border: 1.5px solid rgba(255,255,255,0.2);
}
.admopen-step-circle {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; flex-shrink: 0;
    font-family: var(--font-heading);
}
.admopen-step-text { display: flex; flex-direction: column; }
.admopen-step-text strong { font-size: 13px; color: #fff; font-weight: 600; line-height: 1.2; }
.admopen-step-text span  { font-size: 11px; color: rgba(255,255,255,0.7); }
.admopen-step-arrow { color: rgba(255,255,255,0.45); font-size: 14px; }
@media (max-width: 767px) { .admopen-step-arrow { display: none; } }

/* Image + CTA section */
.admopen-img-wrap {
    position: relative; border-radius: 24px;
    overflow: hidden; box-shadow: 0 16px 60px rgba(0,0,0,0.15);
}
.admopen-img-wrap img { width: 100%; display: block; border-radius: 24px; }
.admopen-img-badge {
    position: absolute; bottom: 20px; left: 20px;
    background: var(--accent); color: #fff; border-radius: 50px;
    padding: 10px 22px; display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.admopen-cta-content .site-title-tagline { font-size: 14px; }
.admopen-checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.admopen-checklist li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 15px; color: var(--text); margin-bottom: 12px;
}
.admopen-checklist li i { color: #10b981; font-size: 17px; margin-top: 1px; flex-shrink: 0; }

/* --- Curriculum --- */
.curriculum-detail-area { background: var(--light); }
.curriculum-level-card {
    background: var(--white); border-radius: 20px; overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08); height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.curriculum-level-card:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(0,0,0,0.12); }
.curriculum-card-header { padding: 32px 28px 24px; }
.curriculum-card-icon {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--white); margin-bottom: 16px;
    background: rgba(255,255,255,0.2);
}
.curriculum-card-header h4 { font-size: 20px; font-weight: 600; color: var(--white); margin: 0; }
.curriculum-card-header p { font-size: 13px; color: rgba(255,255,255,0.8); margin: 6px 0 0; }
.curriculum-card-body { padding: 24px 28px; }
.curriculum-card-body ul { list-style: none; padding: 0; margin: 0; }
.curriculum-card-body ul li {
    padding: 8px 0; font-size: 14px; color: var(--text);
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px dashed #eee;
}
.curriculum-card-body ul li:last-child { border-bottom: none; }
.curriculum-card-body ul li i { color: var(--accent); font-size: 13px; }

/* --- Infrastructure --- */
.infra-detail-area { background: var(--white); }
.infra-card {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1); height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.infra-card:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(0,0,0,0.15); }
.infra-img { height: 220px; overflow: hidden; position: relative; }
.infra-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.infra-card:hover .infra-img img { transform: scale(1.08); }
.infra-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,33,85,0.55), transparent 55%); }
.infra-content { background: var(--white); padding: 24px; }
.infra-content h4 { font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.infra-content p { font-size: 14px; color: var(--text); line-height: 1.7; margin: 0; }

/* --- Technology --- */
.technology-detail-area { background: var(--light); }
.tech-feature-card {
    background: var(--white); border-radius: 18px; padding: 32px 24px; text-align: center;
    height: 100%; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}
.tech-feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); border-bottom-color: var(--accent); }
.tech-feature-icon {
    width: 72px; height: 72px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 20px;
    transition: transform 0.3s ease;
}
.tech-feature-card:hover .tech-feature-icon { transform: scale(1.1) rotate(8deg); }
.tech-feature-card h5 { font-size: 17px; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.tech-feature-card p { font-size: 14px; color: var(--text); line-height: 1.7; margin: 0; }

/* --- Sports & Games --- */
.sports-detail-area { background: var(--white); }
.sport-card {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08); height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sport-card:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(0,0,0,0.12); }
.sport-card-header { padding: 30px 24px 24px; position: relative; }
.sport-num {
    position: absolute; top: 16px; right: 18px;
    font-size: 50px; font-weight: 600; font-family: var(--font-heading);
    color: rgba(255,255,255,0.18); line-height: 1;
}
.sport-icon {
    width: 60px; height: 60px; background: rgba(255,255,255,0.2);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--white); margin-bottom: 16px;
}
.sport-card-header h4 { font-size: 20px; font-weight: 600; color: var(--white); margin: 0; }
.sport-card-body { padding: 20px 24px 24px; background: var(--white); }
.sport-card-body p { font-size: 14px; color: var(--text); line-height: 1.7; margin: 0; }

/* --- Homework Policy --- */
.policy-area { background: var(--light); }
.policy-card {
    background: linear-gradient(135deg, #0A2155, #1a6e3a);
    border-radius: 24px; padding: 70px 50px; color: var(--white); text-align: center;
    box-shadow: 0 20px 60px rgba(10,33,85,0.25); position: relative; overflow: hidden;
}
.policy-card::before {
    content: ''; position: absolute; width: 300px; height: 300px;
    background: rgba(255,255,255,0.04); border-radius: 50%;
    bottom: -100px; right: -100px;
}
.policy-icon {
    width: 90px; height: 90px; background: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px; color: var(--white); margin: 0 auto 28px;
    box-shadow: 0 10px 30px rgba(247,148,29,0.4);
}
.policy-card h3 { font-size: 28px; font-weight: 600; color: var(--white); margin-bottom: 20px; }
.policy-card p { font-size: 16px; color: rgba(255,255,255,0.85); line-height: 1.85; max-width: 700px; margin: 0 auto; }

/* --- Gallery New --- */
.gallery-page-area { background: var(--white); }
.gallery-new-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-new-item {
    border-radius: 18px; 
    overflow: hidden; 
    position: relative;
    aspect-ratio: 1; 
    cursor: pointer; 
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.gallery-new-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.gallery-new-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0.95;
    will-change: transform;
}

.gallery-new-item img[loading="lazy"]:not([src*=""]) {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.gallery-new-item:hover img { 
    transform: scale(1.08); 
}

.gallery-new-overlay {
    position: absolute; 
    inset: 0; 
    background: rgba(10,33,85,0);
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: background 0.3s ease;
    backdrop-filter: blur(0px);
}

.gallery-new-item:hover .gallery-new-overlay { 
    background: rgba(247,148,29,0.72);
    backdrop-filter: blur(2px);
}

.gallery-new-overlay i {
    font-size: 30px; 
    color: var(--white); 
    opacity: 0;
    transform: scale(0.5); 
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: transform, opacity;
}

.gallery-new-item:hover .gallery-new-overlay i { 
    opacity: 1; 
    transform: scale(1); 
}

/* --- Contact Cards --- */
.contact-page-area { background: var(--white); }
.contact-info-card-new {
    background: var(--white); border-radius: 20px; padding: 40px 24px;
    text-align: center; box-shadow: 0 6px 25px rgba(0,0,0,0.08); height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}
.contact-info-card-new:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(0,0,0,0.12); border-bottom-color: var(--accent); }
.contact-info-icon-wrap {
    width: 80px; height: 80px; background: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: var(--white); margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(247,148,29,0.35);
    transition: transform 0.3s ease;
}
.contact-info-card-new:hover .contact-info-icon-wrap { transform: scale(1.1) rotate(6deg); }
.contact-info-card-new h5 { font-size: 17px; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.contact-info-card-new p, .contact-info-card-new address {
    font-size: 14px; color: var(--text); line-height: 1.7; margin: 0; font-style: normal;
}
.contact-form-section { background: var(--light); }
.contact-form-card {
    background: var(--white); border-radius: 24px; padding: 50px 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}
.contact-form-card h3 { font-size: 28px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.contact-form-card .form-subtitle { color: var(--text-light); margin-bottom: 30px; font-size: 15px; }
.contact-form-group { position: relative; margin-bottom: 20px; }
.contact-form-group .form-icon {
    position: absolute; left: 18px; top: 50%;
    transform: translateY(-50%); color: var(--accent); font-size: 16px; z-index: 1;
}
.contact-form-input {
    width: 100%; padding: 14px 18px 14px 48px;
    border: 2px solid #e8eaf0; border-radius: 12px;
    font-family: var(--font-body); font-size: 15px; color: var(--dark);
    background: var(--light); transition: border-color 0.3s ease; outline: none;
}
.contact-form-input:focus { border-color: var(--accent); background: var(--white); }
.contact-form-input::placeholder { color: var(--text-light); }
.contact-map-wrap { border-radius: 20px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.contact-map-wrap iframe { width: 100%; height: 100%; min-height: 420px; display: block; border: none; }

/* --- School Fee Table --- */
.fee-area { background: var(--white); }

/* Fee Summary Cards */
.fee-summary-card {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    border-top: 4px solid;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.fee-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.fee-summary-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.fee-summary-primary {
    border-top-color: #f97316;
    border-color: rgba(249, 115, 22, 0.1);
}

.fee-summary-primary:hover {
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.02);
}

.fee-summary-secondary {
    border-top-color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.1);
}

.fee-summary-secondary:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.02);
}

.fee-summary-senior {
    border-top-color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.1);
}

.fee-summary-senior:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.02);
}

.fee-summary-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.fee-summary-primary .fee-summary-icon {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: var(--white);
}

.fee-summary-secondary .fee-summary-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: var(--white);
}

.fee-summary-senior .fee-summary-icon {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: var(--white);
}

.fee-summary-card:hover .fee-summary-icon {
    transform: scale(1.15) rotate(-8deg);
}

.fee-summary-card h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.fee-summary-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.fee-summary-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
}

.fee-summary-primary .fee-summary-badge {
    background: rgba(249, 115, 22, 0.1);
    color: #c2530a;
}

.fee-summary-secondary .fee-summary-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.fee-summary-senior .fee-summary-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #5b21b6;
}

/* Fee Table Wrapper */
.fee-table-wrapper {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

/* Fee Table Enhanced */
.fee-table-styled {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.fee-table-styled thead {
    background: linear-gradient(135deg, #0A2155 0%, #1a6e3a 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.fee-table-styled thead th {
    color: var(--white);
    padding: 20px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    border: none;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
}

.fee-table-styled thead th:first-child {
    text-align: left;
}

.fee-table-styled thead th i {
    margin-right: 6px;
}

.term-icon {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    margin-top: 2px;
    opacity: 0.9;
}

/* Section Header */
.fee-table-styled tbody tr.section-header {
    background: linear-gradient(90deg, rgba(0,0,0,0.02), rgba(0,0,0,0.04));
    height: auto;
}

.fee-table-styled tbody tr.section-header td {
    padding: 20px 16px;
    border: none;
}

.section-label {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-left: 4px solid;
    background: linear-gradient(90deg, rgba(0,0,0,0.02), transparent);
    border-radius: 6px;
}

.primary-row .section-label {
    color: #c2530a;
    border-left-color: #f97316;
}

.secondary-row .section-label {
    color: #1e40af;
    border-left-color: #3b82f6;
}

.senior-row .section-label {
    color: #5b21b6;
    border-left-color: #8b5cf6;
}

/* Fee Rows */
.fee-table-styled tbody tr.fee-row {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    background: var(--white);
}

.fee-table-styled tbody tr.fee-row:hover {
    background: linear-gradient(90deg, rgba(0,0,0,0.02), rgba(0,0,0,0.04));
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.fee-table-styled tbody tr.fee-row:nth-child(even):not(.section-header) {
    background: linear-gradient(90deg, rgba(0,0,0,0.01), transparent);
}

.fee-table-styled tbody tr.fee-row:nth-child(even):not(.section-header):hover {
    background: linear-gradient(90deg, rgba(0,0,0,0.04), rgba(0,0,0,0.06));
}

.fee-table-styled tbody td {
    padding: 16px;
    font-size: 14px;
    color: var(--text);
    text-align: center;
    border: none;
    font-weight: 500;
}

.fee-table-styled tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    padding-left: 20px;
    position: sticky;
    left: 0;
    background: inherit;
    min-width: 120px;
}

.fee-table-styled tbody tr.fee-row:hover td:first-child {
    color: var(--primary);
}

.total-col {
    background: linear-gradient(135deg, rgba(26,110,58,0.08), rgba(26,110,58,0.04));
    font-weight: 600;
    color: var(--primary);
    border-radius: 0;
}

.total-cell {
    color: var(--primary);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(26,110,58,0.06), transparent);
}

.fee-table-styled tbody tr.fee-row:hover .total-cell {
    background: linear-gradient(135deg, rgba(26,110,58,0.12), rgba(26,110,58,0.06));
}

.fee-table-styled tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 991px) {
    .fee-summary-card {
        margin-bottom: 12px;
    }
    
    .fee-table-styled thead th {
        padding: 16px 12px;
        font-size: 13px;
    }
    
    .fee-table-styled tbody td {
        padding: 14px 12px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .fee-table-styled { font-size: 12px; }
    .fee-table-styled thead th { 
        padding: 12px 10px; 
        font-size: 11px;
    }
    .fee-table-styled tbody td { 
        padding: 12px 10px; 
        font-size: 12px;
    }
    .fee-table-styled tbody td:first-child {
        padding-left: 14px;
        min-width: 100px;
    }
    
    .fee-summary-card {
        padding: 28px 20px;
    }
    
    .fee-summary-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .fee-summary-card h5 {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .fee-table-styled thead th { 
        padding: 10px 8px; 
        font-size: 10px;
    }
    .fee-table-styled tbody td { 
        padding: 10px 8px; 
        font-size: 11px;
    }
    .fee-table-styled tbody td:first-child {
        padding-left: 12px;
        min-width: 90px;
    }
    
    .term-icon {
        display: none;
    }
    
    .section-label i {
        display: none;
    }
    
    .fee-summary-card {
        padding: 24px 16px;
    }
    
    .fee-summary-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .fee-summary-card h5 {
        font-size: 14px;
    }
    
    .fee-summary-card p {
        font-size: 12px;
    }
}

/* ==========================
   VISION PAGE — CINEMATIC STYLE
   ========================== */

/* Split cinematic cards */
.vm-split-card {
    border-radius: 24px; overflow: hidden; position: relative;
    height: 420px; box-shadow: 0 16px 50px rgba(0,0,0,0.22);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.vm-split-card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(0,0,0,0.28); }
.vm-split-bg {
    position: absolute; inset: 0; background-size: cover;
    background-position: center; transition: transform 0.6s ease;
}
.vm-split-card:hover .vm-split-bg { transform: scale(1.07); }
.vm-split-overlay { position: absolute; inset: 0; }
.vm-split-card-vision .vm-split-overlay { background: linear-gradient(160deg, rgba(10,33,85,0.92) 30%, rgba(10,33,85,0.55) 100%); }
.vm-split-card-mission .vm-split-overlay { background: linear-gradient(160deg, rgba(15,80,40,0.92) 30%, rgba(15,80,40,0.55) 100%); }
.vm-split-icon-badge {
    position: absolute; top: 24px; right: 24px;
    width: 58px; height: 58px; background: var(--accent);
    border-radius: 16px; display: flex; align-items: center;
    justify-content: center; font-size: 24px; color: var(--white);
    z-index: 2; box-shadow: 0 8px 20px rgba(247,148,29,0.5);
    transition: transform 0.3s ease;
}
.vm-split-card:hover .vm-split-icon-badge { transform: scale(1.1) rotate(8deg); }
.vm-split-num {
    position: absolute; bottom: 24px; right: 28px;
    font-size: 90px; font-weight: 600; font-family: var(--font-heading);
    color: rgba(255,255,255,0.1); line-height: 1; z-index: 0; user-select: none;
}
.vm-split-content {
    position: relative; z-index: 1; padding: 44px 40px;
    height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
}
.vm-split-label {
    font-size: 12px; font-weight: 600; color: var(--accent);
    text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 12px;
}
.vm-split-content h3 { font-size: 30px; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.vm-split-content p { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.8; margin: 0; }

/* Motto Banner */
.motto-banner {
    background: linear-gradient(135deg, #0A2155 0%, #0d2f6b 100%);
    padding: 80px 0; position: relative; overflow: hidden; text-align: center;
}
.motto-banner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(247,148,29,0.08) 50%, transparent 60%);
    animation: ctaBeamSweep 5s ease-in-out infinite;
}
.motto-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(247,148,29,0.15); color: var(--accent);
    border: 1px solid rgba(247,148,29,0.3); border-radius: 50px;
    padding: 8px 20px; font-size: 13px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px;
}
.motto-text {
    font-size: 52px; font-weight: 600; font-family: var(--font-heading);
    letter-spacing: 6px; text-transform: uppercase; margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 40%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.motto-sub {
    font-size: 16px; color: rgba(255,255,255,0.65);
    max-width: 580px; margin: 0 auto; line-height: 1.7;
}

/* Service-Style Principle Cards (matches reference images) */
.service-style-card {
    background: var(--white); border-radius: 20px; overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08); height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-style-card:hover { transform: translateY(-8px); box-shadow: 0 22px 55px rgba(0,0,0,0.15); }
.service-card-top { height: 210px; position: relative; overflow: hidden; }
.service-card-top img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-style-card:hover .service-card-top img { transform: scale(1.08); }
.service-card-badge {
    position: absolute; top: 16px; right: 16px;
    width: 52px; height: 52px; background: var(--accent);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 22px; color: var(--white);
    box-shadow: 0 6px 16px rgba(247,148,29,0.45); z-index: 1;
    transition: transform 0.3s ease;
}
.service-style-card:hover .service-card-badge { transform: scale(1.12) rotate(8deg); }
.service-card-bottom { padding: 26px 24px 28px; position: relative; }
.service-card-ghost-num {
    position: absolute; bottom: 10px; right: 16px;
    font-size: 55px; font-weight: 600; font-family: var(--font-heading);
    color: rgba(0,0,0,0.05); line-height: 1; user-select: none;
}
.service-card-bottom h4 { font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.service-card-bottom p { font-size: 14px; color: var(--text); line-height: 1.75; margin-bottom: 18px; }
.service-card-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: var(--white);
    padding: 10px 22px; border-radius: 8px; font-size: 13px;
    font-weight: 600; font-family: var(--font-heading);
    text-decoration: none; transition: background 0.3s ease, transform 0.3s ease;
}
.service-card-link:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.service-card-link i { font-size: 11px; }

/* Responsive */
@media (max-width: 767px) {
    .vm-split-card { height: 340px; }
    .vm-split-content { padding: 30px 28px; }
    .vm-split-content h3 { font-size: 24px; }
    .motto-text { font-size: 32px; letter-spacing: 3px; }
}
@media (max-width: 575px) {
    .vm-split-card { height: 300px; }
    .motto-text { font-size: 24px; letter-spacing: 2px; }
}

/* ===== Leadership Team Cards ===== */
.leadership-area { background: var(--white); padding: 80px 0; }

.team-card {
    background: var(--white); border-radius: 24px;
    /* box-shadow: 0 6px 28px rgba(0,0,0,0.08);  */
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden; height: 100%;
}
.team-card:hover { transform: translateY(-10px); box-shadow: 0 22px 55px rgba(0,0,0,0.13); }

.team-card-header {
    padding: 36px 20px 20px; position: relative;
}
.team-card-header::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
    height: 28px; background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.team-card-img-wrap {
    position: relative; display: inline-block;
}
.team-card-img-wrap a {
    display: block; border-radius: 50%; position: relative; overflow: hidden;
    width: 120px; height: 120px;
    border: 5px solid rgba(255,255,255,0.85);
    box-shadow: 0 10px 32px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover .team-card-img-wrap a {
    transform: scale(1.06);
    box-shadow: 0 16px 44px rgba(0,0,0,0.24);
}
.team-card-img-wrap a img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.team-card:hover .team-card-img-wrap a img { transform: scale(1.1); }

.team-card-img-wrap .zoom-badge {
    position: absolute; inset: 0; display: flex; align-items: center;
    justify-content: center; border-radius: 50%;
    background: rgba(0,0,0,0.38); opacity: 0;
    transition: opacity 0.3s ease; font-size: 20px; color: #fff; cursor: pointer;
}
.team-card:hover .team-card-img-wrap .zoom-badge { opacity: 1; }

.team-card-body { padding: 10px 22px 30px; }
.team-card-body h4 {
    font-size: 16px; font-weight: 600; color: var(--dark);
    margin: 12px 0 6px; line-height: 1.4;
}
.team-card-role {
    display: inline-block; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    border-radius: 50px; padding: 5px 18px; margin-bottom: 14px;
}
.team-card-quote {
    font-size: 13px; color: #6b7280; line-height: 1.7; margin-bottom: 20px;
    font-style: italic; padding: 12px 0 0;
    border-top: 1px dashed rgba(0,0,0,0.1);
}
.team-card-link {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600; font-family: var(--font-heading);
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 8px; padding: 9px 22px;
    text-decoration: none; transition: all 0.3s ease;
    border: 2px solid transparent;
}
.team-card-link:hover { filter: brightness(0.9); transform: translateY(-2px); }

/* Responsive inner pages */
@media (max-width: 991px) {
    .gallery-new-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-form-card { padding: 36px 28px; }
    .vm-card { padding: 36px 28px; }
}
@media (max-width: 767px) {
    .affil-card { padding: 44px 24px; }
    .policy-card { padding: 44px 24px; }
    .gallery-new-grid { grid-template-columns: repeat(2, 1fr); }
    .affil-stat-row { gap: 16px; }
    .affil-stat { padding: 16px 20px; }
    .profile-img-box img { width: 180px; height: 180px; }
}
@media (max-width: 575px) {
    .gallery-new-grid { gap: 10px; }
    .contact-form-card { padding: 28px 18px; }
    .affil-stat-row { flex-direction: column; align-items: center; }
}

/* ==========================
   RESPONSIVE — About Detail
   ========================== */
@media (max-width: 991px) {
    .about-detail-img img { height: 320px; }
    .about-detail-title { font-size: 28px; }
    .page-banner-content h1 { font-size: 36px; }
}

@media (max-width: 767px) {
    .about-detail-img-wrap { padding: 20px 20px 40px 0; }
    .about-detail-img img { height: 260px; }
    .about-detail-title { font-size: 24px; }
    .page-banner { padding: 70px 0 60px; }
    .page-banner-content h1 { font-size: 30px; }
    .about-detail-content { padding-left: 0; margin-top: 20px; }
}

@media (max-width: 575px) {
    .about-detail-badge { bottom: 10px; right: 0; padding: 10px 14px; min-width: 140px; }
    .about-detail-title { font-size: 22px; }
    .ecr-feature-card { padding: 24px 18px; }
}

/* ==========================
   CAREER PAGE
   ========================== */
.career-img-wrap {
    position: relative; border-radius: 24px;
    overflow: hidden; box-shadow: 0 14px 50px rgba(0,0,0,0.14);
}
.career-img-wrap img { width: 100%; display: block; border-radius: 24px; }
.career-img-badge {
    position: absolute; bottom: 20px; left: 20px;
    background: var(--accent); color: #fff; border-radius: 50px;
    padding: 10px 22px; display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.career-benefit-card {
    background: #fff; border-radius: 20px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.08);
    padding: 32px 24px; height: 100%; text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.career-benefit-card:hover { transform: translateY(-7px); box-shadow: 0 18px 48px rgba(0,0,0,0.12); }
.career-benefit-icon {
    width: 64px; height: 64px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff; margin: 0 auto 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.career-benefit-card h5 { font-size: 17px; font-weight: 600; color: var(--dark); font-family: var(--font-heading); margin-bottom: 10px; }
.career-benefit-card p { font-size: 14px; color: var(--text); margin: 0; }

.career-job-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    padding: 22px 24px; display: flex; align-items: flex-start; gap: 18px;
    border-left: 4px solid var(--accent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.career-job-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.12); }
.career-job-icon {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
}
.career-job-content h5 { font-size: 16px; font-weight: 600; color: var(--dark); font-family: var(--font-heading); margin-bottom: 6px; }
.career-job-content p { font-size: 13px; color: var(--text); margin-bottom: 10px; }
.career-job-badge {
    display: inline-block; background: #ecfdf5; color: #065f46;
    border: 1.5px solid #a7f3d0; border-radius: 50px;
    font-size: 11px; font-weight: 600; padding: 3px 12px;
}
.career-apply-strip {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 60px 0;
}
.career-apply-strip h3 { font-size: 28px; font-weight: 600; color: #fff; font-family: var(--font-heading); margin-bottom: 12px; }
.career-apply-strip p { font-size: 16px; color: rgba(255,255,255,0.85); margin: 0; }
.career-apply-strip .theme-btn { background: var(--accent); border-color: var(--accent); display: inline-flex; }

/* ==========================
   RESIDENTIAL PAGE
   ========================== */
.resid-highlight-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 24px 18px; text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 3px solid var(--accent);
}
.resid-highlight-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.12); }
.resid-highlight-card i { font-size: 30px; color: var(--accent); margin-bottom: 12px; display: block; }
.resid-highlight-card h6 { font-size: 14px; font-weight: 600; color: var(--dark); font-family: var(--font-heading); margin-bottom: 6px; }
.resid-highlight-card p { font-size: 12px; color: var(--text); margin: 0; }

/* Timeline */
.resid-timeline { position: relative; padding-left: 0; }
.resid-timeline::before {
    content: ''; position: absolute; left: 100px; top: 0; bottom: 0;
    width: 2px; background: linear-gradient(to bottom, var(--accent), var(--primary));
    border-radius: 2px;
}
.resid-timeline-item {
    display: flex; align-items: flex-start; gap: 0;
    margin-bottom: 20px; position: relative;
}
.resid-tl-time {
    width: 90px; min-width: 90px; text-align: right;
    font-size: 12px; font-weight: 600; padding-top: 10px;
    padding-right: 14px; font-family: var(--font-heading);
}
.resid-tl-dot {
    width: 16px; height: 16px; border-radius: 50%;
    border: 3px solid #fff; flex-shrink: 0; margin-top: 8px;
    position: relative; z-index: 1; box-shadow: 0 0 0 2px var(--accent);
}
.resid-tl-content {
    background: #fff; border-radius: 12px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.07);
    padding: 12px 18px; margin-left: 14px; flex: 1;
}
.resid-tl-content strong { display: block; font-size: 14px; font-weight: 600; color: var(--dark); font-family: var(--font-heading); }
.resid-tl-content span { font-size: 13px; color: var(--text); }

/* Timeline dot colors per category */
.resid-tl-morning .resid-tl-time { color: #f97316; }
.resid-tl-morning .resid-tl-dot { background: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.25); }
.resid-tl-study .resid-tl-time { color: #3b82f6; }
.resid-tl-study .resid-tl-dot { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.25); }
.resid-tl-food .resid-tl-time { color: #10b981; }
.resid-tl-food .resid-tl-dot { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
.resid-tl-school .resid-tl-time { color: var(--secondary); }
.resid-tl-school .resid-tl-dot { background: var(--secondary); box-shadow: 0 0 0 3px rgba(10,33,85,0.2); }
.resid-tl-evening .resid-tl-time { color: #8b5cf6; }
.resid-tl-evening .resid-tl-dot { background: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.25); }
.resid-tl-night .resid-tl-time { color: #64748b; }
.resid-tl-night .resid-tl-dot { background: #64748b; box-shadow: 0 0 0 3px rgba(100,116,139,0.25); }

@media (max-width: 575px) {
    .resid-timeline::before { left: 72px; }
    .resid-tl-time { width: 68px; min-width: 68px; font-size: 11px; }
    .resid-tl-content { padding: 10px 14px; }
    .resid-tl-content strong { font-size: 13px; }
    .resid-tl-content span { font-size: 12px; }
}

/* ==========================
   FACILITY PAGE
   ========================== */
.facility-stat-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 24px 16px; text-align: center;
    transition: transform 0.25s ease;
    border-bottom: 3px solid var(--accent);
}
.facility-stat-card:hover { transform: translateY(-5px); }
.facility-stat-num {
    font-size: 32px; font-weight: 600; color: var(--secondary);
    font-family: var(--font-heading); line-height: 1.1;
}
.facility-stat-label { font-size: 13px; color: var(--text); font-weight: 600; margin-top: 4px; }

.facility-main-card {
    background: #fff; border-radius: 20px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.08);
    padding: 32px 24px; height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}
.facility-main-card:hover { transform: translateY(-7px); box-shadow: 0 18px 48px rgba(0,0,0,0.12); border-top-color: var(--accent); }
.facility-main-icon {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.facility-main-card h5 { font-size: 17px; font-weight: 600; color: var(--dark); font-family: var(--font-heading); margin-bottom: 10px; }
.facility-main-card p { font-size: 14px; color: var(--text); margin: 0; line-height: 1.7; }

.facility-strip-section {
    background: var(--secondary);
    padding: 40px 0;
}
.facility-strip-grid {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.facility-strip-item {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 50px; padding: 10px 20px;
    font-size: 14px; font-weight: 600; color: #fff;
    transition: background 0.25s ease;
}
.facility-strip-item:hover { background: rgba(255,255,255,0.2); }
.facility-strip-item i { color: var(--accent); }

/* ==========================
   NEWSLETTER PAGE
   ========================== */
.newsletter-msg-card {
    display: flex; align-items: stretch;
    background: #fff; border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}
.newsletter-msg-card-alt { flex-direction: row-reverse; }

/* Left/right sidebar */
.newsletter-msg-sidebar {
    width: 220px; min-width: 220px; padding: 40px 24px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; position: relative;
}
.newsletter-msg-avatar {
    width: 110px; height: 110px; border-radius: 50%;
    overflow: hidden; border: 4px solid rgba(255,255,255,0.4);
    margin-bottom: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    flex-shrink: 0;
}
.newsletter-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.newsletter-msg-role-badge {
    position: absolute; top: 20px; right: 16px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: 1.5px solid rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #fff;
}
.newsletter-msg-sidebar h4 {
    font-size: 15px; font-weight: 600; color: #fff;
    font-family: var(--font-heading); margin-bottom: 4px; line-height: 1.3;
}
.newsletter-msg-sidebar p { font-size: 12px; color: rgba(255,255,255,0.75); margin: 0; }
.newsletter-msg-desk-label {
    margin-top: 18px; background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 50px; padding: 6px 14px;
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.9);
    letter-spacing: 0.3px;
}

/* Message body */
.newsletter-msg-body { flex: 1; padding: 40px 44px; }
.newsletter-msg-quote {
    border-left: 4px solid var(--accent); padding: 16px 20px;
    background: #fffbf5; border-radius: 0 12px 12px 0;
    font-size: 15px; font-style: italic; color: var(--dark);
    margin-bottom: 28px; line-height: 1.7; position: relative;
}
.newsletter-quote-icon {
    color: var(--accent); font-size: 18px; margin-right: 8px; opacity: 0.6;
}
.newsletter-msg-text p {
    font-size: 15px; color: var(--text); line-height: 1.8;
    margin-bottom: 14px;
}
.newsletter-msg-text p:last-child { margin-bottom: 0; }
.newsletter-msg-signature {
    margin-top: 28px; padding-top: 20px;
}
.newsletter-sig-line {
    width: 50px; height: 3px; background: var(--accent);
    border-radius: 2px; margin-bottom: 12px;
}
.newsletter-msg-signature strong {
    display: block; font-size: 16px; font-weight: 600;
    color: var(--dark); font-family: var(--font-heading);
}
.newsletter-msg-signature span {
    font-size: 13px; color: var(--text);
}

/* Responsive */
@media (max-width: 991px) {
    .newsletter-msg-sidebar { width: 180px; min-width: 180px; padding: 30px 18px; }
    .newsletter-msg-body { padding: 30px 28px; }
}
@media (max-width: 767px) {
    .newsletter-msg-card,
    .newsletter-msg-card-alt { flex-direction: column; }
    .newsletter-msg-sidebar {
        width: 100%; min-width: unset;
        flex-direction: row; align-items: center;
        padding: 24px 24px; gap: 16px; text-align: left;
    }
    .newsletter-msg-avatar { width: 70px; height: 70px; margin-bottom: 0; flex-shrink: 0; }
    .newsletter-msg-role-badge { top: 12px; right: 12px; }
    .newsletter-msg-desk-label { margin-top: 0; }
    .newsletter-msg-body { padding: 24px 22px; }
    .newsletter-msg-quote { font-size: 14px; }
    .newsletter-msg-text p { font-size: 14px; }
}
@media (max-width: 575px) {
    .newsletter-msg-sidebar { padding: 18px 16px; gap: 12px; }
    .newsletter-msg-avatar { width: 58px; height: 58px; }
    .newsletter-msg-sidebar h4 { font-size: 13px; }
    .newsletter-msg-body { padding: 20px 18px; }
    .newsletter-msg-quote { padding: 12px 14px; font-size: 13px; }
    .newsletter-msg-text p { font-size: 13px; }
}

/* ==========================
   COMPREHENSIVE RESPONSIVE FIXES
   ========================== */



/* --- Contact map: reduce iframe height on mobile --- */
@media (max-width: 767px) {
    .contact-map-wrap iframe { min-height: 300px; }
}
@media (max-width: 575px) {
    .contact-map-wrap iframe { min-height: 240px; }
}

/* --- Scroll-to-top button: smaller on mobile --- */
@media (max-width: 767px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .scroll-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .scroll-top:hover {
        transform: translateY(-3px) scale(1.1);
    }
}

/* --- Age split row: mobile layout --- */
@media (max-width: 575px) {
    .age-split-head { padding: 14px 16px; }
    .age-split-cards { padding: 14px 12px; gap: 8px; }
    .age-chip { min-width: 70px; padding: 10px 12px; }
    .age-chip-name { font-size: 12px; }
    .age-chip-age { font-size: 10px; padding: 2px 10px; }
}

/* --- Admission open hero: mobile --- */
@media (max-width: 575px) {
    .admopen-hero { padding: 60px 0 50px; }
    .admopen-hero-title { font-size: 26px; }
    .admopen-hero-sub { font-size: 14px; }
    .admopen-hero-btns { flex-direction: column; align-items: center; }
    .admopen-steps-row { gap: 6px; }
    .admopen-step { padding: 10px 14px; }
}

/* --- Profile hero: mobile layout for all message pages --- */
@media (max-width: 575px) {
    .profile-hero { padding: 40px 0 20px; }
    .profile-img-box img { width: 150px; height: 150px; }
    .profile-name { font-size: 20px; }
    .message-body p { font-size: 14px; }
    .message-quote-box { padding: 20px 20px 20px 28px; font-size: 14px; }
    .message-signature h5 { font-size: 17px; }
}

/* --- Objective cards, sport cards, tech cards, infra cards: ensure full-width on very small --- */
@media (max-width: 575px) {
    .objective-card,
    .tech-feature-card,
    .infra-card,
    .sport-card { padding: 24px 18px; }
    .sport-card-header { padding: 24px 18px; }
    .curriculum-level-card .curriculum-card-header { padding: 28px 20px; }
    .curriculum-card-icon { width: 60px; height: 60px; font-size: 22px; }
    .curriculum-card-body { padding: 20px 18px; }
}

/* --- House cards: stack on mobile --- */
@media (max-width: 575px) {
    .house-card { padding: 30px 20px; }
}

/* --- Disclosure doc cards: 2-column on small, 1-column on xs --- */
@media (max-width: 575px) {
    .doc-card { padding: 18px 16px; font-size: 13px; }
    .doc-card-icon { width: 46px; height: 46px; font-size: 18px; }
}

/* --- Team cards on index.php: ensure they don't overflow --- */
@media (max-width: 767px) {
    .team-card-body { padding: 16px 16px 20px; }
    .team-card-title { font-size: 16px; }
}

/* --- Site heading + site-title: scale down on smallest screens --- */
@media (max-width: 575px) {
    .site-title { font-size: 26px; }
    .site-title-tagline { font-size: 13px; }
    .heading-divider { margin: 10px auto 16px; }
}

/* --- Admission step cards: full width on mobile --- */
@media (max-width: 575px) {
    .admission-step-card { padding: 30px 18px 22px; }
    .admission-step-num { top: -14px; left: 18px; width: 32px; height: 32px; font-size: 13px; }
    .admission-step-card h5 { font-size: 15px; margin-top: 6px; }
    .admission-step-card ul li { font-size: 13px; }
}

/* --- Footer on very small screens --- */
@media (max-width: 575px) {
    .footer-widget { padding: 50px 0 30px; }
    .footer-logo img { height: 56px; }
    .footer-col h4 { font-size: 16px; }
    .footer-links li a { font-size: 13px; }
    .footer-contact-new li { gap: 10px; }
    .fc-icon { width: 36px; height: 36px; font-size: 14px; }
    .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
    .footer-social a { width: 32px; height: 32px; font-size: 12px; }
}

/* --- Header top: hide extra items on small phones --- */
@media (max-width: 480px) {
    .header-top { display: none; }
}

/* --- Gallery grid: single column on very small phones --- */
@media (max-width: 480px) {
    .gallery-new-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* --- Affiliation stats row: single column on xs --- */
@media (max-width: 575px) {
    .affil-stat-row { flex-direction: column; }
    .affil-stat { width: 100%; }
    .affil-card { padding: 36px 20px; }
    .affil-badge-icon { width: 64px; height: 64px; font-size: 26px; }
    .affil-card h2 { font-size: 20px; }
}

/* --- Rules page: smaller rule items on mobile --- */
@media (max-width: 575px) {
    .rule-item { padding: 12px 14px; gap: 10px; }
    .rule-num { width: 28px; height: 28px; font-size: 12px; flex-shrink: 0; }
    .rule-text { font-size: 13px; }
    .rules-section-title { font-size: 17px; }
}

/* --- Vision/Mission cinematic cards: stack on mobile --- */
@media (max-width: 767px) {
    .vm-split-card { min-height: 320px; }
}
@media (max-width: 575px) {
    .vm-split-card { min-height: 280px; }
    .vm-split-content { padding: 24px 20px; }
    .vm-split-title { font-size: 22px; }
    .vm-split-text { font-size: 13px; }
    .motto-text { font-size: 22px; letter-spacing: 2px; }
    .motto-sub { font-size: 13px; }
}

/* --- Contact form: full-width phone fields on mobile --- */
@media (max-width: 575px) {
    .contact-form-card h3 { font-size: 20px; }
    .contact-info-card-new { padding: 28px 18px; }
    .contact-info-icon-wrap { width: 58px; height: 58px; font-size: 22px; }
}

/* --- Admission open contact cards: stack on mobile --- */
@media (max-width: 575px) {
    .admopen-contact-card { padding: 28px 20px; }
    .admopen-feature-card { padding: 26px 18px; }
    .admopen-img-badge { padding: 8px 16px; font-size: 12px; }
    .admopen-checklist li { font-size: 14px; }
}
