/**
 * Khel Kranti Foundation (खेल क्रांति फाउंडेशन)
 * Custom Design System & Stylesheet
 * Hindi-First Typography, Accessible Contrast, Modern Sports Foundation Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --kkf-primary: #b31312;          /* Deep Sports Red */
  --kkf-primary-dark: #8c0c0b;     /* Dark Crimson */
  --kkf-primary-light: #fef2f2;    /* Soft Red Tint */
  --kkf-primary-hover: #990f0e;

  --kkf-secondary: #ffffff;        /* Pure White */
  
  --kkf-accent: #f97316;           /* Athletic Saffron */
  --kkf-accent-gold: #f59e0b;      /* Victory Gold */
  --kkf-accent-dark: #c2410c;      /* Deep Amber */
  --kkf-accent-light: #fffbeb;     /* Warm Gold Tint */

  --kkf-dark: #0f172a;             /* Charcoal Slate */
  --kkf-dark-surface: #1e293b;     /* Slate Medium */
  --kkf-dark-muted: #334155;       /* Slate Border */

  --kkf-text-main: #1e293b;        /* High Contrast Body */
  --kkf-text-muted: #64748b;       /* Secondary Text */
  --kkf-text-light: #f8fafc;       /* On Dark Text */

  --kkf-border: #e2e8f0;           /* Subtle Clean Border */
  --kkf-bg-soft: #f8fafc;          /* Light Section Background */
  --kkf-bg-subtle: #f1f5f9;

  /* Typography */
  --kkf-font-hindi: 'Noto Sans Devanagari', 'Hind', system-ui, -apple-system, sans-serif;
  --kkf-font-latin: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --kkf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --kkf-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --kkf-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
  --kkf-shadow-hover: 0 14px 28px rgba(179, 19, 18, 0.14);

  /* Radius */
  --kkf-radius-sm: 6px;
  --kkf-radius-md: 10px;
  --kkf-radius-lg: 16px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--kkf-font-hindi);
  color: var(--kkf-text-main);
  background-color: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--kkf-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  border-radius: var(--kkf-radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--kkf-font-hindi);
  color: var(--kkf-dark);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--kkf-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--kkf-primary-hover);
}

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

/* Section Containers & Tags */
.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (max-width: 768px) {
  .section-py {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--kkf-primary);
  background: var(--kkf-primary-light);
  border: 1px solid rgba(179, 19, 18, 0.15);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-tag.accent {
  color: var(--kkf-accent-dark);
  background: var(--kkf-accent-light);
  border-color: rgba(245, 158, 11, 0.3);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  position: relative;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--kkf-text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

/* ==========================================================================
   Header & Top Announcement Bar (Responsive, Zero-Overflow)
   ========================================================================== */
.header-container {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
.kkf-navbar .header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1200px) {
  .kkf-navbar .header-container {
    flex-wrap: nowrap;
  }
}
@media (min-width: 1400px) {
  .header-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
@media (max-width: 575.98px) {
  .header-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* 1. Sleek Top Bar */
.top-bar {
  background: var(--kkf-dark);
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 0.32rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.4;
}
.top-bar-badge {
  background: var(--kkf-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.3px;
  display: inline-block;
  line-height: 1.2;
}
.top-bar-tagline {
  font-size: 0.8rem;
  color: #94a3b8;
  letter-spacing: 0.2px;
}
.top-bar-contact {
  color: #e2e8f0;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}
.top-bar-contact:hover {
  color: var(--kkf-accent-gold);
}
.top-bar-divider {
  color: #475569;
  font-size: 0.8rem;
}
.top-bar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.top-bar-social-link:hover {
  color: #ffffff;
  background: var(--kkf-primary);
  transform: translateY(-1px);
}

/* 2. Main Navigation Bar */
.site-header {
  position: relative;
  z-index: 1030;
}

.kkf-navbar {
  background: #ffffff;
  padding: 0.45rem 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  transition: padding 0.25s ease, box-shadow 0.25s ease;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.kkf-navbar.scrolled {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.09);
  padding: 0.35rem 0;
}

/* Logo (Preserves aspect ratio, never distorted or stretched) */
.navbar-brand-logo {
  height: 46px;
  width: auto;
  max-width: 155px;
  display: block;
  object-fit: contain;
  transition: height 0.2s ease;
}
@media (min-width: 1440px) {
  .navbar-brand-logo {
    height: 50px;
    max-width: 170px;
  }
}
@media (min-width: 1600px) {
  .navbar-brand-logo {
    height: 54px;
    max-width: 180px;
  }
}
@media (max-width: 1399.98px) {
  .navbar-brand-logo {
    height: 42px;
    max-width: 140px;
  }
}
@media (max-width: 1199.98px) {
  .navbar-brand-logo {
    height: 40px;
    max-width: 135px;
  }
}
@media (max-width: 575.98px) {
  .navbar-brand-logo {
    height: 36px;
    max-width: 120px;
  }
}

/* Desktop Nav Menu (>= 1200px) */
@media (min-width: 1200px) {
  .kkf-navbar .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }
  .kkf-navbar .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    min-width: 0;
    margin-left: 0.5rem;
  }
  .kkf-navbar .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.1rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    min-width: 0;
    flex-shrink: 1;
  }
  .kkf-nav-link {
    font-family: var(--kkf-font-latin);
    font-size: 0.8125rem; /* ~13px */
    font-weight: 600;
    color: #1e293b !important;
    padding: 0.32rem 0.38rem !important;
    border-radius: var(--kkf-radius-sm);
    white-space: nowrap !important;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    text-decoration: none;
    border: 1px solid transparent;
  }
  .kkf-nav-link:hover {
    color: var(--kkf-primary) !important;
    background-color: var(--kkf-primary-light);
    border-color: rgba(179, 19, 18, 0.1);
  }
  .kkf-nav-link.active {
    color: var(--kkf-primary) !important;
    font-weight: 700;
    background-color: var(--kkf-primary-light);
    border-color: rgba(179, 19, 18, 0.2);
  }
}

/* Wide Desktop (>= 1400px - Perfect for 1440px & 1536px viewports) */
@media (min-width: 1400px) {
  .kkf-navbar .navbar-collapse {
    margin-left: 0.75rem;
  }
  .kkf-navbar .navbar-nav {
    gap: 0.2rem;
  }
  .kkf-nav-link {
    font-size: 0.84rem;
    padding: 0.38rem 0.5rem !important;
  }
}

/* Large Displays (>= 1600px) */
@media (min-width: 1600px) {
  .kkf-navbar .navbar-collapse {
    margin-left: 1.25rem;
  }
  .kkf-navbar .navbar-nav {
    gap: 0.35rem;
  }
  .kkf-nav-link {
    font-size: 0.875rem;
    padding: 0.45rem 0.65rem !important;
  }
}

/* 3. Action CTA Buttons (Desktop) */
.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  min-width: 0;
  margin-left: auto;
}

@media (min-width: 1400px) {
  .header-cta-group {
    gap: 0.45rem;
  }
}

@media (min-width: 1600px) {
  .header-cta-group {
    gap: 0.6rem;
  }
}

.btn-header-cta {
  font-family: var(--kkf-font-latin);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.34rem 0.62rem;
  border-radius: var(--kkf-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  white-space: nowrap;
  line-height: 1.2;
  height: 35px;
  border-width: 1.5px;
  border-style: solid;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-header-cta i {
  font-size: 0.8rem;
  line-height: 1;
}

@media (min-width: 1400px) {
  .btn-header-cta {
    font-size: 0.81rem;
    padding: 0.38rem 0.72rem;
    height: 36px;
    gap: 0.35rem;
  }
  .btn-header-cta i {
    font-size: 0.84rem;
  }
}

@media (min-width: 1600px) {
  .btn-header-cta {
    font-size: 0.83rem;
    padding: 0.42rem 0.85rem;
    height: 38px;
    gap: 0.4rem;
  }
}

.btn-header-cta-sm {
  font-family: var(--kkf-font-latin);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--kkf-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  line-height: 1.2;
  height: 34px;
}

.btn-header-cta.btn-sports-primary,
.btn-header-cta-sm.btn-sports-primary {
  background-color: var(--kkf-primary);
  border-color: var(--kkf-primary);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(179, 19, 18, 0.2);
}
.btn-header-cta.btn-sports-primary:hover,
.btn-header-cta-sm.btn-sports-primary:hover {
  background-color: var(--kkf-primary-hover);
  border-color: var(--kkf-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(179, 19, 18, 0.3);
}

.btn-header-cta.btn-sports-accent {
  background-color: var(--kkf-accent);
  border-color: var(--kkf-accent);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.2);
}
.btn-header-cta.btn-sports-accent:hover {
  background-color: var(--kkf-accent-dark);
  border-color: var(--kkf-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

/* 4. Mobile & Tablet Menu Drawer (< 1200px) */
@media (max-width: 1199.98px) {
  .navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .navbar-toggler {
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(179, 19, 18, 0.18);
    border-color: var(--kkf-primary);
  }
  .navbar-toggler-icon {
    width: 22px;
    height: 22px;
  }
  .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    border: 1px solid #e2e8f0;
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem 1rem;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .kkf-navbar .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0;
    margin: 0;
    width: 100%;
    list-style: none;
  }
  .kkf-navbar .navbar-nav .nav-item {
    width: 100%;
  }
  .kkf-nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b !important;
    padding: 0.7rem 0.85rem !important;
    border-radius: 8px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.18s ease;
    width: 100%;
    text-decoration: none;
    line-height: 1.35;
  }
  .kkf-nav-link:hover,
  .kkf-nav-link.active {
    background-color: var(--kkf-primary-light);
    color: var(--kkf-primary) !important;
    font-weight: 700;
    border-color: transparent;
  }
  .kkf-nav-link:active {
    background-color: rgba(179, 19, 18, 0.12);
  }
  .navbar-nav .nav-item:last-child .kkf-nav-link {
    border-bottom: none;
  }
  .mobile-drawer-cta {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
  }
  .mobile-drawer-cta .btn {
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.7rem 1rem;
    border-radius: var(--kkf-radius-sm);
  }
}

/* ==========================================================================
   Buttons System
   ========================================================================== */
.btn-sports-primary {
  background-color: var(--kkf-primary);
  color: #ffffff !important;
  border: 2px solid var(--kkf-primary);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--kkf-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(179, 19, 18, 0.25);
  transition: all 0.25s ease;
}
.btn-sports-primary:hover {
  background-color: var(--kkf-primary-hover);
  border-color: var(--kkf-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(179, 19, 18, 0.35);
}

.btn-sports-accent {
  background-color: var(--kkf-accent);
  color: #ffffff !important;
  border: 2px solid var(--kkf-accent);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--kkf-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
  transition: all 0.25s ease;
}
.btn-sports-accent:hover {
  background-color: var(--kkf-accent-dark);
  border-color: var(--kkf-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.35);
}

.btn-sports-outline {
  background-color: transparent;
  color: var(--kkf-primary) !important;
  border: 2px solid var(--kkf-primary);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--kkf-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}
.btn-sports-outline:hover {
  background-color: var(--kkf-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-sports-white {
  background-color: #ffffff;
  color: var(--kkf-primary) !important;
  border: 2px solid #ffffff;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--kkf-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}
.btn-sports-white:hover {
  background-color: var(--kkf-primary-light);
  color: var(--kkf-primary-dark) !important;
  transform: translateY(-2px);
}

.btn-sports-outline-white {
  background-color: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: var(--kkf-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}
.btn-sports-outline-white:hover {
  background-color: #ffffff;
  color: var(--kkf-dark) !important;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm-custom {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #311313 100%);
  color: #ffffff;
  padding: 4.5rem 0 5.5rem 0;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 15% 30%, rgba(179, 19, 18, 0.3) 0%, transparent 60%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.hero-title .text-accent {
  color: #fbbf24;
  display: block;
}
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
}
@media (max-width: 576px) {
  .hero-title {
    font-size: 2.1rem;
  }
}
.hero-lead {
  font-size: 1.2rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 580px;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--kkf-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.15);
}
.hero-image-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-image-wrapper:hover img {
  transform: scale(1.03);
}
.hero-badge-floating {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: var(--kkf-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-badge-floating .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kkf-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Homepage Sports Hero Slider (Task 3)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background-color: #0f172a;
  overflow: hidden;
  width: 100%;
}

.hero-slider-section .carousel {
  width: 100%;
}

.hero-carousel-item {
  position: relative;
  min-height: 540px;
  background-color: #0f172a;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-carousel-item {
    min-height: 580px;
  }
}

@media (min-width: 1200px) {
  .hero-carousel-item {
    min-height: 640px;
  }
}

.min-vh-hero {
  min-height: 540px;
  padding: 4.5rem 0 5rem 0;
}

@media (min-width: 768px) {
  .min-vh-hero {
    min-height: 580px;
    padding: 5rem 0 5.5rem 0;
  }
}

@media (min-width: 1200px) {
  .min-vh-hero {
    min-height: 640px;
    padding: 5.5rem 0 6rem 0;
  }
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 1;
  filter: brightness(0.85);
  transform: scale(1.02);
  transition: transform 7s ease-out;
}

.carousel-item.active .hero-slide-bg {
  transform: scale(1.08);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, 
    rgba(15, 23, 42, 0.96) 0%, 
    rgba(15, 23, 42, 0.90) 40%, 
    rgba(15, 23, 42, 0.65) 70%, 
    rgba(15, 23, 42, 0.35) 100%);
}

@media (max-width: 767.98px) {
  .hero-slide-overlay {
    background: linear-gradient(180deg, 
      rgba(15, 23, 42, 0.85) 0%, 
      rgba(15, 23, 42, 0.94) 55%, 
      rgba(15, 23, 42, 0.98) 100%);
  }
}

.hero-slide-container {
  z-index: 3;
}

.hero-slider-title {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.hero-slider-lead {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  max-width: 620px;
}

/* Feature Badge Card on Slide Right */
.hero-slide-feature-card {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--kkf-radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 380px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-slide-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
}

.hero-slide-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--kkf-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(179, 19, 18, 0.4);
}

/* Indicators */
.hero-carousel-indicators {
  bottom: 24px;
  margin-bottom: 0;
  gap: 10px;
  z-index: 4;
}

.hero-carousel-indicators [data-bs-target] {
  width: 34px;
  height: 8px;
  border-radius: 4px;
  border: none;
  background-color: rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.75;
  margin: 0;
}

.hero-carousel-indicators .active {
  width: 58px;
  background-color: #f59e0b;
  opacity: 1;
}

/* Prev / Next Controls */
.hero-carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
  transition: all 0.25s ease;
  z-index: 4;
  margin: 0 1.5rem;
}

.hero-carousel-btn:hover {
  background: var(--kkf-primary);
  border-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.hero-carousel-btn:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .hero-carousel-btn {
    display: none; /* Mobile & tablets use touch swiping and visible indicators */
  }
}

/* Accessible Reduced-Motion Support */
@media (prefers-reduced-motion: reduce) {
  .hero-slider-section .carousel-fade .carousel-item {
    transition: none !important;
  }
  .hero-slide-bg {
    transition: none !important;
    transform: none !important;
  }
  .carousel-item.active .hero-slide-bg {
    transform: none !important;
  }
  .hero-slide-feature-card {
    transition: none !important;
  }
  .hero-carousel-indicators [data-bs-target] {
    transition: none !important;
  }
}

/* ==========================================================================
   Foundation Quote Banner / Introduction
   ========================================================================== */
.quote-highlight-card {
  background: #ffffff;
  border-left: 6px solid var(--kkf-primary);
  border-radius: var(--kkf-radius-md);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--kkf-shadow-md);
  position: relative;
  margin-top: -3rem;
  z-index: 20;
}
@media (max-width: 768px) {
  .quote-highlight-card {
    padding: 1.5rem 1.5rem;
    margin-top: -2rem;
  }
}
.quote-highlight-text {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--kkf-dark);
  margin-bottom: 0.75rem;
}
.quote-highlight-source {
  font-size: 0.95rem;
  color: var(--kkf-text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Pillars & Values
   ========================================================================== */
.value-card {
  background: #ffffff;
  border: 1px solid var(--kkf-border);
  border-radius: var(--kkf-radius-md);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--kkf-shadow-hover);
  border-color: rgba(179, 19, 18, 0.3);
}
.value-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--kkf-primary-light);
  color: var(--kkf-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}
.value-card:hover .value-icon-box {
  background: var(--kkf-primary);
  color: #ffffff;
}
.value-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.value-card p {
  font-size: 0.95rem;
  color: var(--kkf-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Campaign Cards
   ========================================================================== */
.campaign-card {
  background: #ffffff;
  border: 1px solid var(--kkf-border);
  border-radius: var(--kkf-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--kkf-shadow-sm);
}
.campaign-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--kkf-shadow-lg);
  border-color: rgba(179, 19, 18, 0.25);
}
.campaign-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
}
.campaign-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.campaign-card:hover .campaign-img-wrapper img {
  transform: scale(1.06);
}
.campaign-tag-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--kkf-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.campaign-body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.campaign-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--kkf-dark);
}
.campaign-body p {
  font-size: 0.95rem;
  color: var(--kkf-text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.campaign-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--kkf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.campaign-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--kkf-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.campaign-link:hover {
  color: var(--kkf-primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Players' Voice Feature Callout Section
   ========================================================================== */
.players-voice-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--kkf-radius-lg);
  color: #ffffff;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--kkf-shadow-lg);
}
@media (max-width: 768px) {
  .players-voice-banner {
    padding: 2rem 1.5rem;
  }
}
.players-voice-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(179, 19, 18, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.players-voice-title {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .players-voice-title {
    font-size: 1.6rem;
  }
}
.players-voice-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.pv-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.pv-icon {
  width: 32px;
  height: 32px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ==========================================================================
   News & Blog Cards
   ========================================================================== */
.news-card {
  background: #ffffff;
  border: 1px solid var(--kkf-border);
  border-radius: var(--kkf-radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--kkf-shadow-md);
  border-color: rgba(179, 19, 18, 0.2);
}
.news-card-img {
  height: 190px;
  background: #1e293b;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card-img img {
  transform: scale(1.05);
}
.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-meta {
  font-size: 0.82rem;
  color: var(--kkf-text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.news-meta .category {
  color: var(--kkf-primary);
  font-weight: 700;
}
.news-title {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--kkf-dark);
  line-height: 1.45;
}
.news-desc {
  font-size: 0.92rem;
  color: var(--kkf-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* ==========================================================================
   Gallery Grid
   ========================================================================== */
.gallery-grid-item {
  position: relative;
  border-radius: var(--kkf-radius-md);
  overflow: hidden;
  box-shadow: var(--kkf-shadow-sm);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-grid-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-caption {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #ffffff;
}
.gallery-sub {
  font-size: 0.8rem;
  color: #fbbf24;
}

/* ==========================================================================
   CTA Section (Support / Join)
   ========================================================================== */
.cta-banner-section {
  background: linear-gradient(135deg, var(--kkf-primary) 0%, #8c0c0b 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.25) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner-title {
  color: #ffffff;
  font-size: 2.35rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .cta-banner-title {
    font-size: 1.8rem;
  }
}
.cta-banner-lead {
  font-size: 1.15rem;
  color: #ffe4e6;
  margin-bottom: 2rem;
  max-width: 650px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.kkf-footer {
  background: var(--kkf-dark);
  color: #94a3b8;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 4px solid var(--kkf-primary);
  font-size: 0.92rem;
}
.footer-logo-badge {
  background: #ffffff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--kkf-radius-md);
  display: inline-block;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-logo-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}
.footer-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.footer-about {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.footer-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--kkf-accent-gold);
  border-radius: 2px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.65rem;
}
.footer-links a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.footer-links a:hover {
  color: #fbbf24;
  padding-left: 4px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: #cbd5e1;
}
.footer-contact-item i {
  color: var(--kkf-accent-gold);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--kkf-dark-surface);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kkf-dark-muted);
  transition: all 0.2s ease;
}
.footer-social-btn:hover {
  background: var(--kkf-primary);
  color: #ffffff;
  border-color: var(--kkf-primary);
  transform: translateY(-2px);
}
.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--kkf-dark-muted);
  font-size: 0.85rem;
  color: #64748b;
}
.footer-bottom a {
  color: #94a3b8;
}
.footer-bottom a:hover {
  color: #fbbf24;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kkf-primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--kkf-primary-hover);
  transform: translateY(-3px);
}

/* ==========================================================================
   RTI & Legal Desk Page Styles
   ========================================================================== */
.rti-hero-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 3.5rem 0 4rem 0;
  border-bottom: 1px solid #e2e8f0;
}
@media (max-width: 768px) {
  .rti-hero-section {
    padding: 2.5rem 0 3rem 0;
  }
}

.rti-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(179, 19, 18, 0.08);
  color: var(--kkf-primary);
  border: 1px solid rgba(179, 19, 18, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.rti-hero-heading {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 900;
  color: var(--kkf-dark);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

.rti-hero-lead {
  font-size: 1.08rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.rti-hero-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.rti-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.rti-hero-img-wrap:hover img {
  transform: scale(1.02);
}

.rti-hero-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* RTI 4 Cards Grid */
.rti-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.rti-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(179, 19, 18, 0.25);
}

.rti-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.15rem;
  flex-shrink: 0;
}
.rti-card-icon.red {
  background: rgba(179, 19, 18, 0.08);
  color: var(--kkf-primary);
}
.rti-card-icon.orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--kkf-accent);
}
.rti-card-icon.blue {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}
.rti-card-icon.amber {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.rti-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--kkf-dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.rti-card-text {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Step-by-Step RTI Guide */
.step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.step-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.step-num-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--kkf-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kkf-dark);
  margin-bottom: 0.5rem;
}

.step-card-text {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Sports Transparency Section */
.transparency-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border: 1px solid #e2e8f0;
}
.transparency-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.transparency-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}
.transparency-feature-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  transform: translateX(4px);
}
.transparency-feature-icon {
  font-size: 1.15rem;
  color: var(--kkf-primary);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.transparency-feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--kkf-dark);
  margin-bottom: 0.2rem;
}
.transparency-feature-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Legal Guidance Section */
.legal-notice-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid var(--kkf-accent);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

/* Action CTA Banner */
.rti-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #311313 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  .rti-cta-banner {
    padding: 2.5rem 1.5rem;
  }
}

/* ==========================================================================
   GPS Marathon & Running Tracker Styles (खेल क्रांति मैराथन ट्रैकर)
   ========================================================================== */

.tracker-hero-section {
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 60%, #3a0d0d 100%);
  color: #ffffff;
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--kkf-primary);
}

.tracker-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(179, 19, 18, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.tracker-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kkf-accent);
}

.tracker-container {
  max-width: 1200px;
  margin: -1.5rem auto 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.tracker-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  transition: all 0.3s ease;
}

.tracker-metric-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 16px 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.tracker-metric-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 0.85rem;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tracker-metric-box:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.tracker-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.tracker-metric-val {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.tracker-metric-unit {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
  margin-left: 2px;
}

.metric-highlight {
  color: var(--kkf-accent);
}

.metric-highlight-red {
  color: #ef4444;
}

.metric-highlight-green {
  color: #10b981;
}

/* Map Wrapper */
.tracker-map-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  background: #e2e8f0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .tracker-map-wrapper {
    height: 380px;
  }
  .tracker-metric-val {
    font-size: 1.45rem;
  }
}

#tracker-map {
  width: 100%;
  height: 100%;
}

.map-status-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 0.45rem 0.9rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-dot-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
  position: relative;
}

.status-dot-pulse.running {
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
  animation: tracker-pulse-green 1.8s infinite;
}

.status-dot-pulse.paused {
  background: #f59e0b;
  box-shadow: 0 0 0 rgba(245, 158, 11, 0.6);
  animation: tracker-pulse-amber 2s infinite;
}

@keyframes tracker-pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes tracker-pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.map-accuracy-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: #1e293b;
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid #cbd5e1;
}

.accuracy-good {
  color: #059669;
}
.accuracy-fair {
  color: #d97706;
}
.accuracy-poor {
  color: #dc2626;
}

/* Map Fallback Notice */
.map-fallback-banner {
  display: none;
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(254, 243, 199, 0.96);
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  z-index: 6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.map-fallback-banner.banner-danger {
  background: rgba(254, 242, 242, 0.96);
  border: 1px solid #fecaca;
  color: #991b1b;
}

.map-fallback-banner.banner-warning {
  background: rgba(254, 243, 199, 0.96);
  border: 1px solid #fde68a;
  color: #92400e;
}

/* Runner Custom Markers on Mapbox */
.runner-live-marker {
  position: relative;
  width: 24px;
  height: 24px;
}

.runner-dot {
  width: 18px;
  height: 18px;
  background: #b31312;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
}

.runner-pulse {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(179, 19, 18, 0.35);
  position: absolute;
  top: -4px;
  left: -4px;
  animation: runner-radar 1.6s ease-out infinite;
  z-index: 1;
}

@keyframes runner-radar {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.route-start-pin, .route-end-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.route-start-pin { background: #10b981; }
.route-end-pin { background: #ef4444; }

/* Control Panel */
.tracker-controls {
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tracker-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.tracker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tracker-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
}

.tracker-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.tracker-btn-primary {
  background: linear-gradient(135deg, #b31312 0%, #8c0c0b 100%);
  color: #ffffff;
}

.tracker-btn-accent {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
}

.tracker-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.tracker-btn-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.tracker-btn-danger-outline {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.tracker-btn-danger-outline:hover:not(:disabled) {
  background: #dc2626;
  color: #ffffff;
}

.tracker-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* Privacy & Permissions Notice */
.tracker-notice-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tracker-notice-box i {
  font-size: 1.25rem;
  color: var(--kkf-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Run Summary Modal Details */
.run-summary-dialog .modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.run-summary-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 1.5rem 2rem;
  border-bottom: 3px solid var(--kkf-primary);
}

.summary-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.summary-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.summary-card-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--kkf-dark);
}

.summary-verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-verified {
  background: #d1fae5;
  color: #065f46;
}

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

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}


