:root {
  --page-bg: #050508;
  --card-bg: rgba(17, 24, 39, 0.78);
  --card-bg-soft: rgba(30, 41, 59, 0.5);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #8c1515;
  --accent-2: #b81d24;
  --gold: #f4c430;
}

body {
  background:
    radial-gradient(circle at 0% 0%, rgba(140, 21, 21, 0.25), transparent 34%),
    radial-gradient(
      circle at 100% 8%,
      rgba(244, 196, 48, 0.08),
      transparent 28%
    ),
    var(--page-bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.page-shell {
  max-width: 1220px;
  margin: 110px auto 42px;
  padding: 0 20px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 22px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.back-btn:hover {
  color: var(--text);
  transform: translateX(-2px);
}

.hero-card,
.panel {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-media {
  position: relative;
  min-height: 400px;
  background: #020617;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.05) saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 5, 8, 0.96),
    rgba(5, 5, 8, 0.22) 52%,
    rgba(5, 5, 8, 0.05)
  );
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(140, 21, 21, 0.28);
  border: 1px solid rgba(244, 196, 48, 0.2);
  color: #fff7e6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-subtitle {
  margin: 0;
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.75;
  max-width: 68ch;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 8, 0.7);
}

.btn-tab,
.link-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.btn-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
}

.btn-tab:hover,
.link-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.btn-tab.active,
.link-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 12px 24px rgba(140, 21, 21, 0.38);
  padding: 12px 18px;
}

.secondary-btn {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
}

.panel {
  padding: 28px;
  margin-top: 20px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}

.panel p,
.panel li {
  color: #d1d5db;
  line-height: 1.75;
  font-size: 15px;
}

.section-grid,
.facts-grid,
.program-grid,
.highlights-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.fact,
.program-card,
.highlight-card {
  background: var(--card-bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
}

.fact-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.fact-value {
  display: block;
  margin-top: 6px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.program-card h3,
.highlight-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.program-card ul,
.highlight-card ul {
  margin: 0;
  padding: 0;
}

.program-card li,
.highlight-card li {
  list-style: none;
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.program-card li::before,
.highlight-card li::before {
  content: "•";
  color: var(--gold);
  position: absolute;
  left: 0;
}

.school-note {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  color: #e5e7eb;
  line-height: 1.75;
}

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

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

.image-tile {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

@media (max-width: 760px) {
  .page-shell {
    margin-top: 92px;
    padding: 0 14px;
  }

  .hero-overlay {
    padding: 24px;
  }

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

  .panel {
    padding: 22px;
  }
}
