/* =========================================
   1. DESIGN TOKENS (Your Setup)
   ========================================= */
:root {
  --color-primary-orange: #F57A24;
  --color-primary-red: #FF0000;
  
  --color-dark-navy: #0F172A;
  --color-accent-grey: #9CA3AF;
  --color-white: #FFFFFF;

  --color-accent-grey-lighter: #F3F4F6;
  --color-accent-grey-ultra-light: #F9FAFB;
  --color-accent-grey-ghost: #FCFDFD;


  --bg-main: var(--color-white);
  --text-main: var(--color-dark-navy);
  --accent-highlight: var(--color-primary-orange);
  --accent-secondary: var(--color-primary-red);

  --font-heading: 'Jost', sans-serif;
  --font-body: 'Afacad', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;

  --glass-bg-light: rgba(255, 255, 255, 0.7);
  --glass-bg-heavy: rgba(255, 255, 255, 0.95);
  --glass-blur: blur(12px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);

  --glass-bg-dark-light: rgba(15, 23, 42, 0.65);
  --glass-bg-dark-heavy: rgba(15, 23, 42, 0.90);
  --glass-border-dark: 1px solid rgba(255, 255, 255, 0.15);
}

/* =========================================
   2. THE BOX MODEL & RESET
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================================
   3. BASE TYPOGRAPHY & BODY
   ========================================= */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--bg-main);
  color: var(--text-main);
  
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600; 
  line-height: 1.2;
  margin-bottom: 0.5em;
  overflow-wrap: break-word;
}

/* =========================================
   4. RESPONSIVE MEDIA
   ========================================= */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =========================================
   5. FORM ELEMENTS
   ========================================= */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

/* =========================================
   6. LINKS & INTERACTIVITY
   ========================================= */
a {
  text-decoration: none;
  color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

section[id] {
  scroll-margin-top: 50px;
}

/* =========================================
   UTILITIES
   ========================================= */
.nav-glass-effect {
  background: rgba(255, 255, 255, 0.6); 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.glass-effect {
  background: var(--glass-bg-light); 
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.rounded-asymmetric-xl {
  border-radius: var(--radius-xl) 0 var(--radius-xl) var(--radius-xl);
}

.rounded-notice-board {
  border-radius: var(--radius-xl) 0 0 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 0.4rem;
}

.sub-heading {
  color: var(--accent-highlight);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sub-heading::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: var(--accent-highlight);
}

.main-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
  margin-bottom: 0.1rem; 
  margin-top: 0.1rem; 
}

.header-desc {
  font-size: 1.125rem;
  color: var(--text-main);
  opacity: 0.8;
  max-width: 850px;
  line-height: 1.6;
  margin-top: 0; 
}

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

.section-header.centered {
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.text-white {
  color: var(--color-white) !important;
}

.text-white-muted {
  color: var(--color-accent-grey-lighter) !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  
  background: rgba(245, 122, 36, 0.15);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  
  border: 1px solid rgba(245, 122, 36, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  
  color: var(--color-primary-orange);
}

/* =========================================
   REUSABLE BUTTON CLASSES
   ========================================= */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 220px;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--accent-highlight);
  color: var(--color-white);
  border: 2px solid var(--accent-highlight);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-highlight);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-dark-navy);
}

.btn-action-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1rem 2.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  letter-spacing: 1.5px;
  min-width: 260px;
  
  background-color: var(--accent-highlight);
  color: var(--color-white);
  border: 2px solid var(--accent-highlight);
  
  box-shadow: 0 8px 25px rgba(245, 122, 36, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-action-large:hover {
  background-color: transparent;
  color: var(--accent-highlight);
  box-shadow: none;
}

.float-cta-btn {
  position: fixed;
  bottom: 0.8rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
}

.float-cta-btn .float-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: var(--glass-bg-heavy);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-pill);
  transition: transform 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.float-cta-btn svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.float-cta-btn .float-btn:hover {
  transform: translateY(-5px);
  background: var(--color-white);
}

.float-cta-btn .float-btn:hover svg {
  transform: scale(1.1);
}

.float-whatsapp {
  animation: pulse-whatsapp 2s infinite;
}

.float-call {
  animation: pulse-call 2s infinite;
  animation-delay: 1s;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: var(--glass-shadow), 0 0 0 0 rgba(39, 180, 62, 0.4);
  }
  70% {
    box-shadow: var(--glass-shadow), 0 0 0 15px rgba(39, 180, 62, 0);
  }
  100% {
    box-shadow: var(--glass-shadow), 0 0 0 0 rgba(39, 180, 62, 0);
  }
}

@keyframes pulse-call {
  0% {
    box-shadow: var(--glass-shadow), 0 0 0 0 rgba(245, 122, 36, 0.4);
  }
  70% {
    box-shadow: var(--glass-shadow), 0 0 0 15px rgba(245, 122, 36, 0);
  }
  100% {
    box-shadow: var(--glass-shadow), 0 0 0 0 rgba(245, 122, 36, 0);
  }
}

/* =========================================
   ARROW CONTINUOUS MOTION ANIMATION
   ========================================= */
@keyframes arrow-drive {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

.animate-arrow {
  animation: arrow-drive 1.5s infinite ease-in-out;
}

/* =========================================
   REUSEABLE REVEAL ON SCROLL
   ========================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98); 
  will-change: transform, opacity; 
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  pointer-events: none; 
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.reveal.delay-100 { transition-delay: 100ms; }
.reveal.delay-200 { transition-delay: 200ms; }
.reveal.delay-300 { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    pointer-events: auto !important;
  }
}

/* =========================================
   REUSABLE LIGHTBOX OVERLAY
   ========================================= */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--glass-bg-dark-heavy);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: transparent;
  color: var(--color-white);
  border: none;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--accent-highlight);
  transform: scale(1.1);
}

/* =========================================
   REGISTRATION MODAL & FORMS
   ========================================= */

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg-dark-heavy);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Container (Asymmetric radius applied via class in HTML) */
.modal-container {
  background: var(--color-white);
  width: 90%;
  max-width: 600px; /* Slightly wider to accommodate columns beautifully */
  max-height: 90vh;
  padding: 2.5rem;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  
  /* Remove scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;  
  scrollbar-width: none;  
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

/* Remove scrollbar for Chrome, Safari and Opera */
.modal-container::-webkit-scrollbar,
.tc-content-box::-webkit-scrollbar {
  display: none;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-accent-grey);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--color-primary-red);
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1.5rem 0 2rem;
}

.step-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background-color: #3B4252; 
  transition: all 0.3s ease;
}

.step-dot.active {
  width: 32px;
  border-radius: 8px; 
  background-color: var(--color-primary-orange);
}

.step-dot.completed {
  background-color: var(--color-accent-grey);
}

/* Form Layout & Grid */
.modal-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.modal-step.active {
  display: block;
}

.form-group {
  margin-bottom: 1.25rem;
}

/* Grid Wrapper for splitting inputs into columns on larger screens */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

/* When inside a form-row grid on desktop, we let the grid gap handle the spacing */
@media (min-width: 768px) {
  .form-row .form-group {
    margin-bottom: 1.25rem; 
  }
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-dark-navy);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-accent-grey-lighter);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-accent-grey-ultra-light);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary-orange);
  background-color: var(--color-white);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checkbox-group input {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary-orange);
}

.tc-link {
  color: var(--color-primary-orange);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

/* Button overrides */
.btn-secondary {
  background-color: var(--color-accent-grey-lighter);
  color: var(--color-dark-navy);
  border: 2px solid transparent;
}
.btn-secondary:hover {
  background-color: var(--color-accent-grey);
  color: var(--color-white);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  gap: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* T&C View styling */
#tc-view-container {
  display: none;
  font-size: 0.95rem;
}
#tc-view-container.active {
  display: block;
  animation: fadeIn 0.4s ease;
}
.tc-content-box {
  background: var(--color-accent-grey-ultra-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-accent-grey-lighter);
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  -ms-overflow-style: none;  
  scrollbar-width: none;  
}

@media (max-width: 576px) {
  .modal-footer {
    flex-direction: column-reverse; /* Stacks buttons: Next on top, Previous on bottom */
    gap: 1rem;
  }
  
  .modal-footer .btn {
    width: 100%;
    min-width: 100%; /* Overrides the 220px min-width */
    margin: 0;
  }
}

/* =========================================
   FLOATING NAVIGATION BAR
   ========================================= */
.floating-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;

  transition: transform 0.3s ease-in-out;
}

.floating-nav.nav-hidden {
  transform: translate(-50%, -200%);
}

/* =========================================
   BRAND LOGO & NAME
   ========================================= */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-navy);
  letter-spacing: 0.5px;
}

.mobile-brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-navy);
  letter-spacing: 0.5px;
}

/* =========================================
   NAVIGATION LINKS & ACTIVE STATE
   ========================================= */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-highlight);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active-link {
  color: var(--accent-highlight);
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
  width: 100%;
}

/* =========================================
   MOBILE RESPONSIVENESS & HAMBURGER (Animated X)
   ========================================= */
.menu-toggle {
  display: none; 
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  position: relative;
  transition: background-color 0.3s ease;
}

.hamburger::before, 
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.menu-toggle.open .hamburger {
  background-color: transparent; 
}
.menu-toggle.open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle.open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark-navy);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: transform, opacity;

  animation: slowZoom 25s ease-in-out infinite alternate;
}

.hero-bg.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-dark-navy);
  opacity: 0.35; 
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 8%;
  max-width: 1200px;
  color: var(--color-white);
  margin-top: 4rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span.highlight {
  color: var(--color-primary-orange);
}

.hero-description {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 3rem;
  line-height: 1.6;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

/* =========================================
   LATEST UPDATES SECTION
   ========================================= */
.latest-updates-section {
  position: relative;
  padding: 4rem 1.5rem;
  clip-path: inset(0); 
}

.section-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.6; 
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start; 
}

.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-image-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--accent-highlight);
  color: var(--color-white);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 500;
  z-index: 2;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card-date {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent-grey); 
  margin-bottom: 0.5rem;
}

.card-date.scheduled {
  color: var(--accent-highlight); 
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.card-desc {
  font-size: 1rem;
  color: var(--text-main);
  opacity: 0.8; 
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.card-link {
  color: var(--accent-highlight);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
  align-self: flex-start; 
}

.card-link svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.card-link:hover {
  opacity: 0.8;
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* =========================================
   OUR PILLARS SECTION
   ========================================= */
.pillars-section {
  margin-bottom: 4rem;
}

.pillars-header-wrapper {
  position: relative;
  width: 100%;
  padding: 4rem 1.5rem;
  min-height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-dark-navy);
}

.pillars-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.pillars-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-dark-navy);
  opacity: 0.75;
  z-index: 2;
}

.pillars-header-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sub-heading.center {
  justify-content: center;
}

.text-white {
  color: var(--color-white);
}

.pillars-content-wrapper {
  padding: 2rem 1.5rem;
  background-color: var(--bg-main);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
}

.pillar-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent-highlight);
  margin-right: 1.25rem;
  flex-shrink: 0;
}

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

.pillar-title {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  opacity: 0.8; 
  line-height: 1.5;
  margin: 0;
}

/* =========================================
   FEATURED TEAMS SECTION
   ========================================= */
.teams-section {
  padding: 5rem 5%;
}

.featured-teams-section {
  padding: 4rem 1.5rem;
  background-color: color-mix(in srgb, var(--color-dark-navy) 8%, transparent);
}

.featured-teams-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  grid-template-columns: 1fr;
}

.featured-team-card {
  position: relative;
  display: block; 
  height: 350px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none; 
}

.featured-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--color-dark-navy) 20%, transparent);
}

.featured-team-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s ease;
}

.featured-team-card:hover .featured-team-image {
  transform: scale(1.05);
}

.featured-team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%; 
  background: linear-gradient(to top, var(--color-dark-navy) 0%, transparent 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
}

.featured-team-title {
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px color-mix(in srgb, var(--color-dark-navy) 50%, transparent);
}

.featured-team-desc {
  font-size: 0.95rem;
  color: var(--color-white);
  opacity: 0.9;
  line-height: 1.5;
  margin: 0;
}

/* =========================================
   SUCCESS STORIES SECTION
   ========================================= */
.success-stories-section {
  padding: 4rem 1.5rem;
  background-color: color-mix(in srgb, var(--color-dark-navy) 3%, transparent);
}

.success-card-grid {
  margin-top: 3rem;
}

/* =========================================
   OUR TEAM SECTION (UPDATED)
   ========================================= */

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

.sub-heading.center {
  justify-content: center;
}

.section-header.centered .header-desc {
  margin-left: auto;
  margin-right: auto;
}

.featured-team-section {
  padding: 4rem 1.5rem;
  background-color: var(--color-accent-grey-ultra-light);
}

.featured-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.member-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid color-mix(in srgb, var(--color-dark-navy) 10%, transparent);
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px color-mix(in srgb, var(--color-dark-navy) 12%, transparent);
}

.member-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px; 
  overflow: hidden;
}

.member-image-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.member-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; 
  transition: transform 0.5s ease;
}

.member-card:hover .member-image-wrapper img {
  transform: scale(1.05);
}

.member-socials {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text-main);
  transition: all 0.3s ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  background-color: var(--accent-highlight);
  color: var(--color-white);
  transform: translateY(-2px);
}

.member-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  text-align: left;
}

.member-name {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.member-role {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-highlight);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.member-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  opacity: 0.8;
  line-height: 1.5;
  margin-top: 0.75rem;
}


/* =========================================
   MATCHES SECTION STYLES
   ========================================= */
.matches-section {
  padding: 4rem 1.5rem;
}

.matches-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* --- Grid Layout (Exactly 4 in a row) --- */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2.5rem;
  gap: 1rem;

}

/* --- Card Base --- */
.match-card {
  background-color: var(--color-white);
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  border-left: 4px solid var(--color-primary-orange);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.match-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--color-primary-red);
}

/* --- Card Header (Date & Status) --- */
.match-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-accent-grey-lighter);
}

.match-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-grey);
}

.match-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

.status-upcoming {
  background-color: var(--color-primary-orange);
  color: var(--color-white);
}

.status-ended {
  background-color: var(--color-accent-grey-lighter);
  color: var(--color-dark-navy);
}

.status-live {
  background-color: var(--color-primary-red);
  color: var(--color-white);
  animation: pulse-live 2s infinite; 
}

@keyframes pulse-live {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

/* --- Teams & Score Area --- */
.match-teams-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-name {
  font-size: 1.15rem;
  color: var(--color-dark-navy);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* --- Score & VS Badge --- */
.match-center-board {
  flex: 0 0 auto;
  margin: 0 0.5rem;
  text-align: center;
}

.vs-badge {
  color: var(--color-dark-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-dark-navy);
  font-family: var(--font-heading);
}

.score {
  font-size: 1.35rem;
  font-weight: 700;
}

.score-divider {
  color: var(--color-dark-navy);
  opacity: 0.7;
  font-weight: 700;
}

/* --- Card Footer (Venue) --- */
.match-bottom-bar {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.match-venue {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-dark-navy);
  font-weight: 500;
  background-color: var(--color-accent-grey-lighter);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
}

/* --- Empty State --- */
.no-matches {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  backdrop-filter: blur(10px);
}

/* TEAM SECTION RESULTS */
.team-matches-section {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    padding: 2rem 5%;
    margin: 0 auto;
}

/* Scrollable Tabs */
.team-matches-tabs-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 1rem;
    margin-top: 1rem;

    position: sticky;
    top: 6.5rem;
    z-index: 99;
    background-color: var(--bg-main);
    padding: 10px 0;

    transition: top 0.3s ease-in-out;
}

.team-matches-tabs-container.tabs-hidden {
  top: -5rem;
}

.team-matches-tabs-container::-webkit-scrollbar {
    display: none;
}

.team-matches-tabs {
    display: flex;
    gap: 1rem;
    min-width: max-content;
    padding-bottom: 0.5rem;
}

.matches-tab-btn {
    background: transparent;
    border: 1px solid var(--color-accent-grey);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.matches-tab-btn.active, .matches-tab-btn:hover {
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    border-color: var(--color-primary-orange);
}

.matches-divider {
    border: none;
    border-top: 1px solid var(--color-accent-grey-lighter);
    margin-bottom: 1.5rem;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Match Card Desktop Layout (Start, Middle, End) */
.teams-match-card {
    background-color: var(--color-accent-grey-ultra-light);
    border: 1px solid var(--color-accent-grey-lighter);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teams-match-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* START Block */
.match-info-start {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 150px;
}

.team-match-date {
    color: var(--color-primary-orange);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.team-match-venue {
    color: var(--color-accent-grey);
    font-size: 0.85rem;
    font-weight: 500;
}

/* MIDDLE Block */
.match-teams-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 2;
    gap: 1.5rem;
}

.team-avatar-grid {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem auto;
  border: 2px solid var(--color-accent-grey-lighter);
  background-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.team-avatar-placeholder-grid {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 0.75rem auto;
  background-color: var(--color-accent-grey-ultra-light);
  color: var(--color-primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border: 2px solid var(--color-accent-grey-lighter);
}

.team-matches {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-team {
  justify-content: flex-end;
}

.away-team {
  justify-content: flex-start;
}

.team-avatar-list {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-accent-grey-lighter);
  background-color: var(--color-white);
}

.team-avatar-placeholder-list {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--color-accent-grey-ultra-light);
  color: var(--color-primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  border: 1px solid var(--color-accent-grey-lighter);
}

/* Applies only to the losing team */
.team-lost {
    color: var(--color-accent-grey) !important;
}

.score-badge {
    background-color: var(--bg-main);
    border: 1px solid var(--color-accent-grey-lighter);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* END Block */
.match-status-end {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 100px;
}

.team-match-status {
    color: var(--color-accent-grey);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.live-status {
    color: var(--color-primary-red);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.pulse-dot-orange {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-primary-orange);
    animation: orange-pulse 1.5s infinite;
}

@keyframes orange-pulse {
    0% { 
        transform: scale(0.95); 
        box-shadow: 0 0 0 0 rgba(245, 122, 36, 0.7); /* RGBA equivalent of var(--color-primary-orange) */
    }
    70% { 
        transform: scale(1); 
        box-shadow: 0 0 0 6px rgba(245, 122, 36, 0); 
    }
    100% { 
        transform: scale(0.95); 
        box-shadow: 0 0 0 0 rgba(245, 122, 36, 0); 
    }
}

.no-matches-msg {
    text-align: center;
    color: var(--color-accent-grey);
    padding: 2rem;
    font-family: var(--font-body);
}

.matches-footer-action {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary-orange);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.8rem 2.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(245, 122, 36, 0.25); /* Subtle orange shadow */
}

.btn-view-all:hover {
  background-color: var(--color-dark-navy);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2); /* Navy shadow on hover */
}

/* Arrow Icon Animation */
.btn-view-all svg {
  transition: transform 0.3s ease;
}

.btn-view-all:hover svg {
  transform: translateX(4px);
}



/* =========================================
   ABOUT PAGE: HERO SECTION
   ========================================= */
.about-hero-section {
  position: relative;
  width: 100%;
  min-height: 100dvh; 
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark-navy);
}

.about-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-dark-navy);
  opacity: 0.35;
  z-index: 2;
}

.about-hero-content {
  position: relative;
  z-index: 3;
  padding: 8rem 1.5rem;
}

.about-hero-content .header-desc {
  color: var(--color-white);
  opacity: 0.9;
}

.about-hero-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}

.about-card {
  --glass-bg-light: color-mix(in srgb, var(--color-white) 20%, transparent);
  width: 100%;
  padding: 2rem 2.5rem;
  text-align: center;
  transition: transform 0.6s ease-out, box-shadow 0.6s ease-out;
  border: 1px solid transparent;
}

.about-card:hover {
  transform: scale(1.04);
  box-shadow: 0 15px 35px color-mix(in srgb, var(--color-dark-navy) 40%, transparent);
}

.about-hero-cards .about-card:first-child {
  border-right: 4px solid var(--accent-highlight);
}

.about-hero-cards .about-card:last-child {
  border-left: 4px solid var(--accent-highlight);
}

.about-card-text {
  font-size: 1.25rem;
  color: var(--bg-main); 
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* =========================================
   OUR STORY SECTION
   ========================================= */
.story-section {
  padding: 4rem 1.5rem;
  background-color: var(--bg-main);
}

.story-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}

.story-text {
  font-size: 1.125rem;
  color: var(--text-main);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.story-quote {
  margin-top: 2.5rem;
  padding-left: 1.5rem;
  border-left: 4px solid var(--accent-highlight);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.story-image-wrapper {
  width: 100%;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  height: 100%;
}

.story-image {
  width: 100%;
  height: 100%;
  max-height: 650px;
  object-fit: cover;
  display: block;
}

/* =========================================
   VALUES SECTION
   ========================================= */
.values-section {
  position: relative;
  padding: 4rem 1.5rem;
  overflow: hidden;
  font-family: var(--font-body);
  background-color: var(--bg-main);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--glass-bg-dark-heavy);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border-dark);
  box-shadow: var(--glass-shadow);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, background 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-dark-light);
}

.value-title {
  color: var(--color-primary-orange);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.value-description {
  color: var(--color-accent-grey-lighter);
  opacity: 0.9; 
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* =========================================
   CTA SECTION (CSS)
   ========================================= */
.cta-section {
  position: relative;
  padding: 4rem 1.5rem;
  background-color: var(--color-dark-navy);
  display: flex;
  justify-content: center;
  align-items: center;
  
  clip-path: inset(0); 
}

.cta-bg-img {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

.cta-overlay {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  right: 0;
  
  background-image: linear-gradient(var(--glass-bg-dark-light), var(--glass-bg-dark-heavy));
  z-index: 1; 
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-glass-card {
  background: var(--glass-bg-dark-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border-dark);
  box-shadow: var(--glass-shadow);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}

.cta-glass-card .section-header {
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.cta-glass-card .sub-heading {
  justify-content: center;
}

.cta-glass-card .sub-heading::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: var(--accent-highlight);
}

.cta-glass-card .main-heading {
  color: var(--color-white);
}

.cta-glass-card .header-desc {
  color: var(--color-accent-grey-lighter);
  margin-top: 1rem;
  max-width: 700px;
}

/* =========================================
   PROGRAM SECTION
   ========================================= */
.program-hero-section {
  position: relative;
  padding: 4rem 1rem 3rem 1rem; 
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  
  clip-path: inset(0); 
}

.program-hero-bg {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh; 
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform; 
}

.program-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.35));
  z-index: 1;
}

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

.programs-schedule-section {
  padding: 4rem 1.5rem;
  background-color: var(--color-accent-grey-ultra-light);
  position: relative;
}

.programs-schedule-section .section-header {
  margin-bottom: 4rem;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.program-detail-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

.card-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background-color: var(--color-primary-red);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}

.card-header {
  margin-bottom: 2rem;
}

.program-title {
  color: var(--text-main);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.program-brief {
  color: var(--text-main);
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 1.5;
}

.program-data-list {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.program-data-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(156, 163, 175, 0.3);
}

.program-data-list li:last-child {
  border-bottom: none;
}

.data-label {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.data-value {
  font-family: var(--font-body);
  color: var(--color-accent-grey);
  font-size: 0.95rem;
  text-align: right;
  max-width: 60%;
}

.data-value.text-highlight {
  font-weight: 700;
}

.card-btn {
  width: 100%;
  margin-top: auto;
}

/* =========================================
   NOTICE BOARD SECTION
   ========================================= */
.notice-board-section {
  padding: 4rem 1.5rem;
  background-color: var(--bg-main);
  position: relative;
}

.notice-board-section .section-header {
  margin-bottom: 3.5rem;
}

.notice-board-frame {
  background-color: var(--color-accent-grey-ultra-light);
  border: 12px solid var(--color-dark-navy);
  padding: 4rem 2rem;
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.1), 
              0 20px 40px rgba(15, 23, 42, 0.08);
  position: relative;
}

.posters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  align-items: start;
  justify-content: center;
}

/* =========================================
   THE POSTERS
   ========================================= */
.poster-card {
  position: relative;
  overflow: hidden;
  background-color: var(--color-white);
  box-shadow: 2px 8px 20px rgba(0, 0, 0, 0.12),
              0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, z-index 0s;
  z-index: 1;
}
.poster-card {
  position: relative;
  overflow: visible; 
  background-color: var(--color-white); 
  
  break-inside: avoid-column;
  -webkit-column-break-inside: avoid; 
  margin-bottom: 3rem; 
  
  box-shadow: 2px 8px 20px rgba(0, 0, 0, 0.12),
              0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, z-index 0s;
  z-index: 1;
}

.poster-card::after {
  content: "";
  position: absolute;
  top: -9px; 
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  z-index: 10;
  
  background: radial-gradient(circle at 30% 30%, var(--color-primary-red), #b30000);
  box-shadow: 
    -2px -2px 4px rgba(255, 255, 255, 0.3) inset, 
    2px 4px 6px rgba(0, 0, 0, 0.4); 
}

.poster-card:nth-child(2)::after {
  background: radial-gradient(circle at 30% 30%, var(--color-primary-orange), #c25b16);
}

.poster-card:nth-child(3n+1) { transform: rotate(-2.5deg); }
.poster-card:nth-child(3n+2) { transform: rotate(1.5deg) translateY(10px); }
.poster-card:nth-child(3n+3) { transform: rotate(-1deg) translateY(-5px); }

.poster-card:hover {
  transform: rotate(0deg) scale(1.05) translateY(-5px);
  box-shadow: 5px 15px 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.poster-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit; 
  
  transition: transform 0.5s ease;
}

.poster-card:hover img {
  transform: scale(1.05);
}

/* =========================================
   SCHEDULE SECTION
   ========================================= */
.schedule-gallery-section {
  padding: 4rem 1.5rem;
  background-color: var(--bg-main);
}

.schedule-gallery-section .section-header {
  margin-bottom: 1.5rem;
}

.schedule-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1.25rem;
  width: 100%;
}

.schedule-gallery-item {
  overflow: hidden;
  position: relative;
  background-color: var(--color-accent-grey-ultra-light);
}

.schedule-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.schedule-gallery-item:hover img {
  transform: scale(1.08);
}

/* =========================================
   ASYMMETRICAL SIZING CLASSES
   ========================================= */
.item-small {
  grid-column: span 1;
  grid-row: span 1;
}

/* =========================================
   TRAINING SESSIONS SECTION
   ========================================= */
.training-session-section {
  padding: 4rem 1.5rem;
  background-color: var(--color-accent-grey-ultra-light);
  position: relative;
}

.training-session-section .section-header {
  margin-bottom: 4rem;
}

.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch; 
}

.session-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.session-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1); 
}

.session-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(245, 122, 36, 0.1);
  color: var(--accent-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(245, 122, 36, 0.2);
}

.session-day {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.session-time-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(156, 163, 175, 0.3);
}

.time-block {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
}

.time-block::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-highlight);
  border-radius: 50%;
  margin-right: 10px;
}

.session-desc {
  color: var(--text-main);
  opacity: 0.8;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* =========================================
   GALLERY SECTION BASE & TABS
   ========================================= */
.gallery-section {
  padding: 8rem 1.5rem;
  background-color: var(--color-accent-grey-ultra-light);
  overflow: hidden; /* Prevents 3D elements from breaking the page width */
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: var(--color-white);
  color: var(--color-dark-navy);
  border: 2px solid transparent;
  padding: 0.6rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
  background: var(--color-dark-navy);
  color: var(--color-white);
}

.gallery-tab-content {
  display: block;
  animation: fade-in 0.5s ease;
}

.gallery-tab-content.hide {
  display: none;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   SHARED CAROUSEL TRACK
   ========================================= */
.carousel-perspective-container, 
.coverflow-container {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Adds depth to the 3D cylindrical image view */
.carousel-perspective-container {
  perspective: 900px; 
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================================
   1. 3D IMAGES STYLING (Curved Cylinder)
   ========================================= */
.gallery-img-item {
  position: absolute;
  width: 300px;
  height: 400px;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

/* =========================================
   2. VIDEO STYLING (Stacked Coverflow)
   ========================================= */
.gallery-vid-item {
  position: absolute;
  width: 350px;
  height: 450px;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease, opacity 0.6s ease;
  cursor: pointer;
}

.gallery-vid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Center Play Button */
.play-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: var(--color-white);
  color: var(--color-dark-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.gallery-vid-item:hover .play-icon-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  color: var(--color-primary-orange);
}

/* Video Navigation Arrows */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.nav-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-dark-navy);
  background-color: transparent;
  color: var(--color-dark-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-circle-btn:hover {
  background-color: var(--color-dark-navy);
  color: var(--color-white);
}

/* =========================================
   TEAM HERO SECTION
   ========================================= */
.team-hero-section {
  position: relative;
  padding: 4rem 1rem 3rem 1rem; 
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  background-color: var(--color-dark-navy);
  
  clip-path: inset(0); 
}

.team-hero-bg {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh; 
  object-fit: cover;
  object-position: top center;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform; 
  opacity: 0.9;
}

.team-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    color-mix(in srgb, var(--color-dark-navy) 20%, transparent) 0%, 
    color-mix(in srgb, var(--color-dark-navy) 85%, transparent) 70%,
    var(--color-dark-navy) 100%
  );
  z-index: 1;
}

.team-hero-content {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}

.team-logo-wrapper {
  width: 130px;
  height: 130px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  
  border: 4px solid var(--color-primary-orange); 
  overflow: hidden;
}

.team-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-meta-info {
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

/* =========================================
   FRANCHISE HISTORY SECTION (LIGHT MODE)
   ========================================= */
.franchise-history-section {
  padding: 5rem 1.5rem;
  background-color: color-mix(in srgb, var(--color-dark-navy) 8%, transparent);
}

.history-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

/* Header & Icon */
.history-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.history-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.history-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50%;
  height: 2px;
  background-color: var(--accent-highlight);
}

.active-roster-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.active-roster-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-highlight);
}

/* Grid Layout */
.history-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Left Text Column */
.history-text p {
  color: var(--text-main);
  opacity: 0.85;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.history-text p:last-child {
  margin-bottom: 0;
}

.history-stat-card {
  padding: 2.5rem 2rem;
  border-right: 4px solid var(--color-primary-orange); 
}

.stat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1); 
  gap: 1.5rem;
}

.stat-list li:first-child {
  padding-top: 0;
}

.stat-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.stat-value {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

/* =========================================
   ROSTER SECTION
   ========================================= */
.roster-section {
  padding: 5rem 1.5rem;
  background-color: var(--color-white);
}

.roster-header-wrapper {
  margin-bottom: 3rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.roster-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.icon-roster-red {
  color: var(--color-primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-roster-red svg {
  width: 28px;
  height: 28px;
}

.roster-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-dark-navy);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
  gap: 1.5rem; 
  max-width: 1280px;
  margin: 0 auto;
}

.roster-card {
  background-color: var(--color-accent-grey-ghost);
  border: 1px solid var(--color-primary-orange);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.4s ease;
  cursor: pointer;
  
  display: flex;
  flex-direction: column;
}

.roster-card:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.roster-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-accent-grey-ultra-light);
}

.roster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.roster-card:hover .roster-image {
  transform: scale(1.08); 
}

.roster-number {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 45px;
  height: 45px;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  z-index: 2;
}

.roster-info {
  padding: 1rem 1.25rem;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.player-position {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent-grey);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card specific additions */
.roster-card.trigger-player-modal {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roster-card.trigger-player-modal:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
}

.more-info-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary-orange);
  transition: color 0.2s ease, gap 0.2s ease;
}

.roster-card:hover .more-info-link {
  gap: 0.75rem; /* Slight arrow push effect on card hover */
  color: var(--color-primary-red);
}

/* Player Modal Specific Styles */
.player-modal-container {
  max-width: 550px;
}

.pm-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pm-avatar-wrapper {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background: var(--color-accent-grey-lighter);
  border: 2px solid var(--color-primary-orange);
  border-radius: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#pm-photo-placeholder {
  font-family: var(--font-body);
  color: var(--color-accent-grey);
  font-size: 0.9rem;
}

.pm-badges {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.pm-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.position-badge {
  background: var(--color-dark-navy);
  color: var(--color-white);
}

.jersey-badge {
  background: var(--color-primary-orange);
  color: var(--color-white);
}

.pm-divider {
  border: none;
  height: 1px;
  background: var(--color-accent-grey-lighter);
  margin: 1.5rem 0;
}

/* Read-only Data Boxes (Reusing form-group labels but looking like display data) */
.pm-data-box {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-accent-grey-ghost);
  color: var(--color-dark-navy);
  border-left: 3px solid var(--color-primary-orange);
}

/* =========================================
   SHARED MERCHANDISE STYLES
   ========================================= */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background-color: var(--color-dark-navy);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: var(--accent-highlight);
}

.btn-whatsapp svg {
  fill: currentColor;
}

.btn-whatsapp.disabled {
  pointer-events: none;
  background-color: var(--color-accent-grey);
  opacity: 0.7;
}

/* =========================================
   MERCHANDISE LISTING PAGE
   ========================================= */
.merchandise-layout {
  padding: 8rem 5%;
  background-color: var(--color-accent-grey-ghost);
  min-height: 100vh;
}

.merchandise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 1024px) {
  .merchandise-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.merch-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.merch-img-container {
  width: 100%;
  height: 260px;
  background-color: var(--color-accent-grey-lighter);
  position: relative;
  border-radius: var(--radius-xl) 0 0 0; 
}

.merch-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merch-img-link {
  display: block;
  text-decoration: none;
}

.title-link {
  color: inherit;
  text-decoration: none;
}

.title-link:active {
  color: var(--accent-highlight);
}

.merch-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}

.merch-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-main);
  margin: 0 0 0.2rem 0;
}

.merch-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-highlight);
  margin: 0 0 0.5rem 0;
}

.merch-desc {
  color: var(--color-accent-grey);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* Scoped List Button Sizes */
.merch-card .btn-whatsapp {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}
.merch-card .btn-whatsapp svg {
  width: 18px;
  height: 18px;
}

/* =========================================
   MERCHANDISE DETAIL PAGE
   ========================================= */
.merch-detail-layout {
  padding: 4rem 5%;
  background-color: var(--color-accent-grey-ghost);
  min-height: 100vh;
}

.merch-detail-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .merch-detail-container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.back-nav {
  max-width: 1280px;
  margin: 4rem auto 1.5rem auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent-grey);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--text-main);
}

.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image-container {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: var(--color-accent-grey-lighter);
  overflow: hidden;
  position: relative;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.thumbnail-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumbnail-row::-webkit-scrollbar { display: none; }
.thumbnail-row { -ms-overflow-style: none; scrollbar-width: none; }

.thumb-btn {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
  background-color: var(--color-accent-grey-lighter);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn.active {
  border-color: var(--accent-highlight);
}

.thumb-btn:not(.active) {
  opacity: 0.6;
}

.thumb-btn:hover:not(.active) {
  opacity: 0.9;
}

.detail-info-wrapper {
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--text-main);
  line-height: 1.1;
  margin: 0;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-highlight);
  margin: 0;
}

.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  width: fit-content;
}

.stock-in {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.stock-out {
  background-color: rgba(255, 0, 0, 0.1);
  color: var(--color-primary-red);
}

.stock-status svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.detail-desc {
  color: var(--text-main);
  font-size: 1.125rem;
  line-height: 1.6;
  padding-top: 1rem;
  border-top: 1px solid var(--color-accent-grey-lighter);

  overflow-wrap: break-word;
  word-wrap: break-word;
}

.detail-info-wrapper .btn-whatsapp {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.detail-info-wrapper .btn-whatsapp:hover {
  transform: translateY(-2px);
}

.detail-info-wrapper .btn-whatsapp svg {
  width: 24px;
  height: 24px;
}

/* --- Pagination Styles --- */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
  width: 100%;
}

.page-indicator {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: inherit; /* Automatically adapts to dark/light backgrounds */
}

.page-indicator .highlight {
  color: var(--color-primary-orange);
  font-weight: 700;
}

.btn-pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  background-color: transparent;
  color: inherit;
  border: 2px solid var(--color-accent-grey-lighter);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

/* Adapts border color if section has dark background (like events) */
section.latest-updates-section .btn-pagination {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.btn-pagination:hover:not(.disabled) {
  background-color: var(--color-primary-orange);
  border-color: var(--color-primary-orange);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-pagination.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 576px) {
  .pagination-wrapper {
    gap: 1rem;
  }
  .btn-pagination {
    padding: 0.5rem 1rem;
  }
}

/* --- Cookie Consent Banner (Matched to :root) --- */
.cookie-consent-banner {
    display: none; /* Hidden by default, JS reveals it via .show */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg-dark-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: var(--glass-border-dark);
    color: var(--color-white);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: var(--glass-shadow);
}

.cookie-consent-banner.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: slideUp 0.4s ease-out forwards;
}

/* Tablet & Desktop Layout */
@media (min-width: 768px) {
    .cookie-consent-banner.show {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.5rem 5%;
    }
}

.cookie-consent-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-accent-grey-lighter);
    margin: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .cookie-consent-text {
        text-align: left;
    }
}

.cookie-consent-link {
    color: var(--accent-highlight);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.cookie-consent-link:hover {
    color: var(--accent-secondary);
}

/* --- Button Container & Buttons --- */
.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .cookie-consent-actions {
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
}

.cookie-btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: var(--accent-highlight);
    color: var(--color-white);
}

.cookie-btn-accept:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background-color: transparent;
    color: var(--color-white);
    border: var(--glass-border-dark);
}

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-grey);
}

/* Base styles for compact, fully rounded buttons */
.cookie-consent-actions button {
    border-radius: 9999px; /* Full pill shape */
    padding: 0.35rem 0.85rem; /* Compact size */
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid currentColor;
}

/* Decline Button: Outline by default, Solid on hover */
.btn-cookie-deny {
    background: transparent;
    color: inherit; /* Inherits text color from the banner */
    border-color: rgba(255, 255, 255, 0.4); /* Adjust border visibility as needed */
}

.btn-cookie-deny:hover {
    background: #ffffff; /* Solid color on hover */
    color: var(--color-dark-navy); /* Dark text for contrast against white background */
    border-color: #ffffff;
}

/* Accept Button: Solid by default, Outline on hover */
.btn-cookie-accept {
    background: var(--color-primary-orange); /* Adjust to your primary brand/accent color */
    color: #ffffff;
    border-color: var(--color-primary-orange);
}

.btn-cookie-accept:hover {
    background: transparent;
    color: var(--color-primary-orange); /* Matches border color */
    border-color: var(--color-primary-orange);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ==========================================================================
   Legal & Policy Pages (Matched to :root)
   ========================================================================== */
.policy-section {
    background-color: var(--color-accent-grey-ultra-light);
    padding: 8rem 1.5rem;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem;
    background-color: var(--bg-main);
    border: 1px solid var(--color-accent-grey-lighter);
}

.policy-last-updated {
    font-family: var(--font-body);
    color: var(--color-accent-grey);
    font-style: italic;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.policy-content h1,
.policy-content h2,
.policy-content h3 {
    font-family: var(--font-heading);
}

.policy-content h2 {
    color: var(--text-main);
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent-grey-lighter);
}

.policy-content h3 {
    color: var(--accent-highlight);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-content p {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-content li {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    list-style-type: disc;
}

/* Custom bullet color using your brand highlight color */
.policy-content li::marker {
    color: var(--accent-highlight);
}

.policy-content a {
    color: var(--accent-highlight);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.policy-content a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}


/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background-color: var(--color-dark-navy);
  color: var(--color-white);
  padding: 4rem 5% 1.5rem;
  font-family: var(--font-body);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-white);
}

.footer-logo {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2px; 
}

.footer-description {
  color: var(--color-accent-grey);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent-highlight);
  transform: translateY(-3px);
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

.footer-heading {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50%;
  height: 2px;
  background-color: var(--accent-highlight);
}

.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-accent-grey);
}

.contact-info svg {
  width: 20px;
  height: 20px;
  color: var(--accent-highlight);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info a {
  color: var(--color-accent-grey);
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--color-white);
}

.phone-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.map-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(156, 163, 175, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-accent-grey);
}

.developer-info a {
  color: var(--color-white);
  font-weight: 500;
  transition: color 0.3s ease;
}

.developer-info a:hover {
  color: var(--accent-highlight);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg-dark-light, rgba(255, 255, 255, 0.05));
  color: var(--color-accent-grey, #9ca3af);
}

.avatar-placeholder svg {
  width: 4rem;
  height: 4rem;
  opacity: 0.5;
}

/* TOAST */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

/* Individual Toast */
.custom-toast {
  min-width: 250px;
  padding: 16px 24px;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
  cursor: pointer;
}

.custom-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success { background-color: #10B981; }
.toast-error { background-color: #EF4444; }
.toast-info { background-color: var(--color-primary-orange); }

/* Real-time Validation Error State */
.invalid-input {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* =========================================
   Floating Noticeboard Button 
   ========================================= */
.floating-notice-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--color-dark-navy);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-notice-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #333333;
}

.floating-notice-btn .notice-icon {
    width: 28px;
    height: 28px;
}

.pulse-dot {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 10px;
    height: 10px;
    background-color: var(--color-primary-orange);
    border-radius: 50%;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-orange);
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

@media (max-width: 1200px) {
  .matches-grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Wrote this line from my head, am a superhero */
@media (min-width: 992px) {
  .mobile-brand-name {
    display: none;
  }
}

@media (max-width: 992px) {
  .hero,
  .program-hero-section,
  .about-hero-section {
    min-height: 100svh !important; 
  }

  .program-hero-bg,
  .cta-bg-img,
  .section-fixed-bg,
  .team-hero-bg {
    height: 120vh !important;
    top: -10vh !important;
    -webkit-transform: translateZ(0); 
  }

  .brand-name {
    display: none;
  }
  .schedule-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 140px;
  }

  .item-small { grid-column: span 1; grid-row: span 1; }
}

@media (min-width: 900px) {
  .featured-teams-grid {
    grid-template-columns: 2fr 1fr; 
    grid-template-rows: 250px 250px; 
  }

  .featured-team-card {
    height: 100%;
  }

  .card-main-focus {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .card-main-focus .team-overlay {
    padding: 3rem;
  }
  
  .card-main-focus .team-title {
    font-size: 2.75rem; 
  }

  .card-main-focus .team-desc {
    font-size: 1.15rem;
    max-width: 80%;
  }

  .story-grid {
    grid-template-columns: 1.2fr 1fr; 
    gap: 5rem;
  }
}

@media (max-width: 900px) {
  .history-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .match-teams-middle {
      gap: 1rem;
  }
  .team-matches {
      font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .brand-name {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    margin-top: 1rem;
    gap: 1.5rem;
    
    border-radius: var(--radius-xl);
    background: var(--glass-bg-heavy); 
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .matches-section {
    padding: 3rem 1rem;
  }

  .matches-grid { 
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .match-card {
    padding: 1.25rem;
    gap: 1rem;
  }

  .score {
    font-size: 1.2rem;
  }

  .teams-match-card {
      flex-direction: column;
      align-items: flex-start;
      position: relative;
  }

  .match-status-end {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      justify-content: flex-end;
  }

  .match-teams-middle {
      width: 100%;
      justify-content: space-between;
      margin-top: 1rem;
  }

  .home-team {
      text-align: left;
  }
  
  .away-team {
      text-align: right;
  }

  .match-info-start {
      max-width: 70%;
  }

  .about-card {
    padding: 1.5rem;
    text-align: left;
  }
  
  .about-card-text {
    font-size: 1rem;
  }

  .values-grid {
    gap: 1.5rem;
  }
  .value-card {
    padding: 2rem 1.5rem;
  }

  .cta-section {
    padding: 4rem 1rem;
  }
  
  .cta-glass-card {
    padding: 2.5rem 1.5rem;
  }
  
  .cta-glass-card .sub-heading::before,
  .cta-glass-card .sub-heading::after {
    width: 25px;
  }

  .notice-board-frame {
    padding: 2.5rem 1rem;
    border-width: 8px; 
  }
  
  .posters-grid {
    gap: 2rem;
  }
  
  .poster-card:nth-child(3n+1) { transform: rotate(-1.5deg); }
  .poster-card:nth-child(3n+2) { transform: rotate(1deg); }
  .poster-card:nth-child(3n+3) { transform: rotate(-0.5deg); }

  .schedule-gallery-grid {
    grid-template-columns: repeat(2, 1fr); 
    grid-auto-rows: 130px;
    max-width: 500px;
  }
  
  .item-small { grid-column: span 1; grid-row: span 1; }

  .gallery-img-item { width: 220px; height: 320px; }
  .gallery-vid-item { width: 260px; height: 350px; }
  .carousel-perspective-container, .coverflow-container { height: 380px; }

  .policy-section {
      padding: 8rem 1rem;
  }

  .policy-container {
      padding: 2rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .roster-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 500px) {
  .stat-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .stat-value {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .schedule-gallery-grid {
    grid-template-columns: 1fr; 
    grid-auto-rows: 200px;
  }
   
  .item-small {
    grid-column: span 1;
    grid-row: span 1;
  }

  .matches-section {
    padding: 2rem 0.75rem;
  }

  /* Prevent Date and Status from overlapping on very small screens */

  /* Adjust Teams Area for narrow screens */
  .match-teams-area {
    gap: 0.5rem;
  }
  
  .team-name {
    font-size: 1rem; /* Scale down team names */
  }

  .score {
    font-size: 1.1rem;
  }
  
  .vs-badge {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  /* Allow the venue badge to wrap if the text is too long */
  .match-venue {
    text-align: center;
    height: auto;
    padding: 0.5rem 0.85rem;
    line-height: 1.3;
  }

  .match-teams-middle {
      flex-direction: column;
      gap: 0.75rem;
  }

  .team-matches {
      text-align: center;
      width: 100%;
  }

  .home-team, .away-team {
    flex-direction: column;
    text-align: center;
  }

  .matches-footer-action {
    margin-top: 2.5rem;
  }
  
  .btn-view-all {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
  }
}
