:root {
  --navy: #272249;
  --navy-deep: #17142f;
  --red: #b50912;
  --red-dark: #8e060d;
  --gold: #c49a2f;
  --gold-soft: #f1e4b9;
  --ink: #242436;
  --muted: #687080;
  --surface: #f6f6f9;
  --white: #fff;
  --border: #e5e3ea;
  --shadow: 0 18px 50px rgba(25, 21, 52, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "DM Sans", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 2000; padding: .65rem 1rem; color: #fff; background: var(--red); border-radius: .4rem; }
.skip-link:focus { top: 1rem; }
.topbar { padding: .55rem 0; color: #fff; background: var(--navy); font-size: .82rem; }
.topbar-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.15rem; }
.topbar a { opacity: .94; transition: opacity .2s ease; }
.topbar a:hover { opacity: 1; }
.topbar i { margin-right: .25rem; color: #f2ca61; }
.top-register { font-weight: 700; letter-spacing: .02em; }

.site-header { z-index: 1030; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(39,34,73,.09); box-shadow: 0 8px 24px rgba(24,20,49,.06); backdrop-filter: blur(12px); }
.navbar { min-height: 86px; }
.navbar-brand img { width: min(359px, 58vw); height: auto; }
.navbar-nav { gap: .1rem; }
.navbar .nav-link { position: relative; padding: 1.85rem .68rem !important; color: var(--navy); font-size: .84rem; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
.navbar .nav-link::after { transition: transform .2s ease; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--red); }
.navbar .nav-link.active::before { content: ""; position: absolute; right: .7rem; bottom: 1.15rem; left: .7rem; height: 3px; background: var(--red); border-radius: 99px; }
.dropdown-menu { padding: .6rem; border: 0; border-top: 3px solid var(--red); border-radius: 0 0 .7rem .7rem; box-shadow: 0 14px 32px rgba(20,16,44,.15); }
.dropdown-item { padding: .65rem .8rem; color: var(--navy); font-size: .84rem; font-weight: 600; border-radius: .35rem; }
.dropdown-item:hover { color: var(--red); background: #f8f1f1; }

.faculty-hero { position: relative; overflow: hidden; padding: 5.6rem 0 6.7rem; color: #fff; background: linear-gradient(115deg, rgba(19,16,43,.97), rgba(42,35,84,.93)), radial-gradient(circle at 80% 20%, #b50912 0, transparent 42%); }
.faculty-hero::after { content: ""; position: absolute; right: -9rem; bottom: -13rem; width: 34rem; height: 34rem; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 3rem rgba(255,255,255,.025), 0 0 0 7rem rgba(255,255,255,.018); }
.hero-pattern { position: absolute; inset: 0; opacity: .07; background-image: linear-gradient(30deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff), linear-gradient(150deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff); background-size: 82px 142px; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.45); --bs-breadcrumb-item-active-color: #f1d17d; font-size: .88rem; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { color: #f0cb68; }
.faculty-hero h1 { max-width: 820px; margin: .8rem 0 1rem; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.65rem, 6vw, 5rem); font-weight: 700; line-height: 1.02; }
.faculty-hero h1 span { color: #f0cb68; }
.faculty-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.75; }
.hero-emblem { position: relative; display: grid; width: 255px; height: 255px; margin-left: auto; place-content: center; text-align: center; border: 1px solid rgba(240,203,104,.35); border-radius: 50%; box-shadow: inset 0 0 0 16px rgba(255,255,255,.025), 0 0 50px rgba(181,9,18,.25); }
.hero-emblem::before, .hero-emblem::after { content: ""; position: absolute; inset: 21px; border: 1px dashed rgba(240,203,104,.25); border-radius: inherit; }
.hero-emblem::after { inset: -8px; border-style: solid; opacity: .35; }
.hero-emblem i { display: block; color: #f0cb68; font-size: 4rem; }
.hero-emblem span { display: block; margin-top: .6rem; color: rgba(255,255,255,.74); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }

.faculty-overview { position: relative; z-index: 2; margin-top: -3.2rem; }
.overview-card { overflow: hidden; background: #fff; border-radius: 1.15rem; box-shadow: var(--shadow); }
.principal-photo-wrap { position: relative; height: 100%; min-height: 390px; background: #dedce5; }
.principal-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.principal-photo-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24,20,49,.55), transparent 55%); }
.principal-badge { position: absolute; z-index: 1; right: 1.2rem; bottom: 1.2rem; left: 1.2rem; padding: .8rem 1rem; color: #fff; background: rgba(181,9,18,.92); border-radius: .55rem; font-weight: 700; text-align: center; backdrop-filter: blur(6px); }
.principal-copy { padding: clamp(2rem, 5vw, 4.5rem); }
.principal-copy h2, .section-heading h2, .academic-strip h2 { margin: .55rem 0 .4rem; color: var(--navy); font-family: "Playfair Display", Georgia, serif; font-weight: 700; }
.principal-copy h2 { font-size: clamp(2.1rem, 4vw, 3.35rem); }
.principal-role { color: var(--red); font-weight: 700; }
.principal-copy > p:not(.principal-role) { max-width: 700px; color: var(--muted); line-height: 1.75; }
.qualification-box { display: flex; gap: 1rem; align-items: flex-start; margin: 1.65rem 0; padding: 1.1rem 1.25rem; background: var(--surface); border-left: 4px solid var(--gold); border-radius: 0 .65rem .65rem 0; }
.qualification-box i { color: var(--red); font-size: 1.5rem; }
.qualification-box span, .qualification-box strong { display: block; }
.qualification-box span { margin-bottom: .15rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.qualification-box strong { color: var(--navy); font-size: .94rem; line-height: 1.5; }
.text-link { color: var(--red); font-weight: 800; }
.text-link i { transition: transform .2s ease; }
.text-link:hover i { transform: translateX(4px); }

.py-lg-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.faculty-directory { background: linear-gradient(#fff, #f8f7fa); }
.section-heading { max-width: 690px; margin-bottom: 2.5rem; }
.section-heading h2 { font-size: clamp(2.25rem, 4vw, 3.4rem); }
.section-heading p { color: var(--muted); line-height: 1.75; }
.directory-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding: .75rem; background: #fff; border: 1px solid var(--border); border-radius: .85rem; box-shadow: 0 10px 28px rgba(31,26,63,.06); }
.filter-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter-btn { padding: .62rem .9rem; color: #5e6070; background: transparent; border: 0; border-radius: .55rem; font-size: .84rem; font-weight: 700; transition: .2s ease; }
.filter-btn span { margin-left: .3rem; padding: .1rem .38rem; background: #ecebf0; border-radius: 99px; font-size: .67rem; }
.filter-btn:hover, .filter-btn.active { color: #fff; background: var(--red); }
.filter-btn.active span { color: var(--red); background: #fff; }
.faculty-search { position: relative; flex: 0 1 300px; }
.faculty-search i { position: absolute; top: 50%; left: .9rem; color: var(--muted); transform: translateY(-50%); }
.faculty-search input { width: 100%; padding: .7rem .9rem .7rem 2.45rem; color: var(--ink); background: var(--surface); border: 1px solid transparent; border-radius: .55rem; outline: 0; }
.faculty-search input:focus { background: #fff; border-color: rgba(181,9,18,.35); box-shadow: 0 0 0 .2rem rgba(181,9,18,.08); }
.faculty-item { transition: opacity .22s ease, transform .22s ease; }
.faculty-item.is-hidden { display: none; }
.faculty-card { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 10px 30px rgba(30,25,61,.07); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.faculty-card:hover { border-color: rgba(181,9,18,.25); box-shadow: 0 20px 45px rgba(30,25,61,.13); transform: translateY(-7px); }
.faculty-photo-wrap { position: relative; overflow: hidden; aspect-ratio: 4 / 4.35; background: #e6e5eb; }
.faculty-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: saturate(.88); transition: transform .45s ease, filter .45s ease; }
.faculty-card:hover .faculty-photo { filter: saturate(1); transform: scale(1.035); }
.subject-chip { position: absolute; right: .8rem; bottom: .8rem; left: .8rem; width: fit-content; max-width: calc(100% - 1.6rem); padding: .38rem .65rem; overflow: hidden; color: #fff; background: rgba(39,34,73,.92); border: 1px solid rgba(255,255,255,.2); border-radius: .4rem; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; backdrop-filter: blur(8px); }
.faculty-card-body { padding: 1.3rem 1.25rem 1.5rem; }
.designation { margin: 0 0 .25rem; color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.faculty-card h3 { min-height: 2.7rem; margin: 0; color: var(--navy); font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.card-rule { width: 34px; height: 3px; margin: .8rem 0; background: var(--gold); border-radius: 99px; }
.qualification { display: flex; gap: .55rem; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.qualification i { flex: 0 0 auto; color: var(--red); font-size: 1rem; }
.empty-state { padding: 5rem 1rem; color: var(--muted); text-align: center; }
.empty-state i { color: var(--gold); font-size: 3rem; }
.empty-state h3 { margin-top: 1rem; color: var(--navy); font-family: "Playfair Display", Georgia, serif; }

.academic-strip { padding: 4.5rem 0; color: #fff; background: linear-gradient(120deg, var(--red-dark), var(--red)); }
.section-kicker.light { color: #f4d579; }
.academic-strip h2 { max-width: 820px; color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.academic-strip p { max-width: 760px; margin: .9rem 0 0; color: rgba(255,255,255,.78); line-height: 1.75; }
.academic-strip .btn { padding: .85rem 1.25rem; color: var(--red); border: 0; font-size: .9rem; font-weight: 800; }

.site-footer { padding: 4.5rem 0 0; color: rgba(255,255,255,.72); background: var(--navy-deep); }
.footer-logo { width: 325px; max-width: 100%; margin-bottom: 1.35rem; filter: brightness(0) invert(1); opacity: .93; }
.site-footer p { max-width: 530px; line-height: 1.7; }
.site-footer h3 { margin: 0 0 1rem; color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: .6rem 0; }
.site-footer a:hover { color: #f0cb68; }
.social-links { display: flex; gap: .55rem; }
.social-links a { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: rgba(255,255,255,.09); border-radius: 50%; }
.social-links a:hover { color: #fff; background: var(--red); }
.site-footer address { display: flex; gap: .7rem; font-style: normal; line-height: 1.7; }
.site-footer address i, .footer-contact i { color: #f0cb68; }
.footer-bottom { margin-top: 3rem; padding: 1.3rem 0; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); font-size: .82rem; text-align: center; }
.back-to-top { position: fixed; z-index: 20; right: 1.2rem; bottom: 1.2rem; display: grid; width: 44px; height: 44px; place-items: center; color: #fff; background: var(--red); border: 0; border-radius: 50%; box-shadow: 0 8px 24px rgba(181,9,18,.3); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s ease; }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 1199.98px) {
  .navbar { min-height: 76px; }
  .navbar-collapse { margin: .6rem -.75rem -.5rem; padding: .5rem .75rem 1rem; border-top: 1px solid var(--border); }
  .navbar .nav-link { padding: .75rem .4rem !important; }
  .navbar .nav-link.active::before { right: auto; bottom: .35rem; left: .4rem; width: 34px; }
}
@media (max-width: 991.98px) {
  .top-register { display: none; }
  .faculty-hero { padding: 4.5rem 0 6rem; }
  .principal-photo-wrap { min-height: 460px; }
  .directory-tools { align-items: stretch; flex-direction: column; }
  .faculty-search { flex-basis: auto; width: 100%; }
}
@media (max-width: 575.98px) {
  .topbar-links a:nth-child(2), .topbar-links a:nth-child(3) { display: none; }
  .navbar-brand img { width: 255px; max-width: calc(100vw - 95px); }
  .faculty-hero { padding-top: 3.6rem; }
  .faculty-overview { margin-top: -2rem; }
  .principal-photo-wrap { min-height: 360px; }
  .principal-copy { padding: 1.7rem 1.35rem 2rem; }
  .qualification-box { padding: .9rem; }
  .py-lg-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
  .filter-pills { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-btn { text-align: left; }
  .faculty-card h3 { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
