/* Natkhat Khel Mahotsav - Modern Responsive Stylesheet */
:root {
  --navy: #0b376b;
  --navy-dark: #072346;
  --navy-deep: #051933;
  --navy-light: #164e8e;
  --gold: #f5b400;
  --gold-hover: #dba000;
  --gold-light: #fff8e1;
  --gold-glow: rgba(245, 180, 0, 0.35);
  --light: #f5f8fc;
  --light-border: #dfe8f1;
  --text: #17324f;
  --text-muted: #5e7998;
  --card-bg: #ffffff;
  --success: #0c7550;
  --success-light: #eef8f2;
  --live: #d90429;
  --live-light: #ffe5e8;
  --shadow-sm: 0 2px 8px rgba(11, 55, 107, 0.06);
  --shadow-md: 0 6px 20px rgba(11, 55, 107, 0.09);
  --shadow-lg: 0 12px 36px rgba(11, 55, 107, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Announcement Ticker Bar */
.ticker-bar {
  background: var(--navy-dark);
  color: #fff;
  font-size: 13px;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 20;
}

.ticker-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-badge {
  background: var(--live);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.ticker-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.ticker-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  color: #e2e8f0;
}

.ticker-text a {
  color: var(--gold);
  text-decoration: underline;
  margin-left: 6px;
  cursor: pointer;
}

.ticker-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 12px;
}

/* Sticky Header & Nav */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 4px 18px rgba(11, 55, 107, 0.08);
  border-bottom: 1px solid var(--light-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(11, 55, 107, 0.25);
  flex-shrink: 0;
}

.brand-text b {
  display: block;
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.brand-text span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.brand-text em {
  color: var(--gold-hover);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Nav links */
nav.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

nav.nav-links a:hover {
  background: var(--light);
  color: var(--navy-light);
}

nav.nav-links a.active {
  background: #edf4fb;
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-admin {
  background: var(--navy);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-admin:hover {
  background: var(--navy-light);
  box-shadow: 0 4px 12px rgba(11, 55, 107, 0.2);
  transform: translateY(-1px);
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--light-border);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--navy);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(7, 35, 70, 0.92) 0%, rgba(11, 55, 107, 0.82) 60%, rgba(7, 35, 70, 0.95) 100%),
              url('https://images.unsplash.com/photo-1461896836934-ffe607ba8211?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  color: #fff;
  padding: 70px 20px 80px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: #f8fafc;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content .edition-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 180, 0, 0.18);
  border: 1px solid rgba(245, 180, 0, 0.4);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h2 {
  font-size: 22px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 18px;
}

.hero h2 span {
  color: var(--gold);
  font-weight: 800;
}

.hero p {
  font-size: 17px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #0b274c;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--gold-glow);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #ffbe1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 180, 0, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero Live Countdown & Card */
.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.countdown-title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-indicator {
  background: rgba(217, 4, 41, 0.25);
  border: 1px solid var(--live);
  color: #ff8a93;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-indicator::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse-dot 1s infinite;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
  margin-bottom: 20px;
}

.countdown-box {
  background: rgba(11, 55, 107, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 6px;
}

.countdown-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  font-feature-settings: "tnum";
}

.countdown-lbl {
  font-size: 11px;
  color: #cbd5e1;
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.hero-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-highlights-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #e2e8f0;
}

.hero-highlights-list svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Quick Nav Ribbon */
.quick-ribbon {
  background: #ffffff;
  border-bottom: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
}

.quick-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-inner a {
  padding: 18px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  border-right: 1px solid var(--light-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.quick-inner a:last-child {
  border-right: none;
}

.quick-inner a:hover {
  background: var(--light);
  transform: translateY(-2px);
}

.quick-inner .icon {
  font-size: 24px;
}

.quick-inner .label {
  font-size: 14px;
  font-weight: 700;
}

.quick-inner .sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Stats Counter Banner */
.stats-banner {
  background: linear-gradient(180deg, #edf4fb 0%, #f5f8fc 100%);
  border-bottom: 1px solid var(--light-border);
  padding: 30px 20px;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #b7d1ed;
}

.stat-val {
  font-size: 34px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
}

.stat-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Common Container & Section Structure */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

.section-head.center {
  text-align: center;
  justify-content: center;
  display: block;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy-light);
  margin-bottom: 4px;
}

.title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin: 0;
}

.title-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 6px;
  max-width: 650px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.feature-box {
  background: var(--light);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.feature-box b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 14.5px;
  margin-bottom: 5px;
}

.feature-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.details-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
  font-size: 14.5px;
}

.details-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.details-list .label {
  color: var(--text-muted);
  font-weight: 500;
}

.details-list .val {
  color: var(--navy);
  font-weight: 700;
  text-align: right;
}

/* Filter Controls Toolbar */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  background: #fff;
  padding: 14px 18px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  background: var(--light);
  border: 1px solid var(--light-border);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.pill-btn:hover {
  background: #e2edfa;
  border-color: #bcd4ee;
}

.pill-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.search-input-wrap {
  position: relative;
  min-width: 260px;
}

.search-input-wrap input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--light-border);
  font-size: 13.5px;
  outline: none;
  background: #f8fafc;
  transition: var(--transition);
}

.search-input-wrap input:focus {
  background: #fff;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(11, 55, 107, 0.1);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

/* Schedule List View */
.schedule-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-row {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: 18px;
  align-items: center;
  transition: var(--transition);
}

.schedule-row:hover {
  border-color: #b9d3ef;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.schedule-date-box {
  background: #edf4fb;
  border: 1px solid #d5e5f5;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
  color: var(--navy);
}

.schedule-date-box .day-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy-light);
  letter-spacing: 0.5px;
}

.schedule-date-box strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.schedule-info b {
  font-size: 16px;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}

.schedule-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.schedule-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.schedule-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-badge {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.tag-badge.track {
  background: #eef8f2;
  color: var(--success);
  border: 1px solid #c9ebd8;
}

.tag-badge.field {
  background: #fff4e5;
  color: #b25e00;
  border: 1px solid #ffd8a8;
}

.tag-badge.ceremony {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.status-badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-badge.live {
  background: var(--live-light);
  color: var(--live);
  border: 1px solid #ffccd2;
}

.status-badge.live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse-dot 1s infinite;
}

.status-badge.completed {
  background: #e2e8f0;
  color: #475569;
}

.status-badge.upcoming {
  background: #edf4fb;
  color: var(--navy);
}

/* Results & Podium */
.podium-section {
  margin-bottom: 30px;
}

.podium-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.podium-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
  align-items: flex-end;
}

.podium-pillar {
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.podium-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.podium-pillar.silver {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 2px solid #cbd5e1;
  min-height: 200px;
}

.podium-pillar.gold {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f5b400;
  min-height: 240px;
  box-shadow: 0 8px 24px rgba(245, 180, 0, 0.2);
}

.podium-pillar.bronze {
  background: linear-gradient(180deg, #fff7ed 0%, #fed7aa 100%);
  border: 2px solid #fdba74;
  min-height: 180px;
}

.medal-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.gold .medal-badge {
  background: linear-gradient(135deg, #f5b400, #d97706);
  border: 2px solid #fff;
  width: 54px;
  height: 54px;
  font-size: 24px;
}

.silver .medal-badge {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  border: 2px solid #fff;
}

.bronze .medal-badge {
  background: linear-gradient(135deg, #d97706, #9a3412);
  border: 2px solid #fff;
}

.podium-athlete-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2px;
}

.podium-team-name {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.podium-score-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Results Data Table */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius);
}

table.results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #fff;
}

table.results-table th,
table.results-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--light-border);
  font-size: 14px;
}

table.results-table th {
  background: #edf4fb;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

table.results-table tbody tr:hover {
  background: #f8fbfe;
}

.winner-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.medal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.medal-dot.gold { background: #f5b400; box-shadow: 0 0 4px #f5b400; }
.medal-dot.silver { background: #94a3b8; }
.medal-dot.bronze { background: #d97706; }

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

.history-card {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.history-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #b0cfee;
}

.history-card.current {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #fff 0%, #fffef8 100%);
}

.history-year-tag {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  width: fit-content;
}

.history-card.current .history-year-tag {
  background: var(--gold);
  color: #0b274c;
}

.history-edition {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.history-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.history-stats span {
  background: var(--light);
  padding: 3px 8px;
  border-radius: 4px;
}

.history-champion {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--light-border);
  font-size: 13px;
}

.history-champion b {
  color: var(--navy);
}

/* Officials Tiles */
.officials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.official-card {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.official-img-wrap {
  height: 180px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #edf4fb;
}

.official-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.official-card:hover .official-img-wrap img {
  transform: scale(1.05);
}

.official-badge-overlay {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(11, 55, 107, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.official-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.official-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.official-role {
  font-size: 13.5px;
  font-weight: 600;
  color: #d97706;
  margin-bottom: 4px;
}

.official-org {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.official-bio {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-top: auto;
}

/* Gallery Grid & Lightbox */
.gallery-toolbar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

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

.gallery-item {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  group: true;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-thumb {
  height: 220px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 35, 70, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
}

.gallery-overlay-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.gallery-overlay-text span {
  font-size: 12px;
  color: var(--gold);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 38, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.lightbox-content img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

.lightbox-caption {
  padding: 18px 24px;
  background: #fff;
}

.lightbox-caption h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 4px;
}

.lightbox-caption p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* Contact & Venue */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

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

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

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: #edf4fb;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy);
  flex-shrink: 0;
}

.contact-item-text b {
  font-size: 15px;
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}

.contact-item-text p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 55, 107, 0.1);
}

/* Admin Dashboard Modal / Drawer */
.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 35, 70, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.admin-window {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-border);
  overflow: hidden;
}

.admin-header {
  padding: 18px 24px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header h2 {
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-tabs {
  display: flex;
  background: #edf4fb;
  border-bottom: 1px solid var(--light-border);
  padding: 0 20px;
  gap: 6px;
  overflow-x: auto;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: var(--navy);
}

.admin-tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.admin-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.admin-list-container {
  margin-top: 24px;
  border-top: 1px solid var(--light-border);
  padding-top: 20px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: #fbfdff;
}

.btn-danger-sm {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger-sm:hover {
  background: #ef4444;
  color: #fff;
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gold);
  pointer-events: auto;
  animation: slideInRight 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
}

.toast.success {
  border-left-color: #10b981;
}

.toast.warning {
  border-left-color: #f59e0b;
}

/* Footer */
footer {
  background: var(--navy-deep);
  color: #cbd5e1;
  padding: 50px 20px 30px;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand b {
  font-size: 20px;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 3px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #64748b;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid rgba(245, 180, 0, 0.4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 99;
  transition: var(--transition);
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background: var(--navy-light);
  transform: translateY(-3px);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .history-timeline,
  .officials-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ticker-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ticker-right {
    display: none;
  }
  .hamburger-btn {
    display: block;
  }
  nav.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--light-border);
    box-shadow: var(--shadow-lg);
  }
  nav.nav-links.show {
    display: flex;
  }
  nav.nav-links a {
    width: 100%;
    padding: 10px 14px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero h2 {
    font-size: 18px;
  }
  .quick-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .schedule-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .schedule-date-box {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
  }
  .schedule-date-box strong {
    display: inline-block;
    font-size: 16px;
  }
  .podium-grid {
    grid-template-columns: 1fr;
  }
  .podium-pillar {
    min-height: auto !important;
  }
  .history-timeline,
  .officials-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
