/* =====================================================================
   Dynamic College Website – Front-end styles
   Colours come from CSS variables injected by the active theme
   (Admin → Appearance). Do not hard-code brand colours below.
   ===================================================================== */
:root {
    --ink: var(--secondary); /* text that uses the brand's dark colour – lightened in dark themes */
    --primary: #8b1a1a;
    --secondary: #0f1f5c;
    --accent: #f4b400;
    --primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
    --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
    --secondary-dark: color-mix(in srgb, var(--secondary) 80%, #000);
    --bg: #ffffff;
    --surface: #ffffff;
    --soft: #f6f7fb;
    --text: #2b2f3a;
    --muted: #6b7280;
    --heading: var(--secondary);
    --border: #e7e9f0;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 14px 40px rgba(15, 23, 42, .14);
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Poppins', system-ui, sans-serif;
}

body.theme-dark {
    --ink: #e6ebf3;
    --bg: #0b1120;
    --surface: #131c31;
    --soft: #0f172a;
    --text: #d6dbe6;
    --muted: #94a3b8;
    --heading: #ffffff;
    --border: #22304d;
    --primary-soft: color-mix(in srgb, var(--primary) 18%, #0b1120);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
.text-accent { color: var(--accent) !important; }
.container-xxl { max-width: 1340px; }

/* ---------- Buttons ---------- */
.btn-primary-c, .btn-accent {
    background: var(--primary); color: #fff; border: 0; border-radius: 6px; font-weight: 600;
}
.btn-primary-c:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #1b1b1b; }
.btn-outline-c {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    border: 1.5px solid var(--primary); color: var(--primary); background: var(--surface);
    padding: 7px 16px; border-radius: 5px; font-size: 13px; font-weight: 600;
}
.btn-outline-c:hover { background: var(--primary); color: #fff; }
.btn-small-c {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary); color: #fff; font-size: 12px; font-weight: 600;
    padding: 6px 14px; border-radius: 5px;
}
.btn-small-c:hover { background: var(--primary-dark); color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: #fff; font-size: 12.5px; min-height: 34px; display: flex; align-items: center;
}
.topbar-left { font-weight: 500; }
.topbar-right a { color: #fff; margin-left: 16px; font-weight: 500; }
.topbar-right a:hover { color: var(--accent); }
.topbar-right a i { margin-right: 4px; }
.topbar-social { margin-left: 10px; display: inline-flex; gap: 5px; }
.topbar-social .soc { margin: 0; width: 22px; height: 22px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.soc { color: #fff !important; }
.soc-facebook { background: #1877f2; } .soc-youtube { background: #ff0000; }
.soc-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.soc-linkedin { background: #0a66c2; } .soc-twitter { background: #111; } .soc-whatsapp { background: #25d366; }

/* ---------- Brand header ---------- */
.brand-header {
    background: linear-gradient(180deg, #fff 0%, #fbf8f2 100%);
    padding: 12px 0; position: relative; border-bottom: 1px solid var(--border);
}
body.theme-dark .brand-header { background: linear-gradient(180deg, #111a2e, #0b1120); }
.brand-logo { width: 96px; height: 96px; object-fit: contain; margin-right: 16px; flex-shrink: 0; }
.brand-l1 {
    font-family: var(--font-heading); font-weight: 900; color: var(--primary);
    font-size: 30px; line-height: 1.1; text-transform: uppercase; letter-spacing: .3px;
}
.brand-l2 {
    font-family: var(--font-heading); font-weight: 900; color: var(--ink);
    font-size: 23px; line-height: 1.25; text-transform: uppercase;
}
body.theme-dark .brand-l2 { color: #e2e8f0; }
.brand-l3 { font-size: 12px; letter-spacing: 3.2px; color: var(--muted); text-transform: uppercase; margin-top: 4px; font-weight: 500; }
.brand-middle { min-height: 96px; position: relative; }
.brand-quote {
    font-family: var(--font-heading); font-style: italic; color: var(--primary);
    font-size: 19px; max-width: 220px; text-align: center; line-height: 1.35; position: relative; z-index: 2; margin-right: -30px;
}
.brand-campus {
    width: 260px; height: 96px; background-size: cover; background-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 80%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 80%, transparent 100%);
}
.naac-badge { gap: 10px; margin-left: 10px; padding-left: 6px; }
.naac-badge img { width: 70px; height: 86px; object-fit: contain; }
.naac-t { font-family: var(--font-heading); font-weight: 900; font-size: 28px; color: var(--primary); line-height: 1; }
.naac-s { font-size: 12px; color: var(--primary); font-weight: 500; max-width: 110px; line-height: 1.2; margin-top: 4px; }
.nav-toggle { font-size: 22px; color: var(--primary); border: 1px solid var(--border); }

/* ---------- Main nav ---------- */
.main-nav { background: var(--secondary); position: relative; z-index: 50; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
body.sticky-nav .main-nav { position: sticky; top: 0; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex: 1; justify-content: space-between; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13.5px; font-weight: 500;
    padding: 15px 10px; white-space: nowrap; font-size: 13.5px;
}
.nav-menu > li > a .caret { font-size: 9px; opacity: .8; }
.nav-menu > li.active > a, .nav-menu > li:hover > a { background: var(--primary); color: #fff; }
.nav-menu > li.active > a i:not(.caret) { color: var(--accent); }
.sub-menu {
    list-style: none; padding: 8px 0; margin: 0; position: absolute; top: 100%; left: 0; min-width: 240px;
    background: var(--surface); border-top: 3px solid var(--accent); border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .22s;
}
.sub-menu li { position: relative; }
.sub-menu a { display: flex; justify-content: space-between; align-items: center; padding: 9px 18px; color: var(--text); font-size: 13.5px; }
.sub-menu a:hover { background: var(--primary-soft); color: var(--primary); padding-left: 22px; }
.sub-menu .caret { font-size: 9px; }
.nav-menu > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
.nav-menu > li:nth-last-child(-n+3) .sub-2 { left: auto; right: 100%; }
.sub-2 { top: 0; left: 100%; border-top: 0; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-search { background: transparent; border: 0; color: #fff; width: 52px; font-size: 17px; }
.nav-search:hover { background: var(--primary); }
.search-modal { border-radius: 12px; overflow: hidden; border: 0; }
.search-modal input { padding: 18px 20px; }
.search-modal input:focus { box-shadow: none; }

.mobile-nav { background: var(--secondary); color: #fff; }
.m-menu, .m-menu ul { list-style: none; margin: 0; padding: 0; }
.m-menu > li > a { display: block; color: #fff; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 500; }
.m-menu ul { background: rgba(0,0,0,.18); }
.m-menu ul a { display: block; color: rgba(255,255,255,.85); padding: 9px 34px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #0d1530; }
.hero-swiper { height: 600px; }
.hero-slide { height: 100%; position: relative; overflow: hidden; background: #0d1530; }
.hero-bg {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-image: var(--hero-img, none);
    background-size: cover; background-position: right center; background-repeat: no-repeat;
    transform: scale(1.12); transition: transform 8s ease-out; will-change: transform;
}
.swiper-slide-active .hero-bg { transform: scale(1.0); }
.hero-slide::before {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(252,248,240,.98) 0%, rgba(252,248,240,.95) 28%, rgba(252,248,240,.72) 42%, rgba(252,248,240,.15) 58%, rgba(252,248,240,0) 66%);
}
.hero-slide::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(10,16,40,.28));
}
body.theme-dark .hero-slide::before {
    background: linear-gradient(90deg, rgba(11,17,32,.97) 0%, rgba(11,17,32,.92) 30%, rgba(11,17,32,.6) 46%, rgba(11,17,32,0) 66%);
}
.hero-content { max-width: 600px; position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 0 40px 54px; }
.hero-content > * { opacity: 0; transform: translateY(26px); }
.swiper-slide-active .hero-content > * { animation: heroUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
.swiper-slide-active .hero-content > *:nth-child(2) { animation-delay: .15s; }
.swiper-slide-active .hero-content > *:nth-child(3) { animation-delay: .3s; }
.swiper-slide-active .hero-content > *:nth-child(4) { animation-delay: .45s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }
.hero-tag {
    display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
    color: var(--primary); font-weight: 700; letter-spacing: 2px; font-size: 13px; margin-bottom: 14px;
    background: color-mix(in srgb, var(--primary) 8%, #fff); border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    padding: 6px 14px; border-radius: 30px;
}
.hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero-title {
    font-family: var(--font-heading); font-weight: 900; color: var(--ink);
    font-size: 52px; line-height: 1.1; margin-bottom: 18px; letter-spacing: -.5px;
}
body.theme-dark .hero-title { color: #fff; }
.hero-title span {
    color: var(--accent); display: inline;
    background: linear-gradient(transparent 72%, color-mix(in srgb, var(--accent) 22%, transparent) 72%);
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-desc { font-size: 16px; color: #3b3f4b; max-width: 520px; margin-bottom: 28px; line-height: 1.7; }
body.theme-dark .hero-desc { color: #cbd5e1; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-1, .btn-hero-2 {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 50px; font-weight: 600; font-size: 15px;
    transition: .25s;
}
.btn-hero-1 { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-hero-1:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 30px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn-hero-1 i, .btn-hero-2 i { transition: .25s; }
.btn-hero-1:hover i, .btn-hero-2:hover i { transform: translateX(4px); }
.btn-hero-2 { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-hero-2:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.hero-prev, .hero-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: rgba(255,255,255,.18); color: #fff; transition: .25s; backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.35);
}
.hero-prev { left: 16px; background: rgba(15,31,92,.55); } .hero-next { right: 16px; }
.hero-prev:hover, .hero-next:hover { background: var(--primary); border-color: var(--primary); }
@media (min-width: 992px) { .hero-next { right: calc(max(18px, (100vw - 1340px) / 2 + 12px) + 278px); } }
.hero-pagination { position: absolute; bottom: 64px !important; left: 0; right: 0; text-align: center; z-index: 5; }
.hero-pagination .swiper-pagination-bullet { background: #fff; opacity: .8; width: 10px; height: 10px; transition: .3s; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.hero-pagination .swiper-pagination-bullet-active { background: var(--accent); opacity: 1; width: 30px; border-radius: 6px; }
.hero-progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; z-index: 6; background: rgba(255,255,255,.25); }
.hero-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--primary)); }

.hero-quick {
    position: absolute; right: max(18px, calc((100vw - 1340px) / 2 + 12px)); top: 22px; z-index: 6;
    flex-direction: column; gap: 10px; width: 258px;
}
.ql-item {
    display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.92); border-radius: 12px;
    padding: 8px 12px 8px 8px; box-shadow: 0 10px 24px rgba(10,16,40,.18); color: var(--ink); font-weight: 600; font-size: 14.5px;
    border: 1px solid rgba(255,255,255,.7); transition: .25s; backdrop-filter: blur(10px); position: relative;
}
body.theme-dark .ql-item { color: #fff; background: rgba(19,28,49,.88); border-color: rgba(255,255,255,.08); }
.ql-item:hover { transform: translateX(-6px); color: var(--primary); box-shadow: 0 14px 30px rgba(10,16,40,.28); background: #fff; }
.ql-icon { width: 46px; height: 46px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; flex-shrink: 0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.ql-arrow { margin-left: auto; font-size: 12px; opacity: 0; transform: translateX(-6px); transition: .25s; color: var(--primary); }
.ql-item:hover .ql-arrow { opacity: 1; transform: none; }

/* ---------- Stats ---------- */
.stats-wrap { margin-top: -38px; position: relative; z-index: 8; }
.stats-bar {
    background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: repeat(6, 1fr); padding: 16px 8px; border: 1px solid var(--border);
}
.stat { display: flex; align-items: center; gap: 14px; padding: 4px 18px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-icon { font-size: 34px; color: var(--primary); width: 44px; text-align: center; }
.stat-val { white-space: nowrap; font-weight: 700; color: var(--primary); font-size: 22px; line-height: 1.1; font-family: var(--font-body); }
.stat-lbl { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* ---------- Vision / mission row ---------- */
.about-row { padding: 26px 0 10px; }
.vm-card {
    border-radius: 10px; padding: 22px 22px; height: 100%; min-height: 250px; position: relative; overflow: hidden;
    background-repeat: no-repeat; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.vm-card > * { position: relative; z-index: 2; }
.vm-vision { background-color: #e9f2fd; background-image: linear-gradient(90deg, #e9f2fd 52%, rgba(233,242,253,0) 80%), var(--vm-img); background-size: auto, auto 100%; background-position: 0 0, right bottom; }
.vm-mission { background-color: #fdf0ec; background-image: linear-gradient(180deg, #fdf0ec 50%, rgba(253,240,236,.2) 75%), var(--vm-img); background-size: auto, 100% auto; background-position: 0 0, right bottom; }
.vm-values { background: linear-gradient(160deg, #eef8ef, #e2f3e5); }
body.theme-dark .vm-vision, body.theme-dark .vm-mission, body.theme-dark .vm-values { background-color: var(--surface); background-image: none; }
.vm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vm-icon { font-size: 30px; color: var(--ink); }
.vm-mission .vm-icon { color: var(--primary); }
.vm-values .vm-icon { color: #15803d; }
.vm-card h3 { font-family: var(--font-heading); font-weight: 700; color: var(--heading); font-size: 21px; margin: 0; }
.vm-card p { font-size: 13.5px; color: var(--text); max-width: 78%; margin-bottom: 16px; }
.vm-mission p { max-width: 100%; }
.values-list { list-style: none; padding: 0; margin: 0; }
.values-list li { padding: 5px 0; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.values-list i { color: #15803d; font-size: 18px; }
.leaders { display: grid; gap: 12px; height: 100%; }
.leader {
    background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); text-align: center; padding: 10px 10px 12px;
    border: 1px solid var(--border); display: block;
}
.leader img { width: 100%; height: 92px; object-fit: cover; object-position: top; border-radius: 8px; background: #f2ede4; }
.leader-name { color: var(--primary); font-weight: 700; font-size: 14px; margin-top: 8px; }
.leader-des { color: var(--muted); font-size: 12px; }
.leader:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- Section heads ---------- */
.home-sec { padding: 26px 0 8px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-title-wrap { display: flex; align-items: center; gap: 12px; }
.sec-icon { font-size: 30px; color: var(--primary); }
.sec-title { font-family: var(--font-heading); font-weight: 700; color: var(--heading); font-size: 22px; margin: 0; line-height: 1.2; }
.sec-sub { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.g-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.g-filters button, .g-filters a {
    border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 4px;
    padding: 5px 16px; font-size: 12.5px; font-weight: 500;
}
body.theme-dark .g-filters button, body.theme-dark .g-filters a { color: #e2e8f0; }
.g-filters button.active, .g-filters button:hover, .g-filters a.active, .g-filters a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Carousels ---------- */
.carousel-wrap { position: relative; padding: 0 4px; }
.c-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center; font-size: 13px; transition: .2s;
}
.c-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.c-prev { left: -14px; } .c-next { right: -14px; }
.c-nav.swiper-button-disabled { opacity: .45; }

.program-card {
    background: var(--tint, #fdecec); border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
    box-shadow: 0 3px 10px rgba(0,0,0,.05); transition: .25s; height: 100%;
}
body.theme-dark .program-card { background: color-mix(in srgb, var(--tint) 12%, var(--surface)); }
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pc-img { height: 120px; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.program-card:hover .pc-img img { transform: scale(1.07); }
.pc-body { display: flex; align-items: center; gap: 12px; padding: 14px 16px 4px; }
.pc-icon { font-size: 28px; color: var(--primary); width: 34px; text-align: center; }
.pc-title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; font-family: var(--font-body); }
body.theme-dark .pc-title { color: #fff; }
.pc-level { font-size: 12.5px; color: var(--muted); }
.pc-link { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--primary); padding: 4px 16px 14px 62px; }

.g-item { display: block; position: relative; border-radius: 8px; overflow: hidden; height: 150px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.g-cap {
    position: absolute; top: auto; right: 0; bottom: 0; left: 0; color: #fff; font-size: 12.5px; padding: 24px 10px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: .3s;
}
.g-item:hover img { transform: scale(1.08); }
.g-item:hover .g-cap { opacity: 1; }

.award-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 10px; text-align: center;
    height: 100%; box-shadow: 0 3px 10px rgba(0,0,0,.04); transition: .25s;
}
.award-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.aw-img { height: 92px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.aw-img img { max-height: 100%; object-fit: contain; }
.aw-title { font-size: 12.5px; color: var(--text); line-height: 1.35; min-height: 34px; }
.aw-year { font-size: 12.5px; color: var(--text); font-weight: 500; }

.news-box { padding-left: 4px; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: flex; align-items: center; gap: 14px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.n-date {
    background: var(--primary); color: #fff; border-radius: 4px; width: 44px; text-align: center; line-height: 1;
    padding: 5px 0 4px; flex-shrink: 0; box-shadow: 0 3px 8px color-mix(in srgb, var(--primary) 30%, transparent);
}
.n-date b { display: block; font-size: 15px; }
.n-date span { font-size: 9.5px; letter-spacing: .5px; }
.n-title { color: var(--text); font-size: 13.5px; flex-grow: 1; }
.n-title:hover { color: var(--primary); }
.n-new { background: #f97316; color: #fff; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 3px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .55; } }

.link-card {
    display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; text-align: center; padding: 8px 6px;
    transition: .25s;
}
.link-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.lc-img { height: 56px; display: flex; align-items: center; justify-content: center; }
.lc-img img { max-height: 100%; object-fit: contain; }
.lc-title { font-size: 11.5px; color: var(--text); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.press-card { display: block; text-align: center; }
.pr-img { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 5px; height: 130px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.05); transition: .25s; }
.pr-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.press-card:hover .pr-img { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pr-date { font-size: 12px; color: var(--text); margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--secondary-dark); background: linear-gradient(180deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: rgba(255,255,255,.85); margin-top: 40px; padding-top: 36px; font-size: 13.5px; position: relative;
}
.f-logo { width: 84px; height: 84px; object-fit: contain; flex-shrink: 0; }
.f-name { font-weight: 700; color: #fff; font-size: 14.5px; line-height: 1.4; }
.f-contact { list-style: none; padding: 0; margin: 0; }
.f-contact li { display: flex; gap: 10px; padding: 3px 0; }
.f-contact i { color: var(--accent); width: 16px; margin-top: 4px; }
.f-contact a { color: rgba(255,255,255,.85); }
.f-title { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 12px; font-family: var(--font-body); }
.f-links { list-style: none; padding: 0; margin: 0; }
.f-links li { padding: 3px 0; }
.f-links a { color: rgba(255,255,255,.82); display: inline-flex; gap: 8px; align-items: center; }
.f-links a::before { content: "\f005"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent); font-size: 9px; }
.f-links a:hover { color: var(--accent); padding-left: 4px; }
.f-social { display: flex; gap: 8px; }
.f-social .soc { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; font-size: 15px; }
.f-map { position: relative; border-radius: 8px; overflow: hidden; background: #e5e7eb; height: 120px; }
.f-map iframe { width: 100%; height: 100%; border: 0; }
.f-map-btn {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap;
    background: var(--secondary); color: #fff; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.f-map-btn:hover { background: var(--primary); color: #fff; }
.footer-bottom { background: var(--primary); color: #fff; padding: 10px 0; margin-top: 30px; font-size: 12.5px; }
.fb-links a { color: #fff; padding: 0 10px; border-left: 1px solid rgba(255,255,255,.35); }
.fb-links a:first-child { border-left: 0; }
.fb-links a:hover { color: var(--accent); }
.back-to-top {
    position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%;
    background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 60;
    border: 2px solid #fff; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { color: var(--accent); }

/* ---------- Inner pages ---------- */
.page-banner {
    position: relative; padding: 54px 0 46px; color: #fff; overflow: hidden;
    background: linear-gradient(100deg, color-mix(in srgb, var(--secondary) 90%, transparent) 0%, color-mix(in srgb, var(--secondary) 70%, transparent) 45%, color-mix(in srgb, var(--primary) 55%, transparent) 100%), var(--banner, none) center 40%/cover;
}
.page-banner h1 { font-family: var(--font-heading); font-weight: 900; font-size: 34px; margin-bottom: 6px; }
.page-banner p { opacity: .9; margin-bottom: 10px; }
.page-banner .breadcrumb { margin: 0; font-size: 13.5px; }
.page-banner .breadcrumb a { color: var(--accent); }
.page-banner .breadcrumb-item.active, .page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.8); }
.inner { padding: 44px 0 20px; }
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 30px; box-shadow: var(--shadow); }
.rich-content { font-size: 15.5px; line-height: 1.8; }
.rich-content h2, .rich-content h3, .rich-content h4 { font-family: var(--font-heading); color: var(--heading); margin: 24px 0 12px; font-weight: 700; }
.rich-content h3, .rich-content .h3 { font-size: 21px; }
.rich-content .h4 { font-size: 18px; }
.rich-content ul li::marker { color: var(--primary); }
.rich-content img { border-radius: 8px; height: auto; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.rich-content table td, .rich-content table th { border: 1px solid var(--border); padding: 8px 12px; }
.rich-content table th { background: var(--primary-soft); }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.side-card h2, .side-card h5 { background: var(--secondary); color: #fff; margin: 0; padding: 13px 18px; font-size: 15px; font-weight: 600; }
.side-card ul { list-style: none; padding: 6px 0; margin: 0; }
.side-card li a { display: flex; gap: 10px; padding: 9px 18px; color: var(--text); border-bottom: 1px solid var(--border); font-size: 14px; }
.side-card li:last-child a { border-bottom: 0; }
.side-card li a:hover, .side-card li a.active { color: var(--primary); background: var(--primary-soft); }
.side-card li a i { color: var(--primary); margin-top: 4px; font-size: 11px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; height: 100%; box-shadow: var(--shadow); transition: .25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card .nc-body { padding: 18px; }
.news-card .nc-date { font-size: 12.5px; color: var(--primary); font-weight: 600; }
.news-card h2, .news-card h3 { font-size: 17px; font-weight: 600; margin: 6px 0 8px; color: var(--heading); font-family: var(--font-body); }
.leader-big { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.leader-big img { width: 100%; height: 300px; object-fit: cover; object-position: top; }
.contact-info-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); height: 100%; }
.contact-info-card .ci-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary) 18%, transparent); }
.pagination .page-link { color: var(--primary); }
.pagination .active > .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-state { text-align: center; color: var(--muted); padding: 50px 0; }
.empty-state i { font-size: 46px; opacity: .3; margin-bottom: 12px; display: block; }

body.theme-dark .form-control, body.theme-dark .form-select { background: var(--soft); color: var(--text); border-color: var(--border); }
body.theme-dark .modal-content { background: var(--surface); color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
    .nav-menu > li > a { padding: 14px 7px; font-size: 12.5px; gap: 4px; }
    .nav-search { width: 40px; }
}
@media (max-width: 1199px) {
    .hero-swiper { height: 540px; }
    .hero-title { font-size: 44px; }
    .stats-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
    .stat:nth-child(3n) { border-right: 0; }
    .brand-quote { display: none; }
}
@media (max-width: 991px) {
    .brand-l1 { font-size: 22px; } .brand-l2 { font-size: 17px; } .brand-l3 { font-size: 10.5px; letter-spacing: 1.5px; }
    .brand-logo { width: 72px; height: 72px; }
    .hero-swiper { height: 500px; }
    .hero-content { padding-left: 34px; }
    .hero-title { font-size: 38px; }
    .stats-wrap { margin-top: 16px; }
    .vm-card p { max-width: 100%; }
}
@media (max-width: 767px) {
    .brand-l1 { font-size: 16px; } .brand-l2 { font-size: 13px; } .brand-l3 { display: none; }
    .brand-logo { width: 58px; height: 58px; margin-right: 10px; }
    .hero-swiper { height: 520px; }
    .hero-slide::before { background: linear-gradient(180deg, rgba(252,248,240,.94) 0%, rgba(252,248,240,.88) 62%, rgba(252,248,240,.45) 100%); }
    .hero-bg { background-position: 62% center; }
    .hero-content { padding: 0 20px 40px; text-align: left; }
    .hero-title { font-size: 30px; }
    .hero-desc { font-size: 14.5px; }
    .btn-hero-1, .btn-hero-2 { padding: 12px 20px; font-size: 14px; }
    .hero-prev, .hero-next { display: none; }
    .hero-pagination { bottom: 12px !important; }
    .vm-vision p { max-width: 72%; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat { border-right: 0 !important; padding: 4px 10px; }
    .stat-icon { font-size: 26px; }
    .sec-head { align-items: flex-start; }
    .sec-title { font-size: 19px; }
    .c-prev { left: -6px; } .c-next { right: -6px; }
    .page-banner h1 { font-size: 26px; }
    .content-card { padding: 20px; }
    .fb-links { text-align: center; }
    .fb-links a { display: inline-block; padding: 2px 8px; }
}


/* =====================================================================
   v2 – visual polish (crisper imagery, depth, motion)
   ===================================================================== */
img { image-rendering: auto; }
.brand-logo { filter: drop-shadow(0 4px 10px rgba(139,26,26,.18)); transition: transform .4s; }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.04); }
.brand-header { background: radial-gradient(circle at 70% -40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%), linear-gradient(180deg, #fff 0%, #fbf8f2 100%); }
.brand-campus { width: 320px; height: 100px; border-radius: 10px; }
.naac-badge img { filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); }

/* stats */
.stats-bar { border-radius: 16px; padding: 18px 10px; box-shadow: 0 20px 50px rgba(15,23,42,.14); }
.stat { transition: .3s; border-radius: 12px; }
.stat-icon {
    width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; font-size: 22px; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--primary) 9%, #fff); color: var(--primary); transition: .3s;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 14%, transparent);
}
body.theme-dark .stat-icon { background: color-mix(in srgb, var(--primary) 22%, var(--surface)); }
.stat:hover .stat-icon { background: var(--primary); color: #fff; transform: rotateY(180deg); }
.stat-val { font-size: 24px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body.theme-dark .stat-val { background: none; -webkit-text-fill-color: var(--accent); }

/* vision / mission / leaders */
.about-row { padding: 34px 0 14px; }
.vm-card { border-radius: 16px; transition: .35s; border: 0; box-shadow: 0 8px 28px rgba(15,23,42,.08); }
.vm-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,23,42,.14); }
.vm-vision { background-size: auto, auto 104%; }
.vm-icon {
    width: 48px; height: 48px; border-radius: 14px; font-size: 22px; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.1);
}
.vm-card h3 { font-size: 22px; }
.values-list li { transition: .25s; }
.values-list li:hover { transform: translateX(5px); color: #15803d; }
/* leader profile cards (v3) */
.leaders { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.leader {
    flex: 1; display: flex; align-items: center; gap: 16px; text-align: left; color: var(--text);
    background: var(--surface); border: 0; border-radius: 18px; padding: 14px; position: relative; overflow: hidden;
    box-shadow: 0 8px 28px rgba(15,23,42,.08); transition: .35s;
}
.leader::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--primary), var(--accent)); }
.leader::after {
    content: "\f10e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 14px; bottom: 6px;
    font-size: 46px; line-height: 1; color: var(--primary); opacity: .06; transition: .35s;
}
.leader:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(15,23,42,.15); color: var(--text); }
.leader:hover::after { opacity: .12; }
.leader-photo {
    flex-shrink: 0; width: 112px; aspect-ratio: 4 / 5; border-radius: 16px; padding: 3px;
    background: linear-gradient(145deg, var(--primary), var(--accent));
    box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 25%, transparent);
}
.leader-photo img, .leader img {
    width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 20%;
    border-radius: 13px; background: #f3efe7; transition: transform .5s; margin: 0;
}
.leader-photo { overflow: hidden; }
.leader:hover .leader-photo img { transform: scale(1.06); }
.leader-info { min-width: 0; position: relative; z-index: 1; }
.leader-des {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
    color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 20px; margin-bottom: 6px;
}
.leader-name { font-family: var(--font-heading); font-weight: 700; color: var(--heading); font-size: 16.5px; line-height: 1.25; margin: 0 0 4px; }
.leader-quote { font-size: 12.5px; color: var(--muted); font-style: italic; line-height: 1.45; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.leader-more { font-size: 12.5px; font-weight: 600; color: var(--primary); display: inline-flex; gap: 6px; align-items: center; }
.leader-more i { transition: .25s; }
.leader:hover .leader-more i { transform: translateX(4px); }
@media (min-width: 992px) and (max-width: 1399px) {
    .leader { gap: 12px; padding: 12px; }
    .leader-photo { width: 88px; }
    .leader-name { font-size: 15px; }
    .leader-quote { display: none; }
}
@media (max-width: 575px) {
    .leader-photo { width: 96px; }
}

/* section heads */
.home-sec { padding: 34px 0 10px; }
.sec-head { margin-bottom: 20px; }
.sec-icon {
    width: 52px; height: 52px; border-radius: 14px; font-size: 22px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 30%, transparent);
}
.sec-title { font-size: 25px; position: relative; padding-bottom: 6px; }
.sec-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--primary)); }
.btn-outline-c { border-radius: 40px; padding: 8px 18px; }
.btn-outline-c i { transition: .25s; }
.btn-outline-c:hover i { transform: translateX(4px); }
.g-filters button, .g-filters a { border-radius: 30px; padding: 6px 18px; }
.c-nav { width: 40px; height: 40px; }

/* program cards */
.program-card { border-radius: 16px; border: 0; box-shadow: 0 6px 22px rgba(15,23,42,.08); position: relative; }
.program-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(15,23,42,.16); }
.pc-img { height: 150px; position: relative; }
.pc-img::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.25)); }
.program-card:hover .pc-img img { transform: scale(1.1); }
.pc-img img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pc-icon {
    width: 46px; height: 46px; border-radius: 12px; background: #fff; font-size: 20px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(15,23,42,.12);
    margin-top: -36px; position: relative; z-index: 2; transition: .3s;
}
.program-card:hover .pc-icon { background: var(--primary); color: #fff; }
.pc-body { align-items: flex-start; padding: 0 16px 4px; }
.pc-body > div { padding-top: 8px; }
.pc-title { font-size: 16px; }
.pc-link { padding-left: 74px; }
.pc-link i { transition: .25s; }
.program-card:hover .pc-link i { transform: translateX(4px); }

/* gallery */
.g-item { height: 180px; border-radius: 14px; box-shadow: 0 6px 18px rgba(15,23,42,.1); }
.g-item::after {
    content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 50%; left: 50%;
    width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--primary);
    display: flex; align-items: center; justify-content: center; transform: scale(0); transition: .3s; z-index: 2;
}
.g-item:hover::after { transform: scale(1); }
.g-item img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.g-item:hover img { transform: scale(1.12); }

/* awards & news */
.award-card { border-radius: 14px; border: 0; box-shadow: 0 6px 20px rgba(15,23,42,.07); padding: 16px 12px; position: relative; overflow: hidden; }
.award-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--primary)); transform: scaleX(0); transition: .35s; }
.award-card:hover::before { transform: scaleX(1); }
.award-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(15,23,42,.14); }
.aw-img { height: 104px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); border-radius: 50%; }
.aw-img img { transition: .4s; }
.award-card:hover .aw-img img { transform: scale(1.08) rotate(-3deg); }
.aw-year { color: var(--primary); font-weight: 700; }
.news-box { background: var(--surface); border-radius: 16px; padding: 18px 20px 10px; box-shadow: 0 8px 28px rgba(15,23,42,.08); }
.news-box .sec-icon { width: 46px; height: 46px; font-size: 19px; }
.news-list li { padding: 8px 8px; border-radius: 10px; transition: .25s; border-bottom: 1px dashed var(--border); }
.news-list li:hover { background: var(--primary-soft); transform: translateX(4px); }
.n-date { border-radius: 10px; width: 48px; padding: 6px 0 5px; background: linear-gradient(160deg, var(--primary), var(--primary-dark)); }
.n-title { font-weight: 500; }

/* links & press */
.link-card { border-radius: 12px; border: 0; box-shadow: 0 4px 14px rgba(15,23,42,.07); padding: 10px 6px; }
.lc-img { height: 62px; }
.link-card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(15,23,42,.14); }
.pr-img { height: 150px; border-radius: 12px; border: 0; box-shadow: 0 6px 18px rgba(15,23,42,.1); padding: 6px; }
.pr-img img { border-radius: 8px; transition: .5s; }
.press-card:hover .pr-img img { transform: scale(1.05); }
.pr-date { font-weight: 600; color: var(--ink); }
body.theme-dark .pr-date { color: #e2e8f0; }

/* page banner with crisp image */
.page-banner { padding: 78px 0 64px; background-position: center; }
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent)); }
.page-banner h1 { font-size: 40px; text-shadow: 0 4px 20px rgba(0,0,0,.25); }

/* footer */
.site-footer { margin-top: 50px; padding-top: 48px; background: radial-gradient(circle at 15% 0%, rgba(255,255,255,.07), transparent 40%), linear-gradient(180deg, var(--secondary) 0%, var(--secondary-dark) 100%); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary)); }
.f-title { position: relative; padding-bottom: 8px; }
.f-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--accent); }
.f-social .soc { border-radius: 50%; transition: .25s; }
.f-social .soc:hover { transform: translateY(-4px); }
.f-map { border-radius: 12px; height: 130px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }

/* scroll reveal (added by JS, so content stays visible without JS) */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .hero-content > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
    .hero-bg { transition: none; transform: none; }
}
@media (max-width: 767px) {
    .hero-tag { font-size: 10.5px; letter-spacing: 1px; padding: 5px 12px; }
    .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 6px; }
    .stat { gap: 10px; padding: 6px 8px; min-width: 0; }
    .stat-icon { width: 42px; height: 42px; font-size: 17px; }
    .stat-val { font-size: 19px; white-space: normal; }
    .sec-icon { width: 42px; height: 42px; font-size: 18px; }
    .sec-title { font-size: 20px; }
    .g-item { height: 150px; }
    .page-banner { padding: 50px 0 40px; }
    .page-banner h1 { font-size: 28px; }
}

/* =====================================================================
   v3 – homepage layout matching the approved design (Oct 2026)
   ===================================================================== */
:root { --gold: var(--accent); }

/* header */
.brand-header { background: #fff; padding: 10px 0 12px; overflow: hidden; position: relative; border-bottom: 0; }
.brand-header .brand-campus {
    position: absolute; right: 0; top: 0; bottom: 0; width: 40%; height: auto; border-radius: 0;
    background-size: cover; background-position: center right;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 45%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 18%, #000 45%);
}
.brand-header .container-xxl { z-index: 2; }
.brand-logo { width: 100px; height: 100px; filter: none; }
.brand-l1 { font-size: 31px; letter-spacing: .4px; }
.brand-l2 { font-size: 24px; }
.brand-badge {
    display: inline-block; margin-top: 6px; margin-left: 110px; background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: #ffd76a; font-weight: 600; font-size: 13px; padding: 3px 16px; border-radius: 6px; letter-spacing: .3px;
    box-shadow: 0 3px 8px color-mix(in srgb, var(--primary) 35%, transparent);
}
.brand-right { align-self: stretch; padding: 6px 0 0; gap: 10px; }
.brand-right { position: static; justify-content: flex-end !important; min-height: 100px; }
/* quote sits between the college name and the campus photo, never touching either */
.brand-right .brand-quote {
    position: absolute; right: 30%; top: 14px; transform: none; margin: 0; z-index: 3;
    width: 250px; max-width: none; text-align: center; font-size: 19px; line-height: 1.3; color: var(--primary);
    text-shadow: 0 0 12px #fff, 0 0 6px #fff, 0 0 2px #fff;
}
.brand-search { display: flex; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.18); width: 270px; }
.brand-search input { flex: 1; border: 0; padding: 8px 12px; font-size: 13.5px; outline: none; min-width: 0; color: var(--text); }
.brand-search button { border: 0; background: var(--primary); color: #fff; width: 42px; }
.brand-search button:hover { background: var(--primary-dark); }

/* nav */
.main-nav { background: var(--secondary); box-shadow: none; }
.nav-menu > li.active > a { background: var(--primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent); }
.nav-menu > li.active > a i:not(.caret) { color: var(--accent); }

/* hero (dark maroon overlay, white text) */
.hero-v3 .hero-swiper { height: 540px; }
.hero-v3 .hero-bg { background-position: right center; }
.hero-v3 .hero-slide::before {
    background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 96%, #000) 0%, color-mix(in srgb, var(--primary) 88%, transparent) 26%, color-mix(in srgb, var(--primary) 55%, transparent) 40%, transparent 58%);
}
.hero-v3 .hero-slide::after { height: 90px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--primary) 35%, transparent)); }
.hero-v3 .hero-content { max-width: 600px; padding: 0 0 30px 36px; }
.hero-v3 .hero-tag {
    background: none; border: 0; padding: 0; border-radius: 0; color: var(--accent); letter-spacing: .3px;
    font-size: 17px; font-weight: 600; text-transform: none; margin-bottom: 8px;
}
.hero-v3 .hero-tag::before { width: 26px; height: 2px; border-radius: 0; box-shadow: none; background: var(--accent); }
.hero-v3 .hero-title { color: #fff; font-size: 54px; line-height: 1.08; text-shadow: 0 3px 18px rgba(0,0,0,.25); max-width: 440px; }
.hero-v3 .hero-title span { color: var(--accent); background: none; }
.hero-v3 .hero-desc { color: rgba(255,255,255,.92); font-size: 16.5px; max-width: 560px; }
.hero-v3 .btn-hero-1, .hero-v3 .btn-hero-2 { border-radius: 4px; padding: 13px 30px; font-size: 15px; }
.hero-v3 .btn-hero-1 { background: linear-gradient(180deg, var(--primary), var(--primary-dark)); border: 1px solid rgba(255,255,255,.55); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.hero-v3 .btn-hero-2 { background: #fff; color: var(--primary); border: 1px solid #fff; }
.hero-v3 .btn-hero-2:hover { background: var(--accent); border-color: var(--accent); color: #1b1b1b; }
.hero-v3 .hero-prev, .hero-v3 .hero-next { background: rgba(0,0,0,.55); border: 0; width: 42px; height: 42px; }
.hero-v3 .hero-next { right: 16px !important; }
.hero-v3 .hero-pagination { bottom: 18px !important; }
.hero-script {
    position: absolute; right: 5%; bottom: 34px; z-index: 4; display: flex; flex-direction: column; align-items: flex-end;
    font-family: 'Dancing Script', 'Brush Script MT', cursive; color: #fff; font-weight: 600; line-height: .95; pointer-events: none;
    text-shadow: 0 3px 14px rgba(0,0,0,.45); transform: rotate(-8deg);
}
.hero-script span { font-size: 46px; margin-right: calc(var(--i) * -18px); opacity: 0; animation: heroUp 1s ease .6s forwards; }
.hero-script span:nth-child(2) { font-size: 54px; }

/* stats band */
.stats-band { background: linear-gradient(180deg, var(--secondary), var(--secondary-dark)); color: #fff; position: relative; z-index: 3; }
.stats-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary)); }
.stats-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 14px 0; }
.stats-band .stat { display: flex; align-items: center; gap: 14px; padding: 6px 16px; border-right: 1px solid rgba(255,255,255,.18); border-radius: 0; }
.stats-band .stat:last-child { border-right: 0; }
.stats-band .stat-icon { width: auto; height: auto; background: none !important; box-shadow: none; color: var(--accent); font-size: 34px; transform: none !important; flex-shrink: 0; }
.stats-band .stat-val { color: var(--accent); -webkit-text-fill-color: var(--accent); background: none; font-size: 25px; font-weight: 700; line-height: 1.1; }
.stats-band .stat-lbl { color: rgba(255,255,255,.9); font-size: 12.5px; }

/* vision / mission / values / leaders */
.about-v3 { padding: 18px 0 6px; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1.25fr 1fr .72fr .72fr; gap: 12px; }
.vm-box {
    background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 22px 20px 70px; position: relative; overflow: hidden;
    box-shadow: 0 4px 16px rgba(15,23,42,.05); transition: .3s;
}
.vm-box::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; opacity: .55; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70 L60 38 L95 52 L150 14 L205 50 L250 30 L300 58 L345 36 L400 56 L400 70Z' fill='%23dfe6f6'/%3E%3Cpath d='M150 14 L135 30 L150 26 L165 34Z M345 36 L333 46 L346 44 L358 50Z' fill='%23fff'/%3E%3Cpath d='M0 70 L80 50 L140 62 L220 44 L290 64 L360 50 L400 62 L400 70Z' fill='%23eef2fb'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
.vm-box.vm-values { padding-bottom: 20px; }
.vm-box.vm-values::after { display: none; }
.vm-box:hover { box-shadow: 0 14px 34px rgba(15,23,42,.12); transform: translateY(-4px); }
.vm-box .vm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.vm-box .vm-head i { font-size: 34px; color: var(--primary); filter: drop-shadow(0 4px 6px color-mix(in srgb, var(--primary) 25%, transparent)); }
.vm-box .vm-head h2, .vm-box .vm-head h3 { font-family: var(--font-heading); font-weight: 700; color: var(--ink); font-size: 20px; margin: 0; }
.vm-box p { font-size: 13.5px; color: #5b6170; line-height: 1.65; margin: 0; position: relative; z-index: 1; }
.vm-link { position: absolute; left: 20px; bottom: 16px; z-index: 2; font-size: 12.5px; font-weight: 600; color: var(--primary); display: inline-flex; gap: 6px; align-items: center; }
.vm-values .values-list li { font-size: 13px; padding: 4px 0; color: var(--ink); }
.vm-values .values-list i { color: var(--primary); font-size: 17px; }
.leader-v3 {
    background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 10px 14px; text-align: center; display: block;
    box-shadow: 0 4px 16px rgba(15,23,42,.05); transition: .3s; color: var(--text);
}
.leader-v3:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,23,42,.12); color: var(--text); }
.lv-photo { border-radius: 8px; overflow: hidden; aspect-ratio: 1 / .92; background: #f2ede4; margin-bottom: 8px; }
.lv-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.leader-v3:hover .lv-photo img { transform: scale(1.06); }
.lv-name { color: var(--primary); font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.lv-des { color: var(--ink); font-weight: 700; font-size: 12.5px; margin-bottom: 4px; }
.lv-quote { font-size: 12.5px; color: #3f4552; line-height: 1.4; }

/* announcements ticker */
.ticker-wrap { padding: 10px 0 2px; }
.ticker { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 14px rgba(15,23,42,.05); height: 46px; }
.ticker-label {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 15px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark)); padding: 0 34px 0 18px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); white-space: nowrap;
}
.ticker-label .fa-bullhorn { font-size: 18px; transform: rotate(-12deg); }
.ticker-viewport { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); }
.ticker-track { display: flex; align-items: center; white-space: nowrap; will-change: transform; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13.5px; font-weight: 500; padding: 0 28px; border-right: 1px solid var(--border); }
.ticker-item:hover { color: var(--primary); }
.t-new { background: #f04e23; color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 3px; animation: blink 1.4s infinite; }
.ticker-ctrl { display: flex; align-items: center; gap: 4px; padding: 0 8px; flex-shrink: 0; background: #fff; }
.ticker-ctrl button { border: 0; background: transparent; color: var(--primary); width: 30px; height: 30px; border-radius: 6px; font-size: 13px; }
.ticker-ctrl button:hover { background: var(--primary-soft); }
.ticker-ctrl .t-pause { background: var(--primary-soft); }

/* section heads (plain icon style) */
.sec-head { margin-bottom: 14px; }
.sec-icon { width: auto; height: auto; background: none; box-shadow: none; color: var(--primary); font-size: 32px; border-radius: 0; }
.sec-title { font-size: 24px; color: var(--ink); padding-bottom: 0; }
.sec-title::after { display: none; }
.sec-sub { color: var(--ink); font-size: 14px; opacity: .85; }
.btn-outline-c { border-radius: 4px; padding: 7px 16px; font-size: 13px; }
.home-sec { padding: 22px 0 6px; }

/* program cards */
.prog-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 16px 8px 12px; border-radius: 10px;
    background: linear-gradient(180deg, var(--tint, #fdecef) 0%, color-mix(in srgb, var(--tint, #fdecef) 45%, #fff) 100%);
    border: 1px solid color-mix(in srgb, var(--tint, #fdecef) 70%, #d9dce5); transition: .3s; color: var(--ink);
}
.prog-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(15,23,42,.12); color: var(--ink); }
.prog-icon { font-size: 36px; margin-bottom: 10px; color: var(--pc, var(--primary)); filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); transition: .3s; }
.prog-card:hover .prog-icon { transform: scale(1.12) rotate(-4deg); }
.prog-title { font-weight: 700; font-size: 14px; line-height: 1.2; }
.prog-level { font-size: 12.5px !important; }
.prog-level { font-size: 13px; color: #4b5263; margin-bottom: 12px; }
.prog-go { margin-top: auto; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--pc, var(--primary)); box-shadow: 0 3px 8px rgba(15,23,42,.12); font-size: 12px; transition: .3s; }
.prog-card:hover .prog-go { background: var(--pc, var(--primary)); color: #fff; }
.programs-swiper .swiper-slide:nth-child(6n+1) .prog-card { --pc: #c8102e; }
.programs-swiper .swiper-slide:nth-child(6n+2) .prog-card { --pc: #1d6fd8; }
.programs-swiper .swiper-slide:nth-child(6n+3) .prog-card { --pc: #e8590c; }
.programs-swiper .swiper-slide:nth-child(6n+4) .prog-card { --pc: #15803d; }
.programs-swiper .swiper-slide:nth-child(6n+5) .prog-card { --pc: #7e22ce; }
.programs-swiper .swiper-slide:nth-child(6n+6) .prog-card { --pc: #e8a100; }

/* quick links panel */
.ql-panel { border-left: 1px solid var(--border); padding-left: 22px; height: 100%; }
.ql-panel .sec-head { margin-bottom: 14px; }
.ql-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ql-row {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff;
    color: var(--ink); font-size: 13px; font-weight: 500; transition: .25s; min-width: 0;
}
.ql-row span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ql-ic { color: var(--ink); font-size: 15px; width: 18px; text-align: center; }
.ql-chev { font-size: 10px; color: var(--ink); opacity: .7; transition: .25s; }
.ql-row:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 6px 14px rgba(15,23,42,.08); transform: translateY(-2px); }
.ql-row:hover .ql-ic, .ql-row:hover .ql-chev { color: var(--primary); }
.ql-row:hover .ql-chev { transform: translateX(3px); }

/* gallery filters (segmented) */
.g-filters { display: flex; gap: 10px; align-items: center; }
.g-filters > button { border-radius: 4px; padding: 6px 20px; }
.g-seg { display: flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; }
.g-seg button { border: 0 !important; border-right: 1px solid var(--border) !important; border-radius: 0 !important; padding: 6px 16px; }
.g-seg button:last-child { border-right: 0 !important; }
.g-item { height: 160px; border-radius: 6px; box-shadow: none; }

/* awards / news */
.aw-col { border-right: 1px solid var(--border); }
.award-card { border: 1px solid var(--border); box-shadow: none; border-radius: 6px; }
.aw-img { background: none; border-radius: 0; height: 110px; }
.aw-title { color: var(--ink); font-size: 12.5px; }
.aw-year { color: var(--ink); font-weight: 500; }
.news-box { background: none; box-shadow: none; padding: 0; }
.news-list li { padding: 5px 4px; border-bottom: 1px solid var(--border); }
.n-date { border-radius: 3px; width: 44px; background: var(--primary); line-height: 1; }
.n-date span { text-transform: none; font-size: 11px; }
.n-title { color: var(--ink); }
.n-new { background: #f04e23; }

@media (max-width: 1399px) {
    .brand-right .brand-quote { right: 27%; width: 220px; font-size: 17px; }
    .brand-l1 { font-size: 27px; } .brand-l2 { font-size: 21px; }
}
@media (max-width: 1199px) {
    .brand-right .brand-quote { display: none; }
    .about-grid { grid-template-columns: 1fr 1fr 1fr; }
    .leader-v3 { display: grid; grid-template-columns: 110px 1fr; gap: 0 14px; text-align: left; align-content: center; align-items: center; }
    .leader-v3 .lv-photo { grid-row: 1 / span 3; margin: 0; }
    .stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
    .stats-band .stat:nth-child(3n) { border-right: 0; }
    .hero-v3 .hero-title { font-size: 44px; }
    .hero-script { display: none; }
    .ql-panel { border-left: 0; padding-left: 0; }
}
@media (max-width: 991px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
    .brand-badge { margin-left: 0; }
    .brand-header .brand-campus { display: none; }
    .aw-col { border-right: 0; }
}
@media (max-width: 767px) {
    .about-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-band .stat { border-right: 0 !important; padding: 6px 8px; }
    .stats-band .stat-icon { font-size: 26px; }
    .stats-band .stat-val { font-size: 20px; }
    .hero-v3 .hero-swiper { height: 520px; }
    .hero-v3 .hero-slide::before { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 90%, transparent), color-mix(in srgb, var(--primary) 70%, transparent)); }
    .hero-v3 .hero-content { padding: 0 18px 30px; }
    .hero-v3 .hero-title { font-size: 32px; }
    .hero-v3 .hero-desc { font-size: 14.5px; }
    .ticker-label span { display: none; }
    .ticker-label { padding: 0 22px 0 14px; }
    .g-filters { flex-wrap: wrap; }
    .g-seg { flex-wrap: wrap; }
    .brand-badge { font-size: 11px; padding: 2px 10px; }
}
.programs-swiper .swiper-slide, .awards-swiper .swiper-slide { height: auto; }
.programs-swiper .swiper-wrapper, .awards-swiper .swiper-wrapper { align-items: stretch; }
@media (max-width: 991px) {
    .brand-logo { width: 72px; height: 72px; }
    .brand-l1 { font-size: 21px; } .brand-l2 { font-size: 16px; }
}
@media (max-width: 767px) {
    .brand-logo { width: 58px; height: 58px; }
    .brand-l1 { font-size: 15.5px; } .brand-l2 { font-size: 12.5px; }
    .hero-v3 .hero-tag { font-size: 14px; }
}

/* =====================================================================
   Language switcher + Devanagari (Marathi / Hindi) typography
   ===================================================================== */
/* (language dropdown styles: see 'Top bar v2' at the end of this file) */

html:lang(mr) body *, html:lang(hi) body * { letter-spacing: 0 !important; }
html:lang(mr) body, html:lang(hi) body { line-height: 1.7; }
html:lang(mr) .brand-l1, html:lang(hi) .brand-l1 { font-size: 30px; line-height: 1.25; }
html:lang(mr) .brand-l2, html:lang(hi) .brand-l2 { font-size: 22px; line-height: 1.35; }
html:lang(mr) .hero-title, html:lang(hi) .hero-title { line-height: 1.28; font-size: 48px; }
html:lang(mr) .sec-title, html:lang(hi) .sec-title,
html:lang(mr) .vm-box .vm-head h2, html:lang(hi) .vm-box .vm-head h2 { line-height: 1.4; }
html:lang(mr) .nav-menu > li > a, html:lang(hi) .nav-menu > li > a { font-size: 14px; }
@media (max-width: 767px) {
    html:lang(mr) .brand-l1, html:lang(hi) .brand-l1 { font-size: 16px; }
    html:lang(mr) .brand-l2, html:lang(hi) .brand-l2 { font-size: 13px; }
    html:lang(mr) .hero-title, html:lang(hi) .hero-title { font-size: 30px; }
}

/* =====================================================================
   Student / Faculty login page (inside the website layout)
   ===================================================================== */
.portal-login { padding: 50px 0; background: radial-gradient(circle at 10% 10%, var(--primary-soft), transparent 45%), #f6f7fb; }
.pl-card { display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.14); max-width: 1060px; margin: 0 auto; }
.pl-art { position: relative; background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 92%, transparent), color-mix(in srgb, var(--secondary) 88%, transparent)), var(--img) center/cover; color: #fff; padding: 48px 42px; display: flex; align-items: center; }
.pl-chip { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); padding: 5px 14px; border-radius: 30px; font-size: 12.5px; font-weight: 600; }
.pl-art h2 { font-family: var(--font-heading); font-weight: 900; font-size: 34px; margin: 16px 0 10px; }
.pl-art p { opacity: .9; margin-bottom: 22px; }
.pl-art ul { list-style: none; padding: 0; margin: 0; }
.pl-art li { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-weight: 500; }
.pl-art li i { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.pl-form { padding: 40px 44px; }
.pl-tabs { display: flex; background: #f1f3f9; border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.pl-tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; color: #475569; }
.pl-tabs a.on { background: #fff; color: var(--primary); box-shadow: 0 4px 12px rgba(15,23,42,.1); }
.pl-title { font-family: var(--font-heading); font-weight: 900; color: var(--ink); font-size: 28px; margin-bottom: 4px; }
.pl-input { position: relative; }
.pl-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.pl-input input { padding: 12px 44px 12px 40px; border-radius: 10px; }
.pl-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #94a3b8; padding: 6px 8px; }
@media (max-width: 767px) {
    .pl-card { grid-template-columns: 1fr; }
    .pl-art { padding: 30px 24px; }
    .pl-art ul { display: none; }
    .pl-form { padding: 28px 22px; }
}
/* registration */
.pl-reg { max-width: 1180px; grid-template-columns: .85fr 1.15fr; }
.pl-reg .pl-form { padding: 34px 40px; }
.pl-reg .form-label { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.pl-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.pl-steps li { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-weight: 500; }
.pl-steps b { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #1b1b1b; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pl-register { margin-top: 20px; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; font-size: 14px; background: var(--primary-soft); }
.pl-register span { color: var(--muted); margin-right: 6px; }
.pl-register a { font-weight: 700; }
.pl-done { max-width: 620px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 46px 34px; text-align: center; box-shadow: 0 24px 60px rgba(15,23,42,.12); }
.pl-done-icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--primary)); box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 30%, transparent); }
@media (max-width: 991px) { .pl-reg { grid-template-columns: 1fr; } .pl-reg .pl-art { padding: 28px 24px; } .pl-reg .pl-steps { display: none; } }
@media (max-width: 575px) { .pl-reg .pl-form { padding: 24px 18px; } }


/* ==========================================================================
   Dark themes (Midnight Dark / Midnight Emerald / Black & Gold) – homepage v3 blocks
   ========================================================================== */
body.theme-dark .vm-box, body.theme-dark .leader-v3, body.theme-dark .ticker, body.theme-dark .ticker-ctrl,
body.theme-dark .ql-row, body.theme-dark .g-seg, body.theme-dark .award-card { background: var(--surface); border-color: var(--border); }
body.theme-dark .vm-box::after { opacity: .08; }
body.theme-dark .vm-box p, body.theme-dark .lv-quote, body.theme-dark .prog-level { color: var(--muted); }
body.theme-dark .lv-photo { background: #1b2540; }
body.theme-dark .prog-card { background: linear-gradient(180deg, color-mix(in srgb, var(--pc, var(--primary)) 18%, var(--surface)), var(--surface)); border-color: var(--border); color: var(--ink); }
body.theme-dark .prog-go { background: var(--soft); }
body.theme-dark .brand-right .brand-quote { color: #e6ebf3; }
body.theme-dark .ql-panel { border-color: var(--border); }
body.theme-dark .ticker-item { border-color: var(--border); }


/* ==========================================================================
   Top bar v2 – single-line links, language dropdown, priority "More" menu
   ========================================================================== */
.topbar { min-height: 38px; font-size: 13px; }
.topbar > .container-xxl { min-width: 0; }
.topbar-left { flex: 1 1 auto; min-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { flex: 0 0 auto; gap: 14px; }
.topbar-links { display: flex; align-items: center; gap: 2px; }
.topbar-right .topbar-links a { margin: 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 9px; border-radius: 6px; line-height: 1.2; transition: background .2s, color .2s; }
.topbar-right .topbar-links a:hover { background: rgba(255,255,255,.1); color: #fff; }
.topbar-right .topbar-links a i { margin: 0; font-size: 12px; }
.topbar-social { margin-left: 0; gap: 6px; }
.topbar-social .soc { width: 24px; height: 24px; border-radius: 6px; transition: transform .2s; }
.topbar-social .soc:hover { transform: translateY(-2px); }
@media (max-width: 1399px) {
    .topbar-right { gap: 10px; }
    .topbar-right .topbar-links a { padding: 6px 7px; font-size: 12.5px; }
}
@media (max-width: 1199px) {
    .topbar-right .topbar-links a i { display: none; }
    .topbar-social { display: none !important; }
}

/* language dropdown */
.lang-dd { position: relative; flex-shrink: 0; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 9px;
    background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 30px;
    font-size: 12.5px; font-weight: 600; line-height: 1; transition: .2s; white-space: nowrap;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: #fff; color: var(--primary); border-color: #fff; }
.lang-btn .fa-globe { color: var(--accent); font-size: 13px; }
.lang-btn:hover .fa-globe, .lang-btn[aria-expanded="true"] .fa-globe { color: var(--primary); }
.lang-btn .lang-caret { font-size: 9px; opacity: .8; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
    min-width: 230px; padding: 6px; margin-top: 8px !important; border: 0; border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15,23,42,.22); background: var(--surface, #fff); z-index: 1060;
}
.lang-menu::before { content: ""; position: absolute; top: -6px; right: 22px; width: 12px; height: 12px; background: var(--surface, #fff); transform: rotate(45deg); border-radius: 2px; }
.lang-menu-head { font-size: 11px; font-weight: 600; color: var(--muted); padding: 6px 10px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; letter-spacing: 0 !important; }
.lang-menu-head i { color: var(--primary); margin-right: 4px; }
.lang-opt { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--text); text-decoration: none; transition: .15s; position: relative; }
.lang-opt:hover { background: var(--primary-soft); color: var(--primary); }
.lang-opt .lang-code {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
    background: var(--soft, #f1f3f8); color: var(--ink); font-size: 11.5px; font-weight: 800; letter-spacing: .5px;
    font-family: system-ui, sans-serif;
}
.lang-opt .lang-names { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.lang-opt .lang-names b { font-size: 14.5px; font-weight: 600; }
.lang-opt .lang-names small { font-size: 11.5px; color: var(--muted); }
.lang-opt .lang-tick { color: var(--primary); font-size: 16px; opacity: 0; transform: scale(.6); transition: .2s; }
.lang-opt.on { background: var(--primary-soft); }
.lang-opt.on .lang-code { background: var(--primary); color: #fff; }
.lang-opt.on .lang-tick { opacity: 1; transform: none; }
.lang-opt.on .lang-names b { color: var(--primary); }
.lang-opt[lang="mr"] .lang-names b, .lang-opt[lang="hi"] .lang-names b { font-family: 'Noto Sans Devanagari', 'Mukta', 'Hind', system-ui, sans-serif; }
body.theme-dark .lang-opt .lang-code { background: var(--soft); color: #e6ebf3; }
body.theme-dark .lang-opt.on .lang-code { background: var(--primary); color: #fff; }
@media (max-width: 991px) {
    .lang-btn { height: 26px; padding: 0 9px 0 8px; font-size: 12px; }
    .lang-menu { min-width: 210px; }
}

/* main menu – items that don't fit move into a "More" dropdown (see front.js) */
.nav-menu { flex-wrap: nowrap; min-width: 0; }
.nav-menu > li.nav-more { display: none; }
.nav-menu.has-more > li.nav-more { display: block; }
.nav-more > a { cursor: pointer; }
.nav-more > .sub-menu { left: auto; right: 0; min-width: 250px; }
.nav-more .sub-menu .sub-menu { top: 0; left: auto; right: 100%; border-top: 0; border-right: 3px solid var(--accent); border-radius: 8px 0 0 8px; min-width: 230px; }
.nav-more .sub-menu > li > a > .caret { transform: rotate(90deg); }
.nav-more .sub-menu > li > a > i:not(.caret) { color: var(--primary); width: 18px; }
.topbar-right .lang-menu a.lang-opt { margin: 0; color: var(--text); }
.topbar-right .lang-menu a.lang-opt:hover, .topbar-right .lang-menu a.lang-opt.on { color: var(--primary); }
.nav-more .sub-menu > li > a { justify-content: flex-start; gap: 8px; }
.nav-more .sub-menu > li > a > .caret { margin-left: auto; }

/* ---------- Captcha widget (partials/captcha.blade.php) ---------- */
.captcha-box { margin: 2px 0; }
.captcha-box > .form-label { display: block; }
.captcha-math { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.captcha-math .captcha-img { border-radius: 8px; border: 1px solid rgba(100,116,139,.3); background: #f1f5f9; height: 46px; width: 150px; }
.captcha-math .captcha-refresh { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(100,116,139,.3); background: transparent; color: inherit; display: grid; place-items: center; transition: transform .3s; }
.captcha-math .captcha-refresh:hover { transform: rotate(90deg); }
.captcha-math input { flex: 1 1 110px; max-width: 160px; height: 46px; font-weight: 600; font-size: 1.05rem; }
.captcha-v3-note { font-size: .78rem; opacity: .75; }
.captcha-v3-note a { color: inherit; text-decoration: underline; }
.captcha-error { color: #dc2626; font-size: .85rem; margin-top: 6px; font-weight: 500; }
.g-recaptcha, .cf-turnstile, .h-captcha { min-height: 65px; max-width: 100%; overflow: hidden; }
@media (max-width: 360px) { .g-recaptcha { transform: scale(.88); transform-origin: 0 0; } }
