:root {
  --maroon: #7a1020;
  --maroon-dark: #4b0712;
  --gold: #d5a437;
  --green: #16756d;
  --blue: #1a4d78;
  --ink: #17202b;
  --muted: #657084;
  --paper: #ffffff;
  --cream: #fbf7ef;
  --soft: #f3f6f8;
  --line: #e2dfd7;
  --shadow: 0 18px 48px rgba(23, 32, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--paper);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--maroon-dark);
  color: #fff;
  font-size: 14px;
}

.topbar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(23, 32, 43, 0.07);
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: left center;
  border-radius: 50%;
}

.brand-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--maroon);
}

.brand-subtitle {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 24px;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav > li {
  position: relative;
}

.nav a,
.dropdown-label {
  display: block;
  padding: 12px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a:hover,
.dropdown-label:hover,
.nav .active > a,
.nav .active > .dropdown-label {
  background: rgba(122, 16, 32, 0.08);
  color: var(--maroon);
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  list-style: none;
  padding: 8px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.has-dropdown:hover .submenu,
.has-dropdown:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  padding: 10px 12px;
  white-space: normal;
  font-weight: 650;
}

.hero {
  min-height: 560px;
  height: 74vh;
  max-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(90deg, rgba(33, 14, 18, 0.78), rgba(33, 14, 18, 0.26)), var(--hero-image) center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  font-size: 19px;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.92);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--maroon);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(23, 32, 43, 0.16);
  background: var(--maroon-dark);
}

.btn.alt {
  background: #fff;
  color: var(--maroon);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn.ghost {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--cream);
}

.section.soft {
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.section-head h2,
.page-title h1 {
  margin: 0 0 12px;
  color: var(--maroon);
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-head p,
.page-title p {
  color: var(--muted);
  font-size: 17px;
}

.page-hero {
  background: linear-gradient(90deg, rgba(75, 7, 18, 0.92), rgba(26, 77, 120, 0.64)), url("images/hero.jpg") center/cover no-repeat;
  color: #fff;
  padding: 92px 0;
}

.page-title h1 {
  color: #fff;
  max-width: 820px;
}

.page-title p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 760px;
}

.breadcrumb {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.split.reverse .media-panel {
  order: 2;
}

.media-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--soft);
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.portrait-panel {
  display: grid;
  place-items: center;
  min-height: 430px;
  background: linear-gradient(135deg, #fff, #f6efe3);
}

.portrait-panel img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: center bottom;
}

.content-block h2,
.content-block h3 {
  margin: 0 0 14px;
  color: var(--maroon);
  line-height: 1.22;
}

.content-block h2 {
  font-size: 34px;
}

.content-block h3 {
  font-size: 24px;
}

.quote {
  margin: 0 0 18px;
  padding-left: 18px;
  border-left: 4px solid var(--gold);
  color: var(--maroon);
  font-size: 18px;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(23, 32, 43, 0.06);
}

.card-body {
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--maroon);
  font-size: 22px;
  line-height: 1.25;
}

.card p {
  color: var(--muted);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.metric {
  background: #fff;
  padding: 26px;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 20px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.pill-list li,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(22, 117, 109, 0.1);
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
}

.leadership-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 220px;
}

.leadership-card img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.course-card img,
.news-card img,
.gallery-item img {
  aspect-ratio: 16 / 10;
}

.faculty-principal {
  max-width: 360px;
  margin: 0 auto 42px;
  text-align: center;
}

.faculty-principal img {
  width: 230px;
  height: 260px;
  object-fit: cover;
  margin: 0 auto 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.staff-card {
  min-height: 248px;
}

.photo-slot {
  height: 160px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(122, 16, 32, 0.1), rgba(22, 117, 109, 0.14));
  color: var(--maroon);
  font-size: 34px;
  font-weight: 900;
}

.staff-card .card-body {
  min-height: 116px;
}

.department-title {
  margin: 44px 0 18px;
  color: var(--blue);
  font-size: 28px;
}

.role-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.role-table th,
.role-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.role-table th {
  background: var(--maroon);
  color: #fff;
}

.role-table tr:last-child td {
  border-bottom: 0;
}

.timeline {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 900;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.tab-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
}

.gallery-item {
  display: block;
}

.gallery-item.is-hidden {
  display: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--ink);
}

.map-frame {
  width: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 46px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  color: var(--green);
  font-weight: 800;
  min-height: 24px;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.footer-main {
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 34px;
}

.footer-main h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 20px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(213, 164, 55, 0.12);
  border-radius: 8px;
}

.course-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.course-detail-hero img {
  width: 100%;
  min-height: 310px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (max-width: 1060px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-shell {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    align-items: stretch;
    padding: 10px 0 18px;
    border-top: 1px solid var(--line);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a,
  .dropdown-label {
    padding: 11px 12px;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 3px solid var(--gold);
    border-radius: 0;
    margin: 0 0 6px 14px;
    padding: 0 0 0 8px;
  }

  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .hero {
    min-height: 500px;
    height: 70vh;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    padding: 56px 0;
  }

  .split,
  .split.reverse,
  .contact-layout,
  .course-detail-hero {
    grid-template-columns: 1fr;
  }

  .split.reverse .media-panel {
    order: 0;
  }

  .grid.three,
  .grid.two,
  .metric-band,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .leadership-card {
    grid-template-columns: 1fr;
  }

  .leadership-card img {
    height: 260px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .topbar .container {
    align-items: flex-start;
    padding: 8px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    min-height: 470px;
  }

  .hero h1,
  .section-head h2,
  .page-title h1 {
    font-size: 32px;
  }

  .content-block h2 {
    font-size: 30px;
  }

  .grid.four {
    grid-template-columns: 1fr;
  }
}
