:root {
  --maroon: #7b1836;
  --maroon-2: #4e0e24;
  --gold: #d8a31d;
  --gold-2: #f3c94d;
  --ink: #1d1f24;
  --muted: #636772;
  --soft: #f5f2ee;
  --line: #e7e1da;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(29, 31, 36, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

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

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.topbar {
  background: var(--maroon-2);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231, 225, 218, 0.88);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.crest {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0;
  background: #fff url("images/logo.jpeg") center/cover;
  box-shadow: 0 8px 22px rgba(123, 24, 54, 0.25);
}

.brand strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.1;
}

.brand span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: 0.73rem;
  font-weight: 700;
  color: #343741;
  padding: 8px 5px;
  border-radius: 6px;
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(123, 24, 54, 0.08);
  color: var(--maroon);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  font-size: 1.35rem;
}

.hero {
  min-height: calc(100svh - 128px);
  position: relative;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: #241018;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 11, 21, 0.92) 0%, rgba(55, 17, 32, 0.74) 44%, rgba(55, 17, 32, 0.28) 100%),
    var(--hero-image, url("https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1800&q=82")) center/cover;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.38), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  padding: 80px 0 120px;
}

.hero-content.reveal {
  opacity: 1;
  transform: none;
}

.eyebrow {
  color: var(--gold-2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 6.4vw, 6.2rem);
  line-height: 0.95;
  margin: 16px 0 22px;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.03;
  margin-bottom: 18px;
  letter-spacing: 0;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.2;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 680px;
}

.section .lead,
.page-hero .lead {
  color: var(--muted);
}

.hero-actions,
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.btn.primary {
  background: var(--gold);
  color: #24160a;
}

.btn.secondary {
  background: var(--maroon);
  color: var(--white);
}

.btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.btn.light {
  color: var(--maroon);
  border-color: var(--line);
  background: var(--white);
}

.section {
  padding: 86px 0;
}

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

.section.dark {
  background: var(--ink);
  color: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 620px;
  color: var(--muted);
}

.dark .section-head p,
.dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

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

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

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(29, 31, 36, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(216, 163, 29, 0.52);
}

.card-body {
  padding: 24px;
}

.program-card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(123, 24, 54, 0.1);
  color: var(--maroon);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.media-card img,
.department-feature img,
.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--gold-2);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.timeline-item strong {
  color: var(--maroon);
}

.split-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-image img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

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

.pill-list li {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.9rem;
}

.profile {
  text-align: left;
}

.profile img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile .role {
  color: var(--maroon);
  font-weight: 900;
}

.testimonial {
  min-height: 220px;
  display: none;
}

.testimonial.active {
  display: block;
  animation: fadeUp 0.5s ease both;
}

.testimonial blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 1.15rem;
}

.page-hero {
  padding: 86px 0;
  background:
    linear-gradient(90deg, rgba(78, 14, 36, 0.95), rgba(123, 24, 54, 0.74)),
    var(--page-image, url("https://images.unsplash.com/photo-1581093458791-9f3c3900df7b?auto=format&fit=crop&w=1800&q=80")) center/cover;
  color: var(--white);
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumbs {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  margin-bottom: 12px;
}

.dept-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dept-panel {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border-left: 5px solid var(--gold);
  box-shadow: 0 8px 24px rgba(29, 31, 36, 0.07);
}

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

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #343741;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 46px;
  padding: 12px 13px;
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.gallery {
  columns: 3 260px;
  column-gap: 18px;
}

.gallery figure {
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(29, 31, 36, 0.07);
}

.gallery figcaption {
  padding: 13px 15px;
  font-weight: 800;
}

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

.footer {
  background: #15161a;
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 24px;
}

.footer h3,
.footer strong {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding-top: 22px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-credit {
  color: rgba(255, 255, 255, 0.66);
}

.footer-credit a {
  display: inline;
  margin: 0;
  color: var(--gold-2);
  font-weight: 900;
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.38);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .nav-inner {
    min-height: 76px;
    gap: 10px;
  }

  .brand {
    flex-basis: 170px;
  }

  .crest {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .nav-links {
    gap: 1px;
  }

  .nav-links a {
    font-size: 0.68rem;
    padding: 8px 4px;
  }
}

@media (max-width: 1040px) {
  .nav-inner {
    min-height: 72px;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 44px;
    box-shadow: 0 8px 20px rgba(29, 31, 36, 0.08);
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 32px rgba(29, 31, 36, 0.08);
  }

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

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 10px;
    border: 1px solid var(--line);
    background: rgba(245, 242, 238, 0.58);
    text-align: center;
    white-space: normal;
  }

  .two,
  .three,
  .four,
  .split-feature,
  .footer-grid,
  .dept-strip {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 680px) {
  .topbar {
    display: none;
  }

  .nav-inner {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand span {
    font-size: 0.72rem;
  }

  .hero {
    min-height: calc(100svh - 68px);
  }

  h1 {
    font-size: clamp(2.45rem, 10.6vw, 3.2rem);
    line-height: 1.02;
  }

  .hero-content {
    padding: 76px 0 118px;
  }

  .lead {
    font-size: 1.04rem;
  }

  .section {
    padding: 62px 0;
  }

  .section-head {
    display: block;
  }

  .two,
  .three,
  .four,
  .split-feature,
  .footer-grid,
  .dept-strip,
  .nav-links.open {
    grid-template-columns: 1fr;
  }

  .nav-links {
    padding: 12px;
    gap: 6px;
  }

  .nav-links a {
    min-height: 40px;
    padding: 9px 10px;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}
