/* ============================================================
   KPL - KANSAS PREMIER LEAGUE | MAIN STYLESHEET
   ============================================================ */

:root {
  /* Color Palette — Royal Deep Sea & Electric Sky (Optimized) */
  --c-primary: #1E40AF;
  --c-primary-light: #3B82F6;
  --c-primary-dark: #1E3A8A;
  --c-accent: #0EA5E9;
  --c-accent-hover: #0284C7;
  --c-danger: #EF4444;
  --c-success: #10B981;
  --c-bg: #0F172A;
  --c-bg-alt: #1E293B;
  --c-bg-dark: #020617;
  --c-text-main: #FFFFFF;
  --c-text-light: #CBD5E1;
  --c-text-inverse: #0F172A;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 16px;

  /* Typography */
  --f-heading: 'Oswald', sans-serif;
  --f-body: 'Outfit', sans-serif;
  --f-display: 'Syncopate', sans-serif;

  /* Layout & Spacing */
  --nav-height: 80px;
  --ticker-height: 40px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(245, 166, 35, 0.4);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-body);
  color: var(--c-text-main);
  background-color: var(--c-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-gold {
  color: var(--c-accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background-color: #FF5E00;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 94, 0, 0.4);
}

.btn-primary:hover {
  background-color: #E65500;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 94, 0, 0.6);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.btn-outline:hover {
  background-color: var(--c-accent);
  color: white;
  transform: translateY(-3px);
}

.btn-outline-gold {
  background-color: transparent;
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.btn-outline-gold:hover {
  background-color: var(--c-accent);
  color: white;
}

/* ============================================================
   TICKER BAR
   ============================================================ */
.ticker-bar {
  height: var(--ticker-height);
  background-color: var(--c-primary-dark);
  color: var(--c-text-inverse);
  display: flex;
  align-items: center;
  font-family: var(--f-heading);
  font-size: 1rem;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.ticker-label {
  background-color: #EF4444;
  color: #FFFFFF;
  backdrop-filter: blur(5px);
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  gap: 0.5rem;
}

.ticker-label i {
  animation: pulse 1.5s infinite;
}

.ticker-track {
  flex-grow: 1;
  overflow: hidden;
}

.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
}

.ticker-content span {
  padding: 0 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.ticker-content span strong {
  color: #FFFFFF;
  font-weight: 700;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0% {
    filter: brightness(1);
  }

  50% {
    opacity: 0.3;
  }

  100% {
    filter: brightness(1);
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  height: var(--nav-height);
  background-color: #F8FAFC;
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 99;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.navbar .nav-link {
  color: #0F172A;
}

.navbar .logo-kpl {
  color: #1E40AF;
}

.navbar .logo-full {
  color: #1E293B;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: #F8FAFC;
}

.navbar.scrolled .logo-img {
  height: 50px; /* Smaller when scrolled to avoid covering content */
  top: 50%;
  transform: translateY(-50%);
}

.navbar.scrolled .nav-logo {
  min-width: 80px;
}
.nav-container {
  max-width: 100%; /* Changed to 100% for full width to move logo/links to extremes */
  padding: 0 4rem; /* Wide padding for desktop */
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-left: 2rem;
  position: relative;
  height: var(--nav-height); /* Match navbar height */
  min-width: 140px; /* Reserve space for the larger absolute-positioned logo */
}

.logo-img {
  height: 120px; /* Large size to split across nav and content */
  width: auto;
  object-fit: contain;
  position: absolute;
  top: 25px; /* Moved slightly further down */
  left: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.1);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-kpl {
  font-family: var(--f-display);
  color: #1E40AF;
  font-size: 1.2rem; /* Reduced from 1.8rem */
  line-height: 1;
  letter-spacing: 1px;
}

.logo-full {
  font-family: var(--f-heading);
  color: #1E293B;
  font-size: 0.6rem; /* Reduced from 0.8rem */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #0F172A;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--c-accent);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--c-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--c-text-inverse);
  border-radius: 2px;
  filter: brightness(1);
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

.hamburger.active span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  height: calc(100vh - var(--nav-height) - var(--ticker-height));
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../kpl_hero_bg_1777681677204.png') center/cover no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(2, 6, 23, 0.9), rgba(30, 64, 175, 0.6));
  z-index: 2;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.particle {
  position: absolute;
  background-color: var(--c-accent);
  border-radius: 50%;
  filter: brightness(0.7);
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  90% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: var(--c-text-inverse);
  max-width: 800px;
  padding: 60px 1rem 0; /* Slightly reduced top padding to save vertical space */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--c-danger);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--f-display);
  line-height: 0.9;
  margin-bottom: 1rem; /* Reduced margin */
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.title-line1 {
  font-size: clamp(2rem, 6vw, 4rem); /* Reduced max size for laptop fit */
  color: #FFFFFF;
}

.title-line2 {
  font-size: clamp(2.5rem, 8vw, 5.5rem); /* Reduced max size for laptop fit */
  color: var(--c-accent);
}

.title-line3 {
  font-size: clamp(2rem, 7vw, 4.5rem); /* Reduced max size for laptop fit */
  color: #FFFFFF;
  letter-spacing: 2px;
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  margin-bottom: 1.5rem; /* Reduced margin to save vertical space */
  color: #FFFFFF;
  filter: brightness(1);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  background: var(--glass-bg);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hs-num {
  font-family: var(--f-display);
  font-size: 2.8rem;
  color: var(--c-accent);
  line-height: 1;
  text-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.hs-label {
  font-family: var(--f-heading);
  font-size: 0.95rem;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  filter: brightness(1);
  font-weight: 600;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}


/* ============================================================
   CHAMPION BANNER
   ============================================================ */
.champion-banner {
  background: #F8FAFC;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.champion-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10l80 80M90 10L10 90" stroke="rgba(14,165,233,0.3)" stroke-width="2"/></svg>');
}

.champion-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(var(--glass-blur));
  color: white;
}

.champion-banner .champ-name,
.champion-banner .champ-detail {
  color: #0F172A !important;
  opacity: 1 !important;
}

.champion-banner .cs-val,
.champion-banner .cs-lbl {
  color: #FFFFFF !important;
}

.champion-banner .trophy-icon i {
  color: #B8860B !important;
}

.champion-banner .champ-badge {
  color: #1E40AF !important;
}

.champ-badge {
  display: inline-block;
  font-family: var(--f-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.champ-name {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-family: var(--f-display);
}

.champ-detail {
  font-size: 1.2rem;
}

.cs-val {
  font-family: var(--f-display);
  font-size: 2.5rem;
  line-height: 1;
}

.cs-lbl {
  font-family: var(--f-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.25rem;
}

.trophy-icon {
  font-size: 4rem;
}

.champion-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.champ-label {
  color: var(--c-accent);
  font-family: var(--f-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.champ-name {
  color: var(--c-text-inverse);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.champ-detail {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.champ-stat-grid {
  display: flex;
  gap: 2rem;
}

.champ-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000000;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border-bottom: 2px solid var(--c-accent);
}

.cs-val {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--c-text-inverse);
  line-height: 1;
}

.cs-lbl {
  font-family: var(--f-heading);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ============================================================
   SECTIONS GENERAL
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-accent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--f-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--c-primary-dark);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--c-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   STANDINGS SECTION
   ============================================================ */
.standings-section {
  padding: var(--spacing-xl) 0;
  background-color: #F1F5F9;
}

.standings-wrapper {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.standings-table-container {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  color: #1E293B;
}

.standings-table th {
  background-color: #1E3A8A;
  color: white;
  padding: 1.2rem 1rem;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.standings-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.standings-table tbody tr {
  transition: var(--transition);
}

.standings-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.standings-table tbody tr.qualifier {
  border-left: 4px solid var(--c-success);
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--c-primary-dark);
}

.team-logo-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.pts-cell {
  font-weight: 700;
  color: var(--c-primary);
  font-size: 1.1rem;
}

.form-guide {
  display: flex;
  gap: 4px;
}

.form-w,
.form-l {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.form-w {
  background-color: var(--c-success);
}

.form-l {
  background-color: var(--c-danger);
}

.standings-legend {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.02);
  display: flex;
  gap: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  color: var(--c-text-light);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.qualifier {
  background-color: var(--c-success);
}

.legend-dot.eliminated {
  background-color: #ccc;
}

/* ============================================================
   MATCHES SECTION
   ============================================================ */
.matches-section {
  padding: var(--spacing-xl) 0;
  background-color: #F1F5F9;
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.match-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.match-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.match-card.highlight {
  border: 2px solid var(--c-accent);
  position: relative;
}

.match-badge {
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--c-accent);
  color: var(--c-primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.match-header {
  background: rgba(0, 0, 0, 0.03);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.match-round {
  font-family: var(--f-heading);
  font-weight: 700;
  color: var(--c-primary);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.match-date {
  color: var(--c-text-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.match-body {
  padding: 1.5rem;
}

.match-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.match-team:last-child {
  margin-bottom: 0;
}

.mt-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mt-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.mt-name {
  font-weight: 600;
  color: #1E293B;
  font-size: 1.1rem;
}

.mt-name.winner {
  color: var(--c-primary-dark);
  font-weight: 700;
}

.mt-score {
  text-align: right;
}

.mt-runs {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--c-primary-dark);
}

.mt-overs {
  font-size: 0.8rem;
  color: #64748B;
}

.match-footer {
  padding: 1rem 1.5rem;
  background: #000000;
  color: #FFFFFF !important;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

.match-footer span {
  color: #FFFFFF !important;
}

/* ============================================================
   PERFORMERS SECTION
   ============================================================ */
.performers-section {
  padding: var(--spacing-xl) 0;
  background-color: #F8FAFC;
}

.performers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.performer-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.performer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.performer-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.performer-header.batting {
  background: linear-gradient(135deg, var(--c-primary), #3b82f6);
}

.performer-header.bowling {
  background: linear-gradient(135deg, #065f46, #10b981);
}

.performer-header.allround {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.performer-header i {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.performer-header h3 {
  font-size: 1.2rem;
  margin: 0;
}

.performer-body {
  padding: 2rem;
  text-align: center;
}

.performer-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-family: var(--f-display);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--c-bg-alt);
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.performer-name {
  font-size: 1.5rem;
  font-family: var(--f-heading);
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-bottom: 0.25rem;
}

.performer-team {
  color: #64748B;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.performer-stat-big {
  margin-bottom: 2rem;
}

.psb-num {
  font-family: var(--f-display);
  font-size: 4rem;
  color: var(--c-accent);
  line-height: 1;
  display: block;
}

.psb-label {
  font-weight: 600;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.performer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.02);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.ps-item {
  display: flex;
  flex-direction: column;
}

.ps-lbl {
  font-size: 0.75rem;
  color: var(--c-text-light);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.ps-val {
  font-weight: 700;
  color: var(--c-primary-dark);
}

/* ============================================================
   TEAMS PREVIEW SECTION
   ============================================================ */
.teams-preview-section {
  padding: var(--spacing-xl) 0;
  background-color: #F1F5F9;
  position: relative;
}

.teams-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card-mini {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card-mini:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.tcm-header {
  height: 60px;
  position: relative;
  display: flex;
  justify-content: center;
}

.tcm-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: inherit;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.tcm-logo {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  position: absolute;
  bottom: -25px;
  box-shadow: var(--shadow-md);
  border: 3px solid white;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--c-primary-dark);
}

.tcm-body {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.tcm-name {
  font-family: var(--f-heading);
  font-size: 1.5rem;
  color: var(--c-primary-dark);
  margin-bottom: 0.5rem;
}

.tcm-city {
  color: #64748B;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.tcm-captain {
  background: rgba(0, 0, 0, 0.03);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.tcm-captain span {
  display: block;
  color: var(--c-text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.tcm-captain strong {
  color: var(--c-primary);
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
  background: var(--c-primary-dark);
  color: var(--c-text-inverse);
  position: relative;
  overflow: hidden;
}

.about-strip-content {
  display: flex;
  flex-wrap: wrap;
}

.about-strip-text {
  flex: 1;
  min-width: 300px;
  padding: var(--spacing-xl) 10%;
  position: relative;
  z-index: 2;
}

.about-strip-text .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-accent);
}

.about-strip-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.about-strip-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.about-fact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-fact i {
  color: var(--c-accent);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.about-fact strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.about-fact span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.about-strip-visual {
  flex: 1;
  min-width: 300px;
  background: url('../kpl_team_action_1777681698142.png') center/cover no-repeat;
  position: relative;
  min-height: 500px;
}

.about-strip-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--c-primary-dark), transparent);
}

.visual-card {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  color: white;
  transition: var(--transition);
}

.visual-card:hover {
  transform: scale(1.1);
  background: var(--c-primary);
  border-color: var(--c-accent);
}

.visual-card i {
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}

.visual-card span {
  display: block;
  font-family: var(--f-heading);
  font-weight: 600;
  text-transform: uppercase;
}

.vc1 {
  top: 10%;
  right: 20%;
}

.vc2 {
  top: 40%;
  left: 20%;
}

.vc3 {
  bottom: 20%;
  right: 30%;
}

.vc4 {
  bottom: 10%;
  left: 10%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--c-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--spacing-xl);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md) 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}


.footer-kpl {
  font-family: var(--f-display);
  color: var(--c-accent);
  font-size: 2rem;
  line-height: 1;
  display: block;
}

.footer-full {
  font-family: var(--f-heading);
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.footer-social a:hover {
  background: var(--c-accent);
  color: var(--c-bg-dark);
  transform: translateY(-3px);
}

.footer-links-group h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links-group h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--c-accent);
}

.footer-links-group ul li {
  margin-bottom: 0.75rem;
}

.footer-links-group ul a {
  transition: var(--transition);
}

.footer-links-group ul a:hover {
  color: var(--c-accent);
  padding-left: 5px;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--c-accent);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .about-strip-content {
    flex-direction: column;
  }

  .about-strip-visual {
    min-height: 400px;
  }

  .about-strip-visual::before {
    background: linear-gradient(to top, var(--c-primary-dark), transparent);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 80px;
  }

  .ticker-bar {
    font-size: 0.85rem;
  }
  
  .ticker-label {
    display: none;
  }

  .hamburger {
    display: block;
    z-index: 1100;
  }

  .nav-container {
    padding: 0 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100vh;
    background-color: var(--c-primary-dark);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    transition: var(--transition);
    align-items: flex-start;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    z-index: 1050;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .nav-link {
    font-size: 1.25rem;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.75rem;
  }

  .nav-links .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--c-accent);
    color: white;
    border: none;
  }

  .logo-img {
    height: 110px !important;
    left: 1rem !important;
    top: 40px !important;
    transform: translateY(-50%) !important;
  }

  /* Fixed Heading Wrapping & Alignment */
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.2;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: center;
  }
  
  .page-title {
    font-size: clamp(1.5rem, 7vw, 2.5rem) !important; /* Slightly smaller to prevent breaking */
    line-height: 1.3;
    padding: 0 1rem; /* Less padding to give more room for text */
    word-break: normal; /* Stop breaking individual letters */
    overflow-wrap: normal;
    text-align: center;
    letter-spacing: 1px;
  }

  .hero-stats-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto; /* Allow scrolling if it gets too narrow */
    white-space: nowrap;
    margin-top: -1.5rem; /* Nudge up as requested */
  }

  .hero-stat {
    width: auto;
    border-bottom: none;
    padding-bottom: 0;
  }

  .hs-num {
    font-size: 1.8rem; /* Smaller for mobile to fit */
  }

  .hs-label {
    font-size: 0.7rem; /* Smaller for mobile */
  }

  .hero-stat:last-child {
    border-bottom: none;
  }

  .hero-stat-divider {
    display: block;
    height: 30px;
    margin: 0 0.5rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .champion-card {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 1.5rem;
  }

  .champ-stat-grid {
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
  }

  .champ-stat {
    padding: 0.5rem;
    flex: 1;
    min-width: 0;
  }

  .cs-val {
    font-size: 1.25rem;
  }

  .cs-lbl {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }

  .performer-stats {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Team Grid Alignment */
  .teams-carousel {
    grid-template-columns: 1fr !important; /* Stack teams on mobile */
    max-width: 400px;
    margin: 0 auto;
  }

  .tcm-name {
    font-size: 1.8rem;
  }

  .tcm-captain {
    width: 100% !important;
  }

  /* Team Roster Single Column */
  .team-roster {
    grid-template-columns: 1fr !important;
  }

  .match-list-item {
    flex-direction: column;
  }

  .ml-date {
    flex-direction: row;
    width: 100%;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-container {
    padding: 0 1rem; /* Reduced padding for mobile */
  }

  .nav-logo {
    margin-left: 0.5rem; /* Less margin on mobile */
    min-width: 100px;
  }

  .logo-img {
    height: 90px; /* Smaller logo for mobile */
    top: 15px; /* Adjust vertical split for mobile */
  }

  .hero {
    align-items: flex-start; /* Align to top instead of center on mobile */
    padding-top: 2rem;
  }

  .hero-content {
    padding-top: 80px; /* Reduced to cut the space at the top just a little bit */
  }

  .performer-img {
    transform: scale(1.2); /* Even less scale on mobile to ensure head fits */
    object-position: center 5%; /* Slight nudge for mobile framing */
  }

  /* Ensure tables are scrollable on mobile */
  .stats-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
  }

  .stats-table {
    min-width: 600px; /* Force scroll on very narrow screens */
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-links-group {
    margin-bottom: 0rem;
  }

  .footer-links-group h4 {
    margin-bottom: 1rem;
  }

  .footer-links-group h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Base Performer Styles */
.performer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; 
  transform: scale(1.4);
  border-radius: 50%;
  display: block;
}

.performer-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background-color: var(--c-bg-alt);
}
/* ============================================================
   SWIPER CAROUSEL OVERRIDES
   ============================================================ */
.top-performers-swiper {
  padding-bottom: 3rem;
  padding-top: 1rem;
}

.top-performers-swiper .swiper-slide {
  width: 320px;
  height: auto;
  filter: brightness(0.7);
  transform: scale(0.7);
  transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, z-index 0s;
  z-index: 1;
  position: relative;
}

.top-performers-swiper .swiper-slide-active {
  filter: brightness(1);
  transform: scale(1.1);
  z-index: 10;
}

/* Custom Red Arrows */
.custom-swiper-next,
.custom-swiper-prev {
  background-color: #E74C3C;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: -22px !important; /* Vertically center them */
}

.custom-swiper-next::after,
.custom-swiper-prev::after {
  font-size: 1.2rem !important;
  font-weight: bold !important;
  line-height: 1 !important;
}

.custom-swiper-next:hover,
.custom-swiper-prev:hover {
  background-color: #C0392B;
  transform: scale(1.1);
}

/* Hide cards beyond the adjacent ones so only 3 appear */
.top-performers-swiper .swiper-slide {
  visibility: hidden;
  opacity: 0 !important;
}

.top-performers-swiper .swiper-slide-active,
.top-performers-swiper .swiper-slide-next,
.top-performers-swiper .swiper-slide-prev {
  visibility: visible;
  opacity: 1 !important;
}
