:root {
  --color-primary: #156bf9;
  --color-secondary: #ff1015;
  --color-tertiary: #f8b81f;
  --color-dark: #001538;
  --color-heading: #181818;
  --color-body: #5c5c5c;
  --color-border: #e5e5e5;
  --bg-soft: #f0f4f5;
  --white: #ffffff;
  --font: "Poppins", sans-serif;
  --serif: "League Spartan", "Poppins", sans-serif;
  --shadow: 0 10px 30px rgba(20, 36, 66, 0.12);
  --radius: 5px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--color-body);
  background: var(--white);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-secondary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 4000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.topbar {
  background: var(--color-dark);
  color: #d5dce8;
  font-size: 16px;
  padding: 8px 0;
}
.topbar .container,
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar-left {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-shrink: 0;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.topbar-phone { white-space: nowrap; }
.topbar-email { white-space: nowrap; }
.topbar-session {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: var(--color-tertiary);
  color: #181818;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  padding: 6px 12px;
  border-radius: 4px;
  flex-shrink: 0;
}

.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  min-height: 70px;
}
.header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}
.logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; min-width: 0; }
.logo img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.logo-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  color: #123a8a;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-text b {
  display: inline;
  font-family: inherit;
  color: var(--color-secondary);
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
  margin: 0;
}
.logo-text span {
  display: block;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
}
.nav > a:last-child {
  padding-right: 0;
}
.nav > a, .drop-toggle {
  display: inline-flex;
  align-items: center;
  height: 70px;
  padding: 0 11px;
  font-size: 17px;
  font-family: var(--serif);
  font-weight: 600;
  color: #181818;
  background: transparent !important;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.nav > a:hover, .drop-toggle:hover {
  color: var(--color-primary);
}
.nav > a.active, .nav-item.active .drop-toggle, .nav-item.open .drop-toggle {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.drop-toggle::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.nav .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin-left: 12px;
  padding: 0 22px;
  background: var(--color-secondary);
  color: #fff !important;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  border: 0;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 0 !important;
}
.nav .btn-cta:hover { background: #d40d12; color: #fff !important; }
.nav-item { position: relative; display: flex; align-items: center; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 340px;
  background: #fff;
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 16px 40px rgba(20, 36, 66, 0.14);
  padding: 10px 0;
  z-index: 30;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 11px 20px;
  color: #181818;
  font-size: 16px;
  font-weight: 600;
  white-space: normal;
  line-height: 1.4;
}
.dropdown a:hover, .dropdown a.active {
  background: #f4f8ff;
  color: var(--color-primary);
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 31px;
  color: #181818;
  cursor: pointer;
}

.ticker {
  background: var(--color-tertiary);
  color: #181818;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker span { display: inline-block; padding-left: 100%; animation: ticker 28s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }

.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  color: #fff;
  background: #0b1a3a url("../images/campus-wide.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-media { display: none; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 21, 56, 0.78) 0%, rgba(0, 21, 56, 0.35) 70%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding: 36px 0 72px; }
.hero-dots {
  position: absolute;
  z-index: 3;
  left: max(1rem, calc((100% - 1200px) / 2));
  bottom: 64px;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.hero-dots button.is-active { background: #fff; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  max-width: 16ch;
}
.hero p.lead {
  margin-top: 16px;
  max-width: 540px;
  color: #eef2f8;
  font-size: 19px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 17px;
  border: 0;
  cursor: pointer;
}
.btn-primary { background: var(--color-secondary); color: #fff; }
.btn-primary:hover { background: #d40d12; }
.btn-ghost { background: var(--color-primary); color: #fff; }
.btn-ghost:hover { background: #0f56d0; }
.btn-outline {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.features {
  margin-top: -48px;
  position: relative;
  z-index: 3;
  padding: 0 0 20px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  border-radius: 8px;
}
.feature .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8f0ff;
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.feature h3 {
  font-family: var(--serif);
  color: #181818;
  font-size: 20px;
  margin-bottom: 8px;
}
.feature p { font-size: 16px; }

section { padding: 72px 0; }
.section-kicker {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(29px, 3.36vw, 40px);
  color: var(--color-heading);
  line-height: 1.25;
  margin-bottom: 12px;
  font-weight: 800;
}
.section-lead { max-width: 640px; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

.card-grid, .inst-grid, .program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  align-items: stretch;
}
.card, .program-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 36, 66, 0.06);
}
.program-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card { padding: 22px; }
.card h3, .program-card h3 {
  font-family: var(--serif);
  color: #181818;
  font-size: 22px;
  margin: 10px 0 8px;
}
.program-card h3 {
  min-height: 2.6em;
  line-height: 1.3;
}
.program-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}
.program-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.program-card p {
  font-size: 16px;
  line-height: 1.6;
  min-height: 4.8em;
}
.program-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}
.program-actions .btn {
  width: 100%;
  padding: 10px 8px;
  font-size: 15px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  background: #e8f0ff;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.course-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  background: var(--bg-soft);
  color: #181818;
  padding: 4px 10px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.soft { background: var(--bg-soft); }
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.why-list li {
  position: relative;
  padding: 8px 8px 8px 28px;
  color: #181818;
  font-weight: 600;
  font-size: 17px;
}
.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}
.campus-shot {
  overflow: hidden;
  min-height: 340px;
  border-radius: 8px;
}
.campus-shot img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }

.stats {
  background: #001538 url("../images/campus-arcade.jpg") center / cover no-repeat;
  color: #fff;
  position: relative;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 21, 56, 0.82);
}
.stats .container { position: relative; z-index: 1; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 45px;
  color: var(--color-tertiary);
  font-weight: 800;
}
.stat span { color: #d5dce8; font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.person {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(20, 36, 66, 0.06);
}
.person img, .avatar {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
  background: #d9e2f2;
}
.avatar { display: none; }
.person-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.person-body { padding: 18px 18px 22px; }
.person-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: #181818;
}
.person-body .role { color: var(--color-primary); font-weight: 700; font-size: 16px; }
.person-body p { font-size: 16px; margin-top: 6px; }

.chair-banner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  padding: 28px;
  border-radius: 8px;
  margin-bottom: 28px;
}
.chair-banner .mark {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #e8f0ff;
}
.chair-banner .mark img { width: 100%; height: 100%; object-fit: cover; }
.chair-banner h3 { font-family: var(--serif); color: #181818; font-size: 27px; }
.chair-banner .role { color: var(--color-secondary); font-weight: 700; margin: 4px 0 10px; }

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.faculty-card {
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}
.faculty-card img { width: 100%; height: 210px; object-fit: cover; object-position: top; background: #eee; }
.faculty-card div { padding: 14px; }
.faculty-card h3 { font-size: 18px; color: #181818; font-family: var(--serif); }
.faculty-card span { color: #808080; font-size: 15px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid a, .gallery-grid figure { overflow: hidden; position: relative; border-radius: 8px; }
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; }
.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: rgba(0, 21, 56, 0.78);
  color: #fff;
  font-size: 16px;
}

.table-wrap { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--color-border); font-size: 17px; }
th { background: var(--color-dark); color: #fff; }

.quote {
  background: var(--color-dark);
  color: #d5dce8;
  padding: 32px;
  border-radius: 8px;
}
.quote p { font-size: 20px; color: #fff; }
.quote cite { display: block; margin-top: 14px; color: var(--color-tertiary); font-style: normal; font-weight: 700; }

.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: 36px 32px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--serif); font-size: 31px; color: #fff; }
.cta-band .btn-primary { background: var(--color-secondary); }

.page-hero {
  background: #001538 url("../images/campus-arcade.jpg") center / cover no-repeat;
  color: #fff;
  padding: 72px 0 56px;
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 21, 56, 0.72);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(31px, 4.48vw, 45px); color: #fff; }
.page-hero p { color: #d5dce8; margin-top: 10px; max-width: 620px; }
.page-hero .section-kicker { color: var(--color-tertiary); }

.form {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: 8px;
}
.form label { font-size: 16px; font-weight: 600; color: #181818; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font-size: 17px;
}
.form textarea { min-height: 120px; resize: vertical; }
.map-wrap { overflow: hidden; min-height: 280px; border-radius: 8px; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-cards a, .contact-cards div {
  background: var(--bg-soft);
  padding: 18px;
  border-radius: 8px;
}
.contact-cards strong { display: block; color: #181818; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.step { background: #fff; padding: 20px; border: 1px solid var(--color-border); border-radius: 8px; }
.step b { color: var(--color-primary); font-size: 25px; }

.hero-panel { display: none; }
.notice-list { display: none; }
.inst-card { display: none; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.fact {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 16px;
  border-radius: 8px;
}
.fact b { display: block; color: #181818; font-size: 18px; }
.fact span { color: #808080; font-size: 15px; }

.course-block {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 24px;
  margin-top: 16px;
  border-radius: 8px;
}
.course-block h3 { color: #181818; margin: 8px 0; font-family: var(--serif); }

footer {
  background: #020b17;
  color: #9aa3b2;
  padding: 48px 0 16px;
  font-size: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
footer h3 { color: #fff; margin-bottom: 14px; font-size: 18px; font-family: var(--serif); }
footer a:hover { color: var(--color-tertiary); }
footer .logo img { width: 56px; height: 56px; background: #fff; padding: 4px; border-radius: 50%; }
footer .logo-text strong, footer .logo-text b { color: #fff !important; }
.footer-bottom {
  border-top: 1px solid #1c2a40;
  margin-top: 32px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fade-in { opacity: 0; transform: translateY(10px); transition: 0.4s ease; }
.fade-in.visible { opacity: 1; transform: none; }

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #25d366;
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 16px;
  z-index: 1100;
  border-radius: 30px;
}

@media (max-width: 980px) {
  .hero .container, .split, .stats-grid, .card-grid, .people-grid, .faculty-grid, .gallery-grid, .contact-cards, .steps, .footer-grid, .inst-grid, .facts, .features-grid, .program-grid, .chair-banner {
    grid-template-columns: 1fr 1fr;
  }
  .menu-toggle { display: block; }
  .topbar { font-size: 13px; padding: 8px 0; }
  .topbar-left { display: none; }
  .topbar .container {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .topbar-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
  }
  .topbar-email {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62vw;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    align-items: stretch;
    justify-content: flex-start;
  }
  .nav.open { display: flex; }
  .nav > a:last-child { padding-right: 12px; }
  .nav-item { width: 100%; }
  .dropdown { position: static; min-width: 0; box-shadow: none; border: 0; }
  .nav-item:hover .dropdown { display: none; }
  .nav-item.open .dropdown { display: grid; }
}
@media (max-width: 680px) {
  .stats-grid, .card-grid, .people-grid, .faculty-grid, .gallery-grid, .contact-cards, .steps, .footer-grid, .why-list, .inst-grid, .facts, .features-grid, .program-grid, .chair-banner, .split {
    grid-template-columns: 1fr;
  }
  .logo img { width: 52px; height: 52px; }
  .logo-text strong { font-size: 15px; }
  .hero { min-height: 340px; }
  .hero .container { padding: 40px 0 72px; }
  .hero-dots { left: 1rem; bottom: 56px; }
}
