/* =====================================================
   RCC Public School — Main Stylesheet
   ===================================================== */

:root {
    --primary:    #1a3c6e;
    --primary-dark: #0f2a50;
    --accent:     #e8a723;
    --accent-dark:#c88e1b;
    --secondary:  #2c5f9e;
    --success:    #28a745;
    --light-bg:   #f8f9fa;
    --dark-bg:    #0c1e3a;
    --text-dark:  #222;
    --text-muted: #6c757d;
    --text-light: #fff;
    --shadow:     0 4px 20px rgba(0,0,0,.08);
    --shadow-lg:  0 10px 40px rgba(0,0,0,.12);
    --radius:     12px;
    --radius-sm:  8px;
    --transition: .3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body:    'Inter', sans-serif;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---- Skip to Content (Accessibility) ---- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 100000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 0;
    color: #fff;
    outline: 3px solid var(--accent);
}

/* ---- Focus Visible (Keyboard Accessibility) ---- */
*:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }
.text-accent { color: var(--accent) !important; }

/* =====================================================
   TOP BAR
   ===================================================== */
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d2d52 100%);
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: var(--accent); }
.top-bar i { margin-right: 6px; color: var(--accent); font-size: .75rem; }
.top-bar .top-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar .top-social { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.top-bar .top-social a:not(.btn-disclosure) { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; transition: var(--transition); }
.top-bar .top-social a:not(.btn-disclosure):hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.top-bar .btn-disclosure { font-size: .7rem; color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 3px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 4px; transition: var(--transition); text-decoration: none; white-space: nowrap; line-height: 1; }
.top-bar .btn-disclosure:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.top-bar .btn-disclosure i { margin-right: 0; color: inherit; font-size: .65rem; }

/* =====================================================
   MAIN HEADER / NAVBAR
   ===================================================== */
.main-header {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all .35s cubic-bezier(.25,.46,.45,.94);
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.main-header.scrolled {
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    background: rgba(255,255,255,.98);
    border-bottom-color: transparent;
}
.main-header .navbar { padding: .35rem 0; }
.brand-wrapper { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(26,60,110,.25);
    transition: var(--transition);
}
.brand-wrapper:hover .brand-icon { transform: scale(1.05); }
/* Logo image variant — removes the gradient pill so the school logo can breathe */
.brand-icon.brand-icon-logo {
    background: transparent;
    box-shadow: none;
    padding: 2px;
    overflow: hidden;
}
.brand-icon.brand-icon-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    display: block;
}
.brand-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--primary); line-height: 1.15; }
.brand-tagline { font-size: .65rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

/* Nav links — modern pill hover */
.main-header .nav-link {
    font-weight: 500;
    color: #3a4a5c !important;
    padding: .5rem .75rem !important;
    position: relative;
    font-size: .88rem;
    letter-spacing: .01em;
    border-radius: 8px;
    transition: all .25s ease;
}
/* Underline indicator — uses ::before to avoid conflict with Bootstrap caret ::after */
.main-header .nav-link::before {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), #f0c060);
    transition: all .3s cubic-bezier(.25,.46,.45,.94);
    transform: translateX(-50%);
    border-radius: 2px;
}
.main-header .nav-link:hover,
.main-header .nav-link.active { color: var(--primary) !important; background: rgba(26,60,110,.04); }
.main-header .nav-link:hover::before,
.main-header .nav-link.active::before { width: 50%; }
/* Hide the underline on the CTA button */
.main-header .btn-nav::before { display: none; }

/* Dropdown toggle caret — Bootstrap ::after */
.main-header .dropdown-toggle::after {
    font-size: .55rem;
    vertical-align: .15em;
    margin-left: .3em;
    opacity: .4;
    border-top-width: 4px;
    border-right-width: 4px;
    border-left-width: 4px;
    transition: transform .25s ease, opacity .25s ease;
}
.main-header .nav-item.dropdown:hover .dropdown-toggle::after,
.main-header .nav-item.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
    opacity: .8;
}

/* Contact button — modern rounded */
.btn-nav {
    background: linear-gradient(135deg, var(--accent) 0%, #d4941a 100%);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: .5rem 1.6rem !important;
    font-weight: 600;
    font-size: .88rem;
    box-shadow: 0 4px 15px rgba(232,167,35,.3);
    transition: all .3s ease;
    letter-spacing: .02em;
}
.btn-nav:hover {
    background: linear-gradient(135deg, #d4941a 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,167,35,.4);
}

/* Custom hamburger */
.navbar-toggler { border: none; padding: .4rem; position: relative; z-index: 1060; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler span {
    display: block; width: 22px; height: 2px; margin: 5px 0;
    background: var(--primary); transition: all .3s cubic-bezier(.68,-.55,.265,1.55);
    transform-origin: center; border-radius: 2px;
}
.navbar-toggler[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggler[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =====================================================
   MOBILE OFFCANVAS NAVIGATION
   ===================================================== */
#mobileNav {
    width: 310px;
    border-right: none;
    box-shadow: 8px 0 40px rgba(0,0,0,.12);
    border-radius: 0 20px 20px 0;
}
#mobileNav .offcanvas-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
#mobileNav .offcanvas-header .brand-icon {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
}
#mobileNav .offcanvas-header .brand-name {
    color: #fff;
    font-size: 1.1rem;
}
#mobileNav .offcanvas-header .brand-tagline {
    color: var(--accent);
}
.offcanvas-close-btn {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.offcanvas-close-btn:hover {
    background: rgba(255,255,255,.3);
}
#mobileNav .offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Mobile nav links */
.mobile-nav-list {
    list-style: none;
    padding: .5rem 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}
.mobile-nav-list li {
    border-bottom: none;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: .7rem 1.5rem;
    color: #3a4a5c;
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .25s ease;
    position: relative;
    border-radius: 0 12px 12px 0;
    margin-right: 12px;
}
.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--accent), #d4941a);
    border-radius: 0 3px 3px 0;
    transition: height .25s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    background: linear-gradient(90deg, rgba(26,60,110,.04), transparent);
}
.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    height: 60%;
}
.mobile-nav-link i {
    width: 22px;
    text-align: center;
    font-size: .9rem;
    color: var(--accent);
    opacity: .7;
    transition: all .25s ease;
}
.mobile-nav-link:hover i,
.mobile-nav-link.active i {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.1);
}

/* Mobile CTA button */
.mobile-nav-cta {
    padding: .8rem 1.5rem;
}
.btn-mobile-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: .75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, #d4941a 100%);
    color: #fff;
    border-radius: 14px;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(232,167,35,.25);
}
.btn-mobile-contact:hover {
    background: linear-gradient(135deg, #d4941a 0%, var(--accent) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,167,35,.4);
}

/* Mobile contact info */
.mobile-nav-info {
    padding: .5rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-nav-info a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.mobile-nav-info a i {
    width: 16px;
    text-align: center;
    color: var(--primary);
    font-size: .8rem;
}
.mobile-nav-info a:hover {
    color: var(--primary);
}

/* Mobile social links */
.mobile-nav-social {
    padding: .8rem 1.5rem 1.5rem;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,.06);
}
.mobile-nav-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(11,61,43,.06);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    text-decoration: none;
    transition: var(--transition);
}
.mobile-nav-social a:hover {
    background: var(--accent);
    color: #fff;
}

/* Offcanvas backdrop */
.offcanvas-backdrop {
    backdrop-filter: blur(3px);
}

/* Hide mobile toggler on desktop */
@media (min-width: 992px) {
    .navbar-toggler { display: none; }
    /* Hover-to-open dropdowns on desktop */
    .main-header .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0 !important;
    }
    .main-header .navbar-nav { gap: 2px; align-items: center; }
    .main-header .nav-item { position: relative; }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary-custom {
    background: var(--accent); color: #fff; border: 2px solid var(--accent);
    border-radius: 30px; padding: .65rem 1.8rem; font-weight: 600; transition: var(--transition);
}
.btn-primary-custom:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,167,35,.35); }

.btn-outline-custom {
    background: transparent; color: #fff; border: 2px solid #fff;
    border-radius: 30px; padding: .65rem 1.8rem; font-weight: 600; transition: var(--transition);
}
.btn-outline-custom:hover { background: #fff; color: var(--primary); }

.btn-outline-primary-custom {
    background: transparent; color: var(--primary); border: 2px solid var(--primary);
    border-radius: 30px; padding: .65rem 1.8rem; font-weight: 600; transition: var(--transition);
}
.btn-outline-primary-custom:hover { background: var(--primary); color: #fff; }

/* =====================================================
   HERO SECTION — Modern Design
   ===================================================== */
.hero-section {
    position: relative; height: 100vh; min-height: 650px; overflow: hidden;
}
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; visibility: hidden;
    transition: opacity 1.2s cubic-bezier(.4,0,.2,1), visibility 1.2s;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide.active .hero-content { animation: heroFadeUp .9s .3s both; }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroPulse {
    0%, 100% { transform: scale(1); opacity: .5; }
    50%      { transform: scale(1.08); opacity: .8; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(10,28,55,.92) 0%, rgba(26,60,110,.65) 50%, rgba(232,167,35,.15) 100%);
    z-index: 2;
}
/* Animated pattern overlay */
.hero-overlay::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(232,167,35,.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(44,95,158,.12) 0%, transparent 50%);
    animation: heroPulse 6s ease-in-out infinite;
}
/* Decorative floating shapes */
.hero-overlay::after {
    content: ''; position: absolute; top: 10%; right: 5%;
    width: 300px; height: 300px;
    border: 1px solid rgba(232,167,35,.12); border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-content {
    position: absolute; inset: 0; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; padding: 0 20px;
}
.hero-content > div { max-width: 800px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(232,167,35,.4);
    color: var(--accent); padding: 8px 24px; border-radius: 30px; font-size: .82rem;
    font-weight: 600; margin-bottom: 1.2rem; letter-spacing: 1.5px; text-transform: uppercase;
}
.hero-badge i { font-size: .7rem; }
.hero-content h1 {
    font-size: 3.8rem; font-weight: 800; margin-bottom: 1.2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,.3);
    line-height: 1.15;
}
.hero-content h1 .text-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #f0c35c 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content .hero-desc {
    font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem;
    opacity: .85; line-height: 1.7; font-weight: 300;
}
.hero-content p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; opacity: .85; }

/* Hero Buttons */
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn { margin: 0; padding: .75rem 2rem; font-size: .95rem; }
.hero-buttons .btn-primary-custom {
    box-shadow: 0 4px 20px rgba(232,167,35,.4);
}
.hero-buttons .btn-outline-custom {
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    background: rgba(255,255,255,.08);
}

/* Hero Navigation Arrows */
.hero-prev, .hero-next {
    position: absolute; top: 50%; z-index: 5;
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff; font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s ease;
}
.hero-prev { left: 30px; transform: translateY(-50%); }
.hero-next { right: 30px; transform: translateY(-50%); }
.hero-prev:hover, .hero-next:hover {
    background: var(--accent); border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(232,167,35,.4);
}

/* Hero Dots / Controls */
.hero-controls {
    position: absolute; bottom: 40px; z-index: 5;
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 20px;
}
.hero-dots { display: flex; gap: 8px; align-items: center; }
.hero-dots button {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4);
    background: transparent; cursor: pointer;
    transition: all .4s cubic-bezier(.4,0,.2,1); padding: 0;
}
.hero-dots button.active {
    background: var(--accent); border-color: var(--accent);
    width: 32px; border-radius: 5px;
    box-shadow: 0 0 12px rgba(232,167,35,.5);
}
.hero-dots button:hover:not(.active) {
    background: rgba(255,255,255,.4); border-color: rgba(255,255,255,.6);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%);
    z-index: 5; display: flex; flex-direction: column; align-items: center;
    color: rgba(255,255,255,.5); font-size: .7rem; letter-spacing: 2px; text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}
.hero-scroll-indicator .scroll-line {
    width: 1px; height: 40px; background: linear-gradient(180deg, rgba(255,255,255,.5), transparent);
    margin-top: 8px;
}

/* =====================================================
   SECTION COMMON
   ===================================================== */
.section-padding { padding: 80px 0; }
.section-header { margin-bottom: 50px; }
.section-subtitle {
    display: inline-block; color: var(--accent); font-weight: 600;
    font-size: .9rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.section-title { font-size: 2.2rem; color: var(--primary); margin-bottom: 12px; }
.section-desc { color: var(--text-muted); max-width: 650px; margin: 0 auto; }
.bg-light { background: var(--light-bg) !important; }

/* =====================================================
   STATS BAR
   ===================================================== */
.stats-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 0; position: relative; z-index: 10;
    box-shadow: 0 4px 30px rgba(0,0,0,.15);
}
.stat-item { text-align: center; color: #fff; padding: 10px 0; }
.stat-icon { font-size: 1.6rem; color: var(--accent); margin-bottom: 8px; }
.stat-number {
    font-size: 2.6rem; font-weight: 800; margin-bottom: 2px;
    font-family: var(--font-body); line-height: 1;
    background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.7));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-number .stat-suffix { font-size: 1.3rem; }
.stat-label {
    opacity: .75; margin-bottom: 0; font-size: .82rem;
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500;
}

/* =====================================================
   WELCOME SECTION
   ===================================================== */
.welcome-image-grid { position: relative; }
.welcome-img-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.welcome-img-accent {
     bottom: -30px; right: -20px; width: 50%;
    border-radius: var(--radius); overflow: hidden; 
    box-shadow: var(--shadow-lg);
}
.experience-badge {
    position: absolute; top: -20px; left: -20px;
    width: 100px; height: 100px; background: var(--accent); color: #fff;
    border-radius: 50%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.experience-badge .exp-number { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.experience-badge .exp-text { font-size: .65rem; text-transform: uppercase; line-height: 1.3; }
.welcome-feature { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.welcome-feature i { color: var(--accent); font-size: 1.1rem; }

/* =====================================================
   VALUE / FEATURE CARDS
   ===================================================== */
.value-card {
    background: #fff; border-radius: var(--radius); padding: 35px 25px;
    text-align: center; box-shadow: var(--shadow); transition: var(--transition);
    border-bottom: 3px solid transparent; height: 100%;
}
.value-card:hover { transform: translateY(-8px); border-bottom-color: var(--accent); box-shadow: var(--shadow-lg); }
.value-card .value-icon {
    width: 70px; height: 70px; background: rgba(232,167,35,.1); color: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin: 0 auto 20px; transition: var(--transition);
}
.value-card:hover .value-icon { background: var(--accent); color: #fff; transform: scale(1.1); }
.value-card h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 0; }

/* =====================================================
   PROGRAM CARDS
   ===================================================== */
.program-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); height: 100%;
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.program-card { padding: 30px 25px; }
.program-card h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 5px; }
.program-card .program-icon {
    width: 60px; height: 60px; background: var(--primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 15px;
}
.program-classes { color: var(--accent); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.program-link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.program-link:hover { color: var(--accent-dark); gap: 10px; }

/* =====================================================
   FACILITY CARDS
   ===================================================== */
.facility-card {
    background: #fff; border-radius: var(--radius); padding: 30px 20px;
    text-align: center; box-shadow: var(--shadow); transition: var(--transition); height: 100%;
}
.facility-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.facility-card .facility-icon {
    width: 60px; height: 60px; background: rgba(26,60,110,.08); color: var(--primary);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto 18px;
}
.facility-card h4 { font-size: 1.05rem; color: var(--primary); margin-bottom: 8px; }
.facility-card p { color: var(--text-muted); font-size: .88rem; margin-bottom: 0; }

/* =====================================================
   DIRECTOR SECTION
   ===================================================== */
.director-section { background: var(--light-bg); }
.director-quote {
    font-size: 1.1rem; font-style: italic; color: var(--text-dark);
    border-left: 4px solid var(--accent); padding-left: 20px; margin: 20px 0;
}
.director-name-card { font-weight: 700; color: var(--primary); }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-section { background: var(--light-bg); }
.testimonial-card {
    background: #fff; border-radius: var(--radius); padding: 35px 30px;
    box-shadow: var(--shadow); transition: var(--transition); height: 100%;
    position: relative;
}
.testimonial-card::before {
    content: '\201C'; position: absolute; top: 15px; right: 25px;
    font-size: 4rem; color: rgba(232,167,35,.15); font-family: Georgia, serif; line-height: 1;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.testimonial-stars { color: var(--accent); margin-bottom: 15px; font-size: .9rem; letter-spacing: 2px; }
.testimonial-text {
    color: var(--text-dark); font-size: .95rem; line-height: 1.7;
    font-style: italic; margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { font-size: 2.4rem; color: var(--primary); line-height: 1; }
.testimonial-name { font-size: .95rem; color: var(--primary); margin-bottom: 2px; font-family: var(--font-heading); }
.testimonial-role { font-size: .8rem; color: var(--text-muted); }

/* =====================================================
   NEWS CARDS
   ===================================================== */
.news-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); height: 100%;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-image { position: relative; height: 200px; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.news-card:hover .news-image img { transform: scale(1.05); }
.news-badge {
    position: absolute; top: 15px; left: 15px;
    background: var(--accent); color: #fff; padding: 4px 14px;
    border-radius: 20px; font-size: .78rem; font-weight: 600;
}
.news-body { padding: 20px; }
.news-body h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 8px; }
.news-meta { display: flex; gap: 15px; font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }
.news-meta i { color: var(--accent); }
.news-detail-image { max-height: 420px; overflow: hidden; border-radius: 12px; }
.news-detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-detail-content { font-size: 1.02rem; line-height: 1.75; color: var(--text); }
.news-detail-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.news-link { color: var(--accent); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 5px; }
.news-link:hover { color: var(--accent-dark); gap: 8px; }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 80px 0; color: #fff;
}
.cta-content h2 { font-size: 2.4rem; margin-bottom: 15px; }
.cta-content p { font-size: 1.1rem; opacity: .9; margin-bottom: 30px; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   PAGE BANNER (inner pages)
   ===================================================== */
.page-banner {
    height: 320px; position: relative;
    background-size: cover; background-position: center; background-color: var(--primary);
    display: flex; align-items: center;
}
.page-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,42,80,.88) 0%, rgba(26,60,110,.7) 100%);
}
.page-banner-content { position: relative; z-index: 2; color: #fff; }
.page-banner-content h1 { font-size: 2.8rem; margin-bottom: 8px; }
.page-banner .breadcrumb { background: transparent; margin-bottom: 0; flex-wrap: wrap; align-items: center; }
.page-banner .breadcrumb-item { font-size: .95rem; }
.page-banner .breadcrumb-item a { color: var(--accent); text-decoration: none; transition: color .2s; }
.page-banner .breadcrumb-item a:hover { color: #fff; }
.page-banner .breadcrumb-item.active {
    color: #fff; font-weight: 500;
    max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.55); }

/* =====================================================
   ABOUT PAGE
   ===================================================== */
/* Timeline */
.timeline-modern { position: relative; max-width: 900px; margin: 0 auto; padding: 20px 0; }
.timeline-modern::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 3px; background: linear-gradient(to bottom, var(--accent), var(--primary));
    transform: translateX(-50%);
}
.timeline-node {
    position: relative; margin-bottom: 50px; display: flex; align-items: flex-start;
    width: 100%;
}
.timeline-node:nth-child(odd) { flex-direction: row-reverse; }
.timeline-node .tl-panel {
    width: 45%; background: #fff; border-radius: var(--radius); padding: 28px 30px;
    box-shadow: var(--shadow); position: relative; transition: var(--transition);
}
.timeline-node .tl-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.timeline-node:nth-child(odd) .tl-panel { margin-right: 5%; }
.timeline-node:nth-child(even) .tl-panel { margin-left: 5%; }
/* Arrow pointers */
.timeline-node:nth-child(even) .tl-panel::before {
    content: ''; position: absolute; left: -10px; top: 22px;
    border: 10px solid transparent; border-right-color: #fff;
}
.timeline-node:nth-child(odd) .tl-panel::before {
    content: ''; position: absolute; right: -10px; top: 22px;
    border: 10px solid transparent; border-left-color: #fff;
}
.tl-marker {
    position: absolute; left: 50%; top: 22px; transform: translateX(-50%);
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 4px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(232,167,35,.25); z-index: 2;
    transition: var(--transition);
}
.timeline-node:hover .tl-marker { background: var(--accent); transform: translateX(-50%) scale(1.2); }
.tl-year {
    display: inline-block; background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 4px 18px; border-radius: 20px; font-size: .85rem;
    font-weight: 700; margin-bottom: 12px; letter-spacing: .5px;
}
.tl-panel h4 { color: var(--primary); font-size: 1.15rem; margin-bottom: 8px; }
.tl-panel p { color: #666; margin-bottom: 0; font-size: .95rem; line-height: 1.6; }
.tl-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; background: rgba(232,167,35,.12);
    color: var(--accent); font-size: 1rem; margin-bottom: 12px;
}
/* Timeline responsive */
@media (max-width: 768px) {
    .timeline-modern::before { left: 20px; }
    .timeline-node, .timeline-node:nth-child(odd) { flex-direction: row; }
    .timeline-node .tl-panel,
    .timeline-node:nth-child(odd) .tl-panel,
    .timeline-node:nth-child(even) .tl-panel { width: calc(100% - 55px); margin-left: 55px !important; margin-right: 0 !important; }
    .tl-marker { left: 20px; transform: translateX(-50%); }
    .timeline-node:hover .tl-marker { transform: translateX(-50%) scale(1.2); }
    .timeline-node:nth-child(odd) .tl-panel::before,
    .timeline-node:nth-child(even) .tl-panel::before {
        left: -10px; right: auto;
        border: 10px solid transparent; border-right-color: #fff;
    }
}

/* Vision/Mission Cards */
.vm-card {
    background: #fff; border-radius: var(--radius); padding: 40px 30px;
    box-shadow: var(--shadow); height: 100%; transition: var(--transition);
}
.vm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.vm-icon { width: 70px; height: 70px; background: rgba(232,167,35,.1); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px; }
.vm-card h3 { color: var(--primary); margin-bottom: 15px; }

/* Management Cards */
.management-card {
    background: #fff; border-radius: var(--radius); padding: 30px 20px;
    box-shadow: var(--shadow); transition: var(--transition);
}
.management-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.management-img { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 15px; border: 4px solid var(--accent); }
.management-img img { width: 100%; height: 100%; object-fit: cover; }
.management-role { color: var(--accent); font-weight: 600; font-size: .9rem; }

/* Accreditation */
.accreditation-table th { color: var(--primary); font-weight: 600; width: 40%; }
.accreditation-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff; padding: 50px 30px; border-radius: var(--radius); text-align: center;
}
.accreditation-badge i { font-size: 4rem; color: var(--accent); margin-bottom: 15px; }
.accreditation-badge .badge-number { font-size: 1.8rem; font-weight: 700; color: var(--accent); }

/* =====================================================
   ACADEMICS PAGE
   ===================================================== */
.academic-block { margin-bottom: 50px; padding: 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.academic-level-card { text-align: center; padding: 30px 20px; }
.level-icon { width: 80px; height: 80px; background: rgba(232,167,35,.1); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 15px; }
.level-badge { display: inline-block; background: var(--primary); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: .85rem; font-weight: 500; }
.subject-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.subject-tag { background: var(--light-bg); color: var(--primary); padding: 5px 14px; border-radius: 20px; font-size: .82rem; font-weight: 500; border: 1px solid #e0e0e0; }

.stream-card { background: var(--light-bg); border-radius: var(--radius-sm); padding: 20px; height: 100%; }
.stream-card h5 { color: var(--primary); font-size: 1rem; margin-bottom: 12px; }
.stream-card h5 i { color: var(--accent); margin-right: 6px; }
.stream-card ul { padding-left: 0; list-style: none; margin-bottom: 0; }
.stream-card li { padding: 3px 0; font-size: .9rem; color: var(--text-muted); }
.stream-card li::before { content: '•'; color: var(--accent); margin-right: 8px; }

.method-card { background: #fff; border-radius: var(--radius); padding: 30px 20px; box-shadow: var(--shadow); transition: var(--transition); height: 100%; }
.method-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.method-icon { width: 60px; height: 60px; background: rgba(232,167,35,.1); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 15px; }

.calendar-table { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.calendar-table th { color: var(--primary); }

/* =====================================================
   FACULTY PAGE
   ===================================================== */
.faculty-stat { background: #fff; border-radius: var(--radius); padding: 30px 15px; box-shadow: var(--shadow); }
.faculty-stat .stat-number { font-size: 2.4rem; font-weight: 700; color: var(--accent); font-family: var(--font-body); background: none; -webkit-background-clip: unset; -webkit-text-fill-color: var(--accent); background-clip: unset; }
.faculty-stat .stat-label { color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }

.faculty-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); text-align: center;
}
.faculty-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.faculty-img { height: 250px; overflow: hidden; }
.faculty-img img { width: 100%; height: 100%; object-fit: cover; }
.faculty-info { padding: 20px; }
.faculty-info h4 { color: var(--primary); font-size: 1.1rem; margin-bottom: 5px; }
.faculty-designation { color: var(--accent); font-weight: 600; font-size: .88rem; }
.faculty-qual { color: var(--text-muted); font-size: .85rem; margin-top: 8px; margin-bottom: 0; }

.faculty-card-sm {
    background: #fff; border-radius: var(--radius); padding: 20px; text-align: center;
    box-shadow: var(--shadow); transition: var(--transition); height: 100%;
}
.faculty-card-sm:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.faculty-img-sm { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; border: 3px solid var(--accent); }
.faculty-img-sm img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card-sm h5 { color: var(--primary); font-size: .95rem; margin-bottom: 5px; }
.dept-badge { display: inline-block; background: rgba(232,167,35,.1); color: var(--accent); padding: 3px 12px; border-radius: 15px; font-size: .75rem; font-weight: 600; margin-bottom: 8px; }

.faculty-filter, .gallery-filter, .news-filter { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.filter-btn {
    border: 2px solid #dee2e6; background: transparent; color: var(--text-dark);
    padding: 6px 20px; border-radius: 25px; font-size: .88rem; font-weight: 500;
    cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* =====================================================
   ADMISSIONS PAGE
   ===================================================== */
.admission-notice {
    background: linear-gradient(135deg, rgba(232,167,35,.1) 0%, rgba(232,167,35,.05) 100%);
    border: 2px solid var(--accent); border-radius: var(--radius);
    padding: 30px 35px;
}
.admission-notice h2 { color: var(--primary); font-size: 1.6rem; margin-bottom: 10px; }

.process-card {
    background: #fff; border-radius: var(--radius); padding: 35px 20px;
    box-shadow: var(--shadow); transition: var(--transition); height: 100%;
}
.process-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.process-number {
    width: 60px; height: 60px; background: var(--primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 700; margin: 0 auto 20px;
    font-family: var(--font-body);
}
.process-card h4 { color: var(--primary); margin-bottom: 10px; }

.doc-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; }
.doc-item i { color: var(--success); font-size: 1rem; }

.age-table th { color: var(--primary); }
.fee-table-wrapper { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); overflow-x: auto; }
.fee-table thead th { background: var(--primary); color: #fff; font-weight: 600; }
.fee-notes { background: rgba(232,167,35,.08); border-radius: var(--radius-sm); padding: 15px 20px; }
.fee-notes i { margin-right: 6px; }

/* =====================================================
   FACILITIES PAGE
   ===================================================== */
.campus-stat { background: #fff; border-radius: var(--radius); padding: 25px 15px; box-shadow: var(--shadow); }
.campus-stat i { font-size: 2rem; color: var(--accent); margin-bottom: 10px; }
.campus-stat h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 4px; }
.campus-stat p { color: var(--text-muted); font-size: .85rem; margin-bottom: 0; }

.facility-detail { margin-bottom: 60px; }
.facility-detail img { box-shadow: var(--shadow); }
.facility-detail-content { padding: 10px 0; }
.facility-icon-lg { width: 60px; height: 60px; background: rgba(232,167,35,.1); color: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 15px; }
.facility-features { list-style: none; padding: 0; margin-top: 15px; }
.facility-features li { padding: 6px 0; display: flex; align-items: center; gap: 10px; }
.facility-features i { color: var(--success); }

/* =====================================================
   GALLERY PAGE
   ===================================================== */
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gallery-item { overflow: hidden; border-radius: var(--radius); }
.gallery-img { position: relative; height: 250px; overflow: hidden; cursor: pointer; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-img:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15,42,80,.85) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px; color: #fff; opacity: 0; transition: var(--transition);
}
.gallery-img:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { font-size: 1rem; margin-bottom: 2px; }
.gallery-overlay span { font-size: .8rem; opacity: .7; }
.gallery-zoom {
    position: absolute; top: 15px; right: 15px;
    width: 40px; height: 40px; background: rgba(255,255,255,.2); border: none;
    color: #fff; border-radius: 50%; cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
}

.gallery-lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999;
    display: none; align-items: center; justify-content: center; padding: 30px;
}
.gallery-lightbox.active { display: flex; }
.gallery-lightbox img { max-width: 90%; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
}

/* Video Gallery */
.video-card .video-thumb { cursor: pointer; position: relative; }
.video-play-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35);
    color: #fff; font-size: 3rem;
    transition: background .25s ease, transform .25s ease;
}
.video-play-overlay i {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(220, 38, 38, .9);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; padding-left: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
    transition: transform .25s ease, background .25s ease;
}
.video-card:hover .video-play-overlay { background: rgba(0,0,0,.5); }
.video-card:hover .video-play-overlay i { transform: scale(1.1); background: #dc2626; }

.video-lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999;
    display: none; align-items: center; justify-content: center; padding: 30px;
}
.video-lightbox.active { display: flex; }
.video-lightbox-frame { width: 100%; max-width: 960px; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-info-card {
    background: #fff; border-radius: var(--radius); padding: 30px 20px;
    box-shadow: var(--shadow); transition: var(--transition); height: 100%;
}
.contact-info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.contact-info-icon {
    width: 60px; height: 60px; background: rgba(232,167,35,.1); color: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin: 0 auto 15px;
}
.contact-info-card h4 { color: var(--primary); font-size: 1.05rem; margin-bottom: 8px; }
.contact-info-card p { color: var(--text-muted); margin-bottom: 0; }
.contact-info-card a { color: var(--secondary); }
.contact-info-card a:hover { color: var(--accent); }

.contact-form .form-control { border-radius: var(--radius-sm); border-color: #dee2e6; }
.contact-form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(232,167,35,.2); }

.map-wrapper { height: 450px; box-shadow: var(--shadow); }
.map-wrapper iframe { width: 100%; height: 100%; }

/* =====================================================
   ACHIEVEMENTS PAGE
   ===================================================== */
.result-stat { background: #fff; border-radius: var(--radius); padding: 30px 15px; box-shadow: var(--shadow); }
.result-stat .stat-number { font-size: 2.6rem; font-weight: 700; color: var(--accent); display: inline; font-family: var(--font-body); }
.result-stat .stat-suffix { font-size: 1.4rem; color: var(--accent); font-weight: 700; display: inline; }
.result-stat .stat-label { color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

/* Board Result Card -- self-contained, doesn't inherit hero .stat-number gradient */
.board-result-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, .04);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.board-result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--accent); }
.board-result-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 10px; }
.board-result-card__class {
    font-size: .78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--primary);
}
.board-result-card__year {
    font-size: .72rem; font-weight: 600; letter-spacing: .5px;
    color: var(--text-muted); background: rgba(0, 0, 0, .04);
    padding: 3px 10px; border-radius: 999px;
}
.board-result-card__rate { text-align: center; line-height: 1; margin-bottom: 6px; color: var(--primary);
    /* Explicitly reset any inherited gradient text-fill from .stat-number-style hero rules */
    -webkit-text-fill-color: currentColor; background: none; -webkit-background-clip: border-box; background-clip: border-box;
}
.board-result-card__rate-num { font-size: 3.2rem; font-weight: 800; font-family: var(--font-body); }
.board-result-card__rate-pct { font-size: 1.4rem; font-weight: 700; margin-left: 2px; }
.board-result-card__rate-label {
    text-align: center; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.5px; font-size: .75rem; font-weight: 600;
    margin-bottom: 18px;
}
.board-result-card__progress {
    height: 6px; background: rgba(0, 0, 0, .06); border-radius: 999px; overflow: hidden; margin-bottom: 22px;
}
.board-result-card__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
    transition: width .8s ease;
}
.board-result-card__metrics {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; text-align: center;
    border-top: 1px dashed rgba(0, 0, 0, .08); padding-top: 16px;
}
.board-result-card__metrics li { display: flex; flex-direction: column; gap: 2px; }
.board-result-card__metrics .metric-value { font-size: 1.25rem; font-weight: 700; color: var(--text-dark, #1f2937); font-family: var(--font-body); }
.board-result-card__metrics .metric-label { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.board-result-card__highlight {
    margin: 16px 0 0; padding: 12px 14px;
    background: rgba(13, 110, 253, .04); border-left: 3px solid var(--accent);
    border-radius: 6px; color: var(--text-muted); font-size: .85rem; font-style: italic;
}

.topper-card {
    background: #fff; border-radius: var(--radius); padding: 25px 15px;
    box-shadow: var(--shadow); transition: var(--transition);
}
.topper-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.topper-img { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; border: 3px solid var(--accent); }
.topper-img img { width: 100%; height: 100%; object-fit: cover; }
.topper-class { display: block; color: var(--text-muted); font-size: .82rem; margin-bottom: 8px; }
.topper-marks { font-size: 1.6rem; font-weight: 700; color: var(--accent); font-family: var(--font-body); }
.topper-year { font-size: .8rem; color: var(--text-muted); }

.achievement-card {
    background: #fff; border-radius: var(--radius); padding: 30px 20px;
    box-shadow: var(--shadow); transition: var(--transition); height: 100%;
}
.achievement-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.achievement-icon { width: 55px; height: 55px; background: rgba(232,167,35,.1); color: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 15px; }
.achievement-card h4 { color: var(--primary); font-size: 1.05rem; margin-bottom: 8px; }
.achievement-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 0; }

/* =====================================================
   NEWS & EVENTS PAGE
   ===================================================== */
.upcoming-event {
    display: flex; align-items: center; gap: 20px;
    background: #fff; border-radius: var(--radius); padding: 20px 25px;
    box-shadow: var(--shadow); margin-bottom: 15px; transition: var(--transition);
}
.upcoming-event:hover { transform: translateX(5px); box-shadow: var(--shadow-lg); }
.event-date {
    min-width: 70px; text-align: center; background: var(--primary); color: #fff;
    padding: 12px 10px; border-radius: var(--radius-sm);
}
.event-day { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-month { display: block; font-size: .8rem; text-transform: uppercase; opacity: .8; }
.event-info h4 { color: var(--primary); font-size: 1rem; margin-bottom: 5px; }
.event-info p { color: var(--text-muted); font-size: .85rem; margin-bottom: 0; }
.event-info i { color: var(--accent); margin-right: 4px; }

/* =====================================================
   MANDATORY DISCLOSURE
   ===================================================== */
.disclosure-table-wrapper { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); overflow-x: auto; }
.disclosure-table th:first-child { width: 30px; color: var(--accent); }
.disclosure-table th:nth-child(2) { width: 35%; color: var(--primary); }
.disclosure-list { list-style: none; padding: 0; }
.disclosure-list li { padding: 8px 0; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f0f0f0; }

/* =====================================================
   PRIVACY PAGE
   ===================================================== */
.privacy-content h2 { color: var(--primary); margin-bottom: 8px; }
.privacy-content h3 { color: var(--primary); font-size: 1.2rem; margin-top: 30px; margin-bottom: 10px; }
.privacy-content ul { padding-left: 20px; }
.privacy-content li { padding: 3px 0; }

/* ---- Dropdown menu — modern card style ---- */
.dropdown-menu {
    border: none;
    box-shadow: 0 12px 40px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.04);
    border-radius: 16px;
    padding: 8px;
    animation: dropIn .3s cubic-bezier(.16,1,.3,1);
    min-width: 230px;
    margin-top: 8px !important;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,.04);
}
/* Top arrow nub */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px; left: 24px;
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 2px;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0,0,0,.04);
    border-left: 1px solid rgba(0,0,0,.04);
}
.dropdown-menu-end::before { left: auto; right: 24px; }

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-12px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-item {
    padding: .6rem 1rem;
    font-size: .88rem;
    transition: all .2s ease;
    border-radius: 10px;
    color: #4a5568;
    font-weight: 450;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: linear-gradient(135deg, rgba(26,60,110,.06) 0%, rgba(232,167,35,.06) 100%);
    color: var(--primary);
    padding-left: 1rem;
    transform: translateX(4px);
}
.dropdown-item:active { background: rgba(26,60,110,.1); }
.dropdown-item.active {
    background: linear-gradient(135deg, rgba(26,60,110,.06) 0%, rgba(232,167,35,.08) 100%);
    color: var(--primary);
    font-weight: 600;
}
.dropdown-item i { font-size: .8rem; width: 18px; text-align: center; color: var(--accent); }

.dropdown-divider {
    margin: 4px 12px;
    border-color: rgba(0,0,0,.06);
}

/* Dropdown header label inside dropdown */
.dropdown-menu .dropdown-header {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--accent); padding: .6rem 1rem .3rem; margin-top: .25rem;
}

/* Mobile nav section titles */
.mobile-nav-section-title {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
    color: var(--accent); padding: 20px 1.5rem 8px; margin: 0; list-style: none;
    border-top: 1px solid rgba(0,0,0,.05);
}
.mobile-nav-section-title:first-of-type { border-top: none; padding-top: 12px; }
.mobile-nav-list li.mobile-nav-section-title + li .mobile-nav-link { padding-top: 6px; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--dark-bg); color: rgba(255,255,255,.7); padding-top: 70px;
}
/* Footer brand — readable on dark background */
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tagline { color: var(--accent); }
.site-footer .brand-icon.brand-icon-logo {
    width: 52px; height: 52px;
    background: #fff;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.footer-widget h4 { color: #fff; font-size: 1.15rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-widget h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--accent); }
.footer-widget p { font-size: .9rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { padding: 5px 0; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.footer-links a::before { content: '›'; color: var(--accent); font-weight: 700; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

.footer-contact li { display: flex; gap: 12px; padding: 8px 0; font-size: .9rem; }
.footer-contact i { color: var(--accent); margin-top: 4px; width: 16px; }
.footer-contact a { color: rgba(255,255,255,.7); }
.footer-contact a:hover { color: var(--accent); }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0; margin-top: 50px; font-size: .85rem;
}
.footer-bottom a { color: var(--accent); }

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--accent); color: #fff; border: none;
    font-size: 1.1rem; cursor: pointer; z-index: 999;
    opacity: 0; visibility: hidden; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(232,167,35,.4);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--dark-bg);
    color: #fff;
    padding: 16px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease-out;
}
.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-text { flex: 1; font-size: 0.9rem; line-height: 1.5; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.6);
    color: #fff;
}
.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: #333;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; visibility: visible; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
    .hero-section { height: 75vh; min-height: 500px; }
    .hero-content h1 { font-size: 2.6rem; }
    .hero-prev, .hero-next { width: 42px; height: 42px; font-size: .9rem; }
    .hero-prev { left: 15px; }
    .hero-next { right: 15px; }
    .section-title { font-size: 1.8rem; }
    .page-banner { height: 250px; }
    .page-banner-content h1 { font-size: 2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .top-bar .top-social { justify-content: flex-start; margin-top: 5px; }
}

@media (max-width: 767.98px) {
    .hero-section { height: 65vh; min-height: 450px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p, .hero-content .hero-desc { font-size: .95rem; }
    .hero-prev, .hero-next { width: 36px; height: 36px; font-size: .8rem; }
    .hero-prev { left: 10px; }
    .hero-next { right: 10px; }
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn { padding: .6rem 1.4rem; font-size: .85rem; }
    .hero-overlay::after { display: none; }
    .hero-scroll-indicator { display: none; }
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 1.5rem; }
    .section-header { margin-bottom: 30px; }
    .cta-content h2 { font-size: 1.8rem; }
    .page-banner { height: 200px; }
    .page-banner-content h1 { font-size: 1.6rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .welcome-img-accent { position: static; width: 100%; margin-top: 15px; border: none; }
    .experience-badge { position: static; margin: 0 auto 15px; }
    .stat-number { font-size: 1.8rem; }
    .admission-notice { padding: 20px; }
    .top-bar { display: none; }
}

/* =====================================================
   ALUMNI INFINITE SCROLL CAROUSEL
   ===================================================== */
.alumni-section { overflow: hidden; }
.alumni-scroll-wrapper { overflow: hidden; width: 100%; position: relative; }
.alumni-scroll-track {
    display: flex;
    gap: 24px;
    animation: alumniScroll 30s linear infinite;
    width: max-content;
    padding: 8px 0 16px;
}
.alumni-scroll-card { flex: 0 0 260px; min-width: 260px; }
.alumni-scroll-card .card { border-radius: 16px; transition: transform .3s, box-shadow .3s; }
.alumni-scroll-card .card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.alumni-scroll-wrapper:hover .alumni-scroll-track { animation-play-state: paused; }

@keyframes alumniScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 576px) {
    .alumni-scroll-card { flex: 0 0 220px; min-width: 220px; }
    .alumni-scroll-track { gap: 16px; }
}

/* Alumni Profile Cards (Alumni Page) */
.alumni-profile-card { border-radius: 16px; transition: transform .3s, box-shadow .3s; overflow: hidden; }
.alumni-profile-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }