/* ==================================================
   SAMCH – Sanjeevini Ayurveda Medical College & Hospital
   Site theme (loaded after bootstrap + plugins)
   ================================================== */

:root {
  --navy: #052A65;
  --navy-rgb: 5, 42, 101;
  --blue: #0673B7;
  --red: #CA141D;
  --red-dark: #A70F17;
  --soft: #ECF0F9;
  --ink: #101214;
  --text: #525252;
  --muted: #B3BCD1;
  --white: #ffffff;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 72px;
  --container: 1240px;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 18px; }
h3 { font-size: 20px; }
a { color: var(--blue); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--container); }
.text-red { color: var(--red); }
.bg-soft { background: var(--soft); }
.section { padding: 90px 0; }
.section-intro { max-width: 640px; }
.img-cover { width: 100%; object-fit: cover; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--navy); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* eyebrow label: "ABOUT US ———" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; margin-bottom: 14px;
}
.eyebrow::after { content: ""; width: 44px; height: 2px; background: var(--red); }
.eyebrow-center { flex-direction: column; gap: 4px; }
.eyebrow-center::after { width: 44px; }
.eyebrow-light { color: #fff; }
.eyebrow-light::after { background: #fff; }

/* buttons */
.btn-samch {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border: 2px solid var(--red);
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
  padding: 13px 26px; line-height: 1.2; border-radius: 0;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-samch:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-samch.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-samch.btn-white:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- top bar ---------- */
.topbar { background: #fff; padding: 14px 0; border-bottom: 1px solid #e6e9f0; }
.topbar-logo img { height: 56px; width: auto; }
.topbar-info { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.topbar-info li { display: flex; align-items: center; gap: 12px; }
.topbar-info .ti-icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 15px;
}
.topbar-info small { display: block; font-size: 13px; color: var(--text); line-height: 1.3; }
.topbar-info strong, .topbar-info a { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.topbar-info a:hover { color: var(--red); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid #e6e9f0;
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(var(--navy-rgb), .08); }
.site-header > .container { min-height: var(--header-h); }
.header-logo { display: none; }
.header-logo img { height: 44px; width: auto; }
.site-header.is-stuck .header-logo { display: block; }

.main-nav .menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.main-nav .menu > li { position: relative; }
.main-nav .menu-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 24px 11px;
  font: 600 14px/1.2 var(--font); color: var(--ink); cursor: pointer;
}
.main-nav .menu-link i { font-size: 11px; transition: transform .2s; }
.main-nav .menu > li:hover > .menu-link,
.main-nav .menu > li.active > .menu-link { color: var(--red); }

.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  list-style: none; margin: 0; padding: 10px 0;
  background: #fff; border-top: 3px solid var(--red);
  box-shadow: 0 18px 40px rgba(var(--navy-rgb), .14);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.sub-menu.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(250px, 1fr)); min-width: 560px; }
.sub-menu a {
  display: block; padding: 8px 20px; font-size: 14px; font-weight: 500; color: var(--ink);
}
.sub-menu a:hover, .sub-menu a.current { color: var(--red); background: var(--soft); }
.main-nav .has-sub:hover > .sub-menu,
.main-nav .has-sub:focus-within > .sub-menu,
.main-nav .has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .has-sub:hover > .menu-link i { transform: rotate(180deg); }
/* keep the right-most dropdowns inside the viewport */
.main-nav .menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.main-nav .menu > li:nth-child(3) > .sub-menu { left: -120px; }

.menu-toggle {
  width: 44px; height: 44px; border: 0; background: var(--navy); color: #fff; font-size: 18px;
}

/* ---------- home hero ---------- */
.home-hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff; padding: 120px 0 140px;
}
.home-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16, 18, 20, .82) 0%, rgba(16, 18, 20, .55) 45%, rgba(16, 18, 20, .15) 100%);
}
.home-hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.2; margin-bottom: 24px; }
.home-hero .lead { font-size: 17px; max-width: 480px; margin-bottom: 36px; color: rgba(255,255,255,.88); }
.underline-brush { position: relative; white-space: nowrap; }
.underline-brush::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px;
  background: var(--red); border-radius: 50%; transform: rotate(-1.5deg); opacity: .9;
}

.hero-features { position: relative; z-index: 2; }
.hero-feature { height: 100%; padding: 38px 40px; color: rgba(255,255,255,.88); position: relative; }
.hero-feature h3 { color: #fff; font-size: 21px; margin-bottom: 14px; }
.hero-feature.hf-1 { background: var(--navy); }
.hero-feature.hf-2 { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.hero-feature.hf-3 { background: var(--red); }
@media (min-width: 768px) {
  .hero-features { margin-top: -1px; }
  .hero-feature.hf-3 { margin-top: -40px; padding-top: 78px; height: calc(100% + 40px); }
}
.hf-avatars { position: absolute; top: -26px; left: 40px; display: flex; }
.hf-avatars img, .hf-avatars span {
  width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; margin-right: -12px; background: #fff;
}
.hf-avatars span { display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; }
@media (min-width: 768px) { .hf-avatars { top: 10px; } }

/* ---------- about / stats ---------- */
.established { margin-top: 18px; font-weight: 700; color: var(--ink); font-size: 18px; }
.established .counter { color: var(--navy); font-size: 34px; margin-left: 6px; }
.stats-card { border: 1px solid #d8deea; }
.stat-row {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center;
  padding: 30px 32px; border-left: 4px solid var(--red);
}
.stat-row + .stat-row { border-top: 1px solid #d8deea; }
.stat-row.stat-2 { background: var(--soft); border-left-color: var(--blue); }
.stat-row.stat-3 { background: var(--soft); border-left-color: var(--blue); }
.stat-value .num { display: block; font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-value .label { font-weight: 600; color: var(--ink); font-size: 15px; }
.stat-row p { font-size: 15px; }

.trusted-band { background: var(--navy); color: rgba(255,255,255,.85); padding: 50px 0; }
.trusted-band h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); }

/* ---------- academics ---------- */
.admission-stack { display: flex; flex-direction: column; gap: 16px; }
.admission-card {
  display: block; padding: 24px 28px; color: rgba(255,255,255,.88); background: var(--navy);
  width: 100%; max-width: 520px; margin-left: auto;
}
.admission-card.ac-2 { background: var(--blue); margin-left: 0; margin-right: auto; }
@media (min-width: 992px) { .admission-card.ac-2 { margin-left: 8%; } }
.admission-card h3 { color: #fff; font-size: 19px; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admission-card p { font-size: 13.5px; margin: 0; line-height: 1.65; }
.admission-card:hover { color: #fff; transform: translateY(-2px); transition: transform .2s; }

/* ---------- leadership ---------- */
.leader-card { position: relative; overflow: hidden; background: var(--navy); }
.leader-card img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: top; display: block; }
.leader-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 24px 22px; color: rgba(255,255,255,.88);
  background: linear-gradient(0deg, rgba(var(--navy-rgb), .95) 30%, rgba(var(--navy-rgb), 0));
}
.leader-info h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }

/* ---------- campus life ---------- */
.campus-card {
  display: flex; align-items: flex-end; min-height: 420px; background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.campus-card-body { background: #fff; padding: 26px 28px; width: calc(100% - 28px); margin-bottom: 28px; color: var(--text); transition: background-color .2s; }
.campus-card-body h3 { font-size: 22px; margin-bottom: 10px; }
.campus-card-body.is-red, .campus-card:hover .campus-card-body { background: var(--red); color: rgba(255,255,255,.9); }
.campus-card-body.is-red h3, .campus-card:hover .campus-card-body h3 { color: #fff; }

/* ---------- why us ---------- */
.why-card { height: 100%; padding: 30px 26px; background: #fff; border: 1px solid #e3e8f2; }
.why-card.is-soft { background: var(--soft); border-color: var(--soft); }
.why-card i { font-size: 30px; color: var(--red); margin-bottom: 20px; }
.why-card h3 { font-size: 19px; margin-bottom: 10px; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: rgba(255,255,255,.88); padding: 64px 0; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 32px); }

/* ---------- testimonials ---------- */
.testimonial-card { background: #fff; padding: 32px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; border-bottom: 4px solid var(--red); }
.testimonial-card .stars { color: #F5A623; margin-bottom: 14px; }
.testimonial-card p { font-size: 15px; }
.testimonial-card .t-avatar { width: 52px !important; height: 52px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.testimonial-card strong { color: var(--ink); }
.testimonial-carousel .owl-dots { margin-top: 26px; text-align: center; }
.testimonial-carousel .owl-dot { border: 0; background: none; padding: 0; }
.testimonial-carousel .owl-dot span { width: 10px; height: 10px; margin: 4px; background: var(--muted); display: block; border-radius: 50%; }
.testimonial-carousel .owl-dot.active span { background: var(--red); }

/* ---------- event cards ---------- */
.event-card { display: block; background: #fff; border: 1px solid #e3e8f2; height: 100%; color: var(--text); }
.event-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event-card-body { padding: 24px 26px; }
.event-card h3 { font-size: 20px; margin-bottom: 10px; }
.event-card:hover h3 { color: var(--red); }

/* ---------- inner page hero ---------- */
.page-hero {
  position: relative; padding: 100px 0 90px; background-size: cover; background-position: center; color: #fff;
}
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--navy-rgb), .94), rgba(var(--navy-rgb), .72)); }
.page-hero h1 { color: #fff; font-size: clamp(28px, 3.8vw, 46px); max-width: 900px; margin-bottom: 18px; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: rgba(255,255,255,.75); }
.crumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumb a { color: #fff; font-weight: 600; }
.crumb a:hover { color: #ffb3b6; }

/* ---------- document pages ---------- */
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); border-left: 3px solid var(--red); padding: 4px 0 4px 18px; max-height: calc(100vh - 140px); overflow: auto; }
.doc-toc-title { font-weight: 700; color: var(--ink); margin-bottom: 10px; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; }
.doc-toc a { display: block; font-size: 14px; color: var(--text); padding: 5px 0; line-height: 1.4; }
.doc-toc a:hover, .doc-toc a.active { color: var(--red); }
.doc-section { padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid #e3e8f2; scroll-margin-top: calc(var(--header-h) + 20px); }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.doc-title { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 6px; }
.doc-subtitle { color: var(--blue); font-weight: 600; margin-bottom: 0; }
.doc-title + .image-grid, .doc-subtitle + .image-grid { margin-top: 18px; }
.doc-notes { background: var(--soft); border-left: 4px solid var(--blue); padding: 18px 22px; margin-bottom: 24px; }
.doc-notes p { margin: 0; color: var(--ink); font-weight: 500; }
.doc-notes p + p { margin-top: 6px; }
.doc-files { display: grid; gap: 10px; margin-top: 18px; max-width: 560px; }
.doc-file { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid #d8deea; color: var(--ink); font-weight: 600; }
.doc-file .fa-file-pdf { color: var(--red); font-size: 22px; }
.doc-file:hover { border-color: var(--red); }
.back-link { display: inline-flex; align-items: center; font-weight: 600; }

/* lightbox grid */
.grid-item { position: relative; display: block; background: var(--soft); border: 1px solid #e3e8f2; overflow: hidden; }
.grid-item img { width: 100%; display: block; transition: transform .35s; }
.grid-doc img { aspect-ratio: 3 / 4; object-fit: contain; padding: 8px; background: #fff; }
.grid-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.grid-item:hover img { transform: scale(1.04); }
.grid-zoom {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 26px;
  background: rgba(var(--navy-rgb), .55); opacity: 0; transition: opacity .2s;
}
.grid-item:hover .grid-zoom, .grid-item:focus-visible .grid-zoom { opacity: 1; }
.col-md-8 .grid-doc img, .col-lg-7 .grid-doc img { aspect-ratio: auto; max-height: 900px; }

/* ---------- people / profiles ---------- */
.profile-photo { width: 100%; border: 1px solid #e3e8f2; }
.profile-card { background: var(--soft); padding: 32px; }
.profile-card h3 { font-size: 24px; margin-bottom: 4px; }
.profile-card .qual { color: var(--red); font-weight: 700; margin-bottom: 16px; display: block; }
.profile-meta { list-style: none; padding: 0; margin: 0; }
.profile-meta li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #cfd6e4; font-size: 15px; }
.profile-meta li:last-child { border-bottom: 0; }
.profile-meta i { color: var(--blue); width: 18px; margin-top: 5px; }
.message-block { font-size: 17px; }
.message-block p:first-child { font-weight: 700; color: var(--ink); font-size: 19px; }
.step-block { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid #e3e8f2; }
.step-num { width: 54px; height: 54px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 20px; }
.step-block h4 { font-size: 19px; margin-bottom: 10px; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding: 5px 0 5px 28px; }
.tick-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 6px; color: var(--red); font-size: 13px; }
.num-list { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.num-list li { counter-increment: n; position: relative; padding: 9px 0 9px 44px; border-bottom: 1px solid #e3e8f2; }
.num-list li::before { content: counter(n); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--soft); color: var(--navy); font-weight: 700; font-size: 13px; }
.panel { background: #fff; border: 1px solid #e3e8f2; padding: 32px; height: 100%; }
.panel h3 { font-size: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.panel h3 i { color: var(--red); }

/* member / staff cards */
.member-card { text-align: center; background: #fff; border: 1px solid #e3e8f2; height: 100%; }
.member-card img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: top; }
.member-card .member-body { padding: 16px 14px 20px; }
.member-card h3 { font-size: 16px; margin: 0; }
.member-card .role { color: var(--red); font-weight: 600; font-size: 14px; }
.member-card.is-lead h3 { font-size: 19px; }

.staff-card { background: #fff; border: 1px solid #e3e8f2; height: 100%; display: flex; flex-direction: column; }
.staff-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.staff-card .staff-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.staff-card h3 { font-size: 17px; margin-bottom: 2px; }
.staff-card .desig { color: var(--red); font-weight: 600; font-size: 14px; }
.staff-card .dept { color: var(--blue); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.staff-card dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 13px; margin: 0; }
.staff-card dt { font-weight: 600; color: var(--ink); }
.staff-card dd { margin: 0; }
.staff-card .staff-more { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.staff-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.staff-filter input, .staff-filter select { border: 1px solid #cfd6e4; padding: 10px 14px; font: inherit; font-size: 15px; min-width: 220px; }

/* department cards */
.dept-card { background: #fff; border: 1px solid #e3e8f2; height: 100%; }
.dept-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dept-card .dept-body { padding: 20px 22px 24px; }
.dept-card h3 { font-size: 18px; margin-bottom: 8px; }
.dept-card p { font-size: 15px; margin: 0; }

/* tables */
.table-samch { width: 100%; border-collapse: collapse; background: #fff; }
.table-samch th { background: var(--navy); color: #fff; font-weight: 600; padding: 14px 18px; text-align: left; }
.table-samch td { padding: 13px 18px; border-bottom: 1px solid #e3e8f2; }
.table-samch tr:nth-child(even) td { background: var(--soft); }
.table-samch tr.total td { font-weight: 700; color: var(--navy); }

/* link cards (official websites) */
.link-card { display: flex; flex-direction: column; height: 100%; padding: 30px; background: #fff; border: 1px solid #e3e8f2; border-top: 4px solid var(--navy); color: var(--text); }
.link-card h3 { font-size: 20px; margin-bottom: 10px; }
.link-card .go { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--red); }
.link-card:hover { border-top-color: var(--red); color: var(--text); }

/* contact */
.contact-card { padding: 30px; background: #fff; border: 1px solid #e3e8f2; height: 100%; }
.contact-card i.big { width: 52px; height: 52px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 20px; margin-bottom: 18px; }
.contact-card h3 { font-size: 19px; }
.map-wrap iframe { width: 100%; height: 440px; border: 0; display: block; }
.form-samch .form-control { border-radius: 0; border: 1px solid #cfd6e4; padding: 12px 16px; font-size: 15px; }
.form-samch .form-control:focus { border-color: var(--blue); box-shadow: none; }
.form-samch label { font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 6px; }

/* video button */
.video-thumb { position: relative; display: block; overflow: hidden; }
.video-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.video-thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 26px;
  box-shadow: 0 0 0 12px rgba(202, 20, 29, .25);
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-top: 70px; font-size: 15px; }
.footer-logo { height: 64px; width: auto; }
.footer-affiliation { font-weight: 600; color: #fff; font-size: 17px; }
.footer-top { padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 40px; }
.footer-links h5 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 18px; }
.footer-contact li { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.footer-contact i { color: var(--red); }
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social-icons a:hover { background: var(--red); }
.subfooter { margin-top: 50px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

#back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px;
  display: grid; place-items: center; background: var(--red); color: #fff;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--navy); }

/* magnific popup – caption contrast */
.mfp-title { font-family: var(--font); }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  .main-nav .menu-link { padding: 24px 8px; font-size: 13.5px; }
  .topbar-info { gap: 20px; }
}

@media (max-width: 991.98px) {
  .topbar { display: none; }
  .header-logo { display: block; }
  .header-logo img { height: 40px; }
  .site-header > .container { min-height: 64px; }

  .main-nav {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 999;
    background: #fff; overflow-y: auto; padding: 10px 16px 30px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.open { opacity: 1; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav .menu { flex-direction: column; align-items: stretch; }
  .main-nav .menu > li { border-bottom: 1px solid #e6e9f0; }
  .main-nav .menu-link { width: 100%; justify-content: space-between; padding: 15px 4px; font-size: 15px; }
  .sub-menu, .sub-menu.cols-2 {
    position: static; display: none; min-width: 0; grid-template-columns: 1fr;
    opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0;
    padding: 0 0 10px; background: var(--soft);
  }
  .main-nav .has-sub.open > .sub-menu { display: block; }
  .main-nav .has-sub.open > .menu-link i { transform: rotate(180deg); }
  .main-nav .has-sub:hover > .menu-link i { transform: none; }
  .main-nav .has-sub.open:hover > .menu-link i { transform: rotate(180deg); }
  .main-nav .menu > li:nth-child(3) > .sub-menu { left: auto; }
  .sub-menu a { padding: 10px 16px; }
  body.nav-open { overflow: hidden; }

  .section { padding: 64px 0; }
  .home-hero { min-height: 0; padding: 90px 0 100px; }
  .doc-toc { position: static; }
}

@media (max-width: 767.98px) {
  .section { padding: 52px 0; }
  .hero-feature { padding: 30px 22px; }
  .hf-avatars { position: static; margin-bottom: 14px; }
  .stat-row { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .stat-value .num { font-size: 34px; }
  .admission-card { max-width: none; }
  .campus-card { min-height: 340px; }
  .campus-card-body { width: calc(100% - 16px); margin-bottom: 16px; padding: 20px; }
  .page-hero { padding: 64px 0 56px; }
  .profile-card, .panel { padding: 22px; }
  .table-samch th, .table-samch td { padding: 10px 12px; font-size: 14px; }
  .map-wrap iframe { height: 320px; }
  .site-footer { padding-top: 50px; }
  .staff-filter input, .staff-filter select { min-width: 0; width: 100%; }
}

/* plugins.css sets .owl-stage-outer to overflow:visible for the template's
   bleed carousels – keep ours clipped to the container */
.testimonial-carousel .owl-stage-outer { overflow: hidden; }

.site-header.is-stuck .header-logo {
    display: none !important;
}
@media (max-width: 768px) {
  .site-header.is-stuck .header-logo {
    display: block !important;
  }
}