/**
 * IMATH Abacus Competition Portal - Public Design System
 * Brand Palette extracted directly from official IMATH Academy logo:
 * Navy Blue (#1d2071) + Emerald Green (#2aa64b) + Warm Golden Amber (#f39c12)
 */

:root {
  --brand-primary: #1d2071;
  --brand-primary-light: #2a2d7e;
  --brand-secondary: #2aa64b;
  --brand-secondary-hover: #238c3e;
  --brand-accent: #f39c12;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --focus: #3b82f6;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s ease-in-out;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --container-max: 1240px;
}

h1, h2, h3, h4, .hero-title, .section-title, .live-championship-title, .stat-number, .pillar-title, .cadre-title, .card-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-secondary);
}

/* Accessibility Focus Outline */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand-logo {
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, height 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
  background-color: var(--surface-alt);
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
  font-size: 1.2rem;
}

/* Mobile Nav Drawer */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1100;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-backdrop.open {
  display: block;
}

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

.drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-list a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  color: var(--text);
}

.mobile-nav-list a:hover {
  background: var(--surface-alt);
  color: var(--brand-primary);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--brand-primary-light);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--brand-secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--brand-secondary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-published {
  background-color: #dcfce7;
  color: #166534;
}

.badge-completed {
  background-color: #e0e7ff;
  color: #3730a3;
}

.badge-draft {
  background-color: #f1f5f9;
  color: #475569;
}

.badge-cancelled {
  background-color: #fee2e2;
  color: #991b1b;
}

/* ==========================================================================
   UNIVERSAL RESPONSIVE FORM SYSTEM
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.3;
}

.form-control {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.96rem;
  font-family: inherit;
  line-height: 1.5;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(29, 32, 113, 0.12);
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-help {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.4;
}

/* ==========================================================================
   HOMEPAGE HERO SECTION & MODERN POLISH
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #090d29 0%, #11174a 45%, #1d2071 100%);
  color: #ffffff;
  padding: 80px 0 110px 0;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -50px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(42, 166, 75, 0.22) 0%, rgba(29, 32, 113, 0.1) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(243, 156, 18, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 22px;
  color: #86efac;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 20px 0;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 0 32px 0;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

.hero-trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-main-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 4px solid rgba(255, 255, 255, 0.2);
  display: block;
}

.hero-floating-badge {
  position: absolute;
  background: rgba(13, 18, 61, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 5;
}

.hero-floating-top {
  top: -16px;
  right: -16px;
}

.hero-floating-bottom {
  bottom: -16px;
  left: -16px;
}

/* Interactive Cadre Calculator Widget */
.cadre-calculator-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.calc-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.calc-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  background: #f8fafc;
  transition: all var(--transition);
}

.calc-select:focus {
  border-color: var(--brand-primary);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 32, 113, 0.15);
}

.calc-result-card {
  background: linear-gradient(135deg, #f0fdf4, #e0e7ff);
  border: 2px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 24px;
}

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

.calc-result-header .badge {
  white-space: normal;
  line-height: 1.35;
  text-align: left;
}

.calc-result-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0 0 6px 0;
}

.calc-result-scope {
  font-size: 0.92rem;
  color: #334155;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.calc-result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   SECTIONS & CARD GRIDS
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--surface-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

.section-badge {
  color: var(--brand-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Responsive 3-Column Card Grid */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-media {
  position: relative;
  height: 200px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-media img {
  transform: scale(1.03);
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.3;
  color: var(--brand-primary);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 20px 0;
  line-height: 1.5;
  flex: 1 0 auto;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  max-width: 540px;
  margin: 0 auto;
}

.empty-state-icon {
  font-size: 44px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.empty-state-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0 0 8px 0;
}

.empty-state-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 20px 0;
}

/* ==========================================================================
   ABOUT ACADEMY SECTION & HIGHLIGHTS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.about-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
}

.highlight-icon {
  color: var(--brand-secondary);
  font-size: 1.2rem;
  line-height: 1;
}

/* ==========================================================================
   ACCESSIBLE VIDEO MODAL & LIGHTBOX
   ========================================================================== */
.video-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal-backdrop.open {
  display: flex;
}

.video-modal-content {
  background: #000000;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #111827;
  color: #ffffff;
}

.video-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.video-responsive-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  background: #000000;
}

.video-responsive-wrap iframe,
.video-responsive-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Photo Gallery Grid & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-caption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   POLICY ARTICLE & CONTENT
   ========================================================================== */
.policy-container {
  max-width: 860px;
  margin: 40px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-sm);
}

.policy-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.policy-title {
  font-size: 2.4rem;
  color: var(--brand-primary);
  margin: 0 0 12px 0;
}

.policy-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.policy-content h2 {
  font-size: 1.45rem;
  color: var(--brand-primary);
  margin: 32px 0 16px 0;
  border-bottom: 2px solid var(--surface-alt);
  padding-bottom: 8px;
}

.policy-content p, .policy-content li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
}

.policy-content ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

/* ==========================================================================
   FOOTER & OFFICIAL CONTACT DETAILS
   ========================================================================== */
.site-footer {
  background-color: #0b0f2a;
  color: #cbd5e1;
  padding: 60px 0 30px 0;
  border-top: 4px solid var(--brand-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.footer-contact-item a {
  color: #e2e8f0;
  font-weight: 600;
}

.footer-contact-item a:hover {
  color: var(--brand-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Alerts */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (360px upwards)
   ========================================================================== */
@media (max-width: 1024px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .about-grid, .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .nav-wrapper {
    height: 72px;
  }
  .brand-logo {
    height: 52px;
    max-width: 210px;
  }
}

@media (max-width: 900px) {
  .nav-links, .header-cta-group {
    display: none;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    height: 66px;
  }
  .brand-logo {
    height: 46px;
    max-width: 175px;
  }
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .policy-container {
    padding: 24px;
    margin: 20px 10px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .section {
    padding: 42px 0;
  }
  .cadre-calculator-box {
    padding: 24px 20px;
    margin-top: 24px;
  }
  .calc-result-card {
    padding: 20px 18px;
  }
  .calc-result-title {
    font-size: 1.25rem;
  }
  .hero-floating-top {
    top: 10px;
    right: 10px;
  }
  .hero-floating-bottom {
    bottom: 10px;
    left: 10px;
  }
  .hero-main-img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .nav-wrapper {
    height: 60px;
  }
  .brand-logo {
    height: 40px;
    max-width: 150px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .cadre-calculator-box {
    padding: 18px 14px;
    margin-top: 16px;
    border-radius: var(--radius);
  }
  .calc-result-card {
    padding: 16px 14px;
  }
  .calc-result-title {
    font-size: 1.15rem;
  }
  .calc-result-scope {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .calc-result-actions {
    flex-direction: column;
    width: 100%;
  }
  .calc-result-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .calc-select {
    padding: 12px 14px;
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   INDUSTRY-STANDARD HOMEPAGE CONTENT DELIVERY STYLES
   ========================================================================== */

/* 1. Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-right: 1px solid var(--border);
}

.stat-card:last-child {
  border-right: none;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(29, 32, 113, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* 2. Featured Championship Showcase Banner */
.live-championship-card {
  background: linear-gradient(135deg, #0d123d 0%, #1d2071 60%, #154c25 100%);
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 36px 40px;
  box-shadow: 0 12px 30px rgba(13, 18, 61, 0.25);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.live-championship-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(42, 166, 75, 0.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ef4444;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

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

.live-championship-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.live-championship-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 24px 0;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-meta-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.live-meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

/* 3. Cognitive Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(29, 32, 113, 0.25);
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0 0 10px 0;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* 4. Cadres Grid */
.cadres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.cadre-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-primary);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

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

.cadre-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}

.cadre-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0 0 6px 0;
}

.cadre-age {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-secondary);
  margin-bottom: 12px;
}

.cadre-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.cadre-scope {
  font-size: 0.8rem;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 600;
}

/* 5. 4-Step Roadmap Grid */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  position: relative;
}

.roadmap-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.roadmap-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), #2a349c);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(29, 32, 113, 0.25);
}

.roadmap-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0 0 10px 0;
}

.roadmap-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   6. AUTHORIZED PARTNERS & FRANCHISES HORIZONTAL AUTOSCROLL MARQUEE
   ========================================================================== */
.center-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 12px 0 24px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.center-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: centerMarqueeScroll 28s linear infinite;
}

.center-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes centerMarqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.center-card-chip {
  flex: 0 0 min(320px, calc(100vw - 44px));
  width: min(320px, calc(100vw - 44px));
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 3px 10px rgba(29, 32, 113, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.center-card-chip:hover {
  transform: translateY(-4px);
  border-color: #1d2071;
  box-shadow: 0 12px 24px rgba(29, 32, 113, 0.12);
}

.center-card-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #1d2071, #2aa64b);
}

.center-chip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.center-badge-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 9999px;
}

.center-badge-pill.franchise {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

.center-badge-pill.partner {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.center-badge-pill.academy {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.center-badge-pill.center {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.center-code-pill {
  font-family: monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
}

.center-chip-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: #1d2071;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.center-chip-city {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.center-chip-feature {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #bbf7d0;
  width: fit-content;
}

.center-chip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
  margin-top: 2px;
}

.center-chip-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d2071;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.center-card-chip:hover .center-chip-link {
  color: #2aa64b;
}
.partner-scroller-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.partner-scroller-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scroller-arrow-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #ffffff;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.scroller-arrow-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgba(29, 32, 113, 0.25);
}

.scroller-arrow-btn:active {
  transform: scale(0.95);
}

.partner-scroller-wrapper {
  position: relative;
  width: 100%;
}

.partner-scroller-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 12px 6px 28px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.partner-scroller-track::-webkit-scrollbar {
  height: 8px;
}

.partner-scroller-track::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.partner-scroller-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  transition: background 0.2s;
}

.partner-scroller-track::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

.partner-scroller-card {
  flex: 0 0 350px;
  width: 350px;
  max-width: 85vw;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease-in-out;
  position: relative;
  overflow: hidden;
}

.partner-scroller-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(29, 32, 113, 0.12);
  border-color: var(--brand-primary);
}

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

.partner-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.partner-type-pill {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.partner-type-franchise {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

.partner-type-partner {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.partner-type-academy {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.partner-type-center {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.partner-code-badge {
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.partner-card-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0 0 10px 0;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.partner-card-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-weight: 600;
}

.partner-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.partner-feature-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #334155;
  font-weight: 600;
}

.partner-feature-row svg {
  flex-shrink: 0;
  color: var(--brand-secondary);
}

.partner-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Fallback for legacy class if referenced elsewhere */
.partner-centers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

/* 7. FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 36px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.faq-card[open] {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-primary);
  transition: transform var(--transition);
}

.faq-card[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 24px 22px 24px;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

/* 8. Trust & Accreditation Banner */
.trust-banner {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.trust-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  font-size: 32px;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0;
}

.trust-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* 9. Partner Invitation Box */
.partner-invite-box {
  background: #ffffff;
  border: 1px dashed var(--brand-secondary);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card:nth-child(2) {
    border-right: none;
  }
  .pillars-grid, .cadres-grid, .roadmap-grid, .partner-centers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .live-championship-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-ribbon {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
  }
  .stat-card:last-child {
    border-bottom: none;
  }
  .pillars-grid, .cadres-grid, .roadmap-grid, .partner-centers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .live-championship-meta-grid {
    grid-template-columns: 1fr;
  }
  .live-championship-card {
    padding: 22px 18px;
  }
  .live-championship-title {
    font-size: 1.35rem;
  }
  .trust-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .partner-invite-box {
    padding: 16px 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .partner-invite-box .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
