:root {
  /* Bold Sports Theme - High Intensity */
  --primary-black: #080808;
  --secondary-black: #111111;
  --bright-red: #9e0d0d;
  --deep-red: #7a0a0a;
  --theme-bright: #f23d3d;
  /* New variable for loader/accent */
  --white: #ffffff;

  /* Theme Dynamic Tokens - Initialized with Red (Vijaya/Default) */
  --theme-glow: rgba(158, 13, 13, 0.4);
  --theme-glow-soft: rgba(158, 13, 13, 0.2);
  --theme-accent-10: rgba(255, 31, 31, 0.1);
  --theme-accent-20: rgba(255, 31, 31, 0.2);
  --theme-accent-50: rgba(255, 31, 31, 0.5);

  /* Surfaces - Industrial & Sharp */
  --surface-1: #111111;
  --surface-2: #1a1a1a;
  --surface-3: #222222;
  --glass-border: rgba(255, 31, 31, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.05);

  /* Typography - Bold & Energetic */
  --font-header: "Oswald", sans-serif;
  --font-body: "Outfit", sans-serif;

  /* Text Palette */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* House Colors (PROTECTED) */
  --vijaya-color: #ef4444;
  /* Red */
  --gemunu-color: #3b82f6;
  /* Blue */
  --parakrama-color: #fbbf24;
  /* Yellow */
  --tissa-color: #10b981;
  /* Green */

  /* Dynamic Gradients */
  --gradient-sports: linear-gradient(135deg,
      var(--bright-red) 0%,
      var(--deep-red) 100%);
  --gradient-dark: radial-gradient(circle at 50% 0%, #0f0f0f 0%, #080808 100%);
  --card-gradient: linear-gradient(165deg,
      rgba(29, 28, 28, 0.8) 0%,
      rgba(15, 15, 15, 0.9) 100%);

  /* Performance Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(255, 31, 31, 0.2);

  /* Sporting Radius - Sharp & Aggressive */
  --radius-full: 9999px;
  --radius-lg: 4px;
  --radius-md: 2px;
  --radius-sm: 1px;

  /* Motion */
  --transition-fast: 0.15s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-normal: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-slow: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Loading Screen - Recreated from Reference Image */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center,
      var(--deep-red) 0%,
      #080808 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Concentric Rings */
.loader-rings {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
  will-change: transform;
}

.ring-1 {
  width: 70px;
  height: 70px;
  border-top-color: var(--theme-bright);
  border-bottom-color: var(--theme-bright);
  opacity: 0.8;
  animation: rotateOuter 3s linear infinite;
}

.ring-2 {
  width: 50px;
  height: 50px;
  border-left-color: var(--theme-bright);
  border-right-color: var(--theme-bright);
  opacity: 0.7;
  animation: rotateMiddle 2s linear infinite reverse;
}

.ring-3 {
  width: 30px;
  height: 30px;
  border-top-color: var(--theme-bright);
  opacity: 0.9;
  animation: rotateInner 1.5s linear infinite;
}

.ring-core {
  width: 35px;
  height: 35px;
  background-image: url("https://i.ibb.co/8DYjdRdn/New-Project.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--theme-glow);
  z-index: 2;
}

@keyframes rotateOuter {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotateMiddle {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

@keyframes rotateInner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Progress Section */
.loader-progress-container {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loader-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--theme-bright);
  border-radius: 10px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--shadow-glow);
}

.loader-percentage {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 800;
  font-family: "Oswald", sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.loading-status {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-transform: uppercase;
  /* animation: statusFade 2s ease-in-out infinite; */
}

@keyframes statusFade {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Prevent double-tap zoom on all elements */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  /* Completely disable zoom and touch manipulation */
  touch-action: pan-y pan-x;
  -ms-touch-action: pan-y pan-x;
  /* Additional zoom prevention */
  -ms-content-zooming: none;
  -ms-user-select: element;
  user-select: auto;
}

body {
  font-family: var(--font-body);
  background: var(--primary-black);
  /* Performance: Use scroll instead of fixed to prevent layout thrashing */
  background-attachment: scroll;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  /* Smooth scrolling without lag */
  -webkit-overflow-scrolling: touch;
  /* Completely disable zoom and touch manipulation */
  touch-action: pan-y pan-x;
  -ms-touch-action: pan-y pan-x;
  /* Prevent text size adjustment on orientation change */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Custom Scrollbar - Hidden on all devices */
::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
}

/* Firefox scrollbar hide */
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg,
      var(--theme-bright) 0%,
      var(--deep-red) 100%);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bright-red) rgba(0, 0, 0, 0.4);
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to left, rgba(255, 31, 31, 0.03), transparent);
  z-index: -1;
  pointer-events: none;
}

/* Animated Background Effects */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(circle at 50% 0%, #0f0f0f 0%, #080808 100%);
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 31, 31, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 31, 31, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-size: 50px 50px;
  /* animation: gridMove 20s linear infinite; */
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  /* Performance Optimization: Reduced blur and added will-change */
  filter: blur(60px);
  opacity: 0.15;
  /* animation: orbFloat 8s ease-in-out infinite; */
  will-change: transform;
  pointer-events: none;
  transform: translateZ(0);
  /* Hardware acceleration */
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--bright-red);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--deep-red);
  bottom: -150px;
  left: -150px;
  animation-delay: 2s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--theme-bright);
  top: 50%;
  left: 50%;
  animation-delay: 4s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-tab,
.page-title,
.sport-title,
.house-ranking {
  font-family: var(--font-header);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

/* ============================================
   PREMIUM HEADER - ULTRA CLEAN GLASSMORPHISM
   ============================================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(0.75rem + env(safe-area-inset-top)) 2.5rem 0.75rem;
  background: linear-gradient(180deg,
      rgba(12, 12, 12, 0.95) 0%,
      rgba(8, 8, 8, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(158, 13, 13, 0.03) 50%,
      transparent 100%);
  pointer-events: none;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--deep-red),
      var(--bright-red),
      var(--deep-red),
      transparent);
  box-shadow: 0 0 15px var(--shadow-glow);
}

/* Header Brand - Premium Clean Look */
.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.01) 100%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.brand-logos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      var(--theme-accent-10) 0%,
      transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.brand-logos:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--theme-accent-20);
  transform: translateY(-1px);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 20px var(--theme-accent-10);
}

.brand-logos:hover::before {
  opacity: 1;
}

.club-icon {
  width: 2.4rem;
  height: 2.4rem;
  background-image: url("https://i.ibb.co/nMvqF6Yz/New-Logo-Enhnaced-1.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  filter: drop-shadow(0 2px 8px var(--theme-glow-soft));
}

.club-icon:hover {
  transform: scale(1.1) rotate(3deg);
  filter: drop-shadow(0 4px 15px var(--theme-accent-50));
}

.profile-icon {
  width: 2.4rem;
  height: 2.4rem;
  background-image: url("https://i.ibb.co/8DYjdRdn/New-Project.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.profile-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--theme-accent-20);
}

.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.header-title {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
  background: linear-gradient(135deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-subtitle {
  font-size: 0.55rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg,
      var(--bright-red) 0%,
      var(--deep-red) 100%);
  padding: 0.2rem 0.4rem;
  border-radius: 0;
  margin-top: 4px;
  width: fit-content;
  box-shadow:
    0 2px 10px var(--theme-glow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.header-subtitle::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

/* Header Navigation - Premium Pill Design */
.header-nav {
  display: flex;
  gap: 0.35rem;
  background: linear-gradient(135deg,
      rgba(20, 20, 20, 0.6) 0%,
      rgba(15, 15, 15, 0.4) 100%);
  padding: 0.35rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nav-tab i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.nav-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-tab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.nav-tab:hover::before {
  opacity: 1;
}

.nav-tab:hover i {
  transform: scale(1.1);
}

.nav-tab.active {
  color: #fff;
  background: var(--gradient-sports);
  box-shadow:
    0 4px 15px var(--theme-glow),
    0 0 30px var(--theme-glow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.nav-tab.active i {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

/* Mobile responsive header - Clean & Minimal */
@media (max-width: 1024px) {
  header {
    padding: 0.7rem 1.5rem;
  }

  .nav-tab {
    padding: 0.5rem 0.9rem;
    font-size: 0.7rem;
  }

  .nav-tab span {
    display: none;
  }
}

@media (max-width: 768px) {
  header {
    position: relative;
    flex-direction: column;
    gap: 0.8rem;
    padding: calc(0.8rem + env(safe-area-inset-top)) 1rem 0.8rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid var(--theme-accent-20);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  /* Brand section - normal flow with smooth transition */
  .header-brand {
    position: relative;
    z-index: 1;
    opacity: 1;
    max-height: 100px;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  /* When scrolled - smoothly hide brand */
  header.scrolled .header-brand {
    opacity: 0;
    max-height: 0;
    transform: translateY(-20px);
    margin: 0;
    padding: 0;
  }

  /* Nav tabs - normal in header */
  .header-nav {
    width: 100%;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.3rem;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  /* When scrolled - header becomes fixed with only tabs */
  header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0.5rem 0.8rem;
    gap: 0;
    background: linear-gradient(180deg,
        rgba(10, 10, 10, 0.98) 0%,
        rgba(8, 8, 8, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(158, 13, 13, 0.4);
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  header.scrolled .header-nav {
    width: 100%;
    padding: 0.35rem;
    border-radius: 12px;
  }

  .nav-tab {
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    flex: 1;
    max-width: 65px;
    transition: all 0.3s ease;
  }

  .nav-tab span {
    display: none;
  }

  .nav-tab i {
    font-size: 1rem;
    margin: 0;
  }

  .brand-logos {
    padding: 0.4rem 0.6rem;
  }

  /* Spacer when header is fixed - smooth transition */
  .container {
    transition: padding-top 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  body.header-scrolled .container {
    padding-top: 4rem;
  }
}

@media (max-width: 500px) {
  header {
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
  }

  .header-brand {
    gap: 0.8rem;
  }

  .brand-info {
    display: flex;
    align-items: flex-start;
  }

  .header-title {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .header-subtitle {
    font-size: 0.5rem;
    letter-spacing: 1.5px;
    padding: 0.15rem 0.35rem;
  }

  .brand-logos {
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
  }

  .club-icon,
  .profile-icon {
    width: 2rem;
    height: 2rem;
  }

  .header-nav {
    padding: 0.5rem 0.6rem;
  }

  .nav-tab {
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
  }

  .nav-tab i {
    font-size: 0.9rem;
  }

  .container {
    padding-top: 3.5rem;
  }
}

/* ============================================
   MODERN FOOTER - PREMIUM REDESIGN
   ============================================ */
.main-footer {
  margin-top: 5rem;
  background: linear-gradient(to bottom, #080808, #000000);
  border-top: 1px solid var(--theme-accent-20);
  position: relative;
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--bright-red),
      transparent);
  opacity: 0.8;
  box-shadow: 0 0 10px var(--bright-red);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-section h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-transform: uppercase;
}

.footer-section h3::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--bright-red);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--bright-red);
}

.footer-brand-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-family: var(--font-body);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer-nav-link:hover {
  color: var(--theme-bright);
  transform: translateX(8px);
  text-shadow: 0 0 10px var(--theme-glow);
}

.footer-nav-link i {
  font-size: 0.7rem;
  opacity: 0.5;
  transition: all 0.3s ease;
  color: var(--theme-bright);
}

.footer-nav-link:hover i {
  opacity: 1;
  transform: scale(1.2);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon:hover {
  background: var(--theme-bright);
  border-color: var(--theme-bright);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--theme-glow);
}

.footer-bottom {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.officialweblink {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
  position: relative;
}

.officialweblink::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--theme-bright);
  transition: width 0.3s ease;
}

.officialweblink:hover::after {
  width: 100%;
}

.last-updated {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--theme-accent-10);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  border: 1px solid var(--theme-accent-20);
  color: var(--theme-bright);
  font-weight: 600;
  font-size: 0.75rem;
}

/* Page Hero Section */
.page-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: var(--surface-1);
  border: 1px solid var(--theme-accent-10);
  box-shadow: var(--shadow-md);
  animation: heroFadeIn 0.6s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom left,
      var(--theme-accent-10) 0%,
      transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  width: 100%;
}

.page-hero .page-title {
  margin: 0;
  padding: 0;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  display: block;
  animation: titleSlideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.1s both;
  text-align: center;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.page-hero:hover .page-title {
  color: var(--theme-bright);
  text-shadow: 0 0 25px var(--theme-glow);
}

.page-hero .page-title-icon {
  display: none !important;
}

.page-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  width: 100%;
}

.page-hero .page-title span:not(.page-title-icon) {
  display: block;
}

@keyframes titleSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.4;
  margin: -0.2rem auto 0 auto;
  padding: 0;
  font-weight: 400;
  text-align: center;
  animation: subtitleFadeIn 0.5s ease-out 0.2s both;
  opacity: 0.9;
}

@keyframes subtitleFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Hero - Compact Style */
@media (max-width: 768px) {
  .page-hero {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
  }

  .page-hero-content {
    gap: 1rem;
  }

  .page-hero .page-title {
    font-size: 1.2rem;
  }

  .page-hero .page-title-icon {
    font-size: 1.8rem;
  }

  .page-subtitle {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* Back Button */
.back-btn-container {
  margin-bottom: 2rem;
}

.back-to-sports-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-to-sports-btn:hover {
  background: var(--theme-accent-10);
  border-color: var(--bright-red);
  color: var(--white);
  transform: translateX(-5px);
}

.back-to-sports-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.back-to-sports-btn:hover i {
  transform: translateX(-3px);
}

/* Grid Layouts */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.rankings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Responsive: Score cards 2 per row on tablet, 1 per row on mobile */
@media (max-width: 992px) {
  .sports-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sports-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SPORT CARDS - PREMIUM GLASSMORPHIC REDESIGN
   ============================================ */

/* Sport Card Container - Premium Edition */
.sport-card {
  background: linear-gradient(135deg,
      rgba(15, 15, 15, 0.98) 0%,
      rgba(8, 8, 8, 0.95) 100%);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Hardware acceleration for smooth scrolling */
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* Animated gradient border effect */
.sport-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg,
      var(--theme-accent-50) 0%,
      var(--theme-bright) 50%,
      var(--theme-accent-50) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Top accent line */
.sport-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--theme-bright) 50%,
      transparent);
  opacity: 0.6;
}

/* Hover state - Premium float effect */
.sport-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--theme-accent-50);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.6),
    0 15px 30px var(--theme-accent-20),
    0 0 40px var(--theme-accent-10),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sport-card:hover::before {
  opacity: 1;
  animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* Entrance animation with 3D effect */
@keyframes sportCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(60px) rotateX(10deg) scale(0.9);
    filter: blur(10px);
  }

  50% {
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
  }
}

.sport-card {
  animation: sportCardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

/* Staggered animation delays */
.sports-grid .sport-card:nth-child(1) {
  animation-delay: 0.05s;
}

.sports-grid .sport-card:nth-child(2) {
  animation-delay: 0.1s;
}

.sports-grid .sport-card:nth-child(3) {
  animation-delay: 0.15s;
}

.sports-grid .sport-card:nth-child(4) {
  animation-delay: 0.2s;
}

.sports-grid .sport-card:nth-child(5) {
  animation-delay: 0.25s;
}

.sports-grid .sport-card:nth-child(6) {
  animation-delay: 0.3s;
}

.sports-grid .sport-card:nth-child(7) {
  animation-delay: 0.35s;
}

.sports-grid .sport-card:nth-child(8) {
  animation-delay: 0.4s;
}

.sports-grid .sport-card:nth-child(9) {
  animation-delay: 0.45s;
}

.sports-grid .sport-card:nth-child(n + 10) {
  animation-delay: 0.5s;
}

/* Sport Header - Premium Layout */
.sport-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--theme-accent-10);
}

.sport-title {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  font-style: normal;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.2;
  transition: all 0.3s ease;
  position: relative;
}

.sport-card:hover .sport-title {
  color: var(--theme-bright);
  transform: translateX(4px);
  text-shadow:
    0 0 5px var(--theme-accent-50),
    0 0 10px var(--theme-accent-20);
}

/* Sport Subtitle & Meta */
.sport-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sport-subtitle::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--theme-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--theme-bright);
}

.sport-title-row,
.event-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.sport-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 700;
  background: var(--theme-accent-10);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  border: 1px solid var(--theme-accent-20);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sport-date i {
  font-size: 0.95rem;
}

.sport-card:hover .sport-date {
  background: var(--theme-accent-20);
  box-shadow: 0 0 15px var(--theme-glow-soft);
  transform: translateX(4px);
}

/* Ranking Card - Consolidated & Premium Redesign */
.ranking-card {
  position: relative;
  background: linear-gradient(135deg,
      rgba(15, 15, 15, 0.98) 0%,
      rgba(8, 8, 8, 0.98) 100%);
  border-radius: 16px;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Hardware acceleration */
  transform: translateZ(0);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation:
    rankCardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    rankCardFloat 4s ease-in-out infinite alternate;
}

@keyframes rankCardFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-6px);
  }
}

@keyframes rankCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rankings-grid .ranking-card:nth-child(1) {
  animation-delay: 0.1s;
}

.rankings-grid .ranking-card:nth-child(2) {
  animation-delay: 0.2s;
}

.rankings-grid .ranking-card:nth-child(3) {
  animation-delay: 0.3s;
}

.rankings-grid .ranking-card:nth-child(4) {
  animation-delay: 0.4s;
}

.ranking-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%,
      rgba(255, 255, 255, 0.05) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.ranking-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.ranking-card:hover::before {
  opacity: 1;
}

.rank-number {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-family: var(--font-header);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  font-style: normal;
  color: var(--white);
  background: var(--theme-accent-10);
  padding: 0.25rem 0.8rem;
  border-radius: 30px;
  border: 1px solid var(--theme-accent-20);
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.ranking-card:hover .rank-number {
  background: var(--theme-bright);
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--theme-glow-soft);
}

.house-ranking {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--white);
  text-transform: uppercase;
  font-style: normal;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.ranking-card:hover .house-ranking {
  letter-spacing: 1px;
}

.house-icon {
  font-size: 1.2rem;
  opacity: 0.8;
}

.total-score {
  font-family: "JetBrains Mono", monospace;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--theme-bright);
  text-shadow: 0 0 20px var(--theme-glow);
  position: relative;
  transition: all 0.4s ease;
}

.ranking-card:hover .total-score {
  transform: scale(1.1);
  text-shadow: 0 0 30px var(--theme-glow);
}

.total-score::after {
  content: "PTS";
  position: absolute;
  bottom: 0.8rem;
  right: -2.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Specific House Styling */
.ranking-card.gemunu-card {
  border-left: 4px solid var(--gemunu-color);
}

.ranking-card.vijaya-card {
  border-left: 4px solid var(--vijaya-color);
}

.ranking-card.parakrama-card {
  border-left: 4px solid var(--parakrama-color);
}

.ranking-card.tissa-card {
  border-left: 4px solid var(--tissa-color);
}

.ranking-card.gemunu-card:hover {
  border-color: var(--gemunu-color);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(59, 130, 246, 0.2);
}

.ranking-card.vijaya-card:hover {
  border-color: var(--vijaya-color);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(239, 68, 68, 0.2);
}

.ranking-card.parakrama-card:hover {
  border-color: var(--parakrama-color);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(251, 191, 36, 0.2);
}

.ranking-card.tissa-card:hover {
  border-color: var(--tissa-color);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(16, 185, 129, 0.2);
}

.ranking-card.gemunu-card .house-ranking,
.ranking-card.gemunu-card .total-score {
  color: var(--gemunu-color);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.ranking-card.vijaya-card .house-ranking,
.ranking-card.vijaya-card .total-score {
  color: var(--vijaya-color);
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.ranking-card.parakrama-card .house-ranking,
.ranking-card.parakrama-card .total-score {
  color: var(--parakrama-color);
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.ranking-card.tissa-card .house-ranking,
.ranking-card.tissa-card .total-score {
  color: var(--tissa-color);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* ============================================
   ATHLETICS HERO & BACK BUTTON
   ============================================ */

.back-btn-container {
  margin-bottom: 1.5rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(17, 17, 17, 0.8);
  border: 1.5px solid var(--bright-red);
  border-radius: 50px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 15px var(--theme-accent-10);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.back-button:hover {
  background: var(--bright-red);
  transform: translateX(-5px);
  box-shadow: 0 0 25px rgba(255, 31, 31, 0.3);
}

.back-button svg {
  width: 1.2rem;
  height: 1.2rem;
}

.back-to-sports-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(17, 17, 17, 0.8);
  border: 1.5px solid var(--bright-red);
  border-radius: 50px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 15px var(--theme-accent-10);
}

.back-to-sports-btn:hover {
  background: var(--bright-red);
  transform: translateX(-5px);
  box-shadow: 0 0 25px rgba(255, 31, 31, 0.3);
}

.back-to-sports-btn i {
  font-size: 1rem;
}

/* ============================================
   EVENT CARDS - BOLD SPORTS REDESIGN
   ============================================ */
.athletics-full-stack {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
  padding-bottom: 5rem;
}

.category-group {
  width: 100%;
  margin-bottom: 0;
}

.category-label-wrapper {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  padding-left: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.category-accent {
  width: 6px;
  height: 40px;
  background: var(--gradient-sports);
  border-radius: 10px;
  box-shadow: 0 0 20px var(--theme-glow);
}

.category-label {
  font-family: var(--font-header);
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}

.event-card {
  background: linear-gradient(135deg,
      rgba(20, 20, 20, 0.95) 0%,
      rgba(10, 10, 10, 0.98) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bright-red);
  box-shadow: 0 0 15px var(--bright-red);
  opacity: 0.6;
}

.event-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 31, 31, 0.2);
}

.event-card::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(45deg,
      transparent 0%,
      rgba(255, 255, 255, 0.03) 45%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.03) 55%,
      transparent 100%);
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  pointer-events: none;
  opacity: 0;
}

.event-card:hover::after {
  animation: shine-sweep 1.5s ease-in-out infinite;
  opacity: 1;
}

@keyframes shine-sweep {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(-45deg);
  }

  100% {
    transform: translateX(120%) translateY(120%) rotate(-45deg);
  }
}

/* Entrance animation */
@keyframes eventCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(60px) rotateX(10deg) scale(0.9);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
  }
}

.event-card {
  animation: eventCardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Event Header - Modern Layout */
.event-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.event-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--bright-red), transparent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.event-card:hover .event-header::after {
  width: 100%;
}

/* Event Name - Animated */
.event-name {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  font-style: normal;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.event-card:hover .event-name {
  color: var(--bright-red);
  transform: translateX(5px);
}

.event-date-badge {
  display: inline-flex;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.8;
  font-weight: 600;
}

.event-date::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--bright-red);
  border-radius: 50%;
  animation: datePulse 2s ease-in-out infinite;
}

.event-card:hover .event-date {
  background: linear-gradient(135deg,
      rgba(239, 68, 68, 0.25),
      rgba(239, 68, 68, 0.1));
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateX(3px);
}

.event-location {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.event-location::before {
  content: "";
  width: 3px;
  height: 3px;
  background: var(--bright-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--bright-red);
}

/* Live Indicators */
.live-tag {
  display: inline-flex;
  align-items: center;
  color: var(--bright-red);
  font-size: 0.65rem;
  font-weight: 800;
  background: transparent;
  padding: 0;
  border: none;
  animation: livePulse 2s ease-in-out infinite;
}

.live-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--bright-red);
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse 1.5s infinite;
}

/* ============================================
   SCORE ITEMS - MODERN ANIMATED DESIGN
   ============================================ */

.score-item {
  margin-bottom: 0;
  /* Reduced spacing */
  opacity: 0;
  position: relative;
  padding: 0.5rem 1rem 0.5rem 1.2rem;
  /* Adjusted padding for bar */
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  /* Ensure bar stays within rounded corners */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: scoreItemSlide 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  /* Tighter gap */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.score-item:nth-child(1) {
  animation-delay: 0.1s;
}

.score-item:nth-child(2) {
  animation-delay: 0.2s;
}

.score-item:nth-child(3) {
  animation-delay: 0.3s;
}

.score-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes scoreItemSlide {
  0% {
    opacity: 0;
    transform: translateX(-20px) scale(0.98);
    filter: blur(5px);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

.score-item:hover {
  transform: translateX(8px) scale(1.02);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.score-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.score-item.gemunu::before {
  background: var(--gemunu-color);
}

.score-item.vijaya::before {
  background: var(--vijaya-color);
}

.score-item.parakrama::before {
  background: var(--parakrama-color);
}

.score-item.tissa::before {
  background: var(--tissa-color);
}

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.house-name {
  font-family: "Outfit", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.house-name::before {
  content: "\f015";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.7rem;
  opacity: 0.7;
}

.house-name.gemunu {
  color: #60a5fa;
}

.house-name.vijaya {
  color: #ff6b6b;
}

.house-name.parakrama {
  color: #fcd34d;
}

.house-name.tissa {
  color: #4ade80;
}

.house-score {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bright-red);
  text-shadow: 0 0 10px var(--theme-glow-soft);
  letter-spacing: -0.02em;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
  height: 100%;
  border-radius: 0;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  background-size: 20px 20px;
  background-image: linear-gradient(45deg,
      rgba(255, 255, 255, 0.1) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.1) 75%,
      transparent 75%,
      transparent);
  animation: progressMove 1s linear infinite;
}

@keyframes progressMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 20px 0;
  }
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  background: var(--white);
  filter: blur(4px);
  opacity: 0.6;
}

@keyframes progressShine {
  0% {
    left: -150%;
  }

  50% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

.score-item:hover .progress-bar {
  box-shadow:
    0 0 20px currentColor,
    0 0 40px currentColor;
}

.score-item:hover .progress-bar::after {
  animation: progressShineHover 0.8s ease-in-out;
}

@keyframes progressShineHover {
  0% {
    left: -150%;
    opacity: 1;
  }

  100% {
    left: 150%;
    opacity: 0.5;
  }
}

/* Progress Bar Colors with enhanced gradients */
.progress-bar.vijaya {
  background: linear-gradient(90deg,
      var(--vijaya-color),
      #ff6b6b,
      var(--vijaya-color));
  background-size: 200% 100%;
  animation: progressGradient 3s ease infinite;
}

.progress-bar.gemunu {
  background: linear-gradient(90deg,
      var(--gemunu-color),
      #60a5fa,
      var(--gemunu-color));
  background-size: 200% 100%;
  animation: progressGradient 3s ease infinite;
}

.progress-bar.parakrama {
  background: linear-gradient(90deg,
      var(--parakrama-color),
      #fcd34d,
      var(--parakrama-color));
  background-size: 200% 100%;
  animation: progressGradient 3s ease infinite;
}

.progress-bar.tissa {
  background: linear-gradient(90deg,
      var(--tissa-color),
      #4ade80,
      var(--tissa-color));
  background-size: 200% 100%;
  animation: progressGradient 3s ease infinite;
}

@keyframes progressGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ============================================
   MOMENT CARDS - COMPLETE REDESIGN
   Cinematic, image-first glassmorphic tiles
   ============================================ */

/* Moments Grid */
.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Photo Credits */
/* Card Entrance Animation */
.moments-grid .moment-card {
  opacity: 0;
  animation: momentCardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.moments-grid .moment-card:nth-child(1) {
  animation-delay: 0.05s;
}

.moments-grid .moment-card:nth-child(2) {
  animation-delay: 0.1s;
}

.moments-grid .moment-card:nth-child(3) {
  animation-delay: 0.15s;
}

.moments-grid .moment-card:nth-child(4) {
  animation-delay: 0.2s;
}

.moments-grid .moment-card:nth-child(5) {
  animation-delay: 0.25s;
}

.moments-grid .moment-card:nth-child(6) {
  animation-delay: 0.3s;
}

.moments-grid .moment-card:nth-child(n + 7) {
  animation-delay: 0.35s;
}

@keyframes momentCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Main Card Container */
.moment-card {
  position: relative;
  background: linear-gradient(165deg,
      rgba(20, 20, 20, 0.95) 0%,
      rgba(15, 15, 15, 0.98) 100%);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

.moment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      transparent 0%,
      var(--theme-accent-10) 50%,
      transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 10;
}

.moment-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--theme-accent-50);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 50px var(--theme-accent-10),
    0 0 0 1px var(--theme-accent-20) inset;
}

.moment-card:hover::before {
  opacity: 1;
}

/* Image Wrapper - Hero Section */
.moment-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.moment-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.5s ease;
  filter: brightness(0.85) contrast(1.05) saturate(1.1);
}

.moment-card:hover .moment-image {
  transform: scale(1.1);
  filter: brightness(0.95) contrast(1.1) saturate(1.2);
}

/* Image Overlay Gradient */
.moment-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
      transparent 0%,
      transparent 40%,
      rgba(15, 15, 15, 0.6) 70%,
      rgba(15, 15, 15, 0.95) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.moment-card:hover .moment-image-overlay {
  background: linear-gradient(180deg,
      var(--theme-accent-10) 0%,
      transparent 30%,
      rgba(15, 15, 15, 0.5) 70%,
      rgba(15, 15, 15, 0.95) 100%);
}

/* Image Shine Effect */
.moment-image-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.15),
      transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
  pointer-events: none;
}

.moment-card:hover .moment-image-shine {
  left: 150%;
}

/* House Badge - Top Left */
.moment-house-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}

.moment-house-badge.vijaya {
  background: linear-gradient(135deg,
      rgba(239, 68, 68, 0.9),
      rgba(185, 28, 28, 0.9));
  border-color: rgba(239, 68, 68, 0.5);
}

.moment-house-badge.gemunu {
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.9),
      rgba(29, 78, 216, 0.9));
  border-color: rgba(59, 130, 246, 0.5);
}

.moment-house-badge.parakrama {
  background: linear-gradient(135deg,
      rgba(245, 158, 11, 0.9),
      rgba(217, 119, 6, 0.9));
  border-color: rgba(245, 158, 11, 0.5);
  color: #000;
}

.moment-house-badge.tissa {
  background: linear-gradient(135deg,
      rgba(16, 185, 129, 0.9),
      rgba(5, 150, 105, 0.9));
  border-color: rgba(16, 185, 129, 0.5);
}

.moment-card:hover .moment-house-badge {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Album Icon Button - Top Right */
.moment-album-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}

.moment-album-icon:hover {
  background: var(--theme-bright);
  border-color: var(--theme-bright);
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 0 20px var(--theme-accent-50);
}

/* Content Section */
.moment-content {
  padding: 1.5rem;
  position: relative;
}

/* Sport Tag */
.moment-sport-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--theme-bright);
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.moment-sport-tag i {
  font-size: 0.65rem;
  animation: trophyPulse 2s ease-in-out infinite;
}

@keyframes trophyPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Title */
.moment-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.3;
  transition: all 0.3s ease;
  font-family: "oswald", sans-serif;
}

.moment-card:hover .moment-title {
  color: var(--theme-bright);
  text-shadow: 0 0 30px var(--theme-glow-soft);
}

/* Description */
.moment-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.moment-card:hover .moment-description {
  color: var(--text-secondary);
}

/* Actions Section */
.moment-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* CTA Button */
.moment-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, var(--deep-red), var(--bright-red));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2rem;
  border: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.moment-cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s ease;
}

.moment-cta-btn:hover::before {
  left: 100%;
}

.moment-cta-btn:hover {
  transform: translateX(5px) scale(1.02);
  box-shadow: 0 8px 25px var(--theme-glow);
}

.moment-cta-btn i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.moment-cta-btn:hover i {
  transform: translateX(4px);
}

/* Category Label - Bottom Right */
.moment-category-tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.5;
  font-family: var(--font-header);
  transition: all 0.4s ease;
}

.moment-card:hover {
  opacity: 1;
  color: var(--white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Bottom Accent Line */
.moment-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--theme-bright),
      transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.moment-card:hover::after {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .moments-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .moment-image-wrapper {
    height: 200px;
  }

  .moment-content {
    padding: 1.25rem;
  }

  .moment-title {
    font-size: 1.15rem;
  }
}

/* ============================================
   MOMENTS COPYRIGHT NOTICE
   Glassmorphism styled copyright link
   ============================================ */

.moments-copyright-notice {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 1.5rem 0;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.moments-copyright-notice .copyright-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3rem;
  max-width: 90%;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.moments-copyright-notice .copyright-link i {
  font-size: 1.1rem;
  color: var(--bright-red);
  flex-shrink: 0;
}

.moments-copyright-notice .copyright-link span {
  text-align: center;
}

/* Responsive adjustments for copyright notice */
@media (max-width: 768px) {
  .moments-copyright-notice {
    margin: 1.5rem auto 1rem;
  }

  .moments-copyright-notice .copyright-link {
    padding: 0.85rem 1.25rem;
    font-size: 0.75rem;
    gap: 0.5rem;
    border-radius: 1.5rem;
    text-align: center;
  }

  .moments-copyright-notice .copyright-link i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .moments-copyright-notice .copyright-link {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }
}

/* Filter Styles */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-option {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(206, 18, 18, 0.3);
  border-radius: 1rem;
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  user-select: none;
  backdrop-filter: blur(5px);
}

.filter-option:hover {
  background: rgba(206, 18, 18, 0.2);
  color: var(--white);
  transform: translateY(-1px);
}

.filter-option.active {
  color: var(--white);
  border-color: var(--bright-red);
  box-shadow: var(--shadow-primary);
}

/* Updated House Filter Colors */
.vijaya-option.active {
  background: linear-gradient(135deg, var(--vijaya-color), #ef4444);
}

.gemunu-option.active {
  background: linear-gradient(135deg, var(--gemunu-color), #3b82f6);
}

.parakrama-option.active {
  background: linear-gradient(135deg, var(--parakrama-color), #fde047);
  color: var(--primary-black);
}

.tissa-option.active {
  background: linear-gradient(135deg, var(--tissa-color), #22c55e);
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  border: 1px solid rgba(206, 18, 18, 0.2);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

/* Dashboard Styles */
.hcard {
  background: var(--card-gradient);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(206, 18, 18, 0.2);
  backdrop-filter: blur(8px);
}

.hcard-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.hcard-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Athletics Specific Styles */
.category-header {
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 1rem 1rem 0 0;
  border-left: 4px solid var(--bright-red);
  box-shadow: var(--shadow-card);
}

.category-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.position-result {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2rem;
  transition: all var(--transition-fast);
}

.position-indicator {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.position-1 {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: var(--primary-black);
}

.position-2 {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  color: var(--primary-black);
}

.position-3 {
  background: linear-gradient(135deg, #cd7f32, #d4941e);
  color: var(--white);
}

.position-4 {
  background: linear-gradient(135deg, #555, #777);
  color: var(--white);
}

/* Modern See More Button */
.see-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg,
      rgba(239, 68, 68, 0.15),
      rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.see-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.5s ease;
}

.see-more-btn:hover::before {
  left: 100%;
}

.see-more-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bright-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.see-more-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--bright-red), var(--deep-red));
  border-radius: 9999px;
  color: white;
  font-size: 0.6rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.see-more-btn:hover {
  background: linear-gradient(135deg,
      rgba(239, 68, 68, 0.25),
      rgba(239, 68, 68, 0.1));
  border-color: rgba(239, 68, 68, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.25);
}

.see-more-btn:hover .see-more-text {
  color: #ff6b6b;
  transform: translateX(-3px);
}

.see-more-btn:hover .see-more-icon {
  transform: translateX(5px) scale(1.1);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
}

/* Legacy see-more-link support */
.see-more-link {
  color: var(--bright-red);
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(206, 18, 18, 0.1);
  border: 1px solid var(--bright-red);
  text-decoration: none;
  display: inline-block;
}

.see-more-link:hover {
  transform: translateY(-2px);
  background: rgba(206, 18, 18, 0.2);
  box-shadow: var(--shadow-glow);
}

.visitor-counter {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.8rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  color: var(--white);
  border: 1px solid rgba(206, 18, 18, 0.3);
  backdrop-filter: blur(10px);
}

.visitor-counter strong {
  color: var(--bright-red);
}

/* Footer - Professional Sports Layout */
.footer {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  background: var(--primary-black);
  border-top: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(45deg, rgba(255, 31, 31, 0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 31, 31, 0.02) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 31, 31, 0.02) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 31, 31, 0.02) 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0px;
  opacity: 0.2;
  pointer-events: none;
}

.footer::before {
  display: none;
}

/* Footer container */
/* Footer container */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0 1.5rem;
  text-align: left;
}

.footer-section h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-branding {
  color: var(--deep-red) !important;
  font-size: 1.4rem !important;
  font-style: normal;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer-section p i {
  color: var(--bright-red);
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--bright-red);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.footer-links-list li i {
  font-size: 0.7rem;
  color: var(--deep-red);
}

/* Footer links */
.footer-link {
  color: var(--bright-red);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
}

.footer-link:hover {
  color: var(--white);
  background: rgba(239, 68, 68, 0.2);
}

/* Social Icons - Enhanced */
.footer-socials {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.officialweblink {
  color: var(--bright-red);
  transition: all 0.3s ease-in-out;
  font-weight: 600;
  text-decoration: none;
}

.officialweblink:hover {
  color: var(--white);
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .social-icon.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.footer .social-icon.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.footer .social-icon.instagram {
  background: linear-gradient(135deg,
      #f09433 0%,
      #e6683c 25%,
      #dc2743 50%,
      #cc2366 75%,
      #bc1888 100%);
  box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.footer .social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Footer bottom - Enhanced & Responsive */
.footer-bottom {
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom>span {
  display: inline-block;
}

.footer-bottom .officialweblink {
  color: var(--bright-red);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom .officialweblink:hover {
  color: #ff6b6b;
}

.last-updated {
  background: rgba(158, 13, 13, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(158, 13, 13, 0.3);
  font-style: normal;
}

/* Footer bottom responsive - Tablet */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 0.75rem;
  }

  .footer-bottom>span {
    display: block;
    width: 100%;
  }
}

/* Footer bottom responsive - Mobile */
@media (max-width: 480px) {
  .footer-bottom {
    padding: 1rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.5rem;
  }

  .last-updated {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-right {
    justify-content: center;
    gap: 0.5rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-black);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-secondary);
  border-radius: 9999px;
  border: 1px solid var(--primary-black);
}

/* Transparent View Album button */
.view-album-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 3px;
  /* Adjusted to account for increased space from house element */
  margin-left: 3px;
}

.view-album-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.view-album-link:active {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Camera icon styling */
.view-album-link img,
.view-album-link::before {
  font-size: 14px;
  opacity: 0.85;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2rem;
  border: 1px solid rgba(206, 18, 18, 0.2);
  backdrop-filter: blur(10px);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gradient-secondary);
  border-radius: 10px;
}

/* Utility Classes */
.see-more-link {
  color: var(--bright-red);
  padding: 1rem 2rem;
  border-radius: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  font-size: 1rem;
  font-weight: 600;
  background: rgba(206, 18, 18, 0.1);
  border: 2px solid var(--bright-red);
  text-decoration: none;
  display: inline-block;
}

.see-more-link:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(206, 18, 18, 0.2);
  box-shadow: var(--shadow-glow);
}

.back-button {
  display: inline-flex;
  align-items: center;
  background: rgba(206, 18, 18, 0.2);
  border: 1px solid var(--bright-red);
  color: var(--white);
  padding: 1rem 1.5rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-medium);
  margin-bottom: 2rem;
  text-decoration: none;
}

.back-button:hover {
  background: rgba(206, 18, 18, 0.3);
  transform: translateX(-5px);
  box-shadow: var(--shadow-glow);
}

/* Athletics Specific Styles */
.athletics-container {
  padding: 1.5rem;
  background: var(--primary-black);
  min-height: 50vh;
}

.category-group {
  margin-bottom: 3rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2.5rem;
  overflow: hidden;
}

.category-header {
  background: var(--gradient-secondary);
  color: var(--white);
  padding: 2rem;
  font-weight: 700;
  font-size: 1.3rem;
  border-radius: 0;
  border-left: 6px solid var(--bright-red);
  box-shadow: var(--shadow-card);
}

.category-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.event-results {
  padding: 1.5rem 0;
}

.position-result {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2rem;
  border: 1px solid rgba(206, 18, 18, 0.2);
  transition: all var(--transition-fast);
}

.position-result:hover {
  background: rgba(206, 18, 18, 0.1);
  transform: translateX(10px);
}

.position-indicator {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 1rem;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.position-1 {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: var(--primary-black);
}

.position-2 {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  color: var(--primary-black);
}

.position-3 {
  background: linear-gradient(135deg, #cd7f32, #d4941e);
  color: var(--white);
}

.position-4 {
  background: linear-gradient(135deg, #555, #777);
  color: var(--white);
}

.score-value {
  font-weight: 700;
  margin-left: auto;
  color: var(--theme-bright);
  text-shadow: 0 0 10px var(--theme-glow-soft);
}

/* Analytics Stats Grid */
.analytics-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.analytics-stat-card {
  background: linear-gradient(145deg,
      rgba(40, 40, 40, 0.95),
      rgba(25, 25, 25, 0.95));
  border: 2px solid var(--theme-accent-20);
  border-radius: 1.2rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.analytics-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-bright), var(--deep-red));
  border-radius: 3px 3px 0 0;
}

.analytics-stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--theme-bright);
  box-shadow:
    0 15px 40px var(--theme-accent-20),
    0 0 20px var(--theme-accent-10);
}

.stat-icon {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--theme-bright), var(--deep-red));
  border-radius: 1rem;
  font-size: 1.4rem;
  color: white;
  box-shadow: 0 6px 20px var(--theme-glow-soft);
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stat Card Variations */
.stat-total .stat-icon {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.stat-points .stat-icon {
  background: linear-gradient(135deg, var(--theme-bright), var(--deep-red));
}

.stat-sports .stat-icon {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.stat-years .stat-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Dashboard Styles */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
}

.hcard {
  background: var(--card-gradient);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-card);
  padding: 2rem;
  margin-bottom: 3rem;
  border: 2px solid var(--theme-accent-20);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.hcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      var(--theme-accent-10),
      transparent);
  animation: cardShine 3s infinite;
}

.hcard-header {
  margin-bottom: 2rem;
  z-index: 2;
  position: relative;
}

.hcard-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.hcard-icon {
  font-size: 1.8rem;
  color: var(--bright-red);
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

.hcard-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--white);
  text-shadow: 0 0 20px rgba(206, 18, 18, 0.3);
}

.hcard-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  margin-left: 0;
}

/* Filter Styles */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.filter-option {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(206, 18, 18, 0.3);
  border-radius: 2rem;
  color: var(--text-secondary);
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  user-select: none;
  backdrop-filter: blur(10px);
}

.filter-option:hover {
  background: rgba(206, 18, 18, 0.2);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.filter-option.active {
  background: var(--gradient-secondary);
  color: var(--white);
  border-color: var(--bright-red);
  box-shadow: var(--shadow-primary);
  transform: scale(1.05);
}

/* House-specific filter colors */
.gemunu-option.active {
  background: linear-gradient(135deg, var(--bright-red), #ff4444);
}

.tissa-option.active {
  background: linear-gradient(135deg, var(--deep-red), #aa0000);
}

.parakrama-option.active {
  background: linear-gradient(135deg, var(--light-gray), #ffffff);
  color: var(--primary-black);
}

.vijaya-option.active {
  background: linear-gradient(135deg, var(--primary-black), #333333);
  border-color: var(--white);
}

/* Analytics Section */
.analytics-section {
  max-width: 1400px;
  margin: 0 auto 2rem auto;
}

.year-selector-group {
  margin-bottom: 1.5rem;
}

/* Sport Breakdown Chart - Needs more height */
.sport-breakdown-container {
  height: auto !important;
  min-height: auto !important;
  padding: 1.5rem;
  padding-bottom: 2rem;
}

.sport-chart-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  margin-top: 1rem;
  overflow: hidden;
}

.sport-chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

/* House Rankings Table */
.house-rankings-table {
  margin-top: 3rem;
  overflow-x: auto;
  position: relative;
  z-index: 1;
  clear: both;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  overflow: hidden;
}

.rankings-table thead {
  background: var(--gradient-sports);
}

.rankings-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rankings-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--theme-accent-20);
  color: var(--text-secondary);
  font-size: 1rem;
}

.rankings-table tbody tr {
  transition: all 0.3s ease;
}

.rankings-table tbody tr:hover {
  background: var(--theme-accent-10);
}

.rankings-table tbody tr:nth-child(1) td:first-child {
  color: #ffd700;
  font-weight: 700;
}

.rankings-table tbody tr:nth-child(2) td:first-child {
  color: #c0c0c0;
  font-weight: 700;
}

.rankings-table tbody tr:nth-child(3) td:first-child {
  color: #cd7f32;
  font-weight: 700;
}

.rankings-table td:nth-child(2) {
  font-weight: 600;
  color: var(--white);
}

.rankings-table td:nth-child(3) {
  font-weight: 700;
  color: var(--theme-bright);
}

/* Chart Toggle */
.chart-type-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: left;
}

.toggle-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--theme-accent-20);
  color: var(--text-secondary);
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
  min-width: 150px;
  text-align: center;
}

.toggle-btn:hover {
  background: var(--theme-accent-10);
  color: var(--white);
  transform: translateY(-2px);
}

.toggle-btn.active {
  background: var(--gradient-secondary);
  color: var(--white);
  border-color: var(--theme-bright);
  box-shadow: var(--shadow-primary);
  transform: scale(1.05);
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 450px;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1.5rem;
  border: 2px solid rgba(206, 18, 18, 0.2);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}

.chart-title {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-title i {
  color: var(--bright-red);
}

.chart-footer {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  border-left: 4px solid var(--bright-red);
  backdrop-filter: blur(10px);
}

/* Sport Filter Buttons */
.sport-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.8rem;
}

.sport-filter-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--theme-accent-20);
  border-radius: 1.5rem;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.sport-filter-btn:hover {
  background: var(--theme-accent-10);
  color: var(--white);
  border-color: var(--theme-bright);
  transform: translateY(-2px);
}

.sport-filter-btn.active {
  background: linear-gradient(135deg, var(--bright-red), var(--deep-red));
  color: var(--white);
  border-color: var(--bright-red);
  box-shadow: 0 4px 15px var(--theme-glow);
}

/* Sport Selector Dropdown */
/* Sports by Sport Section - Fixed & Enhanced */
.sport-selector-container {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  border: 1px solid rgba(206, 18, 18, 0.2);
  animation: selectorFadeIn 0.5s ease-out;
  position: relative;
  z-index: 10;
}

@keyframes selectorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sport-selector-container .filter-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sport-selector-container .filter-label::before {
  content: "\f1e3";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--bright-red);
  animation: iconRotate 3s linear infinite;
}

@keyframes iconRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.sport-dropdown {
  background: linear-gradient(135deg,
      rgba(20, 20, 20, 0.9),
      rgba(30, 30, 30, 0.8));
  border: 2px solid rgba(206, 18, 18, 0.4);
  border-radius: 1rem;
  color: var(--white);
  padding: 1rem 2rem 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 280px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(8px);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23ef4444' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  padding-right: 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.sport-dropdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(239, 68, 68, 0.1),
      transparent);
  transition: left 0.5s ease;
}

.sport-dropdown:hover::before {
  left: 100%;
}

.sport-dropdown:hover {
  border-color: var(--bright-red);
  box-shadow:
    0 8px 30px rgba(206, 18, 18, 0.4),
    0 0 20px rgba(206, 18, 18, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.sport-dropdown:focus {
  outline: none;
  border-color: var(--bright-red);
  box-shadow:
    0 0 0 4px rgba(206, 18, 18, 0.2),
    0 8px 30px rgba(206, 18, 18, 0.4);
  transform: translateY(-2px);
}

.sport-dropdown option {
  background: linear-gradient(135deg, #1a1a1a, #252525);
  color: var(--white);
  padding: 1rem;
  font-weight: 500;
}

.sport-dropdown option:hover,
.sport-dropdown option:checked {
  background: linear-gradient(135deg, var(--deep-red), var(--bright-red));
}

/* Chart Container Enhancement */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(145deg,
      rgba(15, 15, 15, 0.95),
      rgba(25, 25, 25, 0.9));
  border-radius: 1.2rem;
  border: 1px solid var(--theme-accent-20);
  box-shadow:
    inset 0 4px 12px rgba(0, 0, 0, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  animation: chartContainerEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.chart-container canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 320px;
  display: block;
}

@keyframes chartContainerEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chart-container:hover {
  border-color: rgba(206, 18, 18, 0.5);
  box-shadow:
    inset 0 4px 12px rgba(0, 0, 0, 0.4),
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(206, 18, 18, 0.1);
}

.chart-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(206, 18, 18, 0.2);
  position: relative;
}

.chart-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gradient-secondary);
  border-radius: 2px;
  animation: titleUnderline 2s ease-in-out infinite alternate;
}

@keyframes titleUnderline {
  from {
    width: 60px;
  }

  to {
    width: 120px;
  }
}

.chart-title i {
  color: var(--bright-red);
  font-size: 1.3rem;
  animation: chartIconBounce 2s ease-in-out infinite;
}

@keyframes chartIconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* ============================================
   SLIDESHOW - MODERN SMOOTH ANIMATIONS
   ============================================ */

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 30px var(--theme-accent-10);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
}

.slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slideshow-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.slideshow-slide.prev {
  opacity: 0;
  transform: translateX(-100%) scale(0.95);
}

.slideshow-slide.next {
  opacity: 0;
  transform: translateX(100%) scale(0.95);
}

.slideshow-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.1);
  transition:
    transform 0.8s ease,
    filter 0.5s ease;
}

.slideshow-slide.active .slideshow-image {
  animation: slideZoom 8s ease-in-out infinite alternate;
}

@keyframes slideZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

.slideshow-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: var(--white);
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.slideshow-slide.active .slideshow-caption {
  opacity: 1;
  transform: translateY(0);
}

.slideshow-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.5s ease 0.4s;
}

.slideshow-slide.active .slideshow-title {
  transform: translateY(0);
  opacity: 1;
}

.slideshow-description {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.5s ease 0.5s;
}

.slideshow-slide.active .slideshow-description {
  transform: translateY(0);
  opacity: 1;
}

.slideshow-house {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--theme-accent-20);
  border: 1px solid var(--theme-accent-50);
  backdrop-filter: blur(10px);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.5s ease 0.6s;
}

.slideshow-slide.active .slideshow-house {
  transform: translateY(0);
  opacity: 1;
}

/* Arrow Navigation */
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.7;
}

.slideshow-arrow:hover {
  background: var(--gradient-sports);
  border-color: var(--theme-accent-50);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 5px 25px var(--theme-glow);
}

.slideshow-arrow.prev {
  left: 15px;
}

.slideshow-arrow.next {
  right: 15px;
}

.slideshow-arrow i {
  transition: transform 0.3s ease;
}

.slideshow-arrow.prev:hover i {
  transform: translateX(-3px);
}

.slideshow-arrow.next:hover i {
  transform: translateX(3px);
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
}

.slideshow-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  position: relative;
}

.slideshow-indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: var(--bright-red);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.slideshow-indicator:hover {
  background-color: var(--theme-accent-50);
  transform: scale(1.3);
}

.slideshow-indicator.active {
  background-color: var(--theme-bright);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px var(--theme-glow);
  transform: scale(1.2);
}

.slideshow-indicator.active::before {
  width: 100%;
  height: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--primary-black);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-secondary);
  border-radius: 6px;
  border: 2px solid var(--primary-black);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bright-red);
  box-shadow: var(--shadow-glow);
}

/* Animations */
@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 10px rgba(206, 18, 18, 0.8);
  }

  100% {
    text-shadow: 0 0 30px rgba(206, 18, 18, 1);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes headerShine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes cardShine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes trophyFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(206, 18, 18, 0.6));
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(206, 18, 18, 0.8));
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

@keyframes livePulse {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(206, 18, 18, 0.5);
  }

  50% {
    box-shadow: 0 0 20px rgba(206, 18, 18, 0.8);
  }
}

@keyframes progressShine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes scoreGlow {
  0% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  }

  100% {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.9);
  }
}

@keyframes trophyBounce {

  0%,
  100% {
    transform: rotate(15deg) scale(1);
  }

  50% {
    transform: rotate(25deg) scale(1.1);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 1rem;
  }

  .header-title {
    font-size: 1.5rem;
  }

  .sports-grid,
  .rankings-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 1.5rem;
  }

  .header-left {
    justify-content: center;
  }

  .nav-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-tab {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .page-title {
    font-size: 2rem;
    text-align: center;
    justify-content: center;
  }

  .sports-grid,
  .rankings-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sport-card,
  .ranking-card,
  .event-card {
    padding: 1.5rem;
  }

  .analytics-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .analytics-stat-card {
    padding: 1rem;
  }

  .stat-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .filters-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .chart-type-toggle {
    flex-direction: column;
    align-items: center;
  }

  .chart-container {
    padding: 1rem;
    border-radius: 1rem;
  }

  .chart-container canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 260px;
  }

  .chart-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
  }

  .slideshow-image {
    height: 300px;
  }

  .slideshow-caption {
    padding: 1.5rem;
  }

  .slideshow-title {
    font-size: 1.2rem;
  }

  /* Sport Filter Buttons Mobile */
  .sport-filter-buttons {
    gap: 0.4rem;
    padding: 0.4rem;
  }

  .sport-filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  .filter-options {
    gap: 0.5rem;
  }

  .filter-option {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .hcard {
    padding: 1.2rem;
    border-radius: 2rem;
  }

  .hcard-title {
    font-size: 1.3rem;
  }

  .hcard-subtitle {
    font-size: 0.85rem;
  }

  .chart-title {
    font-size: 1rem;
  }

  .sport-breakdown-container {
    padding: 1rem;
  }

  .sport-chart-wrapper {
    height: 200px;
    margin-top: 0.8rem;
  }

  .sport-chart-wrapper canvas {
    max-width: 100%;
  }

  .rankings-table th,
  .rankings-table td {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }

  /* Athletics mobile fix */
  .category-header {
    padding: 1.2rem;
    font-size: 1.1rem;
  }

  .category-events {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .athletics-container {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.8rem;
  }

  .club-icon {
    width: 2.2rem;
    height: 2.2rem;
  }

  .profile-icon {
    width: 2rem;
    height: 2rem;
  }

  .header-title {
    font-size: 0.95rem;
  }

  .header-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.02em;
  }

  .trophy-icon {
    font-size: 1.1rem;
  }

  .header-left {
    gap: 0.5rem;
  }

  .nav-tab {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .sport-card,
  .ranking-card,
  .event-card {
    padding: 1.2rem;
  }

  .sport-title {
    font-size: 1.2rem;
  }

  .total-score {
    font-size: 2.5rem;
  }

  /* Loading Screen Scaling */
  .loader-rings {
    width: 70px;
    height: 70px;
    margin-bottom: 1.8rem;
  }

  .ring-1 {
    width: 60px;
    height: 60px;
  }

  .ring-2 {
    width: 42px;
    height: 42px;
  }

  .ring-3 {
    width: 25px;
    height: 25px;
  }

  .loader-progress-container {
    width: 200px;
  }

  .loader-percentage {
    font-size: 1.6rem;
  }

  .loading-status {
    font-size: 0.7rem;
    margin-top: 1.8rem;
  }

  /* Score items */
  .score-item {
    padding: 0.75rem;
  }

  .house-score {
    font-size: 1.2rem;
  }

  .hcard {
    padding: 1rem;
  }

  .hcard-title {
    font-size: 1.2rem;
  }

  .hcard-title-wrapper {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .hcard-icon {
    font-size: 1.3rem;
  }

  /* Analytics 480px fixes */
  .analytics-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .analytics-stat-card {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .sport-selector-container {
    padding: 0.8rem;
  }

  .sport-dropdown {
    padding: 0.7rem 2rem 0.7rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 2rem;
  }

  .filter-option {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 9999px;
  }

  .chart-container {
    padding: 0.8rem;
    border-radius: 2rem;
  }

  .chart-container canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 200px;
  }

  .chart-title {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
  }

  .chart-title i {
    font-size: 1rem;
  }

  .sport-breakdown-container {
    padding: 0.8rem;
  }

  .sport-chart-wrapper {
    height: 160px;
    margin-top: 0.5rem;
  }

  .sport-chart-wrapper canvas {
    max-width: 100%;
  }

  .chart-title {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .sport-filter-buttons {
    gap: 0.3rem;
    padding: 0.3rem;
  }

  .sport-filter-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
  }

  .rankings-table th,
  .rankings-table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }

  .chart-footer {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  body {
    background: var(--gradient-dark);
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --bright-red: #ff0000;
    --deep-red: #cc0000;
  }

  .sport-card,
  .ranking-card,
  .event-card {
    border-width: 3px;
  }
}

/* Sport Date Badge */
.sport-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--bright-red);
  font-weight: 600;
  background: var(--theme-accent-10);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--theme-accent-20);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.3rem;
  width: fit-content;
}

.sport-date::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--bright-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--bright-red);
}

/* App Download Section - Redesigned */
.app-download-section {
  background: var(--surface-2);
  border: 1px solid rgba(255, 31, 31, 0.2);
  border-radius: var(--radius-md);
  padding: 3rem;
  margin: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.app-download-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-sports);
}

.app-section-title {
  font-family: var(--font-header);
  font-size: 2.5rem;
  font-weight: 900;
  font-style: italic;
  margin-bottom: 1rem;
}

.app-section-header {
  margin-bottom: 1.5rem;
  z-index: 2;
  position: relative;
}

.app-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.app-section-title i {
  color: var(--bright-red);
  font-size: 1.3rem;
}

.app-section-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  opacity: 0.9;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.app-files-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.app-file-card {
  background: linear-gradient(145deg,
      rgba(40, 40, 40, 0.9),
      rgba(25, 25, 25, 0.9));
  border: 2px solid rgba(239, 68, 68, 0.2);
  border-radius: 2.5rem;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
  cursor: pointer;
  min-width: 260px;
  max-width: 320px;
}

.app-file-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2.5rem;
  padding: 2px;
  background: linear-gradient(135deg,
      transparent,
      rgba(239, 68, 68, 0.3),
      transparent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-file-card:hover::before {
  opacity: 1;
}

.app-file-card:hover {
  transform: translateY(-8px);
  border-color: var(--bright-red);
  box-shadow:
    0 20px 50px rgba(239, 68, 68, 0.3),
    0 0 30px rgba(239, 68, 68, 0.15);
}

.file-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
}

.file-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px currentColor);
}

.apk-icon {
  background: linear-gradient(135deg, #3ddc84 0%, #2ecc71 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(61, 220, 132, 0.4);
}

.ios-icon {
  background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.file-info {
  text-align: center;
}

.file-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.file-extension {
  display: inline-block;
  background: linear-gradient(135deg,
      rgba(239, 68, 68, 0.2),
      rgba(185, 28, 28, 0.2));
  color: var(--bright-red);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(239, 68, 68, 0.4);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.file-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(239, 68, 68, 0.15);
}

.file-size,
.file-version {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.file-size {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.file-version {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg,
      var(--bright-red) 0%,
      var(--deep-red) 100%);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.download-button i {
  font-size: 1rem;
}

.download-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, #ff4444 0%, var(--bright-red) 100%);
}

.download-button:active {
  transform: translateY(-1px);
}

.app-features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2rem;
  border: 1px solid rgba(206, 18, 18, 0.2);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(206, 18, 18, 0.1);
  border-color: rgba(206, 18, 18, 0.4);
}

.feature-icon {
  font-size: 1.2rem;
  color: #ce1212;
}

.feature-text {
  font-size: 0.9rem;
  color: #f5f5f5;
  font-weight: 500;
}

/* Animations */
@keyframes sectionShine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .app-download-section {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .app-section-title {
    font-size: 1.5rem;
  }

  .app-files-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .app-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .app-download-section {
    padding: 1rem;
  }

  .app-section-title {
    font-size: 1.3rem;
  }

  .file-details {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

.instructions-section {
  background: linear-gradient(145deg,
      rgba(206, 18, 18, 0.15),
      rgba(129, 0, 0, 0.15));
  border: 2px solid rgba(206, 18, 18, 0.3);
  border-radius: 3rem;
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.instructions-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(206, 18, 18, 0.1),
      transparent);
  animation: sectionShine 4s infinite;
}

.instructions-header {
  margin-bottom: 2rem;
  z-index: 2;
  position: relative;
}

.instructions-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
  text-shadow: 0 0 15px rgba(206, 18, 18, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.instructions-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tab-card {
  background: var(--card-gradient);
  border: 1px solid rgba(206, 18, 18, 0.3);
  border-radius: 1.2rem;
  padding: 2rem;
  transition: all var(--transition-medium);
  position: relative;
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-align: left;
}

.tab-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--bright-red);
  box-shadow: var(--shadow-primary);
  background: linear-gradient(145deg,
      rgba(206, 18, 18, 0.1),
      rgba(129, 0, 0, 0.1));
}

.tab-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 10px currentColor);
  animation: iconFloat 3s ease-in-out infinite;
  text-align: center;
}

.tab-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 2px solid rgba(206, 18, 18, 0.3);
  padding-bottom: 0.5rem;
}

.tab-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.feature-item:hover {
  color: var(--white);
  transform: translateX(5px);
}

.feature-icon {
  color: var(--bright-red);
  font-weight: bold;
  margin-top: 0.1rem;
  min-width: 16px;
}

.quick-start {
  margin-top: 3rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--theme-accent-20);
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
}

.quick-start-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.quick-start-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step-card {
  background: var(--theme-accent-10);
  border: 1px solid var(--theme-accent-20);
  border-radius: 0.8rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.step-card:hover {
  background: var(--theme-accent-20);
  transform: translateY(-2px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gradient-secondary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tips-section {
  margin-top: 2.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--theme-accent-20);
  border-radius: 1rem;
  padding: 1.5rem;
  border-left: 4px solid var(--bright-red);
}

.tips-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tip-icon {
  color: var(--bright-red);
  font-weight: bold;
  margin-top: 0.2rem;
}

/* Animations */
@keyframes sectionShine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .instructions-section {
    padding: 1.5rem;
    margin: 1rem;
  }

  .instructions-title {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .tabs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .quick-start-steps {
    grid-template-columns: 1fr;
  }

  .tab-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .instructions-section {
    padding: 1rem;
  }

  .instructions-title {
    font-size: 1.5rem;
  }

  .tab-icon {
    font-size: 2.5rem;
  }

  .tab-name {
    font-size: 1.2rem;
  }
}

/* Coding Club Section - Industrial Sports Hub */
.coding-club-section {
  background: var(--surface-1);
  border: 4px solid var(--secondary-black);
  border-radius: var(--radius-md);
  padding: 3rem;
  margin: 4rem auto;
  max-width: 1200px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.coding-club-section::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle,
      rgba(239, 68, 68, 0.05) 0%,
      transparent 70%);
  pointer-events: none;
}

.section-header {
  margin-bottom: 1.5rem;
  z-index: 2;
  position: relative;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  text-shadow: 0 0 20px var(--theme-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.title-icon {
  font-size: 1.4rem;
  color: var(--theme-bright);
  filter: drop-shadow(0 0 15px var(--theme-glow));
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  opacity: 0.95;
  line-height: 1.5;
  font-weight: 500;
}

.section-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.club-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.website-card,
.social-card {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 2rem;
  position: relative;
  text-align: left;
  overflow: hidden;
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  pointer-events: all;
  border: 1px solid var(--theme-accent-10);
}

.overlay-text {
  background: var(--theme-accent-10);
  border: 2px solid var(--theme-bright);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 2rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 2px;
  box-shadow:
    0 0 20px var(--theme-glow),
    inset 0 0 10px var(--theme-glow-soft);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  animation: overlayPulse 2s ease-in-out infinite;
  transform: rotate(-5deg);
  backdrop-filter: blur(5px);
}

@keyframes overlayPulse {
  0% {
    transform: rotate(-5deg) scale(1);
  }

  50% {
    transform: rotate(-5deg) scale(1.02);
  }

  100% {
    transform: rotate(-5deg) scale(1);
  }
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-icon {
  font-size: 1.2rem;
  padding: 0.6rem;
  background: linear-gradient(135deg, var(--theme-bright), var(--deep-red));
  border-radius: 0.8rem;
  color: var(--white);
  box-shadow: 0 4px 15px var(--theme-glow);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.3rem 0 0 0;
  opacity: 0.9;
}

.website-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--theme-bright), var(--deep-red));
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 1rem 0;
  box-shadow: 0 6px 20px var(--theme-glow);
  position: relative;
  overflow: hidden;
}

.website-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.website-features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: none;
  background: none;
}

.website-features .feature-item:hover {
  color: var(--white);
}

.website-features .feature-icon {
  color: var(--theme-bright);
  font-size: 0.9rem;
  min-width: 22px;
  text-align: center;
}

.social-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-platform {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.social-platform .social-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
}

.social-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.social-handle {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: "Inter", sans-serif;
}

/* Platform-specific colors */
.social-platform.whatsapp .social-icon {
  color: #25d366;
}

.social-platform.facebook .social-icon {
  color: #1877f2;
}

.social-platform.instagram .social-icon {
  color: #e4405f;
}

.stats-section {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--theme-accent-20);
  background: rgba(25, 25, 25, 0.8);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--theme-bright);
  text-shadow: 0 0 15px var(--theme-glow);
  margin-bottom: 0.5rem;
  animation: counterGlow 2s ease-in-out infinite alternate;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Animations */
@keyframes sectionShine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px var(--theme-glow));
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px var(--theme-bright));
  }
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

@keyframes counterGlow {
  0% {
    text-shadow: 0 0 15px var(--theme-glow);
  }

  100% {
    text-shadow: 0 0 25px var(--theme-bright);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .coding-club-section {
    padding: 2rem;
    margin: 1rem;
  }

  .section-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .title-icon {
    font-size: 2rem;
  }

  .club-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .website-card,
  .social-card {
    padding: 2rem;
  }

  .social-platforms {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .coding-club-section {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card-icon {
    font-size: 2rem;
    padding: 0.6rem;
  }

  .card-title {
    font-size: 1.3rem;
  }

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

/* Filter Section Styling - Universal Pill Design */
.filter-section {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
  padding: 0 1rem;
  width: 100%;
}

.filter-options {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  /* Changed to wrap for better flow but will shrink items */
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

@media (max-width: 600px) {
  .filter-options {
    gap: 0.2rem;
    padding: 0.3rem;
  }
}

/* Filter Option - Responsive Padding */
.filter-option {
  padding: 0.6rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  .filter-option {
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }
}

.filter-option:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.filter-option.active {
  background: var(--theme-bright);
  color: var(--white);
  box-shadow: 0 4px 15px var(--theme-glow);
  border-color: var(--theme-accent-20);
}

/* House-specific active colors */
.filter-option[data-house="gemunu"].active {
  background: #3b82f6;
  /* Gemunu Blue */
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.filter-option[data-house="vijaya"].active {
  background: #ef4444;
  /* Vijaya Red */
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.filter-option[data-house="parakrama"].active {
  background: #fbbf24;
  /* Parakrama Yellow */
  color: #000;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.filter-option[data-house="tissa"].active {
  background: #10b981;
  /* Tissa Green */
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Year Badge - Bottom Right of Image */
.moment-year-badge {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  z-index: 5;
  letter-spacing: 0.5px;
}

/* No Data Message */
.no-data {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
  font-size: 1rem;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--glass-border);
  margin: 2rem 0;
  animation: fadeIn 0.5s var(--transition-normal) forwards;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.6;
}

/* ============================================
   ANALYTICS DASHBOARD - PREMIUM DESIGN
   ============================================ */

/* Universal Page Hero Section (for all pages) */
.page-hero {
  position: relative;
  padding: 4rem 2rem;
  margin: 2rem -1.5rem 3rem -1.5rem;
  background: linear-gradient(135deg,
      var(--theme-accent-10) 0%,
      var(--theme-accent-10) 50%,
      transparent 100%);
  border-bottom: 1px solid var(--theme-accent-20);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%,
      var(--theme-accent-10) 0%,
      transparent 50%),
    radial-gradient(circle at 80% 80%,
      var(--theme-accent-10) 0%,
      transparent 50%);
  /* animation: heroFloat 20s ease-in-out infinite; */
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  margin: 0.5rem auto 0;
  max-width: 600px;
}

.page-hero-bg {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      var(--theme-accent-10) 0%,
      transparent 70%);
  border-radius: 50%;
  transform: translateY(-50%);
  filter: blur(60px);
  pointer-events: none;
}

/* Page title inside hero */
.page-hero .page-title,
.analytics-hero .page-title {
  margin: 0 0 1rem 0;
}

/* Analytics Hero Section */
.analytics-hero {
  position: relative;
  padding: 4rem 2rem;
  margin: 2rem -1.5rem 3rem -1.5rem;
  background: linear-gradient(135deg,
      var(--theme-accent-10) 0%,
      var(--theme-accent-10) 50%,
      transparent 100%);
  border-bottom: 1px solid var(--theme-accent-20);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.analytics-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(var(--theme-accent-10) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%,
      var(--theme-accent-10) 0%,
      transparent 50%);
  /* animation: heroFloat 20s ease-in-out infinite; */
  pointer-events: none;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(30px, -30px);
  }

  66% {
    transform: translate(-20px, 20px);
  }
}

.analytics-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.analytics-title {
  margin: 0 0 1rem 0;
  font-size: 2.8rem;
}

.analytics-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 600px;
}

.analytics-hero-bg {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,
      rgba(255, 31, 31, 0.15) 0%,
      transparent 70%);
  border-radius: 50%;
  transform: translateY(-50%);
  filter: blur(60px);
  pointer-events: none;
}

/* Analytics Metrics Section */
.analytics-metrics-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.analytics-stat-card {
  position: relative;
  background: linear-gradient(135deg,
      rgba(14, 14, 14, 0.98) 0%,
      rgba(8, 8, 8, 0.95) 100%);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.analytics-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--bright-red),
      transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.analytics-stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--theme-accent-50);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px var(--theme-accent-10);
}

.analytics-stat-card:hover::before {
  opacity: 1;
}

.stat-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.stat-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--theme-accent-10);
  border: 1px solid var(--theme-accent-20);
  color: var(--theme-bright);
  transition: all 0.3s ease;
}

.analytics-stat-card:hover .stat-icon-wrapper {
  background: var(--theme-accent-20);
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 0 20px var(--theme-glow-soft);
}

.stat-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-header);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.stat-trend i {
  color: var(--bright-red);
}

.stat-card-glow {
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle,
      var(--theme-accent-20) 0%,
      transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.analytics-stat-card:hover .stat-card-glow {
  opacity: 1;
}

/* Metric Color Variations */
.metric-leader .stat-icon-wrapper {
  background: linear-gradient(135deg,
      var(--theme-accent-20),
      var(--theme-accent-10));
  border-color: var(--theme-accent-20);
  color: var(--theme-bright);
}

.metric-leader:hover .stat-icon-wrapper {
  box-shadow: 0 0 20px var(--theme-glow-soft);
}

.metric-points .stat-icon-wrapper {
  background: linear-gradient(135deg,
      var(--theme-accent-20),
      var(--theme-accent-10));
  border-color: var(--theme-accent-20);
  color: var(--theme-bright);
}

.metric-sports .stat-icon-wrapper {
  background: linear-gradient(135deg,
      var(--theme-accent-20),
      var(--theme-accent-10));
  border-color: var(--theme-accent-20);
  color: var(--theme-bright);
}

.metric-year .stat-icon-wrapper {
  background: linear-gradient(135deg,
      var(--theme-accent-20),
      var(--theme-accent-10));
  border-color: var(--theme-accent-20);
  color: var(--theme-bright);
}

/* Analytics Grid */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Analytics Cards */
.analytics-card {
  background: linear-gradient(165deg,
      rgba(15, 15, 15, 0.98) 0%,
      rgba(8, 8, 8, 0.95) 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.analytics-card:hover {
  border-color: var(--theme-accent-20);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-large {
  grid-column: span 4;
}

.card-medium {
  grid-column: span 4;
}

.card-table {
  grid-column: span 4;
}

.card-historical {
  grid-column: span 12;
}

@media (max-width: 1200px) {

  .card-large,
  .card-medium,
  .card-table {
    grid-column: span 12;
  }
}

/* Adjustments for the narrow 3-column view */
@media (min-width: 1201px) {
  .analytics-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .sport-chart-wrapper,
  .historical-chart-container,
  .radar-chart-body,
  canvas#current-year-chart {
    flex: 1;
    min-height: 400px;
    height: auto !important;
  }

  canvas#current-year-chart,
  canvas#sport-breakdown-chart,
  canvas#house-strengths-chart {
    width: 100% !important;
    height: 100% !important;
    min-height: 350px;
  }

  .modern-rankings-table td,
  .modern-rankings-table th {
    padding: 0.8rem 0.6rem;
    font-size: 0.8rem;
  }

  .table-house-info {
    gap: 0.6rem;
  }
}

/* Card Header */
.analytics-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-header-left i {
  font-size: 1.3rem;
  color: var(--theme-bright);
}

.card-header-left h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  font-family: var(--font-header);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  font-weight: 400;
}

.card-header-badge {
  padding: 0.4rem 1rem;
  background: var(--theme-accent-10);
  border: 1px solid var(--theme-accent-20);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--theme-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-header-badge.pulse {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--theme-accent-50);
  }

  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

/* Card Body */
.analytics-card-body {
  padding: 2rem;
}

/* Modern Rankings Table */
.rankings-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
}

/* Rankings Table Styling */
.modern-rankings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.8rem;
}

.modern-rankings-table th {
  padding: 1rem;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modern-rankings-table tr {
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.modern-rankings-table tr:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.01);
}

.modern-rankings-table td {
  padding: 1rem;
  vertical-align: middle;
}

.modern-rankings-table td:first-child {
  border-radius: 10px 0 0 10px;
}

.modern-rankings-table td:last-child {
  border-radius: 0 10px 10px 0;
}

.rank-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--theme-bright);
}

.table-house-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.house-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.house-indicator.gemunu {
  background: var(--gemunu-color);
  box-shadow: 0 0 10px var(--gemunu-color);
}

.house-indicator.vijaya {
  background: var(--vijaya-color);
  box-shadow: 0 0 10px var(--vijaya-color);
}

.house-indicator.parakrama {
  background: var(--parakrama-color);
  box-shadow: 0 0 10px var(--parakrama-color);
}

.house-indicator.tissa {
  background: var(--tissa-color);
  box-shadow: 0 0 10px var(--tissa-color);
}

.points-cell strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
}

.top-sport-cell {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.9rem;
}

/* Analytics Filters */
.analytics-filters {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-label i {
  color: var(--theme-bright);
}

/* Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.filter-pills.scrollable {
  flex-wrap: wrap;
  overflow-x: visible;
  padding-bottom: 0.5rem;
}

.filter-pills.scrollable::-webkit-scrollbar {
  height: 4px;
}

.filter-pills.scrollable::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.filter-pills.scrollable::-webkit-scrollbar-thumb {
  background: var(--theme-bright);
  border-radius: 2px;
}

.filter-pill {
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.filter-pill:hover {
  background: var(--theme-accent-10);
  border-color: var(--theme-accent-20);
  color: var(--white);
  transform: translateY(-2px);
}

.filter-pill.active {
  background: var(--theme-bright);
  border-color: var(--theme-bright);
  color: var(--white);
  box-shadow: 0 4px 12px var(--theme-glow-soft);
}

/* House-colored pills */
.gemunu-pill.active {
  background: var(--gemunu-color);
  border-color: var(--gemunu-color);
}

.vijaya-pill.active {
  background: var(--vijaya-color);
  border-color: var(--vijaya-color);
}

.parakrama-pill.active {
  background: var(--parakrama-color);
  border-color: var(--parakrama-color);
  color: #000;
}

.tissa-pill.active {
  background: var(--tissa-color);
  border-color: var(--tissa-color);
}

/* Chart Toggle Group */
.chart-toggle-group {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem;
  border-radius: 30px;
  width: fit-content;
}

.chart-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.chart-toggle-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.chart-toggle-btn.active {
  background: var(--theme-bright);
  color: var(--white);
  box-shadow: 0 2px 8px var(--theme-glow-soft);
}

.chart-toggle-btn i {
  font-size: 1rem;
}

/* Sport Filter Buttons */
.sport-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  overflow-x: visible;
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}

.sport-filter-buttons::-webkit-scrollbar {
  height: 4px;
}

.sport-filter-buttons::-webkit-scrollbar-thumb {
  background: var(--bright-red);
  border-radius: 10px;
}

.sport-filter-btn {
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sport-filter-btn:hover {
  background: var(--theme-accent-10);
  border-color: var(--theme-bright);
  transform: translateY(-2px);
}

.sport-filter-btn.active {
  background: var(--bright-red);
  border-color: var(--bright-red);
  box-shadow: 0 4px 15px var(--theme-glow);
}

.sport-filter-buttons button {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sport-filter-buttons button:hover {
  background: var(--theme-accent-10);
  border-color: var(--theme-accent-20);
  color: var(--white);
}

.sport-filter-buttons button.active {
  background: var(--bright-red);
  border-color: var(--bright-red);
  color: var(--white);
}

/* Chart Containers */
.sport-chart-wrapper,
.historical-chart-container,
.radar-chart-body {
  position: relative;
  flex: 1;
  min-height: 400px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

canvas#current-year-chart {
  flex: 1;
  min-height: 400px;
  width: 100% !important;
}

.chart-insights {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 31, 31, 0.05);
  border-left: 3px solid var(--bright-red);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.chart-insights i {
  color: var(--bright-red);
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {

  .page-hero,
  .analytics-hero {
    padding: 1.5rem 1rem;
    margin: 1rem 0 2rem 0;
    /* Removed negative margins for cleaner mobile look */
    border-radius: 16px;
    background: linear-gradient(135deg,
        rgba(255, 31, 31, 0.15),
        rgba(10, 10, 10, 0.8));
  }

  .page-title {
    font-size: 1.8rem;
    padding-left: 0.5rem;
    margin-bottom: 1rem;
  }

  .page-subtitle {
    font-size: 0.85rem;
    padding-left: 0.5rem;
  }

  .analytics-title {
    font-size: 2rem;
  }

  .analytics-subtitle {
    font-size: 0.9rem;
  }

  .analytics-metrics-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .analytics-stat-card {
    padding: 1.5rem;
  }

  .stat-icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .analytics-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .analytics-card-body {
    padding: 1.25rem;
  }

  .analytics-filters {
    padding: 1.5rem;
  }

  .filter-pills {
    gap: 0.5rem;
  }

  .filter-pill {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .chart-toggle-group {
    width: 100%;
  }

  .chart-toggle-btn {
    flex: 1;
    justify-content: center;
  }

  .modern-rankings-table {
    font-size: 0.85rem;
  }

  .modern-rankings-table th,
  .modern-rankings-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Animation for analytics elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.analytics-stat-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.analytics-stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.analytics-stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.analytics-stat-card:nth-child(3) {
  animation-delay: 0.3s;
}

.analytics-stat-card:nth-child(4) {
  animation-delay: 0.4s;
}

.analytics-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ============================================
   PWA INSTALL SECTION - PREMIUM DESIGN
   ============================================ */
.install-section {
  width: 100%;
  margin: 3rem 0 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem;
  box-sizing: border-box;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  z-index: 10;
}

.install-card {
  background: linear-gradient(90deg,
      rgba(25, 10, 10, 0.95) 0%,
      rgba(45, 10, 10, 0.9) 50%,
      rgba(25, 10, 10, 0.95) 100%);
  border: 1px solid rgba(255, 31, 31, 0.15);
  border-radius: 24px;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(255, 31, 31, 0.05);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.install-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 100%;
  background: radial-gradient(circle,
      rgba(239, 68, 68, 0.1) 0%,
      transparent 70%);
  pointer-events: none;
}

.install-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255, 31, 31, 0.5);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 31, 31, 0.2);
}

.install-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.install-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(255, 31, 31, 0.05);
  border: 1px solid rgba(255, 31, 31, 0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--bright-red);
  box-shadow: 0 10px 20px rgba(255, 31, 31, 0.1);
  transition: all 0.4s ease;
}

.install-card:hover .install-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 31, 31, 0.15);
  border-color: var(--bright-red);
}

.install-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.install-title {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.install-title span {
  color: var(--bright-red);
}

.install-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.premium-install-btn {
  background: linear-gradient(135deg, #8e1616 0%, #d84040 100%);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 25px rgba(216, 64, 64, 0.4);
}

.premium-install-btn i {
  font-size: 1.1rem;
}

.premium-install-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px var(--theme-glow-soft);
  filter: brightness(1.1);
}

.premium-install-btn:active {
  transform: translateY(-1px);
}

/* Analytics Section Divider - High Visibility */
.analytics-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 6rem 0 4rem 0;
  width: 100%;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
}

.divider-line {
  height: 2px;
  flex: 1;
  min-width: 50px;
  background: linear-gradient(90deg,
      transparent,
      var(--theme-bright) 50%,
      transparent);
  box-shadow: 0 0 10px var(--theme-glow-soft);
}

.divider-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #ffffff !important;
  font-family: var(--font-header);
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 1.1rem;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.divider-content span {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.divider-content i {
  color: var(--theme-bright);
  font-size: 1.6rem;
  filter: drop-shadow(0 0 15px var(--theme-glow));
  animation: dividerIconGlow 2s infinite ease-in-out;
}

@keyframes dividerIconGlow {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px var(--theme-glow-soft));
  }

  50% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 25px var(--theme-glow));
  }
}

/* Responsive install section */
@media (max-width: 900px) {
  .install-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .analytics-section-divider {
    margin: 3rem 0;
    gap: 1rem;
    padding: 0 1rem;
  }

  .divider-content {
    font-size: 0.9rem;
    letter-spacing: 2px;
    gap: 0.8rem;
  }
}

/* Athletics Score Rows - Compact Design */
.event-scores-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
}

.house-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.house-score-row:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(5px);
}

.house-info-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.house-icon {
  font-size: 0.9rem;
  opacity: 0.7;
}

.house-name-text {
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  font-style: normal;
  letter-spacing: 0.5px;
}

.house-points-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bright-red);
  text-shadow: 0 0 10px var(--theme-glow-soft);
}

/* House Specific Accents */
.house-score-row.gemunu {
  border-left-color: var(--gemunu-color);
}

.house-score-row.vijaya {
  border-left-color: var(--vijaya-color);
}

.house-score-row.parakrama {
  border-left-color: var(--parakrama-color);
}

.house-score-row.tissa {
  border-left-color: var(--tissa-color);
}

.house-score-row.gemunu .house-name-text {
  color: var(--gemunu-color);
}

.house-score-row.vijaya .house-name-text {
  color: var(--vijaya-color);
}

.house-score-row.parakrama .house-name-text {
  color: var(--parakrama-color);
}

.house-score-row.tissa .house-name-text {
  color: var(--tissa-color);
}

/* Quick Navigation Section */
.quick-nav-section {
  margin: 4rem 0;
  width: 100%;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.nav-card {
  background: linear-gradient(165deg,
      rgba(25, 25, 25, 0.9) 0%,
      rgba(10, 10, 10, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left,
      var(--theme-accent-10),
      transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-card:hover {
  transform: translateY(-8px);
  border-color: var(--theme-accent-20);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 15px var(--theme-accent-10);
}

.nav-card:hover::before {
  opacity: 1;
}

.nav-card-icon {
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.nav-card:hover .nav-card-icon {
  background: var(--theme-accent-10);
  border-color: var(--theme-accent-20);
  color: var(--theme-bright);
  transform: rotate(-5deg) scale(1.1);
}

.nav-card-info h3 {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-card-arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-card:hover .nav-card-arrow {
  color: var(--theme-bright);
  transform: translateX(5px);
}

/* Specific Card Accents */
.nav-card-icon.scores {
  color: #3b82f6;
}

/* Blue */
.nav-card-icon.moments {
  color: #fbbf24;
}

/* Yellow/Gold */
.nav-card-icon.analytics {
  color: #10b981;
}

/* Green */
.nav-card-icon.leaders {
  color: #8b5cf6;
}

/* Purple */
.nav-card-icon.historical {
  color: #f97316;
}

/* Orange */
.nav-card-icon.summary {
  color: #ef4444;
}

/* Bright Red */

.nav-card:hover .nav-card-icon.scores {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.4);
}

.nav-card:hover .nav-card-icon.moments {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

.nav-card:hover .nav-card-icon.analytics {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

.nav-card:hover .nav-card-icon.leaders {
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.4);
}

.nav-card:hover .nav-card-icon.historical {
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.4);
}

.nav-card:hover .nav-card-icon.summary {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Responsive Quick Nav */
@media (max-width: 992px) {
  .quick-nav-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-card {
    padding: 1.25rem;
  }
}

.radar-chart-body {
  min-height: 400px;
  position: relative;
}

/* Athletics Category Styling */
.category-group {
  margin-bottom: 5rem;
  position: relative;
  width: 100%;
}

.category-label-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 1.5rem 2.5rem;
  background: linear-gradient(90deg,
      rgba(216, 64, 64, 0.15) 0%,
      rgba(15, 15, 15, 0.8) 100%);
  border-radius: 100px;
  border: 1px solid rgba(255, 31, 31, 0.1);
  border-left: 6px solid var(--bright-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.category-accent {
  width: 15px;
  height: 15px;
  background: var(--bright-red);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--bright-red);
  animation: pulseGlow 2s infinite ease-in-out;
}

.category-label {
  font-family: var(--font-header);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white) !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.category-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Responsive Athletics Labels */
@media (max-width: 768px) {
  .category-label-wrapper {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    gap: 1rem;
  }

  .category-label {
    font-size: 1.6rem !important;
    letter-spacing: 1.5px;
  }

  .category-group {
    margin-bottom: 3.5rem;
  }

  .category-events {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
}

/* ============================================
   RESPONSIVE STYLES - Premium Mobile Design
   ============================================ */

/* Global Fixes */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ============================================
   TABLET & MOBILE BREAKPOINTS
   ============================================ */

/* Large Tablets & Desktop Scalability */
@media (max-width: 1200px) {
  .analytics-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 1.5rem 1rem;
  }
}

/* Standard Tablets */
@media (max-width: 992px) {

  .sports-grid,
  .rankings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

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

  .page-hero {
    padding: 2.5rem 1.5rem;
    margin: 1.5rem -1rem 2rem -1rem;
  }
}

/* Phones & Small Tablets */
/* Phones & Small Tablets */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    background: rgba(10, 10, 10, 0.95);
    /* Darker bg for mobile readability */
  }

  .header-brand {
    justify-content: center;
    width: 100%;
    flex-direction: column;
    gap: 0.8rem;
  }

  .brand-info {
    text-align: center;
    align-items: center;
  }

  .header-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    /* Keep tabs in one line if possible, or wrap if too many */
    background: transparent;
    padding: 0;
    border: none;
    overflow-x: auto;
    /* Allow scrolling if tabs overflow */
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 5px;
    /* Space for scrollbar if needed */
  }

  .nav-tab {
    padding: 0.6rem 0.4rem;
    flex: 1;
    /* Distribute space evenly */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: fit-content;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
  }

  .nav-tab.active {
    background: var(--bright-red);
  }

  .nav-tab i {
    font-size: 1rem;
    margin: 0;
  }

  .nav-tab span {
    display: block;
    /* Show text on mobile */
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .sports-grid,
  .rankings-grid,
  .moments-grid,
  .club-content-grid,
  .category-events,
  .athletics-full-stack {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .athletics-full-stack {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .category-label {
    font-size: 1.6rem !important;
    letter-spacing: 0.5px;
  }

  .category-label-wrapper {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .page-hero {
    padding: 2rem 1rem;
    margin: 1rem -1rem 1.5rem -1rem;
    text-align: center;
  }

  .page-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-title {
    font-size: 1.5rem !important;
    text-align: center !important;
    line-height: 1.2;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center;
  }

  /* Loading Screen Scaling */
  .loader-rings {
    width: 70px;
    height: 70px;
    margin-bottom: 2rem;
  }

  .ring-1 {
    width: 60px;
    height: 60px;
  }

  .ring-2 {
    width: 44px;
    height: 44px;
  }

  .ring-3 {
    width: 26px;
    height: 26px;
  }

  .loader-progress-container {
    width: 180px;
  }

  .loader-percentage {
    font-size: 1.5rem;
  }

  .loading-status {
    font-size: 0.65rem;
    margin-top: 1.8rem;
  }

  .page-subtitle {
    padding: 0;
    font-size: 0.9rem;
    text-align: center;
    max-width: 100%;
  }

  .install-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .install-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .premium-install-btn {
    width: 100%;
    justify-content: center;
  }

  /* Score items */
  .score-item {
    padding: 0.75rem;
  }

  .house-score {
    font-size: 1rem;
  }

  .rank-number {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
  }

  .ranking-card {
    padding: 1rem;
  }

  /* Full width for all grids on mobile */
  .sports-grid,
  .rankings-grid,
  .moments-grid,
  .club-content-grid,
  .category-events,
  .quick-nav-grid,
  .social-platforms,
  .analytics-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .page-title {
    font-size: 1.1rem !important;
  }

  .loader-rings {
    width: 55px;
    height: 55px;
    margin-bottom: 1.5rem;
  }

  .ring-1 {
    width: 46px;
    height: 46px;
  }

  .ring-2 {
    width: 32px;
    height: 32px;
  }

  .ring-3 {
    width: 20px;
    height: 20px;
  }

  .loader-progress-container {
    width: 150px;
  }

  .loader-percentage {
    font-size: 1.25rem;
  }

  .loading-status {
    font-size: 0.55rem;
    margin-top: 1.2rem;
  }

  .total-score {
    font-size: 2.5rem;
    /* Larger than 480px default for better impact */
  }

  .category-label {
    font-size: 1.8rem;
  }

  .event-name {
    font-size: 1.1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-section {
    align-items: center;
  }

  .footer-links {
    align-items: center;
  }
}

/* Specific Mobile Tweaks */
@media (max-width: 400px) {
  .header-title {
    font-size: 1rem;
  }

  .page-title {
    font-size: 1.2rem !important;
  }

  .nav-tab {
    padding: 0.5rem 0.3rem;
  }

  .club-icon,
  .profile-icon {
    width: 2rem;
    height: 2rem;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  .nav-tab {
    padding: 0.4rem 0.2rem;
  }

  .nav-tab i {
    margin: 0;
  }
}

/* PWA - Window Controls Overlay support */
:root {
  --wco-height: env(titlebar-area-height, 0px);
}

@media (display-mode: standalone) {
  body.wco-active header {
    padding-top: calc(var(--wco-height) + 1rem);
  }

  .header-brand {
    app-region: drag;
    -webkit-app-region: drag;
  }

  .header-nav,
  .share-pwa-btn {
    app-region: no-drag;
    -webkit-app-region: no-drag;
  }
}

.share-pwa-btn {
  background: rgba(255, 31, 31, 0.1);
  border: 1px solid rgba(255, 31, 31, 0.2);
  color: var(--white);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.share-pwa-btn:hover {
  background: var(--bright-red);
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--bright-red);
}

@media (max-width: 500px) {
  .share-pwa-btn {
    display: none;
  }
}

/* ============================================
   LEADERS PAGE - MODERN CARD DESIGN
   ============================================ */

/* Sports Captain Showcase - Premium Horizontal Design */
.sports-captain-showcase-wrapper {
  max-width: 1400px;
  margin: 1rem auto 1.5rem;
  padding: 0 1.5rem;
}

.section-main-title {
  font-family: "Oswald", sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 1.5rem 0 0 0;
  padding-bottom: 0.3rem;
  text-align: center;
  display: block;
  position: relative;
  z-index: 5;
}

.section-main-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--bright-red);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--bright-red);
}

/* Remove old before pseudo-element */
.section-main-title::before {
  display: none;
}

/* Section subtitle - reduced spacing */
.section-subtitle {
  margin-top: 0.1rem !important;
  margin-bottom: 0.5rem !important;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 0;
  line-height: 1.3;
}

.sports-captain-horizontal-card {
  display: grid;
  grid-template-columns: 450px 1fr;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  overflow: hidden;
  backdrop-filter: blur(15px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  min-height: 500px;
}

.captain-image-box {
  position: relative;
  width: 100%;
  height: 100%;
}

.captain-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.captain-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right,
      transparent 70%,
      rgba(10, 10, 10, 0.8) 100%);
}

.captain-info-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.captain-name-large {
  font-family: "Oswald", sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: white;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.captain-year-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 31, 31, 0.1);
  border: 1px solid rgba(255, 31, 31, 0.3);
  color: var(--bright-red);
  border-radius: 50px;
  font-weight: 700;
  margin-top: 1.5rem;
  width: fit-content;
}

.captain-description {
  margin-top: 2rem;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 600px;
}

@media (max-width: 768px) {
  .section-main-title {
    font-size: 1.8rem;
    margin: 1rem 0 0.8rem 0;
  }

  .section-main-title::after {
    width: 60px;
    height: 3px;
    bottom: -10px;
  }

  .sports-captain-horizontal-card {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 30px;
  }

  .captain-image-box {
    height: 300px;
    /* Reduced for mobile */
  }

  .captain-name-large {
    font-size: 1.9rem;
    /* Reduced to fit in 1 line */
  }

  .captain-info-content {
    padding: 2rem 1.5rem;
    text-align: center;
    align-items: center;
  }

  .captain-description {
    font-size: 1rem;
    margin-top: 1.5rem;
  }
}

.sports-captain-card {
  display: none;
  /* Hide old card */
}

/* Leaders Cards Grid */
.leaders-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  justify-content: center;
}

/* Leader Card */
.leader-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 3rem 2rem 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(216, 64, 64, 0.15);
}

/* .leader-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(216, 64, 64, 0.3);
} */

/* Circular Photo with Colored Border */
.leader-photo-circle {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem auto;
  border-radius: 50%;
  border: 8px solid;
  padding: 6px;
  background: #111;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

/* .leader-card:hover .leader-photo-circle {
  transform: scale(1.05);
} */

.leader-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Role Badge */
.leader-role-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

/* .leader-card:hover .leader-role-badge {
  transform: scale(1.05);
} */

/* Leader Name */
.leader-name {
  font-family: "Outfit", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

/* Year Info */
.leader-year-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  font-weight: 500;
}

.leader-year-info i {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Awards Section Header */
.awards-section-header {
  grid-column: 1 / -1;
  margin: 4rem 0 2rem 0;
  text-align: center;
}

.awards-section-header h2 {
  font-family: "Oswald", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0;
  position: relative;
  display: inline-block;
}

.awards-section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--bright-red);
  border-radius: 2px;
}

/* Award Card Specific Styling */
.award-card {
  background: linear-gradient(135deg,
      rgba(255, 215, 0, 0.05) 0%,
      rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 215, 0, 0.1);
}

.award-icon-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.25rem;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  z-index: 10;
  animation: awardPulse 2s infinite;
}

@keyframes awardPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.6);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  }
}

.award-title-badge {
  padding: 0.8rem 2rem !important;
  font-size: 0.95rem !important;
  letter-spacing: 1px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.award-recipient-name {
  font-size: 2rem !important;
  margin-bottom: 0.5rem !important;
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.award-description-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 1.5rem 0 2rem 0;
  font-style: italic;
  padding: 0 1rem;
  border-left: 2px solid var(--bright-red);
}

@media (max-width: 768px) {
  .award-icon-badge {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    top: 1rem;
    right: 1rem;
  }

  .award-recipient-name {
    font-size: 1.6rem !important;
  }

  .award-description-text {
    font-size: 1rem;
    margin: 1rem 0 1.5rem 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .leaders-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .leader-card {
    padding: 2.5rem 1.5rem 2rem 1.5rem;
  }

  .leader-photo-circle {
    width: 160px;
    height: 160px;
    border-width: 6px;
  }

  .leader-name {
    font-size: 1.5rem;
  }

  .awards-section-header h2 {
    font-size: 1.8rem;
    /* Smaller for mobile */
    letter-spacing: 2px;
  }

  .awards-section-header h2::after {
    width: 60px;
    height: 3px;
    bottom: -8px;
  }
}

@media (max-width: 480px) {
  .leaders-cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .leader-photo-circle {
    width: 140px;
    height: 140px;
  }

  .leader-name {
    font-size: 1.25rem;
  }
}

/* Year Filter - Curved Top Design */
.year-filter-curved {
  background: linear-gradient(135deg,
      var(--surface-2) 0%,
      var(--surface-1) 100%);
  border-radius: 30px;
  padding: 2rem;
  margin: 0 1rem 3rem 1rem;
  border: 1px solid rgba(158, 13, 13, 0.2);
  position: relative;
  overflow: hidden;
}

.year-filter-curved::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bright-red) 0%, transparent 100%);
  border-radius: 30px 30px 0 0;
}

.year-filter-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.year-filter-label i {
  color: var(--bright-red);
  font-size: 1.3rem;
}

.year-buttons-curved {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.year-btn-curved {
  flex: 1;
  min-width: 120px;
  padding: 1.25rem 2rem;
  background: var(--surface-1);
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.year-btn-curved::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bright-red) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
  opacity: 0.2;
}

.year-btn-curved:hover::before {
  width: 300px;
  height: 300px;
}

.year-btn-curved:hover {
  border-color: var(--theme-bright);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 40px var(--theme-glow-soft);
}

.year-btn-curved.active {
  background: linear-gradient(135deg, var(--bright-red) 0%, #7a0a0a 100%);
  border-color: var(--bright-red);
  color: white;
  box-shadow:
    0 0 40px var(--theme-glow),
    0 10px 30px rgba(0, 0, 0, 0.4);
  transform: scale(1.08);
}

/* Sports Captain Showcase - Large Feature */
.sports-captain-showcase {
  margin: 0 1rem 3rem 1rem;
  min-height: 400px;
}

.sports-captain-card-large {
  position: relative;
  height: 500px;
  background: var(--surface-1);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sports-captain-card-large:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.sports-captain-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.sports-captain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(158, 13, 13, 0.4) 0%,
      rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

.sports-captain-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  z-index: 2;
}

.sports-captain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 215, 0, 0.9);
  color: #000;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
}

.sports-captain-badge i {
  font-size: 1.2rem;
}

.sports-captain-name {
  font-family: var(--font-header);
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
}

.sports-captain-year {
  font-size: 1.3rem;
  color: var(--bright-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* House Filter - Curved Pills */
.house-filter-curved {
  background: var(--surface-2);
  border-radius: 30px;
  padding: 2rem;
  margin: 0 1rem 3rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.house-filter-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.house-filter-label i {
  color: var(--bright-red);
  font-size: 1.3rem;
}

.house-filter-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.house-filter-btn {
  flex: 1;
  min-width: 140px;
  padding: 1.25rem 1.75rem;
  background: var(--surface-1);
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.filter-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.house-filter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.house-filter-btn:hover .filter-icon {
  transform: scale(1.2) rotate(10deg);
}

.house-filter-btn.gemunu.active,
.house-filter-btn.gemunu:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.house-filter-btn.vijaya.active,
.house-filter-btn.vijaya:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: white;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.house-filter-btn.parakrama.active,
.house-filter-btn.parakrama:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-color: #fbbf24;
  color: #000;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
}

.house-filter-btn.tissa.active,
.house-filter-btn.tissa:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: white;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.house-filter-btn.active {
  transform: scale(1.05);
}

/* Past Content Grid - Unified Display */
.past-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

/* Content Card - Curved Design */
.past-content-card {
  position: relative;
  height: 380px;
  background: var(--surface-1);
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.past-content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.past-content-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: var(--house-color);
}

.past-content-photo-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  overflow: hidden;
  border-radius: 30px 30px 60% 60% / 30px 30px 20% 20%;
}

.past-content-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.past-content-card:hover .past-content-photo {
  transform: scale(1.1);
}

.past-content-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem;
  z-index: 2;
  background: linear-gradient(to top, var(--surface-1) 60%, transparent 100%);
}

.past-content-category {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--house-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 15px rgba(var(--house-color), 0.4);
}

.past-content-name {
  font-family: var(--font-header);
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.4rem 0;
  line-height: 1.2;
}

.past-content-role {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {

  .year-buttons-curved,
  .house-filter-buttons {
    flex-direction: column;
  }

  .year-btn-curved,
  .house-filter-btn {
    width: 100%;
  }

  .sports-captain-card-large {
    height: 400px;
  }

  .sports-captain-name {
    font-size: 2.5rem;
  }

  .past-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Empty State */
.past-content-grid:empty::after {
  content: "No data available for selected filters";
  display: block;
  text-align: center;
  padding: 4rem;
  color: var(--text-muted);
  font-size: 1.2rem;
  grid-column: 1 / -1;
}

/* Leaders Nav Card Icon */
.nav-card-icon.leaders {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: white;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.nav-card:hover .nav-card-icon.leaders {
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.5);
  transform: scale(1.1) rotate(5deg);
}

/* Historical Nav Card Icon */
.nav-card-icon.historical {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.nav-card:hover .nav-card-icon.historical {
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.5);
  transform: scale(1.1) rotate(5deg);
}

/* ============================================
   MISSION & VISION SECTION
   ============================================ */
.mission-vision-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg,
      rgba(15, 15, 15, 0) 0%,
      rgba(15, 15, 15, 0.8) 100%);
  position: relative;
  overflow: hidden;
}

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

.mv-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.mv-title-main {
  font-family: var(--font-header);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: white;
  letter-spacing: -1px;
}

.mv-title-main span {
  color: var(--bright-red);
  font-style: italic;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.mv-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  backdrop-filter: blur(10px);
}

.mv-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--theme-accent-20);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.mv-card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--deep-red), var(--theme-bright));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 2rem auto;
  box-shadow: 0 10px 20px var(--theme-glow-soft);
}

.mv-label {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.mv-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 500;
}

/* ============================================
   SPORTS OATH SECTION
   ============================================ */
.sports-oath-section {
  padding: 5rem 1.5rem 2rem 1.5rem;
  background: radial-gradient(circle at center,
      rgba(216, 64, 64, 0.05) 0%,
      transparent 70%);
}

.oath-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 4rem;
  backdrop-filter: blur(20px);
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.oath-container::before {
  content: '\"';
  position: absolute;
  top: 2rem;
  left: 3rem;
  font-family: serif;
  font-size: 8rem;
  color: var(--theme-accent-10);
  line-height: 1;
}

.oath-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.oath-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--theme-accent-10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--theme-bright);
  font-size: 1.8rem;
}

.oath-title {
  font-family: var(--font-header);
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: white;
  letter-spacing: 2px;
}

.oath-content-wrapper {
  text-align: center;
}

.oath-english {
  margin-bottom: 2rem;
}

.oath-english p {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-secondary);
  font-weight: 500;
  font-style: italic;
  text-align: center;
}

.oath-sinhala p {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 2.2;
  color: var(--text-secondary);
  text-align: center;
}

.oath-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
}

.oath-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--theme-accent-20),
      transparent);
}

.oath-sub-icon {
  color: var(--theme-bright);
  font-size: 1.2rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .oath-container {
    padding: 2.5rem 1.5rem;
  }

  .oath-title {
    font-size: 1.8rem;
  }

  .oath-english p,
  .oath-sinhala p {
    font-size: 1rem;
  }
}

/* ============================================
   SPORTS COMMITTEE SECTION
   ============================================ */
.sports-committee-section {
  padding: 1rem 2rem 4rem;
  background: linear-gradient(180deg,
      rgba(15, 15, 15, 0) 0%,
      rgba(15, 15, 15, 0.5) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header-title {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
}

.section-main-title {
  font-family: var(--font-header);
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
  padding-bottom: 0;
  position: relative;
  display: inline-block;
  text-align: center;
}

.section-main-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--bright-red),
      transparent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.75rem;
  margin-bottom: 0rem;
  padding-top: 0;
  text-align: center;
  display: block;
  width: 100%;
}

/* ============================================
   PRINCIPAL HORIZONTAL CARD
   ============================================ */
.principal-showcase-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.principal-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.principal-section-title {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  position: relative;
  display: inline-block;
}

.principal-section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      var(--bright-red),
      transparent);
  border-radius: 2px;
}

.principal-horizontal-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.principal-horizontal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  border-radius: 24px;
  z-index: 0;
}

.principal-horizontal-card:hover {
  transform: translateY(-8px) scale(1.01);
  background: rgba(20, 20, 20, 0.5);
  box-shadow:
    0 25px 70px var(--theme-accent-20),
    0 0 0 1px var(--theme-accent-20) inset,
    0 0 50px var(--theme-accent-10);
  border-color: var(--theme-accent-50);
}

.principal-image-box {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  z-index: 1;
}

.principal-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.principal-horizontal-card:hover .principal-image-box img {
  transform: scale(1.05);
}

.principal-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(15, 15, 15, 0.5) 100%);
  pointer-events: none;
}

.principal-info-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.principal-name-large {
  font-family: var(--font-header);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.principal-role-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--gradient-sports);
  color: #fff;
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--theme-glow);
  width: fit-content;
}

.principal-message {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.5rem 0 0 0;
  text-align: justify;
  max-width: none;
  column-count: 1;
  column-gap: 2rem;
}

@media (min-width: 1024px) {
  .principal-message {
    font-size: 1rem;
    line-height: 1.9;
  }
}

/* Responsive for Principal Card */
@media (max-width: 768px) {
  .principal-horizontal-card {
    grid-template-columns: 1fr;
  }

  .principal-image-box {
    min-height: 280px;
  }

  .principal-info-content {
    padding: 2rem;
  }

  .principal-name-large {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .principal-image-box {
    min-height: 240px;
  }

  .principal-info-content {
    padding: 1.5rem;
  }

  .principal-name-large {
    font-size: 1.4rem;
  }
}

/* Coming Soon Message */
.coming-soon-message {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 600px;
  margin: 2rem auto;
}

.coming-soon-message i {
  font-size: 4rem;
  color: var(--bright-red);
  margin-bottom: 1.5rem;
  display: block;
}

.coming-soon-message h3 {
  font-family: var(--font-header);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.coming-soon-message p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Sports Captain Card */
.sports-captain-year-title {
  font-family: var(--font-header);
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.sports-captain-year-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: var(--bright-red);
}

.sports-captain-card {
  display: flex;
  gap: 3rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.captain-photo-section {
  flex: 0 0 300px;
}

.captain-photo-section img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.captain-info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.captain-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--bright-red);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.captain-message {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}

@media (max-width: 768px) {
  .sports-captain-card {
    flex-direction: column;
    padding: 2rem;
  }

  .captain-photo-section {
    flex: none;
    width: 100%;
  }

  .section-main-title,
  .sports-captain-year-title {
    font-size: 2rem;
  }
}

.sports-committee-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Committee Rows */
.committee-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Deputy Principals Row - 4 columns */
.deputy-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

/* Assistant Principals Row - 3 columns */
.assistant-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 950px;
  margin: 0 auto;
  justify-items: center;
}

/* Others Row - auto-fill */
.others-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  justify-items: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .deputy-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .assistant-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .deputy-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 480px) {

  .deputy-row,
  .assistant-row {
    grid-template-columns: 1fr;
  }
}

.committee-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem 1.8rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 260px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.committee-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  border-radius: 24px;
}

.committee-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
}

.committee-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--theme-accent-20);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 40px var(--theme-accent-10),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.committee-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--theme-accent-20);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 0 4px rgba(255, 255, 255, 0.05);
}

.committee-card:hover .committee-photo {
  border-color: var(--bright-red);
  transform: scale(1.08);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 30px var(--theme-accent-20);
}

.committee-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.committee-card:hover .committee-photo img {
  transform: scale(1.05);
}

.committee-name {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.committee-role {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  padding: 0.6rem 0.8rem;
  background: var(--theme-accent-10);
  border-radius: 8px;
  display: block;
  margin: 0.75rem auto 0 auto;
  text-align: center;
  line-height: 1.3;
  max-width: 95%;
  word-wrap: break-word;
  white-space: normal;
}

/* Principal Card - Larger Prominent Style */
.principal-card {
  grid-column: 1 / -1;
  max-width: 600px;
  padding: 2.5rem 3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--theme-accent-20);
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.4),
    0 0 40px var(--theme-accent-10),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.principal-card .committee-photo {
  width: 160px;
  height: 160px;
  border: 4px solid var(--theme-accent-50);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 30px var(--theme-accent-20);
}

.principal-card .committee-name {
  font-size: 1.3rem;
  margin-top: 0.5rem;
}

.principal-card .committee-role {
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--deep-red), var(--bright-red));
  color: white;
}

.principal-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--theme-accent-50);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.5),
    0 0 60px var(--theme-accent-20),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.principal-card:hover .committee-photo {
  transform: scale(1.1);
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.6),
    0 0 40px var(--theme-accent-20);
}

/* ============================================
   HOUSE MASTERS & MISTRESSES SECTION
   ============================================ */
.house-masters-section {
  padding: 2rem 2rem 4rem;
  background: radial-gradient(circle at center,
      var(--theme-accent-10) 0%,
      transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.house-masters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  justify-items: center;
}

.house-master-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.house-master-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  border-radius: 24px;
}

.house-master-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 50px var(--theme-accent-10),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: var(--theme-accent-20);
}

.house-master-header {
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.house-master-house-name {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.house-master-members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.house-master-member {
  text-align: center;
}

.house-master-photo {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.05);
}

.house-master-card:hover .house-master-photo {
  transform: scale(1.1);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 25px var(--theme-accent-20);
}

.house-master-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.house-master-card:hover .house-master-photo img {
  transform: scale(1.05);
}

.house-master-name {
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.house-master-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  display: inline-block;
}

/* ============================================
   STUDENT LEADERS SECTION
   ============================================ */
.student-leaders-section {
  padding: 4rem 2rem;
  background: linear-gradient(180deg,
      rgba(15, 15, 15, 0.5) 0%,
      rgba(15, 15, 15, 0) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.student-leaders-category {
  margin-bottom: 3rem;
  width: 100%;
  max-width: 1200px;
}

.category-title {
  font-family: var(--font-header);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2.5rem;
  position: relative;
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--bright-red),
      transparent);
  border-radius: 2px;
}

.student-leaders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  justify-items: center;
}

.student-leader-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  width: 100%;
  max-width: 260px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.student-leader-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  border-radius: 24px;
}

.student-leader-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.6;
}

.student-leader-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px var(--theme-accent-10),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: var(--theme-accent-20);
}

.student-leader-house-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.student-leader-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 4px solid;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 0 4px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.student-leader-card:hover .student-leader-photo {
  transform: scale(1.1);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.5),
    0 0 30px var(--theme-accent-20);
}

.student-leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.student-leader-card:hover .student-leader-photo img {
  transform: scale(1.05);
}

.student-leader-name {
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.student-leader-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  display: inline-block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sports-committee-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .house-masters-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .student-leaders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .student-leader-card {
    max-width: 280px;
  }
}

@media (max-width: 768px) {

  .sports-committee-section,
  .house-masters-section,
  .student-leaders-section {
    padding: 3rem 1.5rem;
  }

  .section-header-title {
    margin-bottom: 2rem;
  }

  .section-main-title {
    font-size: 2rem;
  }

  .student-leaders-section .section-main-title {
    margin-bottom: 0;
    padding-bottom: 0.5rem;
  }

  .student-leaders-section .section-subtitle {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .student-leaders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .student-leader-card {
    max-width: 100%;
    padding: 1.5rem 1rem;
  }

  .student-leader-photo {
    width: 100px;
    height: 100px;
  }

  .category-title {
    font-size: 1.4rem;
  }

  .committee-card {
    max-width: 100%;
  }

  .house-master-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .sports-committee-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .committee-card {
    padding: 1.25rem 1rem;
  }

  .committee-photo {
    width: 90px;
    height: 90px;
  }

  .student-leaders-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .student-leader-card {
    max-width: 300px;
  }

  .student-leader-photo {
    width: 110px;
    height: 110px;
  }

  .house-masters-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SPORTS CAPTAIN SHOWCASE SECTION
   ============================================ */
.sports-captain-showcase-wrapper {
  margin: 3rem auto;
  padding: 0 2rem;
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-main-title {
  font-family: var(--font-header);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3.5rem;
  text-align: center;
  position: relative;
  padding: 0;
  width: 100%;
}

.section-main-title::before {
  display: none;
}

.sports-captain-horizontal-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 0;
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 0;
  margin-bottom: 3rem;
  position: relative;
}

.sports-captain-horizontal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
  border-radius: 24px;
  z-index: 0;
}

.sports-captain-horizontal-card:hover {
  transform: translateY(-8px) scale(1.01);
  background: rgba(20, 20, 20, 0.5);
  box-shadow:
    0 25px 70px var(--theme-accent-20),
    0 0 0 1px var(--theme-accent-20) inset,
    0 0 60px var(--theme-accent-10);
  border-color: var(--theme-accent-50);
}

.captain-image-box {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 450px;
  overflow: hidden;
  z-index: 1;
}

.captain-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.sports-captain-horizontal-card:hover .captain-image-box img {
  transform: scale(1.05);
}

.captain-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(15, 15, 15, 0.5) 100%);
  pointer-events: none;
}

.captain-info-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.captain-name-large {
  font-family: var(--font-header);
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.captain-year-badge {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--gradient-sports);
  color: #fff;
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--theme-glow);
  width: fit-content;
}

.captain-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sports-captain-horizontal-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .captain-image-box {
    min-height: 400px;
  }

  .captain-info-content {
    padding: 2.5rem;
  }

  .captain-name-large {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .section-main-title {
    font-size: 2rem;
    padding-left: 1rem;
  }

  .section-main-title::before {
    width: 4px;
  }

  .captain-image-box {
    min-height: 350px;
  }

  .captain-info-content {
    padding: 2rem;
  }

  .captain-name-large {
    font-size: 2rem;
  }

  .captain-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-main-title {
    font-size: 1.5rem;
  }

  .captain-image-box {
    min-height: 300px;
  }

  .captain-info-content {
    padding: 1.5rem;
  }

  .captain-name-large {
    font-size: 1.75rem;
  }

  .captain-year-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .captain-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Past Year Summary Styles */
.card-summary {
  margin-top: 2rem;
  background: var(--card-gradient) !important;
  border: 1px solid var(--glass-border);
}

.summary-year-filter-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  padding: 0;
}

.summary-year-filter {
  display: flex;
  background: rgba(25, 25, 25, 0.6);
  backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.summary-year-filter .filter-pill {
  border: none;
  background: transparent;
  padding: 0.8rem 2rem;
  border-radius: 35px;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  box-shadow: none;
  transform: none;
}

.summary-year-filter .filter-pill:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  transform: none;
}

.summary-year-filter .filter-pill.active {
  background: linear-gradient(135deg, var(--deep-red), var(--bright-red));
  color: var(--white);
  box-shadow: 0 4px 20px var(--theme-accent-20);
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.summary-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.2rem;
  transition: all 0.3s ease;
}

.summary-item-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--theme-accent-20);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.summary-item-title {
  color: var(--theme-bright);
  font-family: var(--font-header);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--theme-accent-20);
  padding-bottom: 0.4rem;
  text-transform: uppercase;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.summary-label {
  color: var(--text-muted);
}

.summary-value {
  font-weight: 700;
  color: var(--text-primary);
}

.best-athletes-card-wrapper {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.best-athletes-card {
  background: linear-gradient(135deg,
      var(--theme-accent-10),
      rgba(0, 0, 0, 0.3));
  border: 1px solid var(--theme-accent-20);
  padding: 1.5rem;
  border-radius: 12px;
}

.best-athletes-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-header);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.best-athletes-title i {
  color: #fbbf24;
}

.athlete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.athlete-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 15px;
  border-left: 2px solid var(--theme-bright);
}

.athlete-cat {
  font-size: 0.8rem;
  color: var(--theme-bright);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.athlete-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* House Text Colors */
.house-text-vijaya {
  color: var(--vijaya-color) !important;
  font-weight: 700;
}

.house-text-gemunu {
  color: var(--gemunu-color) !important;
  font-weight: 700;
}

.house-text-parakrama {
  color: var(--parakrama-color) !important;
  font-weight: 700;
}

.house-text-tissa {
  color: var(--tissa-color) !important;
  font-weight: 700;
}

/* ============================================
   BLUR OVERLAY - Mobile/Tablet Responsive Fix
   ============================================ */
.blur-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 15px !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.blur-overlay>div {
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
  max-width: 100% !important;
  word-wrap: break-word !important;
}

.blur-overlay .please-wait-text {
  color: var(--theme-bright) !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  display: inline-block !important;
  margin-top: 8px !important;
}

/* Typing Dots Animation for Please Wait */
.dots-animation::after {
  content: "";
  animation: typingDots 1.5s steps(4, end) infinite;
}

@keyframes typingDots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75% {
    content: "...";
  }

  100% {
    content: "";
  }
}

/* Mobile responsive - blur overlay */
@media (max-width: 768px) {
  .blur-overlay {
    padding: 15px !important;
    border-radius: 12px !important;
  }

  .blur-overlay>div {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }

  .blur-overlay>div br {
    display: block;
  }

  .blur-overlay .please-wait-text {
    font-size: 0.9rem !important;
    margin-top: 6px !important;
    display: block !important;
  }

  .sport-scores-container {
    position: relative !important;
    min-height: 100px !important;
  }
}

@media (max-width: 480px) {
  .blur-overlay {
    padding: 12px !important;
    border-radius: 10px !important;
  }

  .blur-overlay>div {
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
  }

  .blur-overlay .please-wait-text {
    font-size: 0.85rem !important;
  }
}

.house-text-default {
  color: var(--text-primary);
}

/* ============================================
   LEADERS PAGE - MOBILE RESPONSIVE FIXES
   ============================================ */

/* Section Header Title - Improved Centering */
.section-header-title {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
  width: 100%;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-top: 0.5rem;
  text-align: center;
}

/* Sports Committee Section - Mobile Fix */
.sports-committee-section {
  padding: 2rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Principal Showcase Wrapper - Mobile Fix */
.principal-showcase-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Sports Captain Showcase Wrapper - Mobile Improvements */
@media (max-width: 768px) {
  .sports-captain-showcase-wrapper {
    padding: 0 1rem;
    margin: 2rem auto;
  }

  #sports-captain-title-container {
    text-align: center;
    padding: 0 0.5rem;
  }

  #sports-captain-title-container h2 {
    font-size: 1.6rem !important;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .sports-captain-showcase-wrapper {
    padding: 0 0.75rem;
    margin: 1.5rem auto;
  }

  #sports-captain-title-container h2 {
    font-size: 1.4rem !important;
  }

  .captain-name-large {
    font-size: 1.5rem !important;
  }

  .captain-year-badge {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  .captain-description {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .captain-image-box {
    min-height: 250px !important;
  }
}

/* Sports Committee Grid - Mobile Improvements */
@media (max-width: 768px) {
  .sports-committee-grid {
    padding: 0 0.5rem;
    gap: 2rem;
  }

  .committee-row {
    gap: 1rem;
    padding: 0;
  }

  .deputy-row,
  .assistant-row,
  .others-row {
    gap: 1rem;
    padding: 0 0.5rem;
    justify-content: center;
  }

  .committee-card {
    max-width: 100%;
    padding: 1.5rem 1rem;
    margin: 0 auto;
  }

  .committee-photo {
    width: 85px;
    height: 85px;
    margin-bottom: 1rem;
  }

  .committee-name {
    font-size: 0.85rem;
  }

  .committee-role {
    font-size: 0.6rem;
    padding: 0.5rem 0.6rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .sports-committee-section {
    padding: 1.5rem 0.75rem 2.5rem;
  }

  .deputy-row,
  .assistant-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .others-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .committee-card {
    padding: 1.25rem 0.75rem;
    border-radius: 18px;
  }

  .committee-photo {
    width: 70px;
    height: 70px;
    border-width: 2px;
  }

  .committee-name {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }

  .committee-role {
    font-size: 0.55rem;
    padding: 0.4rem 0.5rem;
  }
}

/* House Masters Section - Mobile Improvements */
@media (max-width: 768px) {
  .house-masters-section {
    padding: 2rem 1rem 3rem;
  }

  .house-masters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .house-master-card {
    max-width: 100%;
    border-radius: 18px;
  }

  .house-master-header {
    padding: 1.25rem 1rem;
  }

  .house-master-house-name {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .house-master-members {
    padding: 1rem;
    gap: 0.75rem;
  }

  .house-master-photo {
    width: 70px;
    height: 70px;
    margin-bottom: 0.75rem;
    border-width: 2px;
  }

  .house-master-name {
    font-size: 0.75rem;
  }

  .house-master-role {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .house-masters-section {
    padding: 1.5rem 0.75rem 2.5rem;
  }

  .house-masters-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .house-master-card {
    max-width: 350px;
    margin: 0 auto;
  }

  .house-master-house-name {
    font-size: 1.3rem;
  }

  .house-master-photo {
    width: 75px;
    height: 75px;
  }

  .house-master-name {
    font-size: 0.8rem;
  }
}

/* Student Leaders Section - Mobile Improvements */
@media (max-width: 768px) {
  .student-leaders-section {
    padding: 2rem 1rem 3rem;
  }

  .student-leaders-category {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .student-leaders-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
    padding: 0;
    justify-items: center;
  }

  .student-leader-card {
    max-width: 100%;
    padding: 1.5rem 1rem;
    border-radius: 18px;
  }

  .student-leader-photo {
    width: 90px;
    height: 90px;
    border-width: 3px;
    margin-bottom: 1rem;
  }

  .student-leader-house-badge {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.75rem;
  }

  .student-leader-name {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }

  .student-leader-role {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .student-leaders-section {
    padding: 1.5rem 0.75rem 2.5rem;
  }

  .student-leaders-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }

  .student-leader-card {
    padding: 1.25rem 0.75rem;
  }

  .student-leader-photo {
    width: 80px;
    height: 80px;
  }

  .student-leader-name {
    font-size: 0.8rem;
  }

  .student-leader-role {
    font-size: 0.65rem;
  }
}

/* Section Main Title - Mobile Improvements */
@media (max-width: 768px) {
  .section-main-title {
    font-size: 1.6rem !important;
    letter-spacing: 1px;
    margin: 2rem 0 1.5rem 0 !important;
    padding: 0 0.5rem 1rem 0.5rem !important;
    text-align: center !important;
  }

  .section-main-title::after {
    width: 80px;
    height: 3px;
  }

  .section-subtitle {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .section-main-title {
    font-size: 1.4rem !important;
    margin: 1.5rem 0 1.2rem 0 !important;
  }

  .section-main-title::after {
    width: 60px;
    bottom: -5px;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }
}

/* Principal Horizontal Card - Mobile Improvements */
@media (max-width: 768px) {
  .principal-horizontal-card {
    grid-template-columns: 1fr;
    border-radius: 20px;
    margin: 0 0.5rem 2rem;
  }

  .principal-image-box {
    min-height: 250px;
  }

  .principal-info-content {
    padding: 1.5rem;
    text-align: center;
  }

  .principal-name-large {
    font-size: 1.5rem;
  }

  .principal-role-badge {
    margin: 0 auto;
    font-size: 0.7rem;
  }

  .principal-message {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .principal-horizontal-card {
    margin: 0 0 1.5rem;
    border-radius: 16px;
  }

  .principal-image-box {
    min-height: 220px;
  }

  .principal-info-content {
    padding: 1.25rem;
  }

  .principal-name-large {
    font-size: 1.3rem;
  }

  .principal-message {
    font-size: 0.85rem;
  }
}

/* Leaders Page Filter - Mobile Fix */
@media (max-width: 768px) {
  #leaders-year-options {
    justify-content: center;
    gap: 0.5rem;
  }

  #leaders-year-options .filter-option {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #leaders-year-options .filter-option {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* Leaders Page General Container Fixes */
#leaders-page {
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #leaders-page .page-hero {
    padding: 1.5rem 1rem;
  }

  #leaders-page .page-title {
    font-size: 1.4rem !important;
  }

  #leaders-page .page-subtitle {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  #leaders-page .page-hero {
    padding: 1rem 0.75rem;
  }

  #leaders-page .page-title {
    font-size: 1.2rem !important;
  }

  #leaders-page .page-subtitle {
    font-size: 0.8rem;
  }
}

/* Fix for no-data message centering */
.no-data {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 3rem 1rem;
  text-align: center;
}

@media (max-width: 480px) {
  .no-data {
    padding: 2rem 0.75rem;
    font-size: 1.2rem !important;
  }
}