/* ==========================================================================
   NATIONAL SCHOOL OF CHESS — LUXURY CHESS THEME, TYPOGRAPHY & AUTOMATION UI
   ========================================================================== */

:root {
  --nsc-gold: #f0b90b;
  --nsc-gold-light: #ffe28a;
  --nsc-gold-soft: #f5c945;
  --nsc-gold-deep: #c99305;
  --nsc-navy-950: #050914;
  --nsc-navy-900: #0a1020;
  --nsc-navy-800: #101930;
  --nsc-navy-700: #172342;
  --nsc-border: rgba(240, 185, 11, 0.22);
  --nsc-border-subtle: rgba(255, 255, 255, 0.08);
  --nsc-glass: rgba(12, 19, 38, 0.76);
  --nsc-font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nsc-font-display: "Cinzel", "Playfair Display", Georgia, serif;
  --nsc-font-serif: "Playfair Display", Georgia, serif;
  --nsc-shadow-lg: 0 24px 60px -15px rgba(0, 0, 0, 0.65);
  --nsc-shadow-gold: 0 12px 32px -8px rgba(240, 185, 11, 0.28);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--nsc-font-sans) !important;
  background-color: var(--nsc-navy-950);
  color: #f8fafc;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

/* Global Typography Harmony */
h1, h2, h3, .section-title, .puzzle-section-title, .testimonials-title, .about-title, .news-main-title, .news-title {
  font-family: var(--nsc-font-display) !important;
  letter-spacing: 0.015em;
}

.section-title .highlight,
.puzzle-section-title .highlight,
.testimonials-title .highlight,
.about-title .highlight,
.news-main-title .highlight,
.news-title .highlight {
  background: linear-gradient(135deg, #fff5cc 0%, #f5c945 48%, #e0a508 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.section-subtitle,
.puzzle-section-subtitle,
.testimonials-sub,
.about-lede,
.news-main-sub,
.news-sub {
  font-family: var(--nsc-font-sans) !important;
  color: #9aa7c2 !important;
  font-weight: 400;
  line-height: 1.7;
}

/* Tabular numbers for stats, ratings, and countdowns */
.stat-box h2, .stats-value, .about-stat .num, .rating, .cd-unit strong {
  font-variant-numeric: tabular-nums;
}

/* Scroll Progress Bar */
.nsc-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #c99305, #ffe28a, #f0b90b);
  z-index: 2000;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(240, 185, 11, 0.75);
}

/* ==========================================================================
   GLASSMORPHIC COMPACT SINGLE-LINE NAVBAR
   ========================================================================== */
.navbar {
  background: rgba(5, 9, 20, 0.88) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(240, 185, 11, 0.14);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  padding: 8px clamp(12px, 2vw, 28px) !important;
  min-height: 60px !important;
  gap: 10px !important;
}

.nav-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.logo {
  width: 42px !important;
  height: auto !important;
}

.logo-dynamic {
  filter: drop-shadow(0 0 7px rgba(240, 185, 11, 0.3));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.navbar .logo-dynamic,
.footer-logo.logo-dynamic {
  animation: nscLogoGlow 4s ease-in-out infinite;
}

.nav-left .logo-dynamic:hover,
.footer-logo.logo-dynamic:hover {
  transform: scale(1.1) rotate(-5deg);
  filter: drop-shadow(0 0 13px rgba(255, 216, 92, 0.72));
}

.hero-logo1.logo-dynamic {
  animation: nscHeroLogoFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 12px 22px rgba(240, 185, 11, 0.32));
  transform: perspective(900px)
    translate3d(var(--logo-cursor-x, 0px), var(--logo-cursor-y, 0px), 0)
    rotateX(var(--logo-tilt-x, 0deg)) rotateY(var(--logo-tilt-y, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes nscLogoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(240, 185, 11, 0.22));
  }
  50% {
    filter: drop-shadow(0 0 11px rgba(255, 216, 92, 0.58));
  }
}

@keyframes nscHeroLogoFloat {
  0%, 100% {
    transform: perspective(900px)
      translate3d(var(--logo-cursor-x, 0px), var(--logo-cursor-y, 0px), 0)
      rotateX(var(--logo-tilt-x, 0deg)) rotateY(var(--logo-tilt-y, 0deg)) scale(1);
    filter: drop-shadow(0 10px 18px rgba(240, 185, 11, 0.25));
  }
  50% {
    transform: perspective(900px)
      translate3d(var(--logo-cursor-x, 0px), calc(var(--logo-cursor-y, 0px) - 8px), 0)
      rotateX(var(--logo-tilt-x, 0deg)) rotateY(var(--logo-tilt-y, 0deg)) scale(1.035);
    filter: drop-shadow(0 16px 28px rgba(255, 216, 92, 0.5));
  }
}

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

  .nav-left .logo-dynamic:hover,
  .footer-logo.logo-dynamic:hover {
    transform: none;
  }

  .hero-logo1.logo-dynamic {
    transform: none;
  }
}

.brand h2 {
  font-family: var(--nsc-font-display) !important;
  font-size: 16px !important;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, #ffffff, #f5c945);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  white-space: nowrap !important;
}

.brand p {
  font-size: 10px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8 !important;
  white-space: nowrap !important;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(4px, 0.65vw, 10px) !important;
  flex-wrap: nowrap !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links a {
  font-family: var(--nsc-font-sans);
  font-size: clamp(12px, 0.88vw, 13.5px) !important;
  font-weight: 600;
  color: #dbe3f2 !important;
  padding: 6px clamp(6px, 0.55vw, 10px) !important;
  border-radius: 8px !important;
  transition: all 0.22s ease !important;
  white-space: nowrap !important;
}

.nav-links a:hover {
  color: var(--nsc-gold-light) !important;
  background: rgba(240, 185, 11, 0.08) !important;
}

.nav-links a.active {
  color: var(--nsc-gold) !important;
  background: rgba(240, 185, 11, 0.14) !important;
  box-shadow: inset 0 -2px 0 var(--nsc-gold);
}

.nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.enroll-btn {
  background: linear-gradient(135deg, #f5c945 0%, #e0a508 100%) !important;
  color: #060b16 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 20px rgba(240, 185, 11, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  white-space: nowrap !important;
}

.enroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(240, 185, 11, 0.45);
}

.nav-toggle {
  display: none !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(240, 185, 11, 0.35);
  color: #fff;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0 !important;
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex !important;
  }
  .navbar {
    flex-wrap: wrap !important;
  }
  .navbar .nav-links {
    display: none !important;
    width: 100% !important;
    flex-direction: column !important;
    background: rgba(8, 13, 28, 0.98) !important;
    padding: 14px 10px !important;
    border-radius: 14px !important;
    border: 1px solid var(--nsc-border) !important;
    margin-top: 10px !important;
  }
  .navbar .nav-links.open {
    display: flex !important;
  }
}

/* ==========================================================================
   HERO CHESS AMBIENCE & LUXURY POLISH
   ========================================================================== */
.hero {
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(240, 185, 11, 0.1) 0%, transparent 55%);
}

.hero h1 {
  font-family: var(--nsc-font-display) !important;
  font-size: clamp(2.2rem, 5vw, 3.9rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

.hero h2 {
  font-family: var(--nsc-font-serif) !important;
  font-size: clamp(1.35rem, 3vw, 2.1rem) !important;
  background: linear-gradient(90deg, #fff2bf, #f0b90b, #ffe07d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.hero p {
  font-size: 17px !important;
  color: #d0d9eb !important;
  max-width: 680px;
}

.btn-yellow {
  background: linear-gradient(135deg, #f5c945 0%, #e0a508 100%) !important;
  color: #060b16 !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  box-shadow: var(--nsc-shadow-gold);
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

.btn-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(240, 185, 11, 0.42);
}

.btn-outline {
  border-radius: 999px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  font-weight: 600 !important;
  transition: all 0.22s ease !important;
}

.btn-outline:hover {
  border-color: var(--nsc-gold) !important;
  background: rgba(240, 185, 11, 0.12);
  color: var(--nsc-gold-light) !important;
}

.chess-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.065;
  background-image:
    linear-gradient(45deg, #f0b90b 25%, transparent 25%),
    linear-gradient(-45deg, #f0b90b 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0b90b 75%),
    linear-gradient(-45deg, transparent 75%, #f0b90b 75%);
  background-size: 68px 68px;
  background-position: 0 0, 0 34px, 34px -34px, -34px 0;
  z-index: 1;
}

.floating-chess-pieces {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-piece {
  position: absolute;
  color: rgba(240, 185, 11, 0.16);
  font-size: clamp(30px, 4.2vw, 58px);
  user-select: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
  animation: nscFloat 14s ease-in-out infinite;
}

.floating-piece:nth-child(1) { top: 14%; left: 7%; animation-delay: 0s; }
.floating-piece:nth-child(2) { top: 22%; right: 9%; animation-delay: -3s; }
.floating-piece:nth-child(3) { bottom: 24%; left: 12%; animation-delay: -6s; }
.floating-piece:nth-child(4) { bottom: 18%; right: 14%; animation-delay: -9s; }
.floating-piece:nth-child(5) { top: 52%; left: 4%; animation-delay: -4s; }
.floating-piece:nth-child(6) { top: 48%; right: 5%; animation-delay: -11s; }

@keyframes nscFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}

.hero-auto-bar {
  margin: 26px auto 0;
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(10, 16, 32, 0.85);
  border: 1px solid rgba(240, 185, 11, 0.35);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-live-pill:hover {
  transform: translateY(-2px);
  border-color: var(--nsc-gold);
  background: rgba(240, 185, 11, 0.14);
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: nscPulse 2s infinite;
}

@keyframes nscPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-quote-box {
  margin: 20px auto 0;
  max-width: 640px;
  font-family: var(--nsc-font-serif);
  font-size: 15px;
  font-style: italic;
  color: #e2e8f0;
  min-height: 24px;
  transition: opacity 0.4s ease;
}

/* ==========================================================================
   UNIFIED CARD POLISH & GLASSMORPHISM
   ========================================================================== */
.program-card,
.stat-box,
.stats-card,
.coach-card,
.profile-card,
.value-card,
.about-stat,
.countdown-card,
.update-card,
.enroll-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--nsc-shadow-lg);
  border-radius: 18px !important;
}

.program-card {
  background: linear-gradient(180deg, rgba(18, 28, 52, 0.92), rgba(10, 16, 32, 0.96)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease !important;
}

.icon-circle {
  width: 66px !important;
  height: 66px !important;
  background: linear-gradient(135deg, #f5c945 0%, #e0a508 100%) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
  box-shadow: 0 8px 22px rgba(240, 185, 11, 0.3) !important;
}

.icon-circle i {
  font-size: 30px !important;
  color: #060b16 !important;
  line-height: 1 !important;
  display: block !important;
}

.program-card:hover {
  transform: translateY(-7px);
  border-color: rgba(240, 185, 11, 0.45) !important;
}

.program-card h3 {
  font-family: var(--nsc-font-display) !important;
  letter-spacing: 0.02em;
}

.program-btn {
  background: linear-gradient(135deg, #f5c945 0%, #e0a508 100%) !important;
  color: #060b16 !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.program-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(240, 185, 11, 0.35);
}

/* Scroll Reveal Animation */
.nsc-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ==========================================================================
   AUTOMATED PROGRAM MATCHER (LEARNING PATHS)
   ========================================================================== */
.path-finder-box {
  max-width: 980px;
  margin: 0 auto 38px;
  background: linear-gradient(135deg, rgba(16, 25, 48, 0.95), rgba(8, 13, 28, 0.98));
  border: 1px solid var(--nsc-border);
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 48px rgba(0, 0, 0, 0.45);
}

.path-finder-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.path-finder-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nsc-font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
}

.path-finder-title span.tag {
  font-family: var(--nsc-font-sans);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #f5c945, #e0a508);
  color: #060b16;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.path-finder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.path-chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.path-chip-btn:hover,
.path-chip-btn.active {
  background: linear-gradient(135deg, #f5c945, #e0a508);
  color: #060b16;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(240, 185, 11, 0.3);
}

.path-finder-result {
  font-size: 14px;
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.program-card.nsc-recommended {
  border-color: var(--nsc-gold) !important;
  box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.35), 0 24px 50px rgba(240, 185, 11, 0.2) !important;
  transform: translateY(-6px);
  position: relative;
}

.recommended-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(90deg, #ffe28a, #f0b90b);
  color: #060b16;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  box-shadow: 0 4px 12px rgba(240, 185, 11, 0.35);
}

/* ==========================================================================
   DAILY PUZZLE COMPANION WIDGET
   ========================================================================== */
.puzzle-card {
  background: linear-gradient(180deg, #0f172a, #050914) !important;
  border: 1px solid var(--nsc-border);
  border-radius: 20px !important;
}

.puzzle-companion {
  margin-top: 26px;
  background: rgba(16, 25, 48, 0.84);
  border: 1px solid var(--nsc-border);
  border-radius: 18px;
  padding: 20px 22px;
  text-align: left;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.4);
}

.puzzle-companion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.puzzle-companion-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--nsc-gold);
  font-weight: 800;
}

.puzzle-next-tip {
  background: rgba(240, 185, 11, 0.14);
  border: 1px solid rgba(240, 185, 11, 0.35);
  color: var(--nsc-gold-light);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.puzzle-next-tip:hover {
  background: var(--nsc-gold);
  color: #060b16;
}

.puzzle-tip-title {
  font-family: var(--nsc-font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.puzzle-tip-moves {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 13px;
  color: #ffe28a;
  background: rgba(5, 9, 20, 0.65);
  border: 1px solid rgba(240, 185, 11, 0.2);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 10px;
}

.puzzle-tip-desc {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   AUTOMATED LEADERBOARD CONTROLS
   ========================================================================== */
.leaderboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: rgba(16, 25, 48, 0.65);
  border: 1px solid var(--nsc-border-subtle);
  border-radius: 14px;
}

.leaderboard-search {
  flex: 1 1 200px;
  background: rgba(5, 9, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 9px 14px;
  border-radius: 10px;
  font-family: var(--nsc-font-sans);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.leaderboard-search:focus {
  border-color: var(--nsc-gold);
}

.leaderboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lb-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lb-filter-btn.active {
  background: linear-gradient(135deg, #f5c945, #e0a508);
  color: #060b16;
  border-color: transparent;
}

.rating-bar-wrap {
  width: 100px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 5px;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #e0a508, #ffe28a);
  border-radius: 999px;
}

/* ==========================================================================
   SEPARATE LATEST NEWS & UPDATES SECTION (#latest-news)
   ========================================================================== */
#latest-news {
  background:
    radial-gradient(circle at 85% 10%, rgba(240, 185, 11, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(37, 99, 235, 0.12) 0%, transparent 45%),
    var(--nsc-navy-950);
  color: #f8fafc;
  padding: 96px 20px;
  border-top: 1px solid rgba(240, 185, 11, 0.14);
  border-bottom: 1px solid rgba(240, 185, 11, 0.14);
}

#latest-news * {
  box-sizing: border-box;
}

#latest-news .wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.news-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.news-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--nsc-gold);
  font-weight: 800;
  margin-bottom: 12px;
}

.news-main-title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  margin: 0 0 14px;
}

.news-main-sub {
  font-size: 16.5px;
  margin: 0;
}

/* Automated Breaking Ticker */
.news-ticker-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, rgba(16, 25, 48, 0.95), rgba(10, 16, 32, 0.95));
  border: 1px solid var(--nsc-border);
  border-radius: 16px;
  padding: 13px 18px;
  margin-bottom: 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.ticker-label {
  flex-shrink: 0;
  background: linear-gradient(135deg, #f5c945, #e0a508);
  color: #060b16;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  padding: 5px 12px;
  border-radius: 999px;
}

.ticker-text {
  flex: 1;
  font-size: 14.5px;
  color: #eef2ff;
  font-weight: 500;
  transition: opacity 0.35s ease;
}

/* Featured Spotlight Banner (Latest News & Updates) */
.news-featured-spotlight {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(20, 31, 61, 0.96), rgba(9, 14, 30, 0.98));
  border: 1px solid rgba(240, 185, 11, 0.45);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 30px);
  margin-bottom: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(240, 185, 11, 0.12);
}

.spotlight-media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(240, 185, 11, 0.35);
  background: #050914;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.spotlight-media img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.spotlight-media:hover img {
  transform: scale(1.025);
}

.spotlight-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffe28a, #f0b90b);
  color: #060b16;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.spotlight-title {
  font-family: var(--nsc-font-display) !important;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.22;
  color: #fff;
  margin: 0 0 12px;
}

.spotlight-title span {
  color: var(--nsc-gold-light);
}

.spotlight-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #d1dcf0;
  margin: 0 0 18px;
}

.spotlight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.spotlight-chips .tourn-chip {
  font-size: 12.5px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(240, 185, 11, 0.22);
  padding: 6px 12px;
  border-radius: 999px;
}

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

.spotlight-btn-primary,
.spotlight-btn-secondary {
  display: inline-block;
  padding: 11px 22px;
  text-decoration: none;
  font-size: 14px;
}

@media (max-width: 860px) {
  .news-featured-spotlight {
    grid-template-columns: 1fr;
  }
  .spotlight-media {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Automated Event Countdowns */
.news-countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.countdown-card {
  background: linear-gradient(145deg, #121d3a, #0a1124);
  border: 1px solid rgba(240, 185, 11, 0.28);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.countdown-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.countdown-card-top h3 {
  margin: 0;
  font-size: 17px;
  color: #fff;
}

.auto-badge {
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
}

.countdown-timer {
  display: flex;
  gap: 10px;
}

.cd-unit {
  flex: 1;
  background: rgba(5, 9, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
}

.cd-unit strong {
  display: block;
  font-size: 22px;
  color: var(--nsc-gold-light);
  font-weight: 800;
}

.cd-unit span {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* News Filter Bar */
.news-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-tab:hover,
.news-tab.active {
  background: linear-gradient(135deg, #f5c945, #e0a508);
  color: #060b16;
  border-color: transparent;
}

.news-search-input {
  background: rgba(12, 19, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--nsc-font-sans);
  font-size: 13.5px;
  min-width: 240px;
  outline: none;
}

.news-search-input:focus {
  border-color: var(--nsc-gold);
}

/* News Grid */
.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.update-card {
  background: linear-gradient(180deg, #101930, #0a1020);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.update-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 185, 11, 0.5);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

.update-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.update-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(240, 185, 11, 0.16);
  color: var(--nsc-gold-light);
}

.update-date {
  font-size: 12px;
  color: #94a3b8;
}

.update-card h3 {
  font-family: var(--nsc-font-serif) !important;
  margin: 10px 0 8px;
  font-size: 18.5px;
  line-height: 1.38;
  color: #fff;
}

.update-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #cbd5e1;
}

.update-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.update-action-btn {
  background: transparent;
  border: none;
  color: var(--nsc-gold-light);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.update-action-btn:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   ENROLLMENT & FORM POLISH
   ========================================================================== */
.enroll-card {
  background: linear-gradient(180deg, rgba(16, 25, 48, 0.95), rgba(8, 13, 28, 0.98)) !important;
  border: 1px solid var(--nsc-border) !important;
}

.enroll-card h2 {
  font-family: var(--nsc-font-display) !important;
  color: var(--nsc-gold-light) !important;
}

.submit-btn {
  background: linear-gradient(135deg, #f5c945 0%, #e0a508 100%) !important;
  color: #060b16 !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  box-shadow: var(--nsc-shadow-gold);
}

/* Reset global button leaks from style.css for all enhancement widgets */
.path-finder-box .path-chip-btn,
.puzzle-companion .puzzle-next-tip,
.leaderboard-toolbar .lb-filter-btn,
#latest-news .news-tab,
#latest-news .update-action-btn,
#latest-news .tba-action-btn {
  width: auto !important;
  margin-top: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar .nav-toggle {
  width: 38px !important;
  height: 38px !important;
  margin-top: 0 !important;
  display: none !important;
}

@media (max-width: 1100px) {
  .navbar .nav-toggle {
    display: inline-flex !important;
  }
}

.tba-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--nsc-gold-light);
  background: rgba(240, 185, 11, 0.14);
  border: 1px solid rgba(240, 185, 11, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.tba-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

.tba-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tba-meta {
  font-size: 12.5px;
  color: #94a3b8;
}

#latest-news .tba-action-btn,
#latest-news .tba-action-btn:last-of-type {
  background: linear-gradient(135deg, #f5c945, #e0a508);
  color: #060b16;
  border: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

#latest-news .news-tab,
#latest-news .news-tab:last-of-type {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#latest-news .news-tab:hover,
#latest-news .news-tab.active,
#latest-news .news-tab.active:last-of-type {
  background: linear-gradient(135deg, #f5c945, #e0a508);
  color: #060b16;
  border-color: transparent;
}

#latest-news .update-action-btn,
#latest-news .update-action-btn:last-of-type {
  background: transparent;
  border: none;
  color: var(--nsc-gold-light);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.path-finder-box .path-chip-btn,
.path-finder-box .path-chip-btn:last-of-type {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.path-finder-box .path-chip-btn.active,
.path-finder-box .path-chip-btn.active:last-of-type,
.path-finder-box .path-chip-btn:hover {
  background: linear-gradient(135deg, #f5c945, #e0a508);
  color: #060b16;
  border-color: transparent;
}

.leaderboard-toolbar .lb-filter-btn,
.leaderboard-toolbar .lb-filter-btn:last-of-type {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.leaderboard-toolbar .lb-filter-btn.active,
.leaderboard-toolbar .lb-filter-btn.active:last-of-type {
  background: linear-gradient(135deg, #f5c945, #e0a508);
  color: #060b16;
  border-color: transparent;
}

/* ==========================================================================
   TOAST NOTIFICATION (AUTOMATED FEEDBACK)
   ========================================================================== */
.nsc-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: rgba(10, 16, 32, 0.96);
  color: #fff;
  border: 1px solid var(--nsc-gold);
  border-radius: 14px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  z-index: 3000;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 360px;
}

.nsc-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  #latest-news {
    padding: 56px 14px;
  }
  .news-ticker-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
