/* =====================================================================
   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 {
    --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 {
    --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(--secondary);
    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; inset: 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; inset: 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(--secondary);
    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(--secondary); 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(--secondary); }
.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(--secondary); 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(--secondary); 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(--secondary); 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; inset: auto 0 0 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 { font-size: 21px; }
.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 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 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 { border-radius: 16px; border: 0; box-shadow: 0 8px 28px rgba(15,23,42,.08); padding: 12px 12px 14px; transition: .35s; position: relative; overflow: hidden; }
.leader::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.leader img { height: 104px; border-radius: 12px; }
.leader-name { font-size: 14.5px; }

/* 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; inset: 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(--secondary); }
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; }
}
