/* ===== IITH Academics – modern theme (used by _layouts/home.html) ===== */
:root {
  --navy: #0b1f4d;
  --navy-2: #13317a;
  --blue: #1d4ed8;
  --orange: #f58220;
  --orange-dk: #d96a0b;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --gold: #d4a537;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 20px rgba(15,23,42,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange-dk); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.hdr-logo img { height: 52px; display: block; }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hdr .wrap { max-width: 1340px; }
.nav { gap: 2px; }
.nav a { display: block; padding: 8px 10px; border-radius: 8px; color: #334155; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--bg); color: var(--navy); }
.nav a.dd::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.nav a.active { color: var(--orange-dk); }
.nav .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav a.donate { background: var(--orange); color: #fff; padding: 8px 16px; font-weight: 600; }
.nav a.donate:hover { background: var(--orange-dk); color: #fff; }
.nav a.search { display: inline-flex; align-items: center; gap: 6px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; align-items: center; justify-content: center; font-size: 18px; color: var(--navy); cursor: pointer; }

/* Back-to-top button (every page) */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 52px; height: 52px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--orange-dk); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 10px 24px rgba(217,106,11,.35); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .25s, transform .25s, visibility .25s, background .2s, box-shadow .2s; }
.to-top .fa { margin-top: -3px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { background: var(--navy); box-shadow: 0 12px 28px rgba(11,31,77,.35); outline: none; }
#myBtn { display: none !important; } /* old "Top" button on the Post Graduate page, replaced by .to-top */
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; font-size: 23px; } }

/* Academic menu items (Admissions, Programs, Department, Cal & TT, Contact Us) */
.nav a.nav-item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; color: var(--navy); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
.nav a.nav-item .fa { color: var(--orange-dk); font-size: 14px; transition: color .2s; }
.nav a.nav-item:hover { background: #fff3e8; color: var(--orange-dk); }
.nav a.nav-item.nav-main { border: 1.5px solid var(--gold); margin-right: 6px; }
@media (min-width: 1281px) and (max-width: 1420px) { .nav a.nav-item { padding: 9px 10px; gap: 6px; font-size: 14px; } }
.nav a.nav-item.nav-main:hover { border-color: var(--orange); }
.nav a.nav-item.active { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.nav a.nav-item.active .fa { color: #ffb36b; }

/* Dropdown menus */
.nav > li { position: relative; }
.nav a.dd { cursor: pointer; }
.dmenu { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px; margin: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(11,31,77,.14); z-index: 60; }
.nav > li:last-child .dmenu, .nav > li.right .dmenu { left: auto; right: 0; }
.dmenu a { padding: 9px 12px; font-size: 14px; white-space: normal; color: var(--ink); }
.dmenu a:hover { background: #fff3e8; color: var(--orange-dk); }
.dmenu a.red { color: var(--orange-dk); font-weight: 600; }
.dmenu li.div { height: 1px; background: var(--line); margin: 6px 4px; }
@media (min-width: 1101px) {
  .nav > li:hover > .dmenu, .nav > li:focus-within > .dmenu { display: block; }
}

/* ---------- Hero (no photo) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
    radial-gradient(1000px 420px at 85% -10%, rgba(245,130,32,.28), transparent 60%),
    radial-gradient(800px 400px at -10% 120%, rgba(29,78,216,.45), transparent 60%),
    linear-gradient(135deg, #0a1a40 0%, #0f2a6b 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.hero-in { position: relative; padding: 84px 24px 150px; text-align: center; }
.hero h1 { margin: 0 auto; max-width: 860px; font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hero h1 span { color: #ffb36b; }
.hero .accent { width: 64px; height: 4px; border-radius: 4px; background: var(--orange); margin: 22px auto 0; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -96px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(11,31,77,.14); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 28px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .ic { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px; display: grid; place-items: center; background: #fff3e8; color: var(--orange-dk); font-size: 19px; }
.stat b { display: block; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

.stat .as-on { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; background: #fff3e8; color: var(--orange-dk); font-size: 11.5px; font-weight: 600; }

/* ---------- Sections ---------- */
.sec { padding: 72px 0; }
.sec.alt { background: var(--bg); }
.sec-h { text-align: center; margin-bottom: 36px; }
.sec-h h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--navy); letter-spacing: -.015em; }
.sec-h .accent { width: 48px; height: 4px; border-radius: 4px; background: var(--orange); margin: 14px auto 0; }

/* Quick buttons under the numbers strip (home page) */
.quick-btns { position: relative; z-index: 2; margin-top: 28px; }
.qb-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.qb { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 12px; border-radius: 12px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); border: 1.5px solid var(--gold); color: #fff !important; font-weight: 600; font-size: 15px; white-space: nowrap; box-shadow: 0 8px 20px rgba(11,31,77,.16); transition: transform .2s, box-shadow .2s, background .2s; }
.qb .fa { color: #ffb36b; font-size: 16px; transition: color .2s; }
.qb:hover, .qb:focus-visible { transform: translateY(-3px); background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dk) 100%); box-shadow: 0 14px 28px rgba(245,130,32,.32); outline: none; }
.qb:hover .fa, .qb:focus-visible .fa { color: #fff; }
#admissions, #team, #contact, #important-links, #about-academics, #deans-message { scroll-margin-top: 90px; }
@media (max-width: 1100px) { .qb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .quick-btns { margin-top: 20px; }
  .qb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .qb { padding: 12px 8px; font-size: 14px; gap: 8px; }
}

/* About Academics Section (home page) */
.sec.about-acad { position: relative; overflow: hidden; margin-top: 24px; padding-top: 44px; background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); }
.about-acad::before { content: ""; position: absolute; right: -160px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(212,165,55,.16), transparent 65%); pointer-events: none; }
/* Row 1: heading + first paragraph across the full width. Row 2: second paragraph beside the three-cells panel. */
.about-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; column-gap: 44px; row-gap: 8px; align-items: center; }
.about-grid .about-text { grid-column: 1 / -1; }
.about-grid .about-text p.lead { margin-bottom: 22px; }
.about-grid .about-more { margin: 0; color: #475569; font-size: 16px; line-height: 1.8; text-align: justify; hyphens: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff3e8; color: var(--orange-dk); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.about-text h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.2; }
.about-text .accent { width: 56px; height: 4px; border-radius: 4px; background: var(--orange); margin: 16px 0 24px; }
.about-text p { margin: 0 0 18px; color: #475569; font-size: 16px; line-height: 1.8; text-align: justify; hyphens: auto; }
.about-text p.lead { position: relative; padding-left: 20px; color: var(--ink); font-size: 17px; }
.about-text p.lead::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--gold), var(--orange)); }

.verticals { position: relative; margin: 0; padding: 20px 22px; border-radius: 18px; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); border: 1.5px solid var(--gold); box-shadow: 0 20px 44px rgba(11,31,77,.22); color: #fff; overflow: hidden; }
.verticals::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(245,130,32,.30), transparent 65%); pointer-events: none; }
.v-intro { position: relative; margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: #dbe4ff; font-weight: 500; }
.vcard { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 9px 14px; margin-top: 8px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: transform .25s, background .25s, border-color .25s; }
.vcard:hover { transform: translateX(6px); background: rgba(255,255,255,.12); border-color: rgba(212,165,55,.7); }
.vcard .vnum { flex: none; min-width: 20px; font-size: 12.5px; font-weight: 800; color: var(--gold); letter-spacing: .04em; }
.vcard .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 15px; box-shadow: 0 6px 14px rgba(245,130,32,.35); }
.vcard h4 { margin: 0; font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
.vcard p { margin: 0; font-size: 13.5px; color: #c7d2ee; line-height: 1.4; }

@media (max-width: 1000px) {
  .about-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .verticals { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .sec.about-acad { margin-top: 16px; padding-top: 32px; }
  .about-text p { text-align: left; font-size: 15.5px; }
  .about-text p.lead { font-size: 16px; padding-left: 16px; }
  .verticals { padding: 18px 16px; }
  .vcard { padding: 9px 12px; gap: 10px; }
  .about-grid .about-more { text-align: left; font-size: 15.5px; }
}

/* Dean's Message (home page) */
.dean-msg { background: linear-gradient(180deg, #fff 0%, #fffaf3 100%); }
.dean-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.dean-photo { position: sticky; top: 110px; margin: 0; padding: 0 18px 18px 0; }
.dean-photo::before { content: ""; position: absolute; right: 0; bottom: 0; width: calc(100% - 18px); height: calc(100% - 18px); border-radius: 22px; background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%); opacity: .9; }
.dean-photo::after { content: ""; position: absolute; left: -16px; top: -16px; width: 90px; height: 90px; border-radius: 16px; background-image: radial-gradient(rgba(11,31,77,.25) 1.5px, transparent 1.5px); background-size: 12px 12px; z-index: 0; }
.dean-photo .frame { position: relative; z-index: 1; border-radius: 22px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 22px 48px rgba(11,31,77,.22); background: #fff; }
.dean-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s; }
.dean-photo:hover img { transform: scale(1.04); }

.dean-text { position: relative; padding: 40px 44px 36px; background: #fff; border: 1.5px solid var(--gold); border-radius: 20px; box-shadow: 0 14px 36px rgba(11,31,77,.08); }
.dean-text .quote-mark { position: absolute; top: -22px; left: 36px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 20px; box-shadow: 0 10px 22px rgba(245,130,32,.35); }
.dean-text p { margin: 0 0 16px; color: #475569; font-size: 16px; line-height: 1.8; text-align: justify; hyphens: auto; }
.dean-text p.greet { margin-top: 6px; color: var(--navy); font-size: 20px; font-weight: 700; font-style: italic; text-align: left; }
.dean-text .sign { display: flex; flex-direction: column; gap: 2px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); position: relative; }
.dean-text .sign::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--orange); }
.dean-text .sign strong { font-size: 18px; color: var(--navy); }
.dean-text .sign span { color: var(--muted); font-size: 14.5px; }
.dean-text .sign span:first-of-type { color: var(--orange-dk); font-weight: 600; }

@media (max-width: 1000px) {
  .dean-grid { grid-template-columns: 1fr; gap: 40px; }
  .dean-photo { position: relative; top: 0; width: min(320px, 80%); margin: 0 auto; }
}
@media (max-width: 640px) {
  .dean-text { padding: 36px 20px 24px; }
  .dean-text .quote-mark { left: 20px; }
  .dean-text p { text-align: left; font-size: 15.5px; }
  .dean-text p.greet { font-size: 18px; }
}

/* Meet the Team (home page) */
.meet-team { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.tm { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border: 1.5px solid var(--gold); border-radius: 16px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.tm:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11,31,77,.12); }
.tm-photo { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: visible; }
.tm-photo img, .tm-initials { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); background: var(--bg); }
.tm-initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #ffb36b; font-weight: 800; font-size: 24px; letter-spacing: .02em; }
.tm-body { min-width: 0; flex: 1; }
.tm h4 { margin: 2px 0 2px; font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.tm-role { margin: 0 0 8px; color: var(--orange-dk); font-weight: 600; font-size: 13.5px; }
.tm-meta { display: flex; align-items: center; gap: 8px; margin: 3px 0; font-size: 13.5px; color: var(--muted); word-break: break-word; }
.tm-meta .fa { width: 14px; flex: none; text-align: center; color: #94a3b8; }
.tm-meta a { color: var(--blue); }
.tm-about { margin-top: 8px; }
.tm-about summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 700; color: var(--navy-2); letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: #eef2ff; transition: background .2s, color .2s; }
.tm-about summary::-webkit-details-marker { display: none; }
.tm-about summary::after { content: "\f107"; font-family: FontAwesome; transition: transform .2s; }
.tm-about[open] summary::after { transform: rotate(180deg); }
.tm-about summary:hover { background: #fff3e8; color: var(--orange-dk); }
.tm-about p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.65; color: #475569; }

/* Leads: bigger cards, photo on top */
.tm-leads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.tm-lead { flex-direction: column; align-items: center; text-align: center; padding: 24px 18px 20px; }
.tm-lead .tm-photo { width: 132px; height: 132px; }
.tm-lead .tm-photo img, .tm-lead .tm-initials { box-shadow: 0 0 0 3px var(--gold), 0 12px 26px rgba(11,31,77,.18); }
.tm-lead .tm-initials { font-size: 40px; }
.tm-label { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 14px rgba(245,130,32,.35); }
.tm-lead .tm-body { width: 100%; margin-top: 14px; }
.tm-lead h4 { font-size: 17px; }
.tm-lead .tm-meta { justify-content: center; }
.tm-lead .tm-about p { text-align: left; }

/* Tabs */
.tm-tabs { display: none; }
.tabs-ready .tm-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.tm-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--gold); background: #fff; color: var(--navy); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tm-tab .fa { color: var(--orange-dk); }
.tm-tab:hover { background: #fff3e8; }
.tm-tab.on { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; box-shadow: 0 8px 20px rgba(11,31,77,.18); }
.tm-tab.on .fa { color: #ffb36b; }
.tm-panel { margin-bottom: 28px; }
.tabs-ready .tm-panel { display: none; }
.tabs-ready .tm-panel.on { display: block; animation: tm-fade .35s ease; }
.tabs-ready .tm-panel-h { display: none; }
.tm-panel-h { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 20px; color: var(--navy); }
.tm-panel-h .fa { color: var(--orange-dk); }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@keyframes tm-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Office address boxes */
.tm-offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.tm-office { padding: 24px 26px; border-radius: 16px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); border: 1.5px solid var(--gold); color: #dbe4ff; box-shadow: 0 14px 30px rgba(11,31,77,.18); }
.tm-office h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: #fff; font-size: 18px; }
.tm-office h4 .fa { color: #ffb36b; }
.tm-office p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; }
.tm-office strong { color: #fff; }
.tm-office .tm-meta { color: #dbe4ff; font-size: 14.5px; }
.tm-office .tm-meta .fa { color: #ffb36b; }
.tm-office .tm-meta a { color: #fff; }

@media (max-width: 1100px) {
  .tm-leads { grid-template-columns: repeat(2, 1fr); }
  .tm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tm-leads, .tm-grid, .tm-offices { grid-template-columns: 1fr; }
  .tm-lead .tm-photo { width: 116px; height: 116px; }
  .tm-tab { padding: 8px 14px; font-size: 14px; }
  .tm-office { padding: 20px; }
}

/* Animated down arrow next to a section heading */
.sec-h h2.with-arrow { display: inline-flex; align-items: center; gap: 16px; }
/* Circle with three stacked down-arrows; the arrows stay still, the circle jumps down */
.down-arrow { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: #fff3e8; border: 1.5px solid var(--orange); flex: none; box-shadow: 0 6px 14px rgba(245,130,32,.25); animation: circle-jump 1.8s cubic-bezier(.28,.84,.42,1) infinite; }
.down-arrow .fa { display: block; font-size: 18px; line-height: 7px; height: 8px; color: var(--orange-dk); }
.down-arrow .fa:nth-child(1) { opacity: .35; }
.down-arrow .fa:nth-child(2) { opacity: .65; }
.down-arrow .fa:nth-child(3) { opacity: 1; }
@keyframes circle-jump {
  0%, 55%, 100% { transform: translateY(0); }
  20% { transform: translateY(10px); }
  35% { transform: translateY(-3px); }
  45% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .down-arrow { animation: none; }
}
@media (max-width: 640px) {
  .sec-h h2.with-arrow { gap: 12px; }
  .down-arrow { width: 38px; height: 38px; }
  .down-arrow .fa { font-size: 15px; line-height: 6px; height: 7px; }
}

.adm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adm { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--navy) !important; font-weight: 700; font-size: 17px; line-height: 1.3; transition: transform .2s, box-shadow .2s, border-color .2s; }
.adm .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #eef2ff; color: var(--blue); font-size: 20px; transition: background .2s, color .2s; }
.adm .go { position: absolute; right: 22px; bottom: 24px; color: var(--muted); transition: transform .2s, color .2s; }
.adm:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 16px 34px rgba(11,31,77,.12); }
.adm:hover .ic { background: var(--orange); color: #fff; }
.adm:hover .go { color: var(--orange-dk); transform: translateX(4px); }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1.5px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 14px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,31,77,.12); }
.card h3 .ic { transition: background .25s, color .25s; }
.card:hover h3 .ic { background: var(--orange); color: #fff; }
.card h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; color: var(--navy); }
.card h3 .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff3e8; color: var(--orange-dk); font-size: 16px; flex: none; }
.links { list-style: none; margin: 0; padding: 0; }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 10px; margin: 0 -10px; border-radius: 8px; border-left: 3px solid transparent; color: var(--ink); font-size: 15px; transition: background .2s, color .2s, border-color .2s, padding .2s; }
.links a::after { content: "\f105"; font-family: FontAwesome; color: #94a3b8; transition: transform .2s, color .2s; }
.links a:hover, .links a:focus-visible { background: #fff3e8; color: var(--orange-dk); border-left-color: var(--orange); padding-left: 14px; outline: none; }
.links a:hover::after, .links a:focus-visible::after { color: var(--orange-dk); transform: translateX(4px); }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1.5px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.person img { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex: none; background: var(--bg); }
.person h4 { margin: 0; font-size: 16.5px; color: var(--navy); }
.person .role { margin: 2px 0 8px; color: var(--orange-dk); font-weight: 600; font-size: 13.5px; }
.person .meta { margin: 3px 0; font-size: 14px; color: var(--muted); word-break: break-word; }
.person .meta .fa { width: 16px; color: #94a3b8; }
.person.office { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); border: 1.5px solid var(--gold); color: #fff; flex-direction: column; gap: 6px; justify-content: center; }
.person.office h4 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.person.office .meta, .person.office a { color: #dbe4ff; }
.person.office .meta .fa { color: #ffb36b; }

/* ---------- Inner page ---------- */
.page-hd { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0a1a40 0%, #0f2a6b 100%); }
.page-hd::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.page-hd::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(245,130,32,.35), transparent 65%); }
.page-hd .wrap { position: relative; padding-top: 52px; padding-bottom: 52px; }
.page-hd h1 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.page-hd .accent { width: 48px; height: 4px; border-radius: 4px; background: var(--orange); margin-top: 14px; }

.page-body { padding: 48px 0 72px; background: var(--bg); }
.cols2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.card .desc { margin: 4px 0 10px; color: var(--muted); font-size: 15px; }
.card .sub { margin: 14px 0 4px; color: var(--ink); font-size: 15px; font-weight: 600; }
.card .sub:first-of-type { margin-top: 4px; }
.prog .links { margin-bottom: 6px; }

/* Departments page */
.dept-group { margin-bottom: 44px; }
.group-h { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.group-h::before { content: ""; width: 5px; height: 26px; border-radius: 4px; background: var(--orange); flex: none; }
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dept { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--navy) !important; font-weight: 600; font-size: 15px; line-height: 1.35; transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
.dept .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; flex: none; background: #eef2ff; color: var(--blue); font-size: 18px; transition: background .2s, color .2s; }
.dept .nm { flex: 1; }
.dept .ext { color: #94a3b8; font-size: 13px; transition: color .2s, transform .2s; }
.dept:hover, .dept:focus-visible { transform: translateY(-3px); border-color: var(--orange); background: #fffaf5; box-shadow: 0 14px 30px rgba(11,31,77,.12); color: var(--orange-dk) !important; outline: none; }
.dept:hover .ic, .dept:focus-visible .ic { background: var(--orange); color: #fff; }
.dept:hover .ext, .dept:focus-visible .ext { color: var(--orange-dk); transform: translate(2px,-2px); }

.school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 36px; border-top: 1px solid var(--line); }
.school { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff !important; font-weight: 700; font-size: 17px; line-height: 1.35; box-shadow: 0 10px 26px rgba(11,31,77,.18); transition: transform .2s, box-shadow .2s; }
.school::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(245,130,32,.35), transparent 65%); transition: transform .3s; }
.school .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #ffb36b; font-size: 20px; transition: background .2s, color .2s; }
.school .go { margin-top: auto; font-size: 13px; font-weight: 600; color: #ffb36b; display: flex; align-items: center; gap: 8px; }
.school:hover, .school:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(11,31,77,.28); outline: none; }
.school:hover::after { transform: scale(1.4); }
.school:hover .ic { background: var(--orange); color: #fff; }

/* Calendars & Timetables page */
.page-body .layout { padding: 0; }
.content [id] { scroll-margin-top: 96px; }
/* Sub-menu under a quick link (Forms page: Academic Forms > UG / PG / PhD) */
.side-sub { position: relative; margin: 2px 0 6px 21px; padding-left: 12px; border-left: 2px solid var(--line); }
.side .side-sub a { padding: 8px 10px; font-size: 14px; font-weight: 500; color: var(--muted); border-left: 0; position: relative; }
.side .side-sub a::before { content: ""; position: absolute; left: -14px; top: 50%; width: 10px; height: 2px; background: var(--line); transition: background .2s; }
.side .side-sub a:hover { color: var(--orange-dk); background: #fff3e8; }
.side .side-sub a.on { color: var(--orange-dk); background: #fff3e8; font-weight: 600; }
.side .side-sub a.on::before { background: var(--orange); }
.side a.parent-on { color: var(--orange-dk); font-weight: 600; }
.side a.parent-on .fa { color: var(--orange-dk); }
.cal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.content .block > .desc { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.tt-wrap { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tt { width: 100%; border-collapse: collapse; font-size: 15px; }
.tt th { background: #f1f4fa; color: var(--navy); text-align: left; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.tt td { padding: 12px 18px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; transition: background .2s; }
.tt tr:last-child td { border-bottom: 0; }
.tt tbody tr:nth-child(even) td { background: #fafbfd; }
.tt tbody tr:hover td { background: #fff3e8; }
.tt td:first-child { color: var(--ink); font-weight: 500; }
.tt td:last-child { width: 34%; }
.tt-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 8px; background: #fff3e8; color: var(--orange-dk); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.tt-btn::after { content: "\f08e"; font-family: FontAwesome; font-size: 12px; }
.tt-btn:hover, .tt-btn:focus-visible { background: var(--orange); color: #fff; outline: none; }

.callout { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff !important; box-shadow: 0 10px 26px rgba(11,31,77,.18); transition: transform .2s, box-shadow .2s; }
.callout .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.12); color: #ffb36b; font-size: 20px; transition: background .2s, color .2s; }
.callout h4 { margin: 0; flex: 1; font-size: 18px; font-weight: 700; color: #fff; }
.callout .go { color: #ffb36b; transition: transform .2s; }
.callout:hover, .callout:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(11,31,77,.28); outline: none; }
.callout:hover .ic { background: var(--orange); color: #fff; }
.callout:hover .go { transform: translateX(4px); }

.layout { display: grid; grid-template-columns: 270px 1fr; gap: 32px; padding: 44px 0 72px; align-items: start; }
.side { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.side h5 { margin: 4px 8px 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.side a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 15px; border-left: 3px solid transparent; }
.side a { transition: background .2s, color .2s, border-color .2s; }
.side a .fa { width: 18px; text-align: center; color: #94a3b8; transition: color .2s; }
.side a:hover { background: #fff3e8; color: var(--orange-dk); }
.side a:hover .fa, .side a.on .fa { color: var(--orange-dk); }
.side a.on { background: #fff3e8; color: var(--orange-dk); border-left-color: var(--orange); font-weight: 600; }

.content .block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 24px; }
.content h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 20px; color: var(--navy); }
.content h2 .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #eef2ff; color: var(--blue); font-size: 15px; }
.content h3 { margin: 22px 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.flist { list-style: none; margin: 0; padding: 0; }
.flist li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 10px; margin: 0 -10px; border-radius: 8px; border-bottom: 1px solid #f1f5f9; border-left: 3px solid transparent; transition: background .2s, border-color .2s; }
.flist li:last-child { border-bottom-color: transparent; }
.flist .name { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--ink); font-size: 15.5px; transition: color .2s, transform .2s; }
.flist .name .fa { width: 16px; text-align: center; color: #94a3b8; transition: color .2s; }
.flist .name .fa-file-pdf-o { color: #d9534f; }
.flist .name .fa-file-word-o { color: #2b6cb0; }
.flist li:hover { background: #fff3e8; border-left-color: var(--orange); }
.flist li:hover .name { color: var(--orange-dk); }
.flist a.name:hover, .flist a.name:focus-visible { transform: translateX(3px); outline: none; }
.badges { display: flex; gap: 6px; flex: none; }
.badge { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 6px; transition: background .2s, color .2s; }
.badge.doc { background: #eef2ff; color: var(--blue); }
.badge.pdf { background: #fdecec; color: #c0392b; }
.badge.doc:hover, .badge.doc:focus-visible { background: var(--blue); color: #fff; outline: none; }
.badge.pdf:hover, .badge.pdf:focus-visible { background: #c0392b; color: #fff; outline: none; }
.content h3 + .flist { margin-top: 2px; }
.block h2 + .flist, .block h2 + h3 { margin-top: 12px; }

/* ---------- Prose: content of the older pages (page / post-acad / plain layouts) ---------- */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 40px; font-size: 16px; line-height: 1.7; color: var(--ink); overflow-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { color: var(--navy); line-height: 1.3; letter-spacing: -.01em; margin: 1.6em 0 .6em; }
.prose h1 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; }
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 800; }
.prose h3 { font-size: 1.25rem; font-weight: 700; }
.prose h4 { font-size: 1.12rem; font-weight: 700; }
.prose h5 { font-size: 1.02rem; font-weight: 600; }
.prose h6 { font-size: .95rem; font-weight: 600; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(29,78,216,.25); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.prose a:hover, .prose a:focus-visible { color: var(--orange-dk); text-decoration-color: var(--orange); }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--orange); font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.prose hr.highlight { width: 48px; height: 4px; border: 0; border-radius: 4px; background: var(--orange); margin: 10px 0 22px; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose strong, .prose b { color: var(--navy); }
/* Tables: ash-grey cell borders, rounded outer edge, header row stays visible while scrolling */
.prose table { --ash: #c9d0d8; width: 100%; border-collapse: separate; border-spacing: 0; margin: 1em 0 1.4em; font-size: 15px; border: 1px solid var(--ash); border-radius: 10px; }
.prose th, .prose td { border-right: 1px solid #dde2e8; border-bottom: 1px solid #dde2e8; }
.prose tr > *:last-child { border-right: 0; }
.prose tr:last-child > td { border-bottom: 0; }
.prose th { position: sticky; top: 76px; z-index: 3; background: #eef1f6; color: var(--navy); text-align: left; font-weight: 700; padding: 12px 14px; border-bottom: 2px solid var(--ash); box-shadow: 0 2px 6px rgba(11,31,77,.06); }
.prose td { padding: 11px 14px; vertical-align: top; transition: background .2s; }
.prose tr:first-child > *:first-child { border-top-left-radius: 9px; }
.prose tr:first-child > *:last-child { border-top-right-radius: 9px; }
.prose tr:last-child > *:first-child { border-bottom-left-radius: 9px; }
.prose tr:last-child > *:last-child { border-bottom-right-radius: 9px; }
.prose tr:nth-child(even) td { background: #fafbfd; }
.prose tr:hover td { background: #fff3e8; }
.prose input[type="text"], .prose input[type="email"], .prose input[type="search"], .prose textarea, .prose .form-control { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.prose input:focus, .prose textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,130,32,.18); }
.prose input[type="submit"], .prose .btn { display: inline-block; padding: 10px 22px; border: 0; border-radius: 8px; background: var(--orange); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s; }
.prose input[type="submit"]:hover, .prose .btn:hover { background: var(--orange-dk); }
.prose form .row { gap: 0; margin-bottom: 14px; }
.prose form .row > [class*="col-"] { margin-bottom: 10px; }
.prose textarea { margin-bottom: 14px; }

/* Bootstrap class compatibility for the older pages' markup */
.prose .container, .prose .full-width, .prose .side-gap, .prose .about, .prose .start { width: auto; max-width: none; margin: 0; padding: 0; }
.prose .row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.prose [class*="col-"] { box-sizing: border-box; width: 100%; padding: 0 12px; }
@media (min-width: 576px) { .prose .col-sm-4 { width: 33.333%; } .prose .col-sm-8 { width: 66.667%; } }
@media (min-width: 768px) { .prose .col-md-6 { width: 50%; } }
@media (min-width: 992px) { .prose .col-lg-3 { width: 25%; } .prose .col-lg-9 { width: 75%; } }
.prose .sidebar { position: sticky; top: 100px; margin-bottom: 24px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.prose .sidebar h5 { margin: 4px 8px 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prose .sidebar ul { list-style: none; margin: 0; padding: 0; }
.prose .sidebar li { margin: 0; }
.prose .sidebar a { display: block; padding: 10px 12px; border-radius: 8px; border-left: 3px solid transparent; color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; }
.prose .sidebar a:hover { background: #fff3e8; color: var(--orange-dk); border-left-color: var(--orange); }
.prose .embed-responsive { position: relative; overflow: hidden; width: 100%; border-radius: 10px; }
.prose .embed-responsive-16by9:has(iframe)::before { content: ""; display: block; padding-top: 56.25%; }
.prose .embed-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .embed-responsive:not(:has(iframe)) { padding: 24px !important; background: var(--bg); border: 1px dashed var(--line); color: var(--muted); }
.prose [id] { scroll-margin-top: 96px; }
.prose .table-responsive { overflow-x: auto; }
.prose .text-center { text-align: center; }
.prose .text-muted { color: var(--muted); }
.prose .display-3 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.prose .fs-5 { font-size: 1.1rem; } .prose .fs-6 { font-size: 1rem; }
.prose .fw-semibold { font-weight: 600; } .prose .fw-medium { font-weight: 500; }
.prose .lh-lg { line-height: 1.8; }
.prose .mt-2 { margin-top: .5rem; } .prose .mt-3 { margin-top: 1rem; } .prose .mt-4 { margin-top: 1.5rem; }
.prose .mb-1 { margin-bottom: .25rem; } .prose .mb-3 { margin-bottom: 1rem; } .prose .p-3 { padding: 1rem; }
.prose .card { padding: 20px 22px; border: 1px solid var(--line); }
.prose .card:hover { transform: none; box-shadow: var(--shadow); }
.prose .card h3, .prose .card h4 { display: block; padding: 0; border: 0; }

@media (max-width: 760px) {
  .prose { padding: 22px 18px; font-size: 15.5px; }
  /* On phones the table scrolls inside its own box, so the header sticks to the top of that box */
  .prose table { display: block; overflow: auto; max-height: 75vh; -webkit-overflow-scrolling: touch; }
  .prose th { top: 0; }
  .prose .sidebar { position: static; }
}

/* ---------- Footer ---------- */
.ftr { background: #0a1630; color: #a9b4c8; font-size: 14.5px; }
.ftr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding: 60px 0 40px; }
.ftr h5 { margin: 0 0 16px; color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 9px 0; }
.ftr a { color: #a9b4c8; }
.ftr a:hover { color: #fff; }
.ftr-soc { display: flex; justify-content: center; gap: 12px; padding-bottom: 32px; }
.ftr-soc a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; }
.ftr-soc a:hover { background: var(--orange); }
.ftr-base { border-top: 1px solid rgba(255,255,255,.08); }
.ftr-base .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; font-size: 13.5px; }
.ftr-base .lk a { margin-left: 18px; }
.ftr h5 button { all: unset; display: flex; width: 100%; justify-content: space-between; cursor: default; }
.ftr h5 button::after { content: ""; }

/* ---------- Responsive ---------- */
/* Header switches to the ☰ menu below 1280px (the academic menu needs ~1080px on one line) */
@media (max-width: 1280px) {
  .burger { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(11,31,77,.10); max-height: calc(100vh - 76px); overflow-y: auto; }
  .hdr.open .nav { display: flex; }
  .hdr-in { position: relative; }
  .nav a { padding: 12px 10px; font-size: 15px; }
  .nav a.dd { display: flex; justify-content: space-between; align-items: center; }
  .nav .sep { width: auto; height: 1px; margin: 8px 0; }
  .nav a.donate { text-align: center; margin-top: 8px; }
  .dmenu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 10px; padding: 0 0 0 8px; min-width: 0; }
  .nav > li.open > .dmenu { display: block; }
}
@media (max-width: 1100px) {
  .stat { padding: 24px 10px; }
  .stat span { font-size: 13px; }
  .adm-grid { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .ftr-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .cols3, .cols2 { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .school-grid { grid-template-columns: 1fr; }
  .page-body { padding: 28px 0 52px; }
  .layout { grid-template-columns: 1fr; gap: 20px; }
  .side { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .side h5 { display: none; }
  .side a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .side a.on { border-bottom-color: var(--orange); }
  .side-sub { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; margin: -2px 0 4px 14px; padding-left: 10px; }
  .side .side-sub a { padding: 6px 10px; font-size: 13.5px; }
  .side .side-sub a::before { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hdr-in { height: 64px; }
  .hdr-logo img { height: 42px; }
  .hero-in { padding: 56px 16px 120px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); padding: 22px 12px; }
  .stat:nth-child(2n) { border-right: 0 !important; }
  .stat:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0 !important; }
  .sec { padding: 52px 0; }
  .adm { padding: 20px 16px; font-size: 15px; }
  .adm .go { display: none; }
  .team { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; gap: 12px; }
  .dept { padding: 14px 16px; }
  .dept-group { margin-bottom: 32px; }
  .content .block { padding: 20px 18px; }
  .cal-grid { grid-template-columns: 1fr; gap: 12px; }
  .tt th, .tt td { padding: 11px 12px; }
  .tt td:last-child { width: auto; }
  .tt-btn { padding: 6px 10px; font-size: 13px; }
  .callout { padding: 18px; gap: 14px; }
  .callout h4 { font-size: 16px; }
  .flist li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ftr-grid { display: block; padding: 24px 0 8px; }
  .ftr-grid > div { border-bottom: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
  .ftr h5 { margin: 0; }
  .ftr h5 button { cursor: pointer; }
  .ftr h5 button::after { content: "+"; font-size: 18px; line-height: 1; }
  .ftr-grid > div.open h5 button::after { content: "\2212"; }
  .ftr-grid ul { display: none; padding-top: 8px; }
  .ftr-grid > div.open ul { display: block; }
  .ftr-soc { padding-top: 24px; }
  .ftr-base .wrap { flex-direction: column; text-align: center; }
  .ftr-base .lk a { margin: 0 8px; }
}
