* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --text: #1e293b;
  --text-light: #64748b;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  background: #f8fafc;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

body::before {
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15), transparent 70%);
  top: -150px;
  right: -150px;
}

body::after {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 70%);
  bottom: -150px;
  left: -150px;
  animation-delay: -8s;
}

body.contest-page {
  background: #f8fafc;
}

body.contest-page::before {
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15), transparent 70%);
}

body.contest-page::after {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 70%);
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: transparent;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}

.logo-img {
  height: 42px;
  width: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 6px 10px rgba(16, 24, 40, 0.35));
}

/* Logo text removed */

.logo:hover .logo-img {
  transform: rotate(-2deg) scale(1.04);
}

.nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.nav a:hover,
.nav a.active {
  color: var(--primary);
  transform: translateY(-1px);
}

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 210, 200, 0.8);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-toggle-icon {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  position: relative;
  border-radius: 999px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.2);
}
.lang-select {
  padding: 8px 16px;
  border: 1px solid rgba(216, 210, 200, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-select:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.2);
}

/* Hero */
.hero {
  background-image:
    radial-gradient(circle at 15% 25%, rgba(20, 184, 166, 0.2), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(245, 158, 11, 0.15), transparent 45%),
    linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  color: #ffffff;
  padding: 110px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 74px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.6;
  animation: grid-shift 28s linear infinite;
}

.hero::after {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0) 60%);
  background-size: 300px 300px, 350px 350px;
  background-position: 10% 20%, 85% 80%;
  opacity: 0.6;
  animation: orbit-drift 18s ease-in-out infinite;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero p,
.hero .hero-buttons {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.is-loaded .hero h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

body.is-loaded .hero p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

body.is-loaded .hero .hero-buttons {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.hero h1 {
  font-size: clamp(1.95rem, 2.8vw, 2.6rem);
  margin-bottom: 22px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow: 0 12px 30px rgba(16, 24, 40, 0.35);
}

.hero p {
  font-size: 0.98rem;
  opacity: 0.95;
  margin-bottom: 22px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: #1e293b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-primary {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.hero .btn-primary:hover {
  transform: translateY(-3px);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Section buttons */
.section-cta .btn-primary,
.content-section .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.section-cta .btn-primary:hover,
.content-section .btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}

/* Section Styles */
.content-section {
  padding: 56px 0;
  position: relative;
}

.content-section::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(240px, 50vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.6), transparent);
}

.content-section::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12);
  animation: node-pulse 6s ease-in-out infinite;
}

.alt-bg {
  background: rgba(241, 245, 249, 0.75);
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.1vw, 1.95rem);
  margin-bottom: 30px;
  color: var(--text);
  position: relative;
}

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: -14px auto 32px;
  color: var(--text-light);
  font-size: 0.98rem;
}

/* Curriculum Intro */
.curriculum-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.intro-copy h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  margin-bottom: 12px;
  color: var(--text);
}

.intro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.intro-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.intro-panel {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  box-shadow: var(--shadow);
}

.intro-panel h3 {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 1.2rem;
}

.intro-steps {
  display: grid;
  gap: 14px;
}

.intro-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.intro-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  font-weight: 800;
}

.intro-step strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.intro-step p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.92rem;
}

/* Pathway Split */
.pathway-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.track-card {
  background: var(--card-bg);
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.track-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.track-head {
  margin-bottom: 14px;
}

.track-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.track-head h3 {
  margin: 0;
  font-size: 1.35rem;
}

.track-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.track-step {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.2);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--primary-dark);
}

.track-arrow {
  color: var(--accent);
  font-weight: 800;
}

.track-meta {
  margin: 0;
  color: var(--text-light);
  font-size: 0.92rem;
}

.track-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.track-checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--text-light);
  font-size: 0.93rem;
}

.track-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

/* Math Pathway */
.math-pathway-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 6px 14px;
  scroll-snap-type: x mandatory;
}

.math-pathway-strip::-webkit-scrollbar {
  height: 8px;
}

.math-pathway-strip::-webkit-scrollbar-thumb {
  background: rgba(15, 118, 110, 0.25);
  border-radius: 999px;
}

.math-path-card {
  flex: 0 0 280px;
  background: var(--card-bg);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  scroll-snap-align: start;
}

.math-path-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(245, 158, 11, 0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.math-path-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.math-path-card:hover::after {
  opacity: 1;
}

.math-path-card.highlight {
  border-color: rgba(245, 158, 11, 0.5);
}

.math-path-head h3 {
  margin: 10px 0 10px;
  font-size: 1.35rem;
}

.math-path-head p {
  margin: 0 0 12px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.math-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.15);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.8rem;
}

.math-pill-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}

.math-pill-list li {
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(216, 210, 200, 0.6);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.9rem;
}

.math-target {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

/* Math Domains */
.math-domain-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 6px 14px;
  scroll-snap-type: x mandatory;
}

.math-domain-strip::-webkit-scrollbar {
  height: 8px;
}

.math-domain-strip::-webkit-scrollbar-thumb {
  background: rgba(15, 118, 110, 0.25);
  border-radius: 999px;
}

.math-domain-card {
  flex: 0 0 240px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.math-domain-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--primary);
}

.math-domain-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.93rem;
}

/* CCC Focus */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.focus-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  box-shadow: var(--shadow);
}

.focus-card h3 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.1rem;
}

.focus-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-light);
}

.focus-card li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 20px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.section-cta {
  text-align: center;
  margin-top: 20px;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Image loading */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--card-bg);
  padding: 22px 16px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(216, 210, 200, 0.6);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(245, 158, 11, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 158, 11, 0.45);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
}

/* Pathway */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pathway-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pathway-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(245, 158, 11, 0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pathway-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pathway-card:hover::after {
  opacity: 1;
}

.pathway-card h3 {
  margin: 14px 0 12px;
  font-size: 1.35rem;
  color: var(--text);
}

.pathway-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

.pathway-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 10px 18px rgba(13, 148, 136, 0.25);
}

/* Achievement Showcase */
.achievement-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.showcase-card {
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(216, 210, 200, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.showcase-image {
  height: 200px;
  overflow: hidden;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover .showcase-image img {
  transform: scale(1.08);
}

.showcase-content {
  padding: 20px;
}

.showcase-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.showcase-content h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text);
}

/* Medal List */
.medal-list {
  margin-top: 16px;
}

.medal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(216, 210, 200, 0.6);
  transition: background 0.2s ease;
}

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

.medal-icon {
  font-size: 1.5rem;
}

.student-name {
  font-weight: 600;
  flex: 1;
  font-size: 0.95rem;
}

.medal-type {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Program Cards */
.program-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.program-card-large {
  background: var(--card-bg);
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.program-card-large::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.program-card-large:hover::before {
  opacity: 1;
}

.program-card-large:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(245, 158, 11, 0.45);
}

.program-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.program-card-large h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--text);
}

.program-card-large p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.program-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.program-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.program-link:hover {
  gap: 12px;
}

/* Learning Experience */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.experience-card {
  background: var(--card-bg);
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.experience-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.experience-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.experience-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.experience-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* Level Tags */
.level-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  transition: transform 0.2s ease;
  border: 1px solid transparent;
}

.level-tag:hover {
  transform: scale(1.05);
}

.level-tag.l1 { background: #fef3c7; color: #92400e; border-color: rgba(146, 64, 14, 0.15); }
.level-tag.l2 { background: #d1fae5; color: #065f46; border-color: rgba(6, 95, 70, 0.15); }
.level-tag.l3 { background: #e0e7ff; color: #3730a3; border-color: rgba(55, 48, 163, 0.15); }
.level-tag.l3p { background: #fce7f3; color: #9d174d; border-color: rgba(157, 23, 77, 0.15); }
.level-tag.l4 { background: #fee2e2; color: #991b1b; border-color: rgba(153, 27, 27, 0.15); }
.level-tag.cs { background: #ccfbf1; color: #0f766e; border-color: rgba(15, 118, 110, 0.15); }

/* News Cards */
.news-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(216, 210, 200, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.news-image {
  height: 160px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-image img {
  transform: scale(1.08);
}

.news-content {
  padding: 18px;
}

.news-date {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
}

.news-content h4 {
  font-size: 1.15rem;
  margin: 10px 0 14px;
  color: var(--text);
  line-height: 1.4;
}

.news-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.news-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.news-link:hover {
  gap: 12px;
}

/* University Banner */
.university-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(13, 148, 136, 0.1) 100%);
  padding: 30px;
  border-radius: 28px;
  text-align: center;
  border: 1px solid rgba(216, 210, 200, 0.6);
  box-shadow: var(--shadow);
}

.university-banner h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.university-banner > p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
}

.university-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.university-name {
  background: var(--card-bg);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  border: 1px solid rgba(216, 210, 200, 0.6);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.university-name:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}

.cta-section::before {
  top: -140px;
  right: -120px;
}

.cta-section::after {
  bottom: -140px;
  left: -120px;
  animation-delay: -7s;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 0.98rem;
  opacity: 0.92;
  margin-bottom: 18px;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #f1f5f9;
  padding: 44px 0 18px;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #f1f5f9;
  font-weight: 700;
}

.footer a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer a:hover {
  color: #f1f5f9;
  transform: translateX(4px);
}

.footer p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #64748b;
  font-size: 0.9rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 60%, #14b8a6 100%);
  color: #ffffff;
  padding: 95px 0 55px;
  text-align: center;
  margin-top: 74px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.28), transparent 45%);
  opacity: 0.6;
  z-index: 0;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.5;
  animation: grid-shift 32s linear infinite;
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(1.85rem, 2.6vw, 2.3rem);
  font-weight: 700;
}

.page-header p {
  margin-top: 16px;
  opacity: 0.9;
  font-size: 0.94rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 148, 136, 0.3);
}

.card h3, .card h4 {
  margin-bottom: 12px;
  color: var(--text);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* Grid Layouts */
.feature-grid, .program-grid, .achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* Level Table */
.level-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.level-table th, .level-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid rgba(216, 210, 200, 0.6);
}

.level-table th {
  background: rgba(241, 245, 249, 0.8);
  font-weight: 700;
}

.level-table tr:hover td {
  background: rgba(241, 245, 249, 0.6);
}

/* Program Cards for Curriculum Page */
.program-card {
  position: relative;
}

.program-card ul {
  margin-top: 14px;
  padding-left: 20px;
  color: var(--text-light);
}

.program-card li {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.level-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.level-badge.cs {
  background: linear-gradient(135deg, #1d776d 0%, #2f9c8e 100%);
}

/* Course Strip (LeadingAces-style compact cards) */
.course-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 6px 14px;
  scroll-snap-type: x mandatory;
}

.course-strip::-webkit-scrollbar {
  height: 8px;
}

.course-strip::-webkit-scrollbar-thumb {
  background: rgba(15, 118, 110, 0.25);
  border-radius: 999px;
}

.course-card {
  flex: 0 0 220px;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(216, 210, 200, 0.7);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.course-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 10px;
  box-shadow: 0 10px 18px rgba(13, 148, 136, 0.25);
}

.course-track {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.course-card h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.course-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Stats for other pages */
.big-stat {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 14px 0 8px;
}

.winner-list {
  margin-top: 14px;
  padding-left: 20px;
}

.winner-list.compact {
  columns: 2;
}

.winner-list li {
  margin-bottom: 8px;
}

/* Achievement Cards */
.achievement-card h3 {
  color: var(--primary);
  border-bottom: 2px solid rgba(216, 210, 200, 0.7);
  padding-bottom: 14px;
}

.achievement-card.highlight {
  border: 2px solid rgba(245, 158, 11, 0.6);
}

.achievement-card.wide {
  grid-column: 1 / -1;
}

.student-admission {
  padding: 18px;
  background: rgba(241, 245, 249, 0.9);
  border-radius: 12px;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 36px;
}

.contact-info h2 {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
}

.contact-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(241, 245, 249, 0.9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h4 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}

.contact-item p {
  color: var(--text-light);
  margin: 0;
}

.contact-hours {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid rgba(216, 210, 200, 0.7);
}

.contact-hours h4 {
  margin-bottom: 14px;
}

.contact-form-wrapper h2 {
  margin-bottom: 14px;
}

.contact-form {
  margin-top: 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(216, 210, 200, 0.8);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.92rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #d9463f;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.btn-full {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  padding: 12px;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.2);
}

.btn-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(13, 148, 136, 0.28);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

/* Map Section */
.map-section {
  padding: 45px 0;
  background: rgba(241, 245, 249, 0.8);
}

.map-section h2 {
  margin-bottom: 20px;
}

.map-placeholder {
  background: var(--card-bg);
  padding: 26px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid rgba(216, 210, 200, 0.6);
  box-shadow: var(--shadow);
}

.map-placeholder p {
  margin-bottom: 20px;
  font-size: 1rem;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(18px);
  }
}

@keyframes grid-shift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 80px 80px, 80px 80px;
  }
}

@keyframes orbit-drift {
  0%, 100% {
    transform: translate(0px, 0px);
  }
  50% {
    transform: translate(18px, -12px);
  }
}

@keyframes node-pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12);
  }
  50% {
    transform: translateX(-50%) scale(1.12);
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.2);
  }
}

@keyframes glow-sweep {
  0%, 100% {
    transform: translateX(-4%);
    opacity: 0.6;
  }
  50% {
    transform: translateX(4%);
    opacity: 1;
  }
}


@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Schedule Pages */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.overview-card {
  background: var(--card-bg);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  text-align: center;
}

.overview-card h4 {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.overview-card p {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0;
}

.course-desc {
  color: var(--text-light);
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.discord-link {
  text-align: center;
  margin-top: 16px;
}

.discord-link a {
  color: var(--primary);
  font-weight: 600;
}

.schedule-focus {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}

.schedule-table-wrap {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.schedule-table th,
.schedule-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(216, 210, 200, 0.6);
  font-size: 0.9rem;
}

.schedule-table th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  font-weight: 700;
}

.schedule-table tr:hover td {
  background: rgba(241, 245, 249, 0.6);
}

.schedule-table .contest-row td {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1));
  font-weight: 700;
  text-align: center;
  color: var(--primary);
}

.schedule-table .break-row td {
  background: rgba(241, 245, 249, 0.8);
  color: var(--text-light);
  font-style: italic;
}

/* Foundation Links */
.foundation-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.foundation-card {
  display: block;
  background: var(--card-bg);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.foundation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.foundation-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.foundation-card p {
  color: var(--text-light);
  margin: 0;
}

/* Instructor Info */
.instructor-info {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  max-width: 400px;
}

.instructor-info h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

/* Foundation Grid */
.foundation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.foundation-card.card ul {
  margin-top: 16px;
  padding-left: 20px;
}

.foundation-card.card li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.foundation-card.card h3 {
  color: var(--primary);
  font-size: 1.15rem;
  border-bottom: 2px solid rgba(216, 210, 200, 0.6);
  padding-bottom: 12px;
}

/* Level Breakdown */
.level-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.level-card {
  text-align: center;
}

.level-card .level-badge {
  margin-bottom: 16px;
}

.level-card ul {
  text-align: left;
  padding-left: 20px;
  margin-top: 12px;
}

.level-card li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Timeline Info */
.timeline-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.timeline-info .card {
  text-align: center;
}

.timeline-info h4 {
  color: var(--primary);
  margin-bottom: 12px;
}

.target-rates ul {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

.target-rates li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Contest Page */
.announcement-bar {
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.95), rgba(13, 148, 136, 0.95), rgba(15, 118, 110, 0.95));
  color: #ffffff;
  padding: 10px 0;
  margin-top: 74px;
  position: relative;
  overflow: hidden;
}

.announcement-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.25), transparent 55%);
  opacity: 0.8;
  animation: glow-sweep 14s ease-in-out infinite;
}

.announcement-bar .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  font-size: 0.9rem;
}

.announcement-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.25);
  color: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.35);
  white-space: nowrap;
}

.announcement-bar p {
  margin: 0;
  color: rgba(232, 234, 237, 0.92);
}

.announcement-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 234, 237, 0.4);
  transition: all 0.3s ease;
}

.announcement-link:hover {
  background: rgba(232, 234, 237, 0.12);
  transform: translateY(-1px);
}

.contest-subnav {
  position: sticky;
  top: 74px;
  z-index: 40;
  background: rgba(255, 253, 248, 0.85);
  border-bottom: 1px solid rgba(216, 210, 200, 0.6);
  backdrop-filter: blur(16px);
}

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.subnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.subnav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.subnav-links a:hover {
  border-color: rgba(13, 148, 136, 0.2);
  background: rgba(13, 148, 136, 0.08);
  transform: translateY(-1px);
}

.subnav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.subnav-cta .btn-primary {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.deadlines-focus .section-head {
  margin-bottom: 22px;
}

.next-deadlines-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.deadline-main {
  display: grid;
  gap: 18px;
}


.contest-hero {
  padding: 70px 0 56px;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.25), transparent 48%),
    radial-gradient(circle at 80% 30%, rgba(13, 148, 136, 0.2), transparent 55%),
    linear-gradient(135deg, rgba(255, 250, 245, 0.95), rgba(248, 241, 232, 0.95));
  position: relative;
  overflow: hidden;
}

.contest-hero::before,
.contest-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.18), transparent 70%);
  opacity: 0.6;
  animation: float 16s ease-in-out infinite;
}

.contest-hero::before {
  top: -120px;
  left: -80px;
}

.contest-hero::after {
  bottom: -140px;
  right: -80px;
  animation-delay: -8s;
}

.contest-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 340px);
  gap: 22px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contest-hero-content {
  max-width: 560px;
}

.contest-hero-deadlines {
  display: grid;
  gap: 12px;
  align-self: stretch;
}

.contest-hero-deadlines .compact-upcoming {
  background: var(--card-bg);
  border: 1px solid rgba(216, 210, 200, 0.7);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.compact-upcoming h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.compact-upcoming ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.compact-upcoming li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(216, 210, 200, 0.7);
}

.compact-upcoming li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.compact-upcoming span {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.84rem;
}

.compact-upcoming strong {
  font-size: 0.92rem;
  color: var(--text);
}

.contest-hero-content h1 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  margin: 14px 0 16px;
  line-height: 1.05;
  color: var(--text);
}

.contest-hero-content p {
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
}

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

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.08);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.78rem;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.contest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contest-actions .btn {
  font-size: 0.92rem;
  padding: 12px 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.hero-metrics span {
  display: block;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.hero-metrics p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.contest-hero-card {
  padding: 18px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.contest-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contest-hero-card:hover::after {
  opacity: 1;
}

.contest-hero-details h3 {
  margin-bottom: 12px;
  color: var(--primary);
}

.deadline-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.deadline-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(216, 210, 200, 0.6);
  font-size: 0.9rem;
}

.deadline-list li span {
  color: var(--accent);
  font-weight: 700;
}

.link-arrow {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.link-arrow:hover {
  gap: 12px;
}

.contest-overview {
  padding-top: 40px;
}

.contest-timeline .section-head {
  margin-bottom: 28px;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
  padding-top: 14px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.25), rgba(245, 158, 11, 0.3), rgba(13, 148, 136, 0.25));
}

.timeline-node {
  position: relative;
  padding-top: 26px;
  text-align: center;
}

.timeline-node::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid rgba(13, 148, 136, 0.45);
  box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.12);
}

.timeline-node span {
  display: block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline-node p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0 auto;
  max-width: 140px;
}

.timeline-node.highlight::before {
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.2);
  animation: node-pulse 5s ease-in-out infinite;
}

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

.highlight-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.highlight-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.highlight-card:hover::after {
  opacity: 1;
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.highlight-card h3 {
  margin-bottom: 10px;
}

.highlight-card p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
}

.contest-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contest-contact.card h3 {
  margin-bottom: 12px;
}

.contest-contact .muted {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: -2px;
}

.mini-steps {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  margin-top: 16px;
}

.mini-steps span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-steps p {
  margin: 0;
  color: var(--text-light);
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  margin-top: 10px;
}

.section-head p {
  color: var(--text-light);
  max-width: 640px;
}

.contests-layout {
  display: block;
}

.deadline-band .section-head {
  margin-bottom: 22px;
}

.deadline-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.deadline-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.deadline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(245, 158, 11, 0.15));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.deadline-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.deadline-card:hover::after {
  opacity: 1;
}

.deadline-card span {
  display: inline-flex;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.deadline-card h3 {
  margin-bottom: 8px;
}

.deadline-card p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.92rem;
}

.contest-contact {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(245, 158, 11, 0.05));
  padding: 20px 28px;
  border-radius: 16px;
  text-align: center;
}

.contest-contact.card {
  text-align: left;
}

.contest-contact p {
  margin: 6px 0;
  font-size: 0.95rem;
}

.contest-table-wrap {
  overflow-x: auto;
}

.table-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.legend-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  border: 1px solid transparent;
}

.legend-chip.danger {
  color: #c53030;
  border-color: rgba(197, 48, 48, 0.25);
  background: rgba(197, 48, 48, 0.1);
}

.legend-chip.success {
  color: #2f855a;
  border-color: rgba(47, 133, 90, 0.25);
  background: rgba(47, 133, 90, 0.1);
}

.legend-chip.muted {
  color: #7d6f64;
  border-color: rgba(125, 111, 100, 0.25);
  background: rgba(125, 111, 100, 0.1);
}

.contest-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
}

.contest-table th,
.contest-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(216, 210, 200, 0.6);
  vertical-align: top;
}

.contest-table th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 6px 12px rgba(16, 24, 40, 0.18);
}

.contest-table tr.alt-row td {
  background: rgba(241, 245, 249, 0.5);
}

.contest-table .note-cell {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  background: rgba(241, 245, 249, 0.8);
}

.contest-table .deadline-soon {
  color: #c53030;
  font-weight: 700;
  background: rgba(197, 48, 48, 0.08);
}

.contest-table .free-cell {
  color: #2f855a;
  font-weight: 700;
  background: rgba(47, 133, 90, 0.1);
}

.contest-table .full-cell {
  color: #c53030;
  font-weight: 700;
  background: rgba(197, 48, 48, 0.12);
}

.contest-table small {
  display: block;
  color: var(--text-light);
  font-size: 0.75rem;
}

.contest-index {
  position: relative;
}

.contest-index-details {
  background: var(--card-bg);
  border: 1px solid rgba(216, 210, 200, 0.7);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.contest-index-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  list-style: none;
}

.contest-index-details summary::marker {
  display: none;
}

.contest-index-details summary::after {
  content: "▾";
  float: right;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.contest-index-details[open] summary::after {
  transform: rotate(180deg);
}

.contest-index-table {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.contest-index-header,
.contest-index-row {
  display: grid;
  grid-template-columns: 1.2fr 140px 1fr;
  gap: 14px;
  align-items: start;
}

.contest-index-header {
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 1px solid rgba(216, 210, 200, 0.7);
  padding-bottom: 8px;
}

.contest-index-row {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(216, 210, 200, 0.5);
  font-size: 0.92rem;
  color: var(--text);
}

.contest-index-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.payment-info {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  margin-bottom: 28px;
}

.payment-info p {
  margin: 8px 0;
}

.contest-notes {
  padding-left: 20px;
}

.contest-notes li {
  margin-bottom: 14px;
  line-height: 1.6;
}

.contest-notes .note-warning {
  color: #c53030;
}

.contest-notes .note-info {
  color: var(--text-light);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.note-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(216, 210, 200, 0.6);
  box-shadow: var(--shadow);
}

.note-card h4 {
  margin-bottom: 10px;
}

.note-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.note-card.warning {
  border-left: 4px solid #c53030;
}

.note-card.info {
  border-left: 4px solid #2f6fb0;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .curriculum-intro {
    grid-template-columns: 1fr;
  }

  .pathway-split {
    grid-template-columns: 1fr;
  }

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

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

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

  .contest-hero-grid {
    grid-template-columns: 1fr;
  }

  .contest-overview-grid {
    grid-template-columns: 1fr;
  }

  .timeline-track {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 28px;
  }

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

  .next-deadlines-layout {
    grid-template-columns: 1fr;
  }

  .deadline-main {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .contest-contact-grid {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 900px) {
  .nav {
    display: none;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid rgba(216, 210, 200, 0.7);
    border-radius: 18px;
    padding: 18px;
    width: 100%;
    box-shadow: var(--shadow);
    margin-top: 16px;
  }

  .nav.mobile-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 20px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

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

  .stat-number {
    font-size: 1.9rem;
  }

  .achievement-showcase,
  .program-cards,
  .news-cards {
    grid-template-columns: 1fr;
  }

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

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

  .winner-list.compact {
    columns: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .hero-badges {
    margin-top: 22px;
  }

  .hero-badge {
    font-size: 0.78rem;
  }

  .track-stepper {
    justify-content: center;
  }

  .intro-panel {
    padding: 18px;
  }

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

  .university-logos {
    gap: 12px;
  }

  .university-name {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .page-header {
    padding: 88px 0 52px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  /* Schedule pages responsive */
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .foundation-links {
    grid-template-columns: 1fr;
  }

  .level-breakdown,
  .timeline-info {
    grid-template-columns: 1fr;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .contest-table {
    font-size: 0.75rem;
  }

  .contest-table th,
  .contest-table td {
    padding: 8px;
  }

  .contest-index-header,
  .contest-index-row {
    grid-template-columns: 1fr;
  }

  .announcement-bar .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .contest-subnav {
    position: static;
  }

  .subnav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .subnav-cta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

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

  .timeline-track::before {
    display: none;
  }

  .timeline-node {
    padding-top: 0;
    text-align: left;
    padding-left: 26px;
  }

  .timeline-node::before {
    top: 8px;
    left: 0;
    transform: none;
  }

  .deadline-cards {
    grid-template-columns: 1fr;
  }

  .next-deadlines-layout {
    grid-template-columns: 1fr;
  }

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

  .contest-hero {
    padding: 60px 0 48px;
  }

  .contest-hero-content h1 {
    font-size: 2rem;
  }

  .contest-actions {
    justify-content: center;
  }

  .hero-metrics {
    gap: 12px;
  }

  .deadline-list li {
    grid-template-columns: 1fr;
  }
}
