/* ==========================================================================
   AH FOOTBALL ACADEMY - OFFICIAL BRAND DESIGN SYSTEM
   Palette & Identity derived from Official AH Academy Crest
   Colors: Crimson Strike (#e50914), Polar White (#ffffff), Brushed Platinum (#94a3b8), Deep Carbon (#06080b)
   Tagline: TRAIN. DEVELOP. ACHIEVE.
   ========================================================================== */

:root {
  /* Core Brand Colors */
  --crimson-primary: #e50914;
  --crimson-bright: #ff1f2d;
  --crimson-dark: #b91c1c;
  --crimson-wine: #300609;
  --crimson-shadow: #180305;

  /* Tints & Translucent Shades (Multi-tone athletic depth) */
  --tint-crimson-subtle: rgba(229, 9, 20, 0.06);
  --tint-crimson-soft: rgba(229, 9, 20, 0.12);
  --tint-crimson-strong: rgba(229, 9, 20, 0.28);
  --tint-crimson-glow: rgba(229, 9, 20, 0.45);

  /* Neutrals & Metallics */
  --pure-white: #ffffff;
  --platinum-light: #f1f5f9;
  --platinum-medium: #cbd5e1;
  --silver-muted: #8492a6;
  --dark-slate: #1e2530;

  /* Dark Pitch & Carbon Backgrounds */
  --bg-deep-carbon: #06080b;
  --bg-card: #0c1015;
  --bg-card-hover: #121820;
  --bg-card-elevated: #161e27;
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-crimson: rgba(229, 9, 20, 0.4);
  --border-focus: #ff1f2d;

  /* Status Tokens */
  --accent-gold: #f59e0b;
  --status-green: #22c55e;
  --status-red: #ef4444;

  /* Unified Type Scale (8 distinct sizes <= 10) */
  --text-xs: 0.8125rem;   /* 13px - badges, meta, captions */
  --text-sm: 0.875rem;    /* 14px - table headers, helper text, nav links */
  --text-base: 1rem;      /* 16px - body copy, inputs */
  --text-md: 1.125rem;    /* 18px - lead paragraphs, large buttons, h4 */
  --text-lg: 1.25rem;     /* 20px - card titles, modal titles */
  --text-xl: 1.5rem;      /* 24px - h3 */
  --text-2xl: 2rem;       /* 32px - section h2 */
  --text-hero: clamp(2.25rem, 5vw, 3.5rem); /* h1 hero heading */

  /* Standardized Corner Radii Scale (4 distinct values <= 6) */
  --radius-xs: 6px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition-smooth: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep-carbon);
  color: var(--platinum-light);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-deep-carbon);
  color: var(--platinum-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 85% 10%, rgba(229, 9, 20, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 40%, rgba(229, 9, 20, 0.04) 0%, transparent 35%);
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Cabinet Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--pure-white);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================================================
   TOP LIVE STATUS BANNER (RED & GREEN CONTRAST)
   ========================================================================== */
.live-status-bar {
  width: 100%;
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.status-open {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 0%, rgba(6, 8, 11, 0.95) 100%);
  border-color: rgba(34, 197, 94, 0.25);
  color: #bbf7d0;
}

.status-closed {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.18) 0%, rgba(24, 3, 5, 0.98) 100%);
  border-color: var(--border-crimson);
  color: #fecaca;
}

.status-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.status-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background-color: var(--status-green);
  box-shadow: 0 0 10px var(--status-green);
  animation: pulseBeacon 1.8s infinite;
}

.status-closed .status-pulse {
  background-color: var(--crimson-primary);
  box-shadow: 0 0 10px var(--crimson-primary);
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.status-time {
  font-size: var(--text-xs);
  color: var(--silver-muted);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 11, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-crest-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--tint-crimson-strong));
}

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

.brand-title {
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
  color: var(--pure-white);
  line-height: 1.1;
}

.brand-sub {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--crimson-bright);
  text-transform: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--platinum-medium);
  transition: color var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--pure-white);
}

.nav-links .admin-link {
  color: var(--crimson-bright);
  background: var(--tint-crimson-soft);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-crimson);
  font-size: var(--text-xs);
  font-weight: 700;
}

.nav-links .admin-link:hover {
  background: var(--tint-crimson-strong);
  border-color: var(--crimson-primary);
}

/* ==========================================================================
   BUTTONS & ATHLETIC BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-align: center;
  text-transform: none;
  letter-spacing: 0.01em;
}

/* Primary Crimson Button with Athletic Bevel */
.btn-primary {
  background: linear-gradient(135deg, #ff1f2d 0%, #b91c1c 100%);
  color: var(--pure-white);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff3845 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.55);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--pure-white);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--silver-muted);
}

.btn-outline {
  background: transparent;
  color: var(--platinum-light);
  border: 1px solid var(--border-medium);
}

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

.btn-whatsapp {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: var(--pure-white);
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.35);
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 28px;
  font-size: var(--text-base);
}

.btn-sm {
  padding: 6px 14px;
  font-size: var(--text-xs);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.badge-crest {
  background: var(--tint-crimson-soft);
  border: 1px solid var(--border-crimson);
  color: var(--crimson-bright);
}

.badge-location {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--platinum-medium);
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   HERO SECTION (BRAND POWER & DEPTH)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 60px 20px 60px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-motto {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--crimson-bright);
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: var(--text-hero);
  line-height: 1.1;
  margin-bottom: 18px;
  text-transform: none;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ff3b47 0%, #e50914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: var(--text-md);
  color: var(--platinum-medium);
  margin-bottom: 32px;
  max-width: 620px;
  line-height: 1.7;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--pure-white);
  line-height: 1.1;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--silver-muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background-color: var(--border-subtle);
}

/* Hero Visual / Brand Emblem Display */
.hero-emblem-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-emblem-backdrop {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.22) 0%, rgba(6, 8, 11, 0) 70%);
  filter: blur(30px);
  z-index: 1;
}

.hero-crest-featured {
  position: relative;
  z-index: 2;
  width: 340px;
  max-width: 90%;
  filter: drop-shadow(0 15px 35px rgba(229, 9, 20, 0.35));
  animation: floatEmblem 4s ease-in-out infinite;
}

@keyframes floatEmblem {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   PROGRAMS CAROUSEL / MOBILE-OPTIMIZED SLIDER
   ========================================================================== */
.section-padding {
  padding: 70px 20px;
}

.bg-darker {
  background: #040507;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 40px;
}

.section-header.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--crimson-bright);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: var(--text-2xl);
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--platinum-medium);
  max-width: 620px;
  margin: 0 auto;
}

/* Swipeable / Responsive Programs Grid */
.programs-slider-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.program-card {
  background: linear-gradient(180deg, #0e131a 0%, #080a0e 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
}

.program-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.program-card.featured {
  border-color: var(--border-crimson);
  background: linear-gradient(180deg, #18090b 0%, #0a0d12 100%);
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.15);
}

.popular-ribbon {
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--crimson-primary);
  color: var(--pure-white);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.5);
}

.program-pill {
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--crimson-bright);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.program-icon {
  font-size: var(--text-2xl);
  margin-bottom: 14px;
}

.program-title {
  font-size: var(--text-lg);
  margin-bottom: 8px;
}

.program-desc {
  font-size: var(--text-sm);
  color: var(--platinum-medium);
  margin-bottom: 20px;
  flex-grow: 1;
}

.program-features {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-bottom: 22px;
}

.program-features li {
  font-size: var(--text-sm);
  color: var(--platinum-light);
  margin-bottom: 8px;
}

/* Base Slider Pagination (Desktop & Accessible Touch Target - WCAG 2.5.5 / 2.5.8) */
.slider-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.slider-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

/* 44x44px expanded touch hit area for thumb accuracy */
.slider-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
}

.slider-dot.active {
  width: 28px;
  border-radius: var(--radius-pill);
  background: var(--crimson-bright);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.7);
  border-color: var(--crimson-bright);
}

/* ==========================================================================
   SCHEDULE TABLE (TOUCH & MOBILE SCROLL OPTIMIZATION)
   ========================================================================== */
.schedule-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  min-width: 620px; /* Ensures clean readable columns on mobile */
  border-collapse: collapse;
  text-align: left;
}

.schedule-table th {
  background: #0f141c;
  padding: 14px 18px;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--silver-muted);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-subtle);
}

.schedule-table td {
  padding: 16px 18px;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.time-tag {
  background: var(--tint-crimson-soft);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--crimson-bright);
  border: 1px solid var(--border-crimson);
}

/* ==========================================================================
   LOCATION & COMMUNITY BOX
   ========================================================================== */
.community-box {
  background: linear-gradient(135deg, #0e1218 0%, #090a0e 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.community-title {
  font-size: var(--text-2xl);
  line-height: 1.2;
  margin-bottom: 14px;
}

.directions-heading {
  font-size: var(--text-md);
  color: var(--pure-white);
  margin-bottom: 2px;
}

.ground-card {
  background: var(--bg-pitch);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.ground-detail-row {
  margin-bottom: 10px;
  font-size: var(--text-sm);
  color: var(--platinum-medium);
}

.ground-detail-row strong {
  color: var(--pure-white);
}

/* ==========================================================================
   MODAL & REGISTRATION ENGINE
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  position: relative;
  background: #0d1117;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: var(--text-2xl);
  color: var(--silver-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--pure-white);
}

.applicant-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #07090d;
  padding: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--platinum-medium);
  font-family: inherit;
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.toggle-btn.active {
  background: var(--bg-card-hover);
  color: var(--pure-white);
  border-color: var(--border-crimson);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

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

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

.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--platinum-medium);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  background: #06080b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--pure-white);
  font-family: inherit;
  font-size: var(--text-sm);
  transition: border-color var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.25);
}

.division-callout {
  background: var(--tint-crimson-subtle);
  border: 1px solid var(--border-crimson);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.division-callout-text {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--crimson-bright);
}

/* Position Selector Grid */
.position-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.pos-btn {
  padding: 8px 4px;
  background: #06080b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--platinum-medium);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-smooth);
}

.pos-btn:hover {
  border-color: var(--border-medium);
  color: var(--pure-white);
}

.pos-btn.selected {
  background: var(--tint-crimson-soft);
  border-color: var(--crimson-primary);
  color: var(--crimson-bright);
}

/* Digital Pass Ticket */
.digital-pass {
  background: linear-gradient(135deg, #140507 0%, #0d1015 100%);
  border: 2px solid var(--crimson-primary);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 18px 0;
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.3);
}

.pass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.pass-id {
  font-family: monospace;
  font-weight: 900;
  color: var(--crimson-bright);
  font-size: var(--text-md);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: #030406;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-heading {
  font-size: var(--text-base);
  margin-bottom: 14px;
  color: var(--pure-white);
  font-weight: 700;
}

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

.footer-nav-link {
  display: inline-block;
  padding: 4px 0;
  font-size: var(--text-sm);
  color: var(--silver-muted);
  line-height: 1.5;
  transition: color var(--transition-smooth);
}

.footer-nav-link:hover {
  color: var(--pure-white);
}

.footer-nav-highlight {
  color: var(--crimson-bright);
  font-weight: 700;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--silver-muted);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & TOUCH SLIDER
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-crest-featured {
    width: 220px;
    margin: 0 auto 20px;
  }

  .hero-meta-bar, .hero-cta-group, .hero-motto {
    justify-content: center;
  }

  .community-box {
    grid-template-columns: 1fr;
    padding: 24px;
  }

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

  .nav-links {
    display: none;
  }
}

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

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

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .stat-divider {
    display: none;
  }

  /* Mobile Programs Horizontal Swipe Slider (Silky Touch-Managed) */
  .programs-slider-wrap {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 8px 4px 14px;
    gap: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .programs-slider-wrap::-webkit-scrollbar {
    display: none;
  }

  .program-card {
    min-width: 82vw;
    scroll-snap-align: center;
    padding: 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7);
  }

  .program-card.featured {
    border-top: 2px solid var(--crimson-bright);
    box-shadow: 0 12px 30px -5px rgba(229, 9, 20, 0.35), 0 0 15px rgba(229, 9, 20, 0.15);
  }

  /* Slider Pagination Dots (Mobile Visible) */
  .slider-dots {
    display: flex;
  }

  /* Mobile Touch-Ergonomic Targets (Minimum 48px-52px height for thumb tapping) */
  .btn, .btn-primary, .btn-secondary, .btn-whatsapp, .select-category-btn {
    min-height: 50px;
    font-size: var(--text-base);
    padding: 13px 20px;
  }
  .toggle-btn {
    min-height: 48px;
    font-size: var(--text-sm);
  }
  .pos-btn {
    min-height: 46px;
    font-size: var(--text-xs);
  }
  .form-group input, .form-group select {
    min-height: 48px;
    font-size: var(--text-base); /* Prevents auto-zoom on iOS */
  }
}

/* ==========================================================================
   PORTAL NAVIGATION & PROFILE PHOTO UPLOADER
   ========================================================================== */
.portal-nav-btn {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  transition: all var(--transition-smooth);
}

.portal-nav-btn:hover {
  background: rgba(229, 9, 20, 0.2);
  border-color: var(--crimson-primary);
  color: var(--crimson-bright) !important;
}

.photo-upload-section {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.08) 0%, rgba(6, 8, 11, 0.9) 100%);
  border: 1px dashed var(--border-crimson);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.photo-preview-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid var(--crimson-primary);
  padding: 2px;
  background: var(--bg-card);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.photo-preview-wrap:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.5);
}

.avatar-preview-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #11151c;
}

.camera-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--crimson-bright);
  color: #fff;
  font-size: var(--text-xs);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #06080b;
}

.photo-meta strong {
  color: var(--pure-white);
  font-size: var(--text-sm);
}

.photo-meta p {
  font-size: var(--text-xs);
  color: var(--silver-muted);
  margin-top: 2px;
}

