:root {
  /* Kenya Harlequin FC Brand Color System - HTMLF Reference */
  /* Primary palette */
  --color-primary: #0072CE;           /* Blue */
  --color-secondary: #8B1A1A;         /* Maroon */
  --color-success: #4F8A3D;           /* Green */
  --color-warning: #d4af37;           /* Gold */
  --color-danger: #8B1A1A;            /* Maroon */
  --color-info: #0072CE;              /* Blue */
  --color-accent: #0072CE;            /* Blue - primary accent */
  --color-accent-2: #8B1A1A;          /* Maroon */
  --color-accent-3: #4F8A3D;          /* Green */
  
  /* Semantic variables */
  --color-bg-primary: #f5f5f5;        /* Background */
  --color-bg-secondary: #ffffff;      /* Surface/White */
  --color-bg-hover: #f0f4f8;          /* Light blue-gray hover */
  --color-surface: #ffffff;           /* Cards, panels, content areas */
  --color-surface-alt: #f0f4f8;       /* Light blue-gray surfaces */
  
  --color-text-primary: #1a1a1a;      /* Primary Text */
  --color-text-secondary: #555555;    /* Secondary Text */
  --color-text-muted: #888888;        /* Muted Text */
  --color-text-inverse: #ffffff;       /* Text on colored backgrounds */
  
  --color-border: #e0e0e0;            /* Standard borders */
  --color-border-light: #f0f0f0;       /* Light borders */
  --color-border-strong: #cccccc;     /* Strong borders */
  
  /* Status indicators */
  --color-status-verified: #4F8A3D;    /* Green */
  --color-status-admin: #1a1a1a;      /* Dark */
  --color-status-coach: #0072CE;      /* Blue */
  --color-status-medical: #8B1A1A;    /* Maroon */
  --color-status-performance: #0072CE; /* Blue */
  --color-status-attendance: #4F8A3D; /* Green */
  --color-status-inactive: #888888;   /* Gray */
  
  /* Component-specific colors */
  --color-sidebar-bg: #ffffff;         /* Sidebar background */
  --color-sidebar-text: #1a1a1a;       /* Sidebar text */
  --color-sidebar-active: #0072CE;    /* Active navigation indicator */
  --color-sidebar-hover: #f0f4f8;      /* Hover state */
  
  --color-navbar-bg: #ffffff;          /* Navbar background */
  --color-navbar-border: #0072CE;       /* Navbar border */
  
  --color-notification: #8B1A1A;      /* Notification badge */
  
  --color-banner-blue: #0072CE;       /* Charts - Blue */
  --color-banner-green: #4F8A3D;      /* Charts - Green */
  --color-banner-burgundy: #8B1A1A;   /* Charts - Maroon */
  --color-banner-ivory: #d4af37;      /* Charts - Gold */
  
  /* Radius and spacing */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows (subtle, modern) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 4px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-base: 0.2s ease;
  --transition-smooth: 0.3s ease;
  
  /* RGB values for rgba() usage */
  --white-rgb: 255, 255, 255;
  --black-rgb: 0, 0, 0;
  --accent-rgb: 0, 114, 206;
  
  /* Legacy variables for compatibility */
  --bg: var(--color-bg-primary);
  --surface: var(--color-surface);
  --text: var(--color-text-primary);
  --accent: var(--color-primary);
  --border-color: var(--color-border);
  --accent-hover: var(--color-primary);
  --text-heading: var(--color-text-primary);
  --text-muted: var(--color-text-secondary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 30px;
  height: 130px;
  background: #ffffff;
  border-bottom: 3px solid #0072CE;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.logo-img {
  height: 127px;
  width: auto;
}

.nav-search {
  flex-shrink: 0;
  position: relative;
}

.search-input {
  width: 200px;
  padding: 8px 16px 8px 36px;
  border: 2px solid transparent;
  border-radius: 25px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  background: #f0f4f8;
  outline: none;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' stroke='%23888' stroke-width='1.8'/%3E%3Cpath d='M13 13l3.5 3.5' stroke='%23888' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.search-input::placeholder {
  color: #888;
}

.search-input:hover {
  background-color: #e8eef4;
  border-color: #0072CE;
  width: 230px;
}

.search-input:focus {
  background-color: #ffffff;
  border-color: #0072CE;
  width: 250px;
  box-shadow: 0 0 0 4px rgba(0, 114, 206, 0.15);
  color: #0072CE;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 6px 10px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  border-radius: 2px;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: #0072CE;
  background: rgba(0, 114, 206, 0.07);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 4px;
  background: #0072CE;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 180px;
  background: #ffffff;
  border-top: 3px solid #0072CE;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 999;
  border-radius: 0 0 6px 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.dropdown-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease;
}

.dropdown-menu li a::before {
  content: '\203A';
  font-size: 1.1rem;
  color: #0072CE;
  transition: transform 0.2s ease;
}

.dropdown-menu li a:hover {
  background: #0072CE;
  color: #ffffff;
  padding-left: 20px;
}

.dropdown-menu li a:hover::before {
  color: #ffffff;
  transform: translateX(3px);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 80px);
  background-color: #4b4141;
  background-image: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.45) 100%);
  overflow: hidden;
}

.quins-ribbon {
  position: absolute;
  left: 40px;
  top: 20%;
  bottom: 20%;
  width: 30px;
  display: flex;
  flex-direction: column;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.quins-ribbon.quins-ribbon-horizontal {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  width: 90%;
  height: 25px;
  margin: 0 auto;
  flex-direction: row;
  border-radius: 0;
  box-shadow: none;
}

.ribbon-segment {
  flex: 1;
}

.ribbon-red   { background-color: #8B1A1A; }
.ribbon-blue  { background-color: #0072CE; }
.ribbon-brown { background-color: #6F4E37; }
.ribbon-grey  { background-color: #C0C0C0; }
.ribbon-green { background-color: #4F8A3D; }

.hero-content {
  position: relative;
  z-index: 1;
  margin-left: 100px;
  padding: 60px 40px;
  max-width: 750px;
}

.hero-banner {
  display: inline-block;
  padding: 6px 18px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero-banner span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #ffffff;
}

.hero-headline {
  font-family: 'Oswald', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}


.hero-sub {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-latin {
  font-family: 'IM Fell DW Pica SC', serif;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.80);
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
}

.hero-countdown {
  margin-top: 36px;
  animation: cdFadeIn 0.6s ease-out;
}

@keyframes cdFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.countdown-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: left;
}

.countdown-grid {
  display: flex;
  gap: 12px;
}

.countdown-unit {
  text-align: center;
}

.countdown-num {
  background: rgba(0,0,0,0.45);
  color: #ffffff;
  font-size: 1.9rem;
  font-weight: 800;
  font-family: 'Oswald', sans-serif;
  line-height: 1;
  padding: 10px 16px;
  min-width: 56px;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
}

.countdown-unit:nth-child(1) .countdown-num { border-bottom-color: #0072CE; }
.countdown-unit:nth-child(2) .countdown-num { border-bottom-color: #0072CE; }
.countdown-unit:nth-child(3) .countdown-num { border-bottom-color: #4F8A3D; }
.countdown-unit:nth-child(4) .countdown-num { border-bottom-color: #8B1A1A; }

.countdown-unit-label {
  color: rgba(255,255,255,0.55);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 5px;
}

.countdown-num.flip {
  animation: cdFlip 0.3s ease-in-out;
}

@keyframes cdFlip {
  0%   { transform: perspective(200px) rotateX(0deg); }
  50%  { transform: perspective(200px) rotateX(-90deg); }
  100% { transform: perspective(200px) rotateX(0deg); }
}

.btn-primary {
  padding: 13px 30px;
  background: #0072CE;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #005bab;
  transform: translateY(-2px);
}

.btn-outline {
  padding: 13px 30px;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  background: #ffffff;
  color: #1a1a1a;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }
  .nav-search {
    display: none;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 130px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 3px solid #0072CE;
    padding: 12px;
    gap: 4px;
    align-items: stretch;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    padding: 14px 16px;
    font-size: 13px;
  }
  .dropdown-menu {
    position: static;
    background: #f5f5f5;
    border: none;
    border-top: none;
    box-shadow: none;
    border-radius: 6px;
    padding: 4px;
    margin: 4px 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }
  .dropdown-menu li a {
    padding: 10px 16px;
    font-size: 13px;
  }
  .dropdown-menu li a::before {
    font-size: 1rem;
  }
  .nav-toggle {
    padding: 10px;
    z-index: 1001;
  }
  .nav-toggle span {
    width: 28px;
    height: 3px;
    background: #1a1a1a;
  }
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .nav-links {
    top: 70px;
    max-height: calc(100vh - 70px);
  }
}

.section-dark {
  background: #f5f5f5;
  border-top: none;
  border-bottom: none;
}

.news-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 40px;
  background: #f5f5f5;
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
}

.news-title {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #8B1A1A;
  text-transform: uppercase;
}

.news-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin-top: 10px;
}

.btn-see-all {
  padding: 12px 28px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.btn-see-all:hover {
  background: #0072CE;
}

.featured-article {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 40px;
}
.featured-article .featured-card {
  display: flex;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.featured-article .featured-card .featured-img {
  width: 50%;
  aspect-ratio: 16/9;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.1);
  font-size: 64px;
}
.featured-article .featured-card .featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-article .featured-card .featured-img:hover img {
  transform: scale(1.05);
}
.featured-article .featured-card .featured-body {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-article .featured-card .featured-body .label {
  font-size: 12px;
  color: #8B1A1A;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.featured-article .featured-card .featured-body h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  color:#6b0017;
  margin-bottom: 12px;
  line-height: 1.2;
}
.featured-article .featured-card .featured-body .meta {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}
.featured-article .featured-card .featured-body .read-more {
  display: inline-block;
  margin-top: 16px;
  color: #8B1A1A;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.featured-article .featured-card .featured-body .read-more:hover {
  color: #6B1414;
}

.news-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #555;
  background: #f0f0f0;
  padding: 6px 14px;
  border-radius: 2px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: block;
}

.news-card:hover {
}

.news-card-img {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
}

.news-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
  color: #ffffff;
}

.tag-academy {
  background: #6F4E37;
}

.tag-men {
  background: #8B1A1A;
}

.tag-women {
  background: #4F8A3D;
}

@media (max-width: 900px) {
  .news-section {
    padding: 60px 24px;
  }
  .news-title {
    font-size: 2rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .featured-article {
    padding: 0 20px;
  }
  .featured-article .featured-card {
    flex-direction: column;
  }
  .featured-article .featured-card .featured-img {
    width: 100%;
  }
  .featured-article .featured-card .featured-body {
    padding: 24px;
  }
  .news-card-img {
    height: 200px;
  }
}

.team-section {
  position: relative;
  background: #514444;
  padding: 60px 40px 0;
}

.team-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #1a75c0;
  z-index: 0;
}

.team-title {
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.team-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #0072CE;
  margin: 12px auto 0;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-card-frame {
  position: relative;
  border: 3px solid #4F8A30;
  border-radius: 4px;
  overflow: hidden;
  height: 370px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover .team-card-frame {
  transform: scale(1.03);
  border-color: #6FBF40;
}

.team-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.team-card:hover .team-card-frame img {
  transform: scale(1.05);
}

.team-label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  border-left: 4px solid #4F8A30;
  padding-left: 10px;
  background: none;
  backdrop-filter: none;
  border-radius: 0;
}

.team-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  position: relative;
  z-index: 2;
  margin-top: 12px;
}

.team-player-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border-left: 4px solid #4F8A30;
  padding-left: 10px;
}

.team-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ffffff;
  color: #0072CE;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  border: none;
}

.team-btn:hover {
  background: #8B1A1A;
  color: #ffffff;
}

.social-section {
  background: #1a1a1a;
  padding: 60px 40px;
  text-align: center;
}

.social-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

.social-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 50px;
  letter-spacing: 0.05em;
}

.social-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.social-card svg {
  width: 28px;
  height: 28px;
}

.social-card:hover {
  transform: translateY(-6px) scale(1.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-x         { background: #000000; border: 2px solid #333; }
.social-facebook  { background: #1877F2; }
.social-tiktok    { background: #000000; border: 2px solid #333; border-radius: 16px; }
.social-youtube   { background: #FF0000; }

.sponsors-section {
  background: #ffffff;
  padding: 70px 40px;
  text-align: center;
}

.sponsors-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #8B1A1A;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 50px;
}

.sponsors-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #0072CE;
  margin: 12px auto 0;
}

.sponsors-sub {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 50px;
  letter-spacing: 0.05em;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sponsor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: #0072CE;
}

.sponsor-card img {
  width: 180px;
  height: 100px;
  object-fit: contain;
  filter: none;
}

.sponsor-card:hover img {
  filter: none;
}

.sponsor-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.sponsor-link {
  padding: 5px 12px;
  background: #f0f4f8;
  color: #0072CE;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 20px;
  border: 1px solid #0072CE;
  transition: background 0.2s ease, color 0.2s ease;
}

.sponsor-link:hover {
  background: #0072CE;
  color: #ffffff;
}

.newsletter-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  background: #8B1A1A;
}

.newsletter-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.newsletter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 50px 50px;
}

.newsletter-logo {
  width: 100px;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

.newsletter-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.newsletter-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: #ffffff;
  margin-top: 16px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.6);
  padding: 10px 0;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.newsletter-input:focus {
  border-bottom-color: #ffffff;
}

.newsletter-btn {
  align-self: flex-end;
  padding: 14px 36px;
  background: #1a1a1a;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
  border: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #0072CE;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  background: #1a1a1a;
}

.contact-left {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  border-right: none;
}

.contact-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #8B1A1A;
  margin-top: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: #8B1A1A;
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #8B1A1A;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.contact-email {
  color: #0072CE;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: #ffffff;
}

.contact-map-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  background: #8B1A1A;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: none;
  transition: background 0.2s ease;
}

.contact-map-btn:hover {
  background: #0072CE;
}

.contact-right {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.contact-right iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 500px;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.contact-right iframe:hover {
  filter: grayscale(20%);
}

.footer {
  background: #1a1a1a;
  border-top: 3px solid #8B1A1A;
  padding: 50px 40px 0;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.footer-logo-link:hover {
  transform: translateY(-5px);
  opacity: 1;
}

.footer-logo-link img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 0;
}

.footer-logo-link span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  text-align: center;
}

.footer-logo-link:hover span {
  color: #ffffff;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

.history-hero {
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(139,26,26,0.6) 100%), url('images/history-photo.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-hero-overlay {
  text-align: center;
  padding: 20px;
}

.history-hero-since {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.history-hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.history-hero-sub {
  font-family: 'IM Fell DW Pica SC', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

.history-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  background: var(--color-bg-primary);
}

.history-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.history-block-reverse {
  direction: rtl;
}

.history-block-reverse > * {
  direction: ltr;
}

.history-year {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffffff;
  background: #8B1A1A;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.history-text h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  border-left: 4px solid #8B1A1A;
  padding-left: 14px;
}

.history-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 12px;
}

.history-img {
  width: 100%;
  height: 320px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border: 3px solid #8B1A1A;
}

.history-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.history-img:hover img {
  transform: scale(1.05);
}

.history-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #8B1A1A, #0072CE, #4F8A3D);
  margin: 40px 0;
  border-radius: 2px;
}

.history-timeline {
  margin-top: 60px;
  background: #1a1a1a;
  border: none;
  border-radius: 6px;
  padding: 50px 40px;
}

.timeline-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  text-align: center;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #8B1A1A;
}

.timeline-item {
  position: relative;
  padding: 20px 0 20px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0072CE;
  border: 3px solid #1a1a1a;
}

.timeline-year {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #8B1A1A;
  min-width: 60px;
}

.timeline-event {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

/* ===== RESPONSIVE — TABLET (769px–1024px) ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-headline { font-size: 3.5rem; }
  .hero-content { margin-left: 80px; padding: 40px 30px; max-width: 600px; }
  .page-hero h1 { font-size: 48px !important; }
  .page-hero { padding: 60px 30px !important; }
  .news-section { padding: 60px 30px; }
  .news-title { font-size: 2.2rem; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-article .featured-card .featured-body { padding: 30px; }
  .featured-article .featured-card .featured-body h1 { font-size: 26px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .team-section { padding: 50px 30px 0; }
  .team-section::after { height: 60px; }
  .team-title { font-size: 2.5rem; }
  .team-card-frame { height: 280px; }
  .sponsors-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-left { padding: 40px 30px; }
  .contact-title { font-size: 2rem; }
  .newsletter-section { grid-template-columns: 1fr; }
  .newsletter-content { padding: 40px 30px; }
  .history-hero-title { font-size: 3rem; }
  .history-section { padding: 60px 30px; }
  .history-block { gap: 30px; }
  .social-title { font-size: 2rem; }
  .sponsors-title { font-size: 2rem; }
  .footer { padding: 40px 30px 0; }
  .staff-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .search-results { padding: 40px 30px; }
  .search-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .match-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .membership-grid { grid-template-columns: repeat(2, 1fr); }
  .ticket-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-sidebar { width: 100%; }
  .product-layout { flex-direction: column; }
  .match-hero h1 { font-size: 40px !important; }
  .hero-countdown { margin-top: 28px; }
  .countdown-num { font-size: 1.6rem; padding: 9px 14px; min-width: 48px; }
}


/* ===== RESPONSIVE — MOBILE (≤768px) ===== */
@media (max-width: 768px) {
  .navbar { height: 70px; padding: 0 16px; gap: 10px; }
  .logo-img { height: 60px; }
  .nav-links { top: 70px; }
  .hero { min-height: auto; }
  .hero-content { margin-left: 0; padding: 40px 20px; max-width: 100%; }
  .hero-headline { font-size: 2.2rem; }
  .hero-sub { font-size: 0.85rem; }
  .hero-latin { font-size: 0.85rem; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-banner { margin-bottom: 18px; }
  .quins-ribbon { display: none; }
  .quins-ribbon-horizontal { display: flex; height: 18px; }
  .page-hero { padding: 40px 20px !important; }
  .page-hero h1 { font-size: 36px !important; letter-spacing: 2px !important; }
  .page-hero p { font-size: 15px !important; }
  .news-section { padding: 40px 16px; }
  .news-header { flex-direction: column; gap: 16px; align-items: flex-start; margin-bottom: 30px; }
  .news-title { font-size: 1.8rem; }
  .news-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-card-img { height: 220px; }
  .featured-article { padding: 0 16px; }
  .featured-article .featured-card .featured-body { padding: 20px; }
  .featured-article .featured-card .featured-body h1 { font-size: 22px; }
  .team-section { padding: 40px 16px 0; background: #eedfdf; }
  .team-section::after { height: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .team-card-frame { height: 200px; border-width: 2px; }
  .team-card-footer { flex-direction: column; gap: 8px; align-items: flex-start; padding: 12px 4px; }
  .team-player-name { font-size: 1rem; }
  .team-btn { font-size: 0.72rem; padding: 8px 16px; }
  .team-label { font-size: 1rem; padding-left: 8px; }
  .team-title { font-size: 2rem; margin-bottom: 24px; }
  .team-title { font-size: 2rem; }
  .team-tabs { gap: 8px !important; }
  .team-tabs a { padding: 8px 16px !important; font-size: 12px !important; }
  .player-card .player-info { padding: 10px 8px 14px; }
  .player-card .player-info .name { font-size: 14px; }
  .player-card .player-info .pos { font-size: 11px; }
  .player-card .img-wrap { aspect-ratio: 3/4; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .staff-card { padding: 24px 16px; }
  .social-section { padding: 40px 20px; }
  .social-title { font-size: 1.6rem; }
  .social-grid { gap: 16px; }
  .social-card { width: 50px; height: 50px; }
  .social-card svg { width: 22px; height: 22px; }
  .sponsors-section { padding: 40px 20px; }
  .sponsors-title { font-size: 1.6rem; }
  .sponsors-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sponsor-card { padding: 16px; }
  .sponsor-card img { width: 120px; height: 70px; }
  .newsletter-section { grid-template-columns: 1fr; }
  .newsletter-content { padding: 30px 20px; gap: 16px; }
  .newsletter-title { font-size: 1.4rem; }
  .newsletter-image { display: none; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-left { padding: 30px 20px; gap: 24px; }
  .contact-title { font-size: 1.8rem; }
  .contact-right { min-height: 300px; }
  .contact-right iframe { min-height: 300px; }
  .footer { padding: 30px 20px 0; }
  .footer-logos { gap: 30px; }
  .footer-logo-link img { width: 60px; height: 60px; }
  .history-hero { height: 250px; }
  .history-hero-title { font-size: 2.2rem; }
  .history-hero-sub { font-size: 0.9rem; }
  .history-section { padding: 40px 20px; }
  .history-block { grid-template-columns: 1fr; gap: 24px; }
  .history-block-reverse { direction: ltr; }
  .history-text h2 { font-size: 1.4rem; }
  .history-img { height: 220px; }
  .history-timeline { padding: 30px 20px; }
  .timeline-title { font-size: 1.5rem; }
  .timeline { padding-left: 24px; }
  .timeline-item { padding: 16px 0 16px 20px; gap: 16px; flex-direction: column; align-items: flex-start; }
  .timeline-year { font-size: 1.1rem; min-width: auto; }
  .search-results { padding: 30px 16px; }
  .search-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .results-table th, .results-table td { padding: 12px 14px; font-size: 13px; }
  .result-excerpt { max-width: 120px; }
  .member-benefits-grid { grid-template-columns: 1fr; }
  .shop-grid, .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .shop-sidebar { display: none; }
  .shop-card-img { height: 200px !important; }
  .shop-card-body h3 { font-size: 14px !important; }
  .shop-card-body .price { font-size: 13px !important; }
  .shop-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .shop-layout { flex-direction: column; }
  .product-layout { flex-direction: column; }
  .product-gallery { width: 100%; }
  .product-info { padding: 0; margin-top: 20px; }
  .ticket-card { padding: 20px 16px; }
  .ticket-card h3 { font-size: 16px; }
  .match-card { flex-direction: column; text-align: center; padding: 16px; }
  .match-card .match-teams { flex-direction: column; gap: 12px; }
  .match-card .match-score { font-size: 1.8rem; }
  .match-card .match-team { flex-direction: column; gap: 4px; }
  .match-card .match-team-name { font-size: 14px; }
  .match-card .match-info { flex-direction: column; gap: 8px; }
  .match-card .match-competition { font-size: 12px; }
  .match-hero { padding: 30px 20px !important; }
  .match-hero h1 { font-size: 28px !important; }
  .match-tabs { gap: 6px !important; flex-wrap: wrap; }
  .match-tabs a { font-size: 11px !important; padding: 6px 14px !important; }
  .cart-page { padding: 20px 16px; }
  .cart-item { flex-direction: column; gap: 12px; padding: 16px; }
  .cart-item-img { width: 100%; height: 160px; }
  .cart-item-info h3 { font-size: 16px; }
  .cart-item-qty { flex-direction: row; }
  .cart-summary { padding: 20px 16px; }
  .checkout-page { padding: 20px 16px; }
  .checkout-card { padding: 20px 16px; }
  .membership-card { padding: 24px 20px; }
  .membership-features { font-size: 13px; }
  .subscriber-dashboard-grid { grid-template-columns: 1fr; }
  .contact-page { padding: 30px 20px; }
  .contact-form input, .contact-form textarea { font-size: 14px; padding: 10px 14px; }
  .page-hero { padding: 60px 20px; }
  .page-hero h1 { font-size: 36px; }
  .container { padding: 0 16px; }
  .table-container { overflow-x: auto; }
  .table-container table { font-size: 13px; }
  .team-tabs a:hover { background: #4F8A3D !important; color: #fff !important; border-color: #4F8A3D !important; }
  .team-tabs a.active { background: #8B1A1A !important; color: #fff !important; border-color: #8B1A1A !important; }
  .hero-countdown { margin-top: 24px; }
  .countdown-grid { gap: 8px; }
  .countdown-num { font-size: 1.4rem; padding: 8px 12px; min-width: 42px; }
  .countdown-unit-label { font-size: 0.55rem; }
  .countdown-label { font-size: 0.7rem; }
}