/* ═══════════════════════════════════════════════════
   OXFORD ENGLISH BOARDING SCHOOL — Design System
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────── */
:root {
  --primary:        #1a2744;
  --primary-light:  #2d3f6e;
  --primary-dark:   #0f1a2e;
  --accent:         #c9973a;
  --accent-light:   #e8b84b;
  --accent-pale:    #f5e9d0;
  --surface:        #f8f6f0;
  --surface-card:   #ffffff;
  --border:         #e2d9c8;
  --text:           #1c1c2e;
  --text-muted:     #6b7280;
  --text-light:     #9ca3af;
  --success:        #059669;
  --success-bg:     #d1fae5;
  --warning:        #d97706;
  --warning-bg:     #fef3c7;
  --danger:         #dc2626;
  --danger-bg:      #fee2e2;
  --info:           #2563eb;
  --info-bg:        #dbeafe;

  --gold-1: #FFD700;
  --silver-1: #C0C0C0;
  --bronze-1: #CD7F32;

  --shadow-sm:  0 1px 3px rgba(26,39,68,.08), 0 1px 2px rgba(26,39,68,.06);
  --shadow-md:  0 4px 16px rgba(26,39,68,.12), 0 2px 6px rgba(26,39,68,.08);
  --shadow-lg:  0 10px 40px rgba(26,39,68,.16), 0 4px 12px rgba(26,39,68,.1);
  --shadow-xl:  0 20px 60px rgba(26,39,68,.2);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --nav-height: 76px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

p { color: var(--text-muted); line-height: 1.75; }

/* ─── Layout Helpers ────────────────────────────── */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm{ max-width: 800px;  margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.text-center { text-align: center; }
.text-left   { text-align: left; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ─── Section Heading ───────────────────────────── */
.section-tag {
  display: inline-block;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-heading { margin-bottom: 16px; }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.divider-gold {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin: 18px auto 32px;
}

/* ─── Navigation ────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(26,39,68,.97);
  border-color: rgba(255,255,255,.1);
}

.navbar.scrolled .nav-link,
.navbar.scrolled .logo-name,
.navbar.scrolled .logo-sub {
  color: #fff !important;
}

.navbar.scrolled .logo-name { color: var(--accent-light) !important; }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  transition: var(--transition);
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover { color: var(--primary); background: var(--accent-pale); }
.nav-link.active { color: var(--accent); font-weight: 600; }

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-admin:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,151,58,.35);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

.btn-sm { padding: 8px 18px; font-size: 0.825rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ─── Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,26,46,.85) 0%,
    rgba(26,39,68,.75) 50%,
    rgba(15,26,46,.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,151,58,.2);
  border: 1px solid rgba(201,151,58,.4);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-title span { color: var(--accent-light); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.15);
  flex-wrap: wrap;
}

.hero-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── Cards ─────────────────────────────────────── */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

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

.card-body { padding: 28px; }
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ─── Stat / Info Cards ─────────────────────────── */
.info-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.info-icon {
  width: 68px;
  height: 68px;
  background: var(--accent-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.info-val {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* ─── Feature List ──────────────────────────────── */
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature-item:hover { background: var(--accent-pale); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.feature-desc { font-size: 0.875rem; color: var(--text-muted); }

/* ─── News Cards ────────────────────────────────── */
.news-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.news-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.news-card-img img { width: 100%; height: 100%; object-fit: cover; }

.news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.news-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.badge-announcement { background: var(--info-bg);  color: var(--info); }
.badge-event        { background: var(--success-bg); color: var(--success); }
.badge-achievement  { background: var(--accent-pale); color: var(--accent); }

.news-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card-excerpt { font-size: 0.875rem; color: var(--text-muted); flex: 1; }

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.news-date {
  font-size: 0.775rem;
  color: var(--text-light);
  font-weight: 500;
}

.news-read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

/* ─── Leaderboard ───────────────────────────────── */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.podium-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  color: #fff;
  border: 3px solid transparent;
}

.podium-avatar.gold   { background: linear-gradient(135deg,#B8860B,#FFD700); border-color: #FFD700; box-shadow: 0 0 24px rgba(255,215,0,.45); }
.podium-avatar.silver { background: linear-gradient(135deg,#808080,#C0C0C0); border-color: #C0C0C0; box-shadow: 0 0 16px rgba(192,192,192,.35); }
.podium-avatar.bronze { background: linear-gradient(135deg,#8B5E1A,#CD7F32); border-color: #CD7F32; box-shadow: 0 0 16px rgba(205,127,50,.35); }

.podium-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
  text-align: center;
  max-width: 110px;
}

.podium-pct {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.podium-block {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  width: 100px;
}

.podium-block.gold   { height: 100px; background: linear-gradient(180deg,#FFD700,#B8860B); }
.podium-block.silver { height: 75px;  background: linear-gradient(180deg,#C0C0C0,#808080); }
.podium-block.bronze { height: 55px;  background: linear-gradient(180deg,#CD7F32,#8B5E1A); }

/* Leaderboard Table */
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lb-table th {
  background: var(--primary);
  color: #fff;
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 14px 16px;
  text-align: left;
}

.lb-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.lb-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

.lb-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.lb-table tr:last-child td { border-bottom: none; }

.lb-table tr:hover td { background: var(--surface); }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
}

.rank-1 { background: linear-gradient(135deg,#FFD700,#B8860B); color: #fff; }
.rank-2 { background: linear-gradient(135deg,#C0C0C0,#808080); color: #fff; }
.rank-3 { background: linear-gradient(135deg,#CD7F32,#8B5E1A); color: #fff; }
.rank-n { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }

.gpa-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.775rem;
  font-weight: 700;
  background: var(--info-bg);
  color: var(--info);
}

/* ─── Grade Badges ──────────────────────────────── */
.grade-ap { color: #059669; font-weight: 700; }
.grade-a  { color: #10b981; font-weight: 700; }
.grade-bp { color: #0284c7; font-weight: 700; }
.grade-b  { color: #2563eb; font-weight: 700; }
.grade-c  { color: var(--warning); font-weight: 700; }
.grade-ng { color: var(--danger); font-weight: 700; }

/* ─── Page Banner ───────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: calc(var(--nav-height) + 60px) 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(201,151,58,.12) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 50%, rgba(255,255,255,.05) 0%, transparent 60%);
}

.page-banner-content { position: relative; z-index: 1; }

.page-banner h1 { color: #fff; margin-bottom: 12px; }
.page-banner p  { color: rgba(255,255,255,.72); font-size: 1.05rem; }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--accent-light); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ─── Footer ────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand { }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img { width: 44px; height: 44px; object-fit: contain; }

.footer-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1.2;
}

.footer-logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-desc { font-size: 0.875rem; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 20px; }

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent-light); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}

.footer-contact-item span:first-child { flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.825rem;
  color: rgba(255,255,255,.35);
}

/* ─── Modals ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,26,46,.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95) translateY(16px);
  transition: var(--transition);
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover { background: var(--border); color: var(--text); }

.modal-body { padding: 28px; }

/* ─── Class Selector ────────────────────────────── */
.class-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.class-tab {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-card);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.class-tab:hover { border-color: var(--primary); color: var(--primary); }

.class-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* ─── Alert / Notice ────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.alert-info    { background: var(--info-bg);    color: var(--info);    border-left: 4px solid var(--info); }
.alert-success { background: var(--success-bg); color: var(--success); border-left: 4px solid var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-left: 4px solid var(--warning); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border-left: 4px solid var(--danger); }

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

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .nav-links, .btn-admin { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

  .hero-stats { gap: 28px; }

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

  .podium-block.gold   { height: 70px; width: 80px; }
  .podium-block.silver { height: 55px; width: 80px; }
  .podium-block.bronze { height: 40px; width: 80px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .class-tabs { gap: 6px; }
  .class-tab { padding: 7px 14px; font-size: 0.8rem; }
}

/* ─── Scroll Bar ────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Selection ─────────────────────────────────── */
::selection { background: var(--accent-pale); color: var(--primary); }

/* ─── Print ─────────────────────────────────────── */
@media print {
  .navbar, .footer, .btn, .hero-actions { display: none !important; }
  .hero { min-height: auto; padding: 20px 0; }
  .hero-bg { display: none; }
  .hero-content { color: var(--text); }
}
