/* =========================================================
   Sainik School Kalikiri — stylesheet
   Design: "foothill ledger" identity — Chittoor red-earth &
   temple-gold palette, inspired by the Horsley Hills country
   surrounding the campus.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Spectral:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Spectral:ital,wght@1,500&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --maroon-deep: #2a1013;
  --maroon: #4a1a1f;
  --terracotta: #a3402c;
  --terracotta-light: #c9603f;
  --gold: #c99a3c;
  --gold-light: #e3bd6c;
  --hill: #6f7a5a;
  --hill-light: #9aa47f;
  --sand: #f6efdd;
  --sand2: #ecdfc0;
  --sand3: #e2d2a8;
  --ink: #241a16;
  --ink-soft: #5c4f45;
  --line: #d9c6a0;
  --white: #fffaf1;

  --display: 'Spectral', serif;
  --body: 'Manrope', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --container: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--terracotta);
  display: inline-block;
}

.eyebrow.on-dark {
  color: var(--gold-light);
}

.eyebrow.on-dark::before {
  background: var(--gold-light);
}

.section {
  padding: 112px 0;
  position: relative;
}

.section-tight {
  padding: 72px 0;
}

@media (max-width:820px) {
  .section {
    padding: 72px 0;
  }

  .section-tight {
    padding: 48px 0;
  }

  .wrap {
    padding: 0 20px;
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 14px;
  color: var(--maroon);
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16.5px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
}

.btn-brass {
  background: var(--gold);
  color: var(--maroon-deep);
  font-weight: 700;
}

.btn-brass:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-line {
  border-color: currentColor;
  color: var(--white);
}

.btn-line:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.btn-line.dark {
  color: var(--maroon);
}

.btn-line.dark:hover {
  background: rgba(74, 26, 31, .06);
}

/* ---------- top bar ---------- */
.topbar {
  background: var(--maroon-deep);
  color: #e6d9c4;
  font-family: var(--mono);
  font-size: 12.5px;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar-left {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar-right {
  display: flex;
  gap: 14px;
}

.topbar-right a {
  opacity: .85;
  transition: opacity .2s, color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.topbar-right a svg {
  width: 15px;
  height: 15px;
}

.topbar-right a:hover {
  opacity: 1;
  color: var(--gold-light);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(42, 16, 19, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

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

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--gold-light), var(--gold) 55%, #8a651f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon-deep);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 0 3px rgba(201, 154, 60, .18);
  flex-shrink: 0;
}

.brand-text {
  line-height: 1.15;
}

.brand-text strong {
  display: block;
  color: var(--white);
  font-family: var(--display);
  font-size: 17.5px;
  letter-spacing: .01em;
}

.brand-text span {
  display: block;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #e7ddc9;
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold-light);
  transition: width .25s var(--ease);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold-light);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 2px;
  align-items: center;
  justify-content: center;
}

@media (max-width:980px) {
  .nav-links {
    position: fixed;
    inset: 78px 0 0 0;
    background: var(--maroon-deep);
    flex-direction: column;
    padding: 36px 28px;
    gap: 22px;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 19px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn-brass {
    display: none;
  }

  .nav-links .mobile-apply {
    display: inline-flex;
    margin-top: 10px;
  }
}

.mobile-apply {
  display: none;
}

/* ---------- ridge / contour signature motif ---------- */
.trail-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 14px);
  opacity: .35;
  z-index: 0;
  pointer-events: none;
  display: none;
}

@media (min-width:980px) {
  .trail-line {
    display: block;
  }
}

.waypoint {
  position: relative;
  z-index: 1;
}

.waypoint-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--hill);
  border: 1px solid var(--hill-light);
  border-radius: 100px;
  padding: 5px 12px 5px 8px;
  background: rgba(111, 122, 90, .08);
}

.waypoint-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hill);
}

/* ---------- hero ---------- */
.hero {
  background: var(--maroon-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  min-height: 88vh;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 56px 72px 32px;
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-size: clamp(36px, 5.1vw, 60px);
  color: var(--white);
  letter-spacing: -.01em;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 500;
}

.hero-copy p {
  margin-top: 24px;
  max-width: 520px;
  color: #dccdb8;
  font-size: 17px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-coords {
  margin-top: 56px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: #ab9a86;
  letter-spacing: .04em;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 22px;
  max-width: 560px;
}

.hero-coords div strong {
  display: block;
  color: var(--gold-light);
  font-size: 20px;
  font-family: var(--display);
  font-weight: 600;
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--maroon-deep) 0%, rgba(42, 16, 19, .05) 22%, transparent 55%);
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 60%, rgba(42, 16, 19, .55) 100%);
}

.hero-badge {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 28px;
  background: rgba(42, 16, 19, .75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(227, 189, 108, .4);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--sand);
  letter-spacing: .06em;
  max-width: 260px;
}

@media (max-width:980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 120px 20px 48px;
    order: 2;
  }

  .hero-image img {
    min-height: 340px;
  }

  .hero-image {
    order: 1;
  }
}

/* ---------- ticker ---------- */
.ticker {
  background: var(--gold);
  color: var(--maroon-deep);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  border-top: 1px solid rgba(0, 0, 0, .08);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.ticker-track {
  display: inline-flex;
  padding: 12px 0;
  animation: scroll-left 32s linear infinite;
}

.ticker-track span {
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-weight: 700;
}

.ticker-track span::before {
  content: "◆";
  font-size: 9px;
  opacity: .6;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- about ---------- */
.about {
  background: var(--sand);
}

.about-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 64px;
  align-items: start;
}

.about-media {
  position: sticky;
  top: 100px;
}

.about-media img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 30px 60px -30px rgba(42, 16, 19, .4);
}

.about-media-caption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 12px;
  letter-spacing: .03em;
}

.about-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--maroon);
}

.about-copy .lede {
  font-size: 19px;
  color: var(--ink-soft);
  margin-top: 20px;
  max-width: 560px;
}

.about-quote {
  margin: 40px 0;
  padding: 26px 0 26px 26px;
  border-left: 3px solid var(--gold);
  font-family: var(--display);
  font-size: 22px;
  font-style: italic;
  color: var(--maroon);
  line-height: 1.45;
}

.about-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 14px;
  letter-spacing: .04em;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.stat-card {
  border-top: 2px solid var(--gold);
  padding-top: 14px;
}

.stat-card strong {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  color: var(--maroon);
}

.stat-card span {
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width:900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    position: static;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- pillars (the ascent) ---------- */
.pillars {
  background: var(--sand2);
  position: relative;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}

.pillar {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.pillar:last-child {
  border-bottom: none;
}

.pillar-coord {
  font-family: var(--mono);
  color: var(--hill);
  font-size: 13px;
  padding-top: 6px;
}

.pillar-coord strong {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  color: var(--maroon);
  font-weight: 600;
  margin-top: 4px;
}

.pillar-body h3 {
  font-size: 22px;
  color: var(--maroon);
}

.pillar-body p {
  margin-top: 10px;
  color: var(--ink-soft);
  max-width: 640px;
}

@media (max-width:700px) {
  .pillar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ---------- facilities ---------- */
.facilities {
  background: var(--sand);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.facility-card {
  background: var(--sand);
  padding: 38px 32px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .3s;
}

.facility-card:hover {
  background: var(--white);
}

.facility-icon {
  width: 46px;
  height: 46px;
  color: var(--terracotta);
}

.facility-card h3 {
  font-size: 19px;
  color: var(--maroon);
  margin-top: 22px;
}

.facility-card p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

@media (max-width:900px) {
  .facility-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:600px) {
  .facility-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- principal ---------- */
.principal {
  background: var(--maroon-deep);
  color: var(--sand);
}

.principal-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 56px;
  align-items: center;
}

.principal-media {
  position: relative;
}

.principal-media img {
  width: 100%;
  border-radius: 2px;
  filter: grayscale(.15) contrast(1.03);
}

.principal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(227, 189, 108, .35);
  transform: translate(14px, 14px);
  z-index: -1;
}

.principal-copy blockquote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.5;
  color: var(--white);
}

.principal-copy .attribution {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: .04em;
}

.principal-copy .attribution span {
  display: block;
  color: #ab9a86;
  margin-top: 4px;
  font-size: 12px;
}

@media (max-width:820px) {
  .principal-grid {
    grid-template-columns: 1fr;
  }

  .principal-media::after {
    display: none;
  }
}

/* ---------- hostel (split) ---------- */
.hostel {
  background: var(--sand);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.split-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--sand2);
}

.split-copy h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  color: var(--maroon);
}

.split-copy p.lede {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16.5px;
}

.feature-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink);
}

.feature-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  margin-top: 2px;
}

@media (max-width:900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split-media {
    min-height: 300px;
  }

  .split-copy {
    padding: 48px 24px;
  }
}

/* ---------- academics / sports icon rows ---------- */
.icon-row-section {
  background: var(--sand);
}

.icon-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.icon-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 24px;
  text-align: left;
}

.icon-card svg {
  width: 34px;
  height: 34px;
  color: var(--hill);
}

.icon-card h4 {
  font-family: var(--display);
  font-size: 17px;
  color: var(--maroon);
  margin-top: 18px;
}

.icon-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 8px;
}

@media (max-width:900px) {
  .icon-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:560px) {
  .icon-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- NDA / pathway banner ---------- */
.pathway {
  background: var(--hill);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.pathway .wrap {
  position: relative;
  z-index: 1;
}

.pathway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.pathway h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  color: var(--white);
}

.pathway p {
  margin-top: 16px;
  color: #e7e9dc;
  font-size: 16px;
  max-width: 480px;
}

.pathway-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pathway-step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.pathway-step:last-child {
  border-bottom: none;
}

.pathway-step .num {
  font-family: var(--mono);
  color: var(--gold-light);
  font-size: 13px;
  padding-top: 2px;
}

.pathway-step h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--white);
}

.pathway-step p {
  margin-top: 4px;
  font-size: 14px;
  color: #dfe2d1;
}

@media (max-width:820px) {
  .pathway-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- gallery ---------- */
.gallery {
  background: var(--sand);
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 8px;
  margin-top: 20px;
}

.gallery-mosaic a {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 2px;
}

.gallery-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.gallery-mosaic a:hover img {
  transform: scale(1.06);
}

.gallery-mosaic a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(42, 16, 19, .55));
  opacity: 0;
  transition: opacity .3s;
}

.gallery-mosaic a:hover::after {
  opacity: 1;
}

.gallery-mosaic span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0;
  transform: translateY(6px);
  transition: all .3s;
}

.gallery-mosaic a:hover span {
  opacity: 1;
  transform: translateY(0);
}

.g1 {
  grid-column: span 3;
  grid-row: span 2;
}

.g2 {
  grid-column: span 3;
  grid-row: span 1;
}

.g3 {
  grid-column: span 3;
  grid-row: span 1;
}

.g4 {
  grid-column: span 2;
  grid-row: span 1;
}

.g5 {
  grid-column: span 2;
  grid-row: span 1;
}

.g6 {
  grid-column: span 2;
  grid-row: span 1;
}

@media (max-width:820px) {
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .g1,
  .g2,
  .g3,
  .g4,
  .g5,
  .g6 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .g1 {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* ---------- admissions timeline ---------- */
.admissions {
  background: var(--maroon-deep);
  color: var(--sand);
}

.timeline {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.tl-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
}

.tl-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--maroon-deep);
  box-shadow: 0 0 0 1px var(--gold);
  margin-top: 6px;
}

.tl-bar {
  width: 1px;
  flex: 1;
  background: rgba(227, 189, 108, .3);
  margin-top: 6px;
}

.tl-item:last-child .tl-bar {
  display: none;
}

.tl-content {
  padding-bottom: 44px;
}

.tl-content .step-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gold-light);
  letter-spacing: .1em;
}

.tl-content h4 {
  font-family: var(--display);
  font-size: 20px;
  color: var(--white);
  margin-top: 6px;
}

.tl-content p {
  margin-top: 8px;
  color: #d3c6b3;
  font-size: 15px;
  max-width: 560px;
}

.admission-side {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 34px;
}

.admission-side h4 {
  font-family: var(--display);
  color: var(--gold-light);
  font-size: 18px;
}

.admission-side ul {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admission-side li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, .15);
  padding-bottom: 10px;
  color: #e9dfcb;
}

.admission-side li strong {
  color: var(--white);
  font-family: var(--mono);
  font-weight: 500;
}

.admission-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 56px;
}

@media (max-width:900px) {
  .admission-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- testimonials ---------- */
.testimonials {
  background: var(--sand2);
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.test-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.test-card .stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 14px;
}

.test-card p {
  font-size: 15.5px;
  color: var(--ink);
  font-style: italic;
  font-family: var(--display);
  line-height: 1.55;
}

.test-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.test-who .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.test-who .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.test-who strong {
  display: block;
  font-size: 13.5px;
}

.test-who span {
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width:900px) {
  .test-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--sand);
}

.faq-list {
  margin-top: 10px;
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--display);
  font-size: 18px;
  color: var(--maroon);
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .plus {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--gold);
  transition: transform .25s;
  flex-shrink: 0;
}

.faq-item[open] summary .plus {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 640px;
}

/* ---------- contact ---------- */
.contact {
  background: var(--maroon-deep);
  color: var(--sand);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--gold-light);
  text-transform: uppercase;
}

.field input,
.field textarea {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  padding: 13px 14px;
  font-family: var(--body);
  font-size: 14.5px;
  border-radius: 2px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9c8b7a;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, .08);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-info h3 {
  font-family: var(--display);
  font-size: 22px;
  color: var(--white);
}

.contact-info p {
  color: #d3c6b3;
  margin-top: 10px;
  max-width: 420px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-item strong {
  display: block;
  font-size: 14.5px;
  color: var(--white);
}

.contact-item span {
  font-size: 13.5px;
  color: #c2b39d;
}

.map-box {
  border: 1px solid rgba(255, 255, 255, .15);
  overflow: hidden;
  margin-top: 6px;
}

.map-box iframe {
  width: 100%;
  height: 230px;
  border: 0;
  filter: grayscale(.3) contrast(1.05) sepia(.08);
}

@media (max-width:900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- footer ---------- */
.footer {
  background: var(--maroon);
  color: #dccdb8;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer h4 {
  font-family: var(--display);
  color: var(--white);
  font-size: 16px;
  margin-bottom: 16px;
}

.footer p {
  font-size: 14px;
  color: #c2ac93;
  max-width: 280px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a {
  font-size: 14px;
  color: #dccdb8;
  transition: color .2s;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #a88f76;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- misc reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* back to top */
.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--maroon-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all .3s;
}

.totop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}