/* ==========================================================================
   RVIT ELITE TEMPLATE (body.rvit-elite)
   Uniform cinematic look for every public page except the admissions,
   alumni and fee-payment portals.
     1. Cinematic navy inner hero + motion graphics
     2. 3D gyroscope stage around the hero dossier
     3. Content motion system (cards, titles, images)
     4. Page-to-page transitions
     5. Mobile + reduced-motion + dark parity
   Everything animates transform/opacity only (GPU), and pauses offscreen.
   ========================================================================== */

/* ---------- 1. Cinematic Navy Hero + Frosted Glass Card --------------------- */
html body.rvit-elite.spiral-notebook-theme :is(.gold-hero, .dept-hero, .recognitions-hero, .admission-hero, .exam-hero,
    .club-hero, .placement-hero, .research-hero, .student-hero, .dc-hero,
    .finder-hero, .predictor-hero, .jvd-hero, .comp-hero, .guide-hero, .eapcet-hero,
    .rvit-elite-hero) {
    color: #ffffff !important;
    background-color: #081226 !important;
    background-image:
        radial-gradient(ellipse 55% 70% at 10% 15%, rgba(35, 66, 122, 0.26), transparent 70%),
        radial-gradient(ellipse 48% 70% at 86% 30%, rgba(251, 191, 36, 0.18), transparent 68%),
        linear-gradient(115deg, #081226 0%, #102040 48%, #162b54 76%, #0c1830 100%) !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: clamp(230px, 31vh, 325px) !important;
    padding: clamp(1.1rem, 2.2vw, 1.75rem) 0 !important;
    border-radius: 0 !important;
}

/* Keep hero content above particle canvas and prevent pre-upgrade white-pill flash */
html body.rvit-elite.spiral-notebook-theme :is(.gold-hero, .dept-hero, .recognitions-hero, .admission-hero, .exam-hero,
    .club-hero, .placement-hero, .research-hero, .student-hero, .dc-hero,
    .finder-hero, .predictor-hero, .jvd-hero, .comp-hero, .guide-hero, .eapcet-hero,
    .rvit-elite-hero)>.container {
    position: relative;
    z-index: 2;
}

html body.rvit-elite.spiral-notebook-theme :is(.gold-hero, .dept-hero, .recognitions-hero, .admission-hero, .exam-hero,
    .club-hero, .placement-hero, .research-hero, .student-hero, .dc-hero,
    .finder-hero, .predictor-hero, .jvd-hero, .comp-hero, .guide-hero, .eapcet-hero,
    .rvit-elite-hero) .bg-white.text-dark {
    background: rgba(251, 191, 36, 0.12) !important;
    color: #fde68a !important;
    border: 1px solid rgba(251, 191, 36, 0.32) !important;
}

/* Architectural grid that slowly drifts (transform on an oversized layer) */
html body.rvit-elite.spiral-notebook-theme :is(.gold-hero, .dept-hero, .recognitions-hero, .admission-hero, .exam-hero,
    .club-hero, .placement-hero, .research-hero, .student-hero, .dc-hero,
    .finder-hero, .predictor-hero, .jvd-hero, .comp-hero, .guide-hero, .eapcet-hero,
    .rvit-elite-hero)::before {
    inset: -56px 0 0 -56px !important;
    width: calc(100% + 56px) !important;
    height: calc(100% + 56px) !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 56px 56px !important;
    mask-image: radial-gradient(ellipse 75% 85% at 40% 45%, #000 25%, transparent 85%) !important;
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at 40% 45%, #000 25%, transparent 85%) !important;
    animation: rvitEliteGrid 26s linear infinite !important;
    will-change: transform;
}

@keyframes rvitEliteGrid {
    to {
        transform: translate3d(56px, 56px, 0);
    }
}

/* Flowing gold hairline */
html body.rvit-elite.spiral-notebook-theme :is(.gold-hero, .dept-hero, .recognitions-hero, .admission-hero, .exam-hero,
    .club-hero, .placement-hero, .research-hero, .student-hero, .dc-hero,
    .finder-hero, .predictor-hero, .jvd-hero, .comp-hero, .guide-hero, .eapcet-hero,
    .rvit-elite-hero)::after {
    height: 2px !important;
    background: linear-gradient(90deg, transparent, #f59e0b 25%, #fde68a 50%, #f59e0b 75%, transparent) !important;
    background-size: 200% 100% !important;
    animation: rvitEliteLine 7s linear infinite;
}

@keyframes rvitEliteLine {
    to {
        background-position: -200% 0;
    }
}

/* Aurora glow layer (injected by rvit-elite.js) */
.rvit-elite-aurora {
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(420px circle at 75% 40%, rgba(251, 191, 36, 0.16), transparent 70%),
        radial-gradient(480px circle at 20% 30%, rgba(56, 189, 248, 0.12), transparent 72%);
    animation: rvitEliteAurora 14s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes rvitEliteAurora {
    0% {
        transform: translate3d(-3%, 0, 0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate3d(3%, -2%, 0) scale(1.08);
        opacity: 1;
    }
}

/* Typography on navy */
html body.rvit-elite.spiral-notebook-theme :is(.gold-hero, .dept-hero, .recognitions-hero, .admission-hero, .exam-hero,
    .club-hero, .placement-hero, .research-hero, .student-hero, .dc-hero,
    .finder-hero, .predictor-hero, .jvd-hero, .comp-hero, .guide-hero, .eapcet-hero,
    .rvit-elite-hero) h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 30px rgba(8, 18, 38, 0.5) !important;
}

html body.rvit-elite.spiral-notebook-theme :is(.gold-hero, .dept-hero, .recognitions-hero, .admission-hero, .exam-hero,
    .club-hero, .placement-hero, .research-hero, .student-hero, .dc-hero,
    .finder-hero, .predictor-hero, .jvd-hero, .comp-hero, .guide-hero, .eapcet-hero,
    .rvit-elite-hero) h1 :is(span, .text-warning):not(.portal-live-pill):not(.portal-live-pill *) {
    color: #fbbf24 !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(100deg, #fbbf24, #fde68a 45%, #f59e0b) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

html body.rvit-elite.spiral-notebook-theme :is(.gold-hero, .dept-hero, .recognitions-hero, .admission-hero, .exam-hero,
    .club-hero, .placement-hero, .research-hero, .student-hero, .dc-hero,
    .finder-hero, .predictor-hero, .jvd-hero, .comp-hero, .guide-hero, .eapcet-hero,
    .rvit-elite-hero) :is(p, .lead) {
    color: #cbd5e1 !important;
}

html body.rvit-elite.spiral-notebook-theme :is(.gold-hero, .dept-hero, .recognitions-hero, .admission-hero, .exam-hero,
    .club-hero, .placement-hero, .research-hero, .student-hero, .dc-hero,
    .finder-hero, .predictor-hero, .jvd-hero, .comp-hero, .guide-hero, .eapcet-hero,
    .rvit-elite-hero) :is(.gold-hero-badge, .exam-hero-badge, .poly-hero-badge, .dc-hero-badge, .finder-badge, .comp-badge, .guide-badge, .rvit-3d-hero-kicker, .badge) {
    color: #fde68a !important;
    background: rgba(251, 191, 36, 0.1) !important;
    border: 1px solid rgba(251, 191, 36, 0.32) !important;
    box-shadow: 0 0 24px -8px rgba(251, 191, 36, 0.45) !important;
    backdrop-filter: blur(6px);
}

html body.rvit-elite.spiral-notebook-theme :is(.text-warning, .text-gold) {
    --rvit-hero-gold: #fbbf24;
}

html body.rvit-elite.spiral-notebook-theme :is(.gold-hero, .dept-hero, .recognitions-hero, .admission-hero, .exam-hero,
    .club-hero, .placement-hero, .research-hero, .student-hero, .dc-hero,
    .finder-hero, .predictor-hero, .jvd-hero, .comp-hero, .guide-hero, .eapcet-hero) .text-warning {
    color: #fbbf24 !important;
}

body.rvit-elite .rvit-3d-hero-breadcrumb,
body.rvit-elite .rvit-3d-hero-breadcrumb a,
body.rvit-elite :is(.gold-hero, .recognitions-hero) nav[aria-label="Breadcrumb"] a {
    color: #94a3b8 !important;
}

body.rvit-elite .rvit-3d-hero-breadcrumb [aria-current="page"] {
    color: #e2e8f0 !important;
}

body.rvit-elite .rvit-3d-hero-breadcrumb a:hover {
    color: #fde68a !important;
}

body.rvit-elite :is(.gold-hero, .dc-hero) :is(.hero-floating-btn, .btn-outline-light, .rvit-3d-hero-btn-secondary) {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: none !important;
}

body.rvit-elite :is(.gold-hero, .dc-hero) :is(.co-stat-item, .poly-stat-card) {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(8px);
}

body.rvit-elite :is(.gold-hero, .dc-hero) :is(.co-stat-number, .poly-stat-num) {
    color: #fbbf24 !important;
}

body.rvit-elite :is(.gold-hero, .dc-hero) :is(.co-stat-label, .poly-stat-label) {
    color: #cbd5e1 !important;
}

body.rvit-elite .dc-hero .dc-tag {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #f1f5f9 !important;
}

/* Hero copy enters in a quick stagger (transform only: never invisible) */
body.rvit-elite .rvit-3d-hero-copy>* {
    animation: rvitEliteRise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.rvit-elite .rvit-3d-hero-copy>*:nth-child(2) {
    animation-delay: 0.05s;
}

body.rvit-elite .rvit-3d-hero-copy>*:nth-child(3) {
    animation-delay: 0.1s;
}

body.rvit-elite .rvit-3d-hero-copy>*:nth-child(4) {
    animation-delay: 0.15s;
}

body.rvit-elite .rvit-3d-hero-copy>*:nth-child(n+5) {
    animation-delay: 0.2s;
}

@keyframes rvitEliteRise {
    from {
        transform: translate3d(0, 14px, 0);
    }

    to {
        transform: none;
    }
}

/* the hero h1/p carry data-aos from the old template: keep them visible */
body.rvit-elite :is(.gold-hero, .recognitions-hero) [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* ---------- 2. 3D gyroscope stage ------------------------------------------ */
/* The stage stays flat: the gyroscope is its own 3D layer *behind* the card.
   (A shared 3D context let the tilted ring plane slice through the card.) */
body.rvit-elite .rvit-3d-hero-stage {
    transform-style: flat !important;
    isolation: isolate;
}

body.rvit-elite .rvit-3d-hero-stage .rvit-gyro {
    z-index: 0;
}

body.rvit-elite .rvit-3d-hero-stage .rvit-3d-hero-dossier {
    z-index: 2;
}

body.rvit-elite .rvit-3d-hero-stage::before {
    width: min(92%, 360px) !important;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.16) 0%, rgba(25, 49, 94, 0.55) 45%, transparent 70%) !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: blur(2px);
    animation: rvitElitePulse 6s ease-in-out infinite;
}

@keyframes rvitElitePulse {
    50% {
        transform: scale(1.08);
        opacity: 0.75;
    }
}

.rvit-gyro {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    transform: rotateX(64deg) rotateZ(-18deg);
    pointer-events: none;
}

.rvit-gyro-ring {
    position: absolute;
    left: calc(var(--d) / -2);
    top: calc(var(--d) / -2);
    width: var(--d);
    height: var(--d);
    border-radius: 50%;
    border: 1.5px solid rgba(251, 191, 36, 0.55);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.18), inset 0 0 18px rgba(251, 191, 36, 0.08);
    transform-style: preserve-3d;
    animation: rvitGyroSpin var(--t) linear infinite;
}

.rvit-gyro-ring:nth-child(1) {
    --d: 360px;
    --t: 22s;
}

.rvit-gyro-ring:nth-child(2) {
    --d: 300px;
    --t: 16s;
    border-color: rgba(56, 189, 248, 0.45);
    transform: rotateY(62deg);
    animation-name: rvitGyroSpinB;
}

.rvit-gyro-ring:nth-child(3) {
    --d: 410px;
    --t: 34s;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.18);
    transform: rotateX(28deg);
    animation-name: rvitGyroSpinC;
}

.rvit-gyro-node {
    position: absolute;
    top: -6px;
    left: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff7d6, #fbbf24 55%, #b45309);
    box-shadow: 0 0 16px 4px rgba(251, 191, 36, 0.55);
    transform: rotateX(-64deg);
}

.rvit-gyro-ring:nth-child(2) .rvit-gyro-node {
    background: radial-gradient(circle at 35% 35%, #e0f2fe, #38bdf8 55%, #0369a1);
    box-shadow: 0 0 16px 4px rgba(56, 189, 248, 0.5);
}

.rvit-gyro-ring:nth-child(3) .rvit-gyro-node {
    width: 8px;
    height: 8px;
    top: -4px;
    left: calc(50% - 4px);
    background: #fff;
}

@keyframes rvitGyroSpin {
    to {
        transform: rotateZ(360deg);
    }
}

@keyframes rvitGyroSpinB {
    from {
        transform: rotateY(62deg) rotateZ(0);
    }

    to {
        transform: rotateY(62deg) rotateZ(-360deg);
    }
}

@keyframes rvitGyroSpinC {
    from {
        transform: rotateX(28deg) rotateZ(0);
    }

    to {
        transform: rotateX(28deg) rotateZ(360deg);
    }
}

/* The dossier floats (individual `translate` composes with the pointer tilt) */
body.rvit-elite .rvit-3d-hero-dossier {
    animation: rvitEliteFloat 6.5s ease-in-out infinite;
    border-color: rgba(251, 191, 36, 0.35) !important;
    box-shadow:
        0 40px 70px -25px rgba(0, 0, 0, 0.7),
        0 0 60px -18px rgba(251, 191, 36, 0.45),
        inset 5px 0 rgba(251, 191, 36, 0.88),
        inset 9px 0 rgba(255, 255, 255, 0.05) !important;
}

@keyframes rvitEliteFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -12px;
    }
}

/* Sheen sweeping across the dossier cover */
body.rvit-elite .rvit-3d-hero-dossier::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.14) 48%, transparent 60%);
    background-size: 250% 100%;
    animation: rvitEliteSheen 5.5s ease-in-out infinite;
    pointer-events: none;
    transform: translateZ(20px);
}

@keyframes rvitEliteSheen {

    0%,
    55% {
        background-position: 130% 0;
    }

    100% {
        background-position: -130% 0;
    }
}

/* Paused while the hero is offscreen (class set by rvit-elite.js) */
.rvit-elite-paused,
.rvit-elite-paused *,
.rvit-elite-paused::before,
.rvit-elite-paused::after {
    animation-play-state: paused !important;
}

/* ---------- 3. Content architecture & motion system ------------------------- */
body.rvit-elite .site-main-content {
    position: relative;
}

/* VNRVJIET-inspired clean editorial headings in RVIT Oxford Navy & Regal Gold */
html[data-rvit-home="0"] body.rvit-elite .section-card::after {
    display: none !important;
}

/* Section titles: crisp 4px left Regal Gold bar + inline icon (no bulky 46px box) */
html[data-rvit-home="0"] body.rvit-elite .section-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    font-size: clamp(1.22rem, 1.8vw, 1.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #102040 !important;
    border: 0 !important;
    border-left: 4px solid #f59e0b !important;
    padding: 2px 0 2px 14px !important;
    margin-bottom: 1.35rem !important;
}

html[data-rvit-home="0"] body.rvit-elite .section-title>i:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
    color: #b45309 !important;
    -webkit-text-fill-color: #b45309;
    font-size: 1.08rem;
}

/* Ensure section titles inside dark/navy containers stay crisp white with gold accent */
html[data-rvit-home="0"] body.rvit-elite :is(.bg-navy, .bg-dark, .bg-primary:not(.badge), .dark-section, .tp-leader-card,
    .rvit-leader-card, .overview-cta-box, .premium-contact,
    [style*="linear-gradient"][style*="#0"], [style*="background-color: #0"]) .section-title,
html[data-rvit-home="0"] body.rvit-elite .section-title.text-white {
    color: #ffffff !important;
    border-left-color: #fbbf24 !important;
}

html[data-rvit-home="0"] body.rvit-elite :is(.bg-navy, .bg-dark, .bg-primary:not(.badge), .dark-section, .tp-leader-card,
    .rvit-leader-card, .overview-cta-box, .premium-contact,
    [style*="linear-gradient"][style*="#0"], [style*="background-color: #0"]) .section-title>i:first-child,
html[data-rvit-home="0"] body.rvit-elite .section-title.text-white>i:first-child {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24 !important;
}

/* Images inside content gently zoom on hover */
body.rvit-elite .section-card img:not([class*="logo"]):not([width="16"]):not([width="20"]) {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    body.rvit-elite .section-card :is(.carousel-item, figure, .img-wrap, .rounded-4, .rounded-3):hover>img {
        transform: scale(1.035);
    }
}

/* Primary buttons: moving sheen */
body.rvit-elite :is(.btn-warning, .btn-gold, .rvit-3d-hero-btn-primary) {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

body.rvit-elite :is(.btn-warning, .btn-gold, .rvit-3d-hero-btn-primary)::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

body.rvit-elite :is(.btn-warning, .btn-gold, .rvit-3d-hero-btn-primary):hover::after {
    transform: translateX(120%);
}

/* Sidebar active link: animated gold bar */
body.rvit-elite .sidebar-link {
    position: relative;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

body.rvit-elite .sidebar-link:hover {
    padding-left: calc(var(--bs-gutter-x, 0px) + 1.1rem);
}

/* Elite page frame for pages with no hero (built by rvit-elite.js) */
.rvit-elite-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.rvit-elite-hero>.container {
    position: relative;
    z-index: 2;
}

.rvit-elite-hero h1 {
    margin: 0 0 0.6rem;
    font-family: var(--rvit-font-head);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.rvit-elite-hero .rvit-3d-hero-kicker {
    margin-bottom: 0.9rem;
}

/* ---------- 4. Page-to-page transitions (Chromium; no-op elsewhere) -------- */
@view-transition {
    navigation: auto;
}

body.rvit-elite #rvit-header-wrapper {
    view-transition-name: rvit-header;
}

::view-transition-old(root) {
    animation: rvitVtOut 0.18s ease both;
}

::view-transition-new(root) {
    animation: rvitVtIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rvitVtOut {
    to {
        opacity: 0;
    }
}

@keyframes rvitVtIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

/* ---------- 5. Mobile, reduced motion, dark parity --------------------------- */
@media (max-width: 900px) {
    body.rvit-elite .rvit-3d-hero-stage {
        min-height: 250px !important;
    }

    body.rvit-elite .rvit-3d-hero-dossier {
        scale: 0.86;
    }

    .rvit-gyro {
        transform: rotateX(64deg) rotateZ(-18deg) scale(0.72);
    }
}

@media (max-width: 575px) {
    body.rvit-elite :is(.gold-hero, .recognitions-hero) {
        padding: 2rem 0 2.2rem !important;
    }

    body.rvit-elite .rvit-3d-hero-stage {
        min-height: 220px !important;
    }

    .rvit-gyro-ring:nth-child(3) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    body.rvit-elite *,
    body.rvit-elite *::before,
    body.rvit-elite *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

html[data-theme="dark"] body.rvit-elite :is(.gold-hero, .dept-hero, .recognitions-hero, .admission-hero, .exam-hero,
    .club-hero, .placement-hero, .research-hero, .student-hero, .dc-hero,
    .finder-hero, .predictor-hero, .jvd-hero, .comp-hero, .guide-hero, .eapcet-hero,
    .rvit-elite-hero) {
    background-color: #081226 !important;
    background-image:
        radial-gradient(ellipse 55% 70% at 10% 15%, rgba(56, 189, 248, 0.1), transparent 70%),
        radial-gradient(ellipse 48% 70% at 86% 30%, rgba(251, 191, 36, 0.13), transparent 68%),
        linear-gradient(115deg, #040c1c 0%, #081733 50%, #050f22 100%) !important;
    background-size: 100% 100% !important;
    background-position: center !important;
}

/* Custom-hero pages moved onto the elite hero: keep small labels readable */
body.rvit-elite .rvit-elite-hero :is([class*="kicker"], [class*="eyebrow"], [class*="pill"]):not(.rvit-gyro *) {
    color: #fde68a !important;
    border-color: rgba(251, 191, 36, 0.32) !important;
    background-color: rgba(251, 191, 36, 0.1) !important;
}

body.rvit-elite .rvit-elite-hero :is(.text-dark, .text-navy, .text-secondary, .text-muted):not(.btn):not(.badge) {
    color: #cbd5e1 !important;
}

/* Faint contextual campus photo behind every hero (set by rvit-elite.js) */
.rvit-elite-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center 40%;
    opacity: 0.16;
    filter: saturate(0.7);
    -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 60%);
    mask-image: linear-gradient(100deg, transparent 15%, #000 60%);
    animation: rvitElitePhotoDrift 30s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes rvitElitePhotoDrift {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.12) translate3d(-1.5%, -1%, 0);
    }
}

@media (max-width: 900px) {
    .rvit-elite-photo {
        opacity: 0.12;
        -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 75%);
        mask-image: linear-gradient(180deg, transparent 20%, #000 75%);
    }
}

/* ---------- 6. Mobile overflow guards ---------------------------------------- */
/* (body already clips sideways overflow in rvit-design-system.css; html is left alone on purpose) */

@media (max-width: 767px) {

    /* long badges wrap instead of running off-screen (Buildathon, BuildX) */
    body.rvit-elite .badge {
        white-space: normal;
        max-width: 100%;
        text-align: left;
        line-height: 1.35;
    }

    /* long e-mail addresses and URLs break */
    body.rvit-elite :is(a[href^="mailto:"], a[href^="http"], .email-link-highlight) {
        overflow-wrap: anywhere;
    }

    /* wide tables get a scroll wrapper from rvit-elite.js */
    body.rvit-elite .nav-tabs {
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    body.rvit-elite .content-area {
        min-width: 0;
    }
}

.rvit-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Phones: side-slide reveals start below instead of 100px off-screen,
   which widened pages such as startup-policies before they revealed. */
@media (max-width: 767px) {
    body.rvit-elite :is([data-aos*="left"], [data-aos*="right"]):not(.aos-animate):not(.is-revealed):not(.rvit-revealed) {
        transform: translate3d(0, 10px, 0) !important;
    }
}

/* ---------- 7. Clean Editorial Content Architecture (All Inner Pages) -------- */
/* Open, unboxed editorial canvas inspired by VNRVJIET — strictly using RVIT Navy & Gold */
html[data-rvit-home="0"] body.rvit-elite {
    background-color: #ffffff !important;
    background-image: none !important;
}

html[data-rvit-home="0"] body.rvit-elite .dept-layout {
    max-width: 1320px !important;
    margin: 0 auto 3.5rem !important;
    padding: 0 16px !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area {
    padding-top: 0.75rem !important;
}

/* Remove full-block outer card wrappers so sections & tabbed views breathe directly on the open canvas (no divider lines) */
html[data-rvit-home="0"] body.rvit-elite .section-card:not(.bg-navy):not(.p-0),
html[data-rvit-home="0"] body.rvit-elite .content-area> :is(.committees-section, .approvals-section, .admin-structure-section, .courses-offered-section, .amenities-section),
html[data-rvit-home="0"] body.rvit-elite .content-area .tab-content-wrapper {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 2.5rem !important;
    overflow: visible !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area .tab-content-wrapper {
    margin-bottom: 0 !important;
}

html[data-rvit-home="0"] body.rvit-elite .section-card.p-0:not(.bg-navy) {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 2.5rem !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area>.section-card:last-of-type,
html[data-rvit-home="0"] body.rvit-elite .content-area>.section-card:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove horizontal divider lines between inner content blocks */
html[data-rvit-home="0"] body.rvit-elite .content-area hr {
    display: none !important;
}

/* Site-Wide Zero Hover-Shake Lock for Inner Pages (outer containers, tabs, and content cards stay stationary) */
html[data-rvit-home="0"] body.rvit-elite :is(.sidebar:not(.is-docked), .section-card, .tab-content, .tab-pane, .tab-content-wrapper,
    .committees-section, .approvals-section, .admin-structure-section,
    .courses-offered-section, .amenities-section),
html[data-rvit-home="0"] body.rvit-elite :is(.sidebar:not(.is-docked), .section-card, .tab-content, .tab-pane, .tab-content-wrapper,
    .committees-section, .approvals-section, .admin-structure-section,
    .courses-offered-section, .amenities-section):hover,
html[data-rvit-home="0"] body.rvit-elite :is(.sidebar:not(.is-docked), .section-card, .tab-content, .tab-pane, .tab-content-wrapper,
    .committees-section, .approvals-section, .admin-structure-section,
    .courses-offered-section, .amenities-section):focus-within {
    transform: none !important;
    transform-style: flat !important;
    will-change: auto !important;
}

html[data-rvit-home="0"] body.rvit-elite .section-card:not(.bg-navy):hover {
    transform: none !important;
    box-shadow: none !important;
}

html[data-rvit-home="0"] body.rvit-elite :is(.section-card, .content-area) :hover .section-title i,
html[data-rvit-home="0"] body.rvit-elite .section-card:hover .section-title i {
    transform: none !important;
}

/* Keep compact inner grid items clean, flat, and hairline-bordered across ALL inner content (no hover jump or 3D tilt) */
html[data-rvit-home="0"] body.rvit-elite .content-area :is(.distinction-card, .overview-emblem-card, .feature-box, .feature-card, .info-card,
    .stat-card, .benefit-card, .service-card, .placement-card, .company-card,
    .material-card, .dept-card, .link-card, .resource-card, .faculty-card, .lab-card,
    .overview-card, .syllabus-card, .program-card, .event-card, .sac-card, .club-card,
    .facility-card, .process-step, .profile-card, .consultancy-feature-card, .gold-badge-card,
    .tp-feature-box, .tp-strategy-card, .tp-team-card, .tp-testi-card, .tp-dept-card, .tp-affil-card,
    .poly-stat-card, .co-stat-item, .rvit-3d-metric-card, .rvit-spotlight-card, .rvit-spotlight-card-dark,
    .rvit-tilt-card, .rvit-3d-card, .r-card, .ts-card, .cr-accred-card, .aq-cc, .plc-stat-card,
    .sticky-note, .sticky-note-card, .polaroid-clip, .admission-note-card, .card:not(.bg-navy)) {
    border-radius: 10px !important;
    box-shadow: none !important;
    border: 1px solid rgba(16, 32, 64, 0.1) !important;
    background: #f8fafc !important;
    transform: none !important;
    transform-style: flat !important;
    transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area :is(.distinction-card, .overview-emblem-card, .feature-box, .feature-card, .info-card,
    .stat-card, .benefit-card, .service-card, .placement-card, .company-card,
    .material-card, .dept-card, .link-card, .resource-card, .faculty-card, .lab-card,
    .overview-card, .syllabus-card, .program-card, .event-card, .sac-card, .club-card,
    .facility-card, .process-step, .profile-card, .consultancy-feature-card, .gold-badge-card,
    .tp-feature-box, .tp-strategy-card, .tp-team-card, .tp-testi-card, .tp-dept-card, .tp-affil-card,
    .poly-stat-card, .co-stat-item, .rvit-3d-metric-card, .rvit-spotlight-card, .rvit-spotlight-card-dark,
    .rvit-tilt-card, .rvit-3d-card, .r-card, .ts-card, .cr-accred-card, .aq-cc, .plc-stat-card,
    .sticky-note, .sticky-note-card, .polaroid-clip, .admission-note-card, .card:not(.bg-navy)):is(:hover, :focus-within) {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(245, 158, 11, 0.55) !important;
    background: #ffffff !important;
}

/* Unify multi-color nested icon chips & list checkmarks into consistent RVIT Navy & Gold */
html[data-rvit-home="0"] body.rvit-elite .content-area :is(.distinction-icon, .feature-box-icon) {
    background: rgba(16, 32, 64, 0.06) !important;
    color: #b45309 !important;
    border: 1px solid rgba(16, 32, 64, 0.08) !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area ul li>i.fa-check-circle.text-warning,
html[data-rvit-home="0"] body.rvit-elite .content-area ul li>i.fa-check.text-warning,
html[data-rvit-home="0"] body.rvit-elite .content-area ol li>i.fa-check-circle.text-warning {
    color: #b45309 !important;
}

/* Clean Editorial Callouts & Intro Blocks */
html[data-rvit-home="0"] body.rvit-elite .content-area :is(.alert-light, .intro-box, .quote-box) {
    border: 0 !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 0 8px 8px 0 !important;
    background: rgba(251, 191, 36, 0.07) !important;
    box-shadow: none !important;
}

/* Clean Capsule Tabs (.nav-tabs & .nav-pills) & Unboxed Tab Content */
html[data-rvit-home="0"] body.rvit-elite .content-area :is(.nav-tabs, .nav-pills) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
    gap: 8px !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area .tab-content {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0.25rem 0 0 !important;
    margin-top: 0 !important;
    animation: none !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area :is(.nav-tabs, .nav-pills) .nav-link {
    border-radius: 999px !important;
    border: 1.5px solid rgba(16, 32, 64, 0.14) !important;
    background: #ffffff !important;
    color: #102040 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 7px 16px !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area :is(.nav-tabs, .nav-pills) .nav-link:hover {
    transform: none !important;
    border-color: #f59e0b !important;
    background: #fffbeb !important;
    box-shadow: none !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area :is(.nav-tabs, .nav-pills) .nav-link.active {
    background: #102040 !important;
    border-color: #102040 !important;
    color: #fbbf24 !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(16, 32, 64, 0.18) !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area :is(.nav-tabs, .nav-pills) .nav-link.active i {
    color: #fbbf24 !important;
    transform: none !important;
}

/* Clean Editorial Tables */
html[data-rvit-home="0"] body.rvit-elite .content-area table:not(.results-table) {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(16, 32, 64, 0.1) !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: none !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area table:not(.results-table) thead th {
    background: #102040 !important;
    color: #fbbf24 !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 2px solid #f59e0b !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area table:not(.results-table) tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}

/* Clean Accordions */
html[data-rvit-home="0"] body.rvit-elite .content-area .accordion-item {
    border-radius: 10px !important;
    border: 1px solid rgba(16, 32, 64, 0.1) !important;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: none !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area .accordion-button {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    color: #102040;
    background: #f8fafc;
    box-shadow: none !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area .accordion-button:not(.collapsed) {
    background: rgba(251, 191, 36, 0.1);
    color: #102040;
}

/* Reusable RVIT Editorial Policy / Guideline Blocks (Structured Accordions, Lists & Callouts) */
.rvit-editorial-intro {
    max-width: 760px;
    margin-bottom: 1.75rem;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.7;
}

.rvit-editorial-intro p:last-child {
    margin-bottom: 0;
}

.rvit-editorial-heading {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    color: #102040;
    margin: 0 0 0.65rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rvit-editorial-heading::before {
    content: '';
    width: 4px;
    height: 1.1em;
    border-radius: 2px;
    background: linear-gradient(180deg, #fbbf24, #b45309);
    flex-shrink: 0;
}

.rvit-policy-group {
    margin-bottom: 1.5rem;
}

.rvit-policy-group:last-child {
    margin-bottom: 0;
}

.rvit-policy-block {
    background: #ffffff;
    border: 1px solid rgba(16, 32, 64, 0.12);
    border-radius: 10px;
    overflow: hidden;
}

.rvit-policy-head {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1.25rem;
    background: linear-gradient(90deg, rgba(16, 32, 64, 0.04) 0%, rgba(251, 191, 36, 0.06) 100%);
    border-bottom: 1px solid rgba(16, 32, 64, 0.09);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: #102040;
    user-select: none;
    transition: background-color 0.2s ease;
}

.rvit-policy-head::-webkit-details-marker {
    display: none;
}

.rvit-policy-block:not([open]) .rvit-policy-head {
    border-bottom-color: transparent;
}

.rvit-policy-head:hover {
    background: rgba(16, 32, 64, 0.06);
}

.rvit-policy-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #102040;
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.rvit-policy-chevron {
    margin-left: auto;
    color: #b45309;
    font-size: 0.8rem;
    transition: transform 0.22s ease;
}

.rvit-policy-block[open] .rvit-policy-chevron {
    transform: rotate(180deg);
}

.rvit-policy-body {
    padding: 1.2rem 1.35rem;
    color: #334155;
    font-size: 0.93rem;
    line-height: 1.7;
}

.rvit-policy-list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rvit-policy-list li::marker {
    color: #f59e0b;
}

.rvit-policy-list li strong {
    color: #102040;
    font-weight: 700;
}

.rvit-policy-callout {
    margin-top: 1.15rem;
    padding: 0.95rem 1.2rem;
    border-left: 4px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    background: rgba(251, 191, 36, 0.08);
}

.rvit-policy-callout-title {
    display: block;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #102040;
    margin-bottom: 0.25rem;
}

.rvit-policy-callout p {
    margin: 0;
    font-size: 0.87rem;
    color: #475569;
    line-height: 1.58;
}

.rvit-clean-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rvit-clean-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0.4rem 0.25rem;
}

.rvit-clean-row-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(16, 32, 64, 0.06);
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.rvit-clean-row-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: #102040;
    margin-bottom: 2px;
}

.rvit-clean-row-desc {
    font-size: 0.87rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

/* Shared Safety/Editorial Building Blocks (Reusable on All Inner Pages) */
.rvit-steps-list,
.rvit-check-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.rvit-steps-list li,
.rvit-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.65;
}

.rvit-check-list li i {
    margin-top: 4px;
    flex-shrink: 0;
    color: #b45309 !important;
}

.rvit-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #102040;
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    margin-top: 2px;
}

.rvit-dark-banner {
    background: linear-gradient(135deg, #081226 0%, #102040 55%, #19315e 100%);
    color: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    padding: clamp(1.25rem, 2.5vw, 1.85rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.rvit-dark-banner h3,
.rvit-dark-banner h4 {
    color: #ffffff !important;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.rvit-dark-banner p {
    color: rgba(241, 245, 249, 0.9) !important;
    margin: 0;
    line-height: 1.65;
}

.rvit-quick-strip {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid #f59e0b;
    border-radius: 0 10px 10px 0;
    background: rgba(251, 191, 36, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Dark Mode Parity for Editorial Content Architecture */
html[data-theme="dark"][data-rvit-home="0"] body.rvit-elite {
    background-color: #081326 !important;
    background-image: none !important;
}

html[data-theme="dark"] body.rvit-elite .section-card:not(.bg-navy):not(.p-0),
html[data-theme="dark"] body.rvit-elite .content-area> :is(.committees-section, .approvals-section, .admin-structure-section, .courses-offered-section, .amenities-section),
html[data-theme="dark"] body.rvit-elite .content-area .tab-content-wrapper {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.rvit-elite .content-area>.section-card:last-of-type,
html[data-theme="dark"] body.rvit-elite .content-area>.section-card:last-child {
    border-bottom: 0 !important;
}

html[data-theme="dark"] body.rvit-elite .section-title {
    color: #f8fafc !important;
    border-left-color: #fbbf24 !important;
}

html[data-theme="dark"] body.rvit-elite .section-title>i:first-child {
    color: #fbbf24 !important;
    -webkit-text-fill-color: #fbbf24;
}

html[data-theme="dark"] body.rvit-elite .content-area :is(.distinction-card, .overview-emblem-card, .feature-box, .feature-card, .info-card,
    .stat-card, .benefit-card, .service-card, .placement-card, .company-card,
    .material-card, .dept-card, .link-card, .resource-card, .faculty-card, .lab-card,
    .overview-card, .syllabus-card, .program-card, .event-card, .sac-card, .club-card,
    .facility-card, .process-step, .profile-card, .consultancy-feature-card, .gold-badge-card,
    .tp-feature-box, .tp-strategy-card, .tp-team-card, .tp-testi-card, .tp-dept-card, .tp-affil-card,
    .poly-stat-card, .co-stat-item, .rvit-3d-metric-card, .rvit-spotlight-card, .rvit-spotlight-card-dark,
    .rvit-tilt-card, .rvit-3d-card, .r-card, .ts-card, .cr-accred-card, .aq-cc, .plc-stat-card,
    .sticky-note, .sticky-note-card, .polaroid-clip, .admission-note-card, .card:not(.bg-navy)) {
    background: rgba(16, 32, 64, 0.68) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body.rvit-elite .content-area :is(.distinction-card, .overview-emblem-card, .feature-box, .feature-card, .info-card,
    .stat-card, .benefit-card, .service-card, .placement-card, .company-card,
    .material-card, .dept-card, .link-card, .resource-card, .faculty-card, .lab-card,
    .overview-card, .syllabus-card, .program-card, .event-card, .sac-card, .club-card,
    .facility-card, .process-step, .profile-card, .consultancy-feature-card, .gold-badge-card,
    .tp-feature-box, .tp-strategy-card, .tp-team-card, .tp-testi-card, .tp-dept-card, .tp-affil-card,
    .poly-stat-card, .co-stat-item, .rvit-3d-metric-card, .rvit-spotlight-card, .rvit-spotlight-card-dark,
    .rvit-tilt-card, .rvit-3d-card, .r-card, .ts-card, .cr-accred-card, .aq-cc, .plc-stat-card,
    .sticky-note, .sticky-note-card, .polaroid-clip, .admission-note-card, .card:not(.bg-navy)):is(:hover, :focus-within) {
    background: rgba(18, 41, 82, 0.85) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
}

html[data-theme="dark"] body.rvit-elite .content-area :is(.distinction-icon, .feature-box-icon) {
    background: rgba(251, 191, 36, 0.12) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.25) !important;
}

html[data-theme="dark"] body.rvit-elite .content-area ul li>i.fa-check-circle.text-warning,
html[data-theme="dark"] body.rvit-elite .content-area ul li>i.fa-check.text-warning,
html[data-theme="dark"] body.rvit-elite .rvit-check-list li i {
    color: #fbbf24 !important;
}

html[data-theme="dark"] body.rvit-elite .rvit-steps-list li,
html[data-theme="dark"] body.rvit-elite .rvit-check-list li {
    color: #cbd5e1;
}

html[data-theme="dark"] body.rvit-elite .rvit-step-num {
    background: #fbbf24;
    color: #081226;
}

html[data-theme="dark"] body.rvit-elite .content-area :is(.nav-tabs, .nav-pills) {
    border: 0 !important;
    background: transparent !important;
}

html[data-theme="dark"] body.rvit-elite .content-area .tab-content {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.rvit-elite .content-area :is(.nav-tabs, .nav-pills) .nav-link {
    background: rgba(16, 32, 64, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body.rvit-elite .content-area :is(.nav-tabs, .nav-pills) .nav-link.active {
    background: #fbbf24 !important;
    border-color: #fbbf24 !important;
    color: #081226 !important;
}

html[data-theme="dark"] body.rvit-elite .content-area :is(.nav-tabs, .nav-pills) .nav-link.active i {
    color: #081226 !important;
}

html[data-theme="dark"] body.rvit-elite .content-area table:not(.results-table) {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body.rvit-elite .content-area table:not(.results-table) tbody tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] body.rvit-elite .content-area .accordion-item {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] body.rvit-elite .content-area .accordion-button {
    background: #19315e;
    color: #f8fafc;
}

html[data-theme="dark"] body.rvit-elite .rvit-editorial-intro,
html[data-theme="dark"] body.rvit-elite .rvit-policy-body,
html[data-theme="dark"] body.rvit-elite .rvit-policy-callout p,
html[data-theme="dark"] body.rvit-elite .rvit-clean-row-desc {
    color: #cbd5e1;
}

html[data-theme="dark"] body.rvit-elite .rvit-editorial-heading,
html[data-theme="dark"] body.rvit-elite .rvit-policy-head,
html[data-theme="dark"] body.rvit-elite .rvit-policy-list li strong,
html[data-theme="dark"] body.rvit-elite .rvit-policy-callout-title,
html[data-theme="dark"] body.rvit-elite .rvit-clean-row-title {
    color: #f8fafc;
}

html[data-theme="dark"] body.rvit-elite .rvit-policy-block {
    background: #102040;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] body.rvit-elite .rvit-policy-head {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body.rvit-elite .rvit-policy-num {
    background: #fbbf24;
    color: #081226;
}

html[data-theme="dark"] body.rvit-elite .rvit-policy-chevron,
html[data-theme="dark"] body.rvit-elite .rvit-clean-row-icon {
    color: #fbbf24;
}

html[data-theme="dark"] body.rvit-elite .rvit-clean-row-icon {
    background: rgba(251, 191, 36, 0.12);
}

html[data-theme="dark"] body.rvit-elite .rvit-policy-callout {
    background: rgba(251, 191, 36, 0.08);
}

html[data-theme="dark"] body.rvit-elite .rvit-policy-callout .text-dark {
    color: #fbbf24 !important;
}

html[data-theme="dark"] body.rvit-elite .rvit-clean-list,
html[data-theme="dark"] body.rvit-elite .rvit-clean-row {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   7B. DEPARTMENT PAGES UNIFIED EDITORIAL & RVIT BRAND STANDARDIZATION
   Applies to cse, cseaiml, cseds, ece, eee, vlsiect, fresher, mca, bca, diploma, it
   ========================================================================== */
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area :is(.shadow-xs, .shadow-sm) {
    box-shadow: none !important;
}

/* Polyfill non-Bootstrap half-step spacing utilities used in department pages (POs, Labs, Accordions, Lists, Badges) */
body.rvit-elite .p-2\.5 {
    padding: 0.75rem !important;
}

body.rvit-elite .p-3\.5 {
    padding: 1.15rem !important;
}

body.rvit-elite .py-1\.5 {
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
}

body.rvit-elite .py-2\.5 {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}

body.rvit-elite .gap-1\.5 {
    gap: 0.45rem !important;
}

body.rvit-elite .gap-2\.5 {
    gap: 0.65rem !important;
}

body.rvit-elite .max-w-750 {
    max-width: 750px !important;
}

body.rvit-elite .opacity-90 {
    opacity: 0.9 !important;
}

/* Keep department-specific cards, stat tiles, badges, and video frames stationary on hover */
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area :is(.resource-card, .pillar-card, .branch-card, .poly-stat-card, .polycet-code-box,
    .custom-badge, .feature-card, .video-container, .consultancy-feature-card,
    .carousel, [class*="rounded-3"], [class*="rounded-4"]),
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area :is(.resource-card, .pillar-card, .branch-card, .poly-stat-card, .polycet-code-box,
    .custom-badge, .feature-card, .video-container, .consultancy-feature-card):is(:hover, :focus-within) {
    transform: none !important;
    transform-style: flat !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .resource-card:hover .resource-icon {
    transform: none !important;
}

/* Standardize Resource Cards (inline $extraHead overrides) */
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .resource-card {
    background: #f8fafc !important;
    border: 1px solid rgba(16, 32, 64, 0.1) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .resource-card:hover {
    background: #ffffff !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
    box-shadow: none !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .resource-icon {
    background: rgba(16, 32, 64, 0.06) !important;
    color: #b45309 !important;
    border: 1px solid rgba(16, 32, 64, 0.08);
}

/* Standardize Diploma Cards into Flat Hairline RVIT Surfaces */
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area :is(.pillar-card, .branch-card) {
    background: #f8fbff !important;
    border: 1px solid rgba(16, 32, 64, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area :is(.pillar-card, .branch-card):hover {
    background: #ffffff !important;
    border-color: rgba(245, 158, 11, 0.55) !important;
    box-shadow: none !important;
}

/* Unify Growth Milestones, Vision, Mission, PEOs, PSOs, POs & Contact Utility Boxes */
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .rounded-4[style*="linear-gradient"] {
    background: #f8fbff !important;
    border: 1px solid rgba(16, 32, 64, 0.1) !important;
    border-radius: 12px !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area :is(.bg-white, .bg-light):not(table):not(tr):not(td):not(th):not(.badge):not(span) {
    background-color: #f8fbff !important;
    border-color: rgba(16, 32, 64, 0.1) !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .border-start.border-4:is(.border-primary, .border-success, .border-info, .border-warning, .border-danger) {
    border-left-color: #d4a64e !important;
}

/* Unify Intake Badges (.custom-badge) into Clean Navy & Gold Pills */
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .custom-badge {
    background: rgba(16, 32, 64, 0.05) !important;
    color: #102040 !important;
    border: 1px solid rgba(16, 32, 64, 0.14) !important;
    border-radius: 999px !important;
    padding: 6px 14px !important;
    font-size: 0.84rem !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .custom-badge i {
    color: #b45309 !important;
}

/* Standardize Faculty & Department Table Search Input */
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .table-search-box input {
    background: #ffffff !important;
    border: 1px solid rgba(16, 32, 64, 0.18) !important;
    color: #102040 !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .table-search-box input:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
}

/* Standardize Department Tables & Status Accents */
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .table-responsive {
    border: 1px solid rgba(16, 32, 64, 0.1) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area table:not(.results-table) thead th,
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .rvit-data-table thead th {
    background: #102040 !important;
    color: #e6be6a !important;
    border-bottom: 2px solid #d4a64e !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area table:not(.results-table) thead.bg-light {
    background: #102040 !important;
}

html[data-rvit-home="0"] body.rvit-elite .content-area table tbody tr:hover {
    transform: none !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area :is(.text-primary, .fw-semibold.text-primary) {
    color: #102040 !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .badge.bg-primary,
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .badge.bg-info,
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .badge.bg-primary-subtle,
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .badge.bg-success,
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .badge.bg-danger {
    background: #102040 !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .rounded-circle:is(.bg-primary, .bg-success) {
    background: #102040 !important;
    color: #fbbf24 !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area ul li > i:is(.text-success, .text-primary) {
    color: #b45309 !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .compare-table th.rvit-head {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #102040 !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .compare-table .rvit-col {
    background-color: #fffbeb !important;
    color: #102040 !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .btn-outline-primary {
    color: #102040 !important;
    border-color: rgba(16, 32, 64, 0.35) !important;
    background: #ffffff !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .btn-outline-primary:hover {
    background: #102040 !important;
    border-color: #102040 !important;
    color: #fbbf24 !important;
}

/* Standardize HOD Contact Section & CTAs */
html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area #contact .bg-light.border.rounded-4 {
    background: rgba(251, 191, 36, 0.06) !important;
    border: 1px solid rgba(245, 158, 11, 0.28) !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 12px !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area #contact .btn-success {
    background: #fbbf24 !important;
    border-color: #f59e0b !important;
    color: #081226 !important;
}

html[data-rvit-home="0"] body.rvit-elite[data-dept] .content-area .list-group-item {
    background: transparent !important;
    border-color: rgba(16, 32, 64, 0.09) !important;
}

/* Dark Mode Parity Across All Department Pages */
html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .rounded-4[style*="linear-gradient"],
html[data-theme="dark"] body.rvit-elite[data-dept] .content-area :is(.bg-white, .bg-light):not(table):not(tr):not(td):not(th):not(.badge):not(span),
html[data-theme="dark"] body.rvit-elite[data-dept] .content-area :is(.resource-card, .pillar-card, .branch-card) {
    background: rgba(16, 32, 64, 0.68) !important;
    border-color: rgba(255, 255, 255, 0.11) !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area :is(.resource-card, .pillar-card, .branch-card):hover {
    background: rgba(18, 41, 82, 0.88) !important;
    border-color: rgba(251, 191, 36, 0.5) !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .resource-icon {
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.25) !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .custom-badge {
    background: rgba(251, 191, 36, 0.1) !important;
    color: #f8fafc !important;
    border-color: rgba(251, 191, 36, 0.28) !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .custom-badge i {
    color: #fbbf24 !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area :is(.text-dark, .text-navy, .fw-bold.text-navy, h3.text-navy, h4.text-navy, h6.text-navy) {
    color: #f8fafc !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area :is(.text-secondary, .text-muted, small.text-muted) {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area :is(.text-primary, .fw-semibold.text-primary, .text-gold) {
    color: #fbbf24 !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .text-success,
html[data-theme="dark"] body.rvit-elite[data-dept] .content-area ul li > i:is(.text-success, .text-primary) {
    color: #fbbf24 !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .compare-table .rvit-col {
    background-color: rgba(251, 191, 36, 0.12) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .btn-outline-primary {
    background: rgba(16, 32, 64, 0.9) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .btn-outline-primary:hover {
    background: #fbbf24 !important;
    border-color: #fbbf24 !important;
    color: #081226 !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .badge.bg-light {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .table-search-box input {
    background: #102040 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .table-search-box input::placeholder {
    color: #94a3b8;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .table-responsive {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area #contact .bg-light.border.rounded-4 {
    background: rgba(16, 32, 64, 0.72) !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
}

html[data-theme="dark"] body.rvit-elite[data-dept] .content-area .list-group-item {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}