/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1a7a3c;
  --green-dark: #145f2e;
  --green-light: #e8f5ee;
  --green-mid: #2d9e52;
  --blue: #1a3a7a;
  --blue-light: #e8eef5;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1200px;
  /* Circular crops: head / face — inner image scales inside overflow:hidden ring. */
  --avatar-object-position: center 4%;
  --avatar-face-zoom: 1.72;
  --avatar-transform-origin: 50% 13%;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text-primary); background: var(--bg); line-height: 1.5; overflow-x: hidden; }

@media (max-width: 1024px) {
  html { font-size: 15px; }
}
@media (max-width: 768px) {
  html { font-size: 14px; }
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ===== LAYOUT ===== */
/* Container width (site-wide): phone → tablet → wide desktop */
.container { max-width: 100%; margin: 0 auto; padding: 0 40px; }
@media (min-width: 769px) { .container { max-width: min(100%, 1280px); } }
@media (min-width: 1025px) { .container { max-width: min(100%, 1440px); } }
@media (max-width: 1024px) { .container { padding: 0 24px; } }
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  /* Match fixture-card gradient */
  background: linear-gradient(135deg, #1a7a3c 0%, #1a3a7a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.navbar-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.navbar-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.navbar-logo-text .brand { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.navbar-logo-text .sub { font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.9); letter-spacing: 0.12em; text-transform: uppercase; }
.navbar-nav { display: flex; align-items: center; gap: 8px; }
.navbar-nav a {
  padding: 6px 12px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.92); border-radius: 6px;
  transition: color 0.2s; position: relative;
}
.navbar-nav a:hover { color: #fff; }
.navbar-nav a.active { color: #fff; font-weight: 700; }
.navbar-nav a.active::after {
  content: ''; position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px; background: rgba(255,255,255,0.95); border-radius: 2px;
}
.navbar-trail {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin: 0;
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  transition: 0.3s;
}
.navbar-hamburger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}
.mobile-menu { display: none; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 20px; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--text-primary); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--green); }
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-inner { height: 52px; }
  .navbar-logo-mark { width: 38px; height: 38px; }
  .navbar-logo-text .brand { font-size: 12px; font-weight: 500; }
  .navbar-logo-text .sub { font-size: 8px; font-weight: 500; }
  .navbar-hamburger { display: flex; padding: 6px; }
  .navbar-hamburger span { width: 20px; }
  .mobile-menu { padding: 12px 16px; }
  .mobile-menu a { padding: 9px 0; font-size: 14px; font-weight: 500; }
  .slsa-quicknav__btn { width: 34px; height: 34px; }
  .mobile-menu.open { display: block; }
}

/* Quick links (Home / About) — inline in navbar next to menu control */
.slsa-quicknav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.slsa-quicknav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s, background 0.2s, transform 0.15s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.slsa-quicknav__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.slsa-quicknav__btn:active {
  transform: scale(0.96);
}
.slsa-quicknav__btn.is-active {
  color: var(--green);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.slsa-quicknav__btn.is-active:hover {
  color: var(--green-dark);
  filter: none;
}
.slsa-quicknav__btn svg {
  flex-shrink: 0;
  display: block;
}

@media print {
  .slsa-quicknav { display: none !important; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; height: 44px; padding: 0 20px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: #fff; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green-light); }
.btn-outline-gray { background: #fff; color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-outline-gray:hover { border-color: var(--green); color: var(--green); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* ===== FILTER TABS ===== */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 500;
  background: #fff; color: var(--text-primary); border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.2s;
}
.filter-tab:hover { border-color: var(--green); color: var(--green); }
.filter-tab.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ===== CARDS ===== */
.card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}

/* ===== SECTION HEADINGS ===== */
.section-title { font-size: 24px; font-weight: 600; color: var(--text-primary); }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.page-title { font-size: 32px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.page-subtitle { font-size: 16px; color: var(--text-secondary); margin-top: 8px; }

/* ===== BADGE / TAG ===== */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-u19 { background: #dbeafe; color: #1e40af; }
.badge-u23 { background: #dcfce7; color: #166534; }
.badge-open { background: var(--blue); color: #fff; }
.badge-womens-open { background: #fce7f3; color: #9d174d; }
.badge-ongoing { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.badge-upcoming { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.badge-completed { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; }

/* ===== TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary);
  border-bottom: 1px solid var(--border); background: var(--bg-subtle);
}
.data-table td {
  padding: 0 16px; min-height: 56px; height: auto; vertical-align: middle;
  font-size: 14px; border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--green-light); }
.data-table .points { color: var(--green); font-weight: 700; }

/* ===== AVATAR ===== */
/* Data-driven images (object-fit / cover helpers) */
.media-cover {
  background-size: cover;
  background-position: center;
}
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slsa-cover-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  flex-shrink: 0;
  box-sizing: border-box;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 2px 5px rgba(15, 23, 42, 0.08),
    0 1px 2px rgba(15, 23, 42, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(15, 23, 42, 0.04);
}
.avatar:not(.avatar-placeholder) {
  background: var(--bg-subtle);
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--avatar-object-position);
  transform: scale(var(--avatar-face-zoom));
  transform-origin: var(--avatar-transform-origin);
  display: block;
}
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 78px; height: 78px; }
.avatar.avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(158deg, #f8fafc 0%, #e2e8f0 46%, #cbd5e1 100%);
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 2px 5px rgba(15, 23, 42, 0.07),
    0 1px 2px rgba(15, 23, 42, 0.05),
    inset 0 2px 4px rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(15, 23, 42, 0.05);
}
.avatar-lg.avatar-placeholder { font-size: 15px; }
.avatar-xl.avatar-placeholder { font-size: 18px; }
.avatar-placeholder-icon {
  width: 76%;
  height: 76%;
  flex-shrink: 0;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

/* ===== SEARCH INPUT ===== */
.search-wrap { position: relative; }
.search-wrap input {
  width: 100%; height: 40px; padding: 0 12px 0 36px;
  border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: var(--green); }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* ===== SELECT ===== */
.select-wrap select {
  height: 44px; padding: 0 32px 0 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none; cursor: pointer; outline: none; color: var(--text-primary);
}
.select-wrap select:focus { border-color: var(--green); }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, #f3faf6 0%, #ffffff 42%);
  border-top: 1px solid rgba(26, 122, 60, 0.14);
  padding-top: 40px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.footer-sponsors { padding: 18px 0; border-bottom: 1px solid var(--border); }
.footer-sponsors p {
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.sponsors-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.sponsor-item { font-size: 16px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; opacity: 1; }
.sponsor-item-logo { display: inline-flex; align-items: center; justify-content: center; }
.sponsor-logo-img { max-height: 60px; max-width: 170px; width: auto; height: auto; object-fit: contain; vertical-align: middle; }
.footer-main { display: grid; grid-template-columns: 2fr 2fr; gap: 40px; padding: 32px 0; }
/* Follow Us: hidden until you are ready to show social links (set grid back to 2fr 2fr 1.5fr and delete this block). */
.footer-col.footer-social {
  display: none !important;
}
.footer-logo-img {
  height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}
.footer-brand p { font-size: 14px; color: var(--text-secondary); margin-top: 12px; line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.footer-col-quicklinks .footer-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 8px;
}
.footer-col-quicklinks .footer-quick-grid a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0;
  transition: color 0.2s;
}
.footer-col-quicklinks .footer-quick-grid a:hover { color: var(--green-dark); }
.footer-social a,
.footer-social .footer-social-placeholder {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.footer-social .footer-social-placeholder {
  cursor: default;
  opacity: 0.75;
}
.footer-social a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; text-align: center; font-size: 13px; color: var(--text-muted); }
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer { padding-top: 28px; }
  .footer-sponsors { padding: 14px 0; }
  .footer-sponsors p { font-size: 12px; margin-bottom: 12px; }
  .sponsors-row { gap: 16px; }
  .sponsor-logo-img { max-height: 40px; max-width: 140px; }
  .footer-main { grid-template-columns: 1fr; gap: 20px; padding: 22px 0; }
  .footer-logo-img { height: 48px; max-width: 220px; }
  .footer-col a, .footer-col p { font-size: 13px; }
  .footer-col-quicklinks .footer-quick-grid a { font-size: 13px; }
}

/* ===== UTILITIES ===== */
.text-green { color: var(--green); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== SECTION SPACING ===== */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
@media (max-width: 768px) { .section { padding: 32px 0; } .section-sm { padding: 24px 0; } }

/* ===== MOBILE: medium typography & element scale (≤768px) ===== */
@media (max-width: 768px) {
  .page-title { font-size: 22px; line-height: 1.25; }
  .page-subtitle { font-size: 14px; margin-top: 6px; }
  .section-title { font-size: 18px; }
  .section-label { font-size: 11px; font-weight: 500; }

  .btn {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
  }
  .btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
  }

  .filter-tab {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
  }

  .card { padding: 14px; }

  .data-table th {
    padding: 10px 12px;
    font-size: 10px;
    font-weight: 500;
  }
  .data-table td {
    padding: 0 12px;
    min-height: 48px;
    font-size: 13px;
  }

  .avatar { width: 36px; height: 36px; }
  .avatar-lg { width: 46px; height: 46px; }
  .avatar-xl { width: 58px; height: 58px; }
  .avatar.avatar-placeholder { font-size: 12px; font-weight: 500; }
  .avatar-lg.avatar-placeholder { font-size: 13px; }
  .avatar-xl.avatar-placeholder { font-size: 15px; }

  .search-wrap input,
  .select-wrap select {
    height: 38px;
    font-size: 13px;
    font-weight: 500;
  }

  .badge { font-size: 11px; font-weight: 500; }
  .view-all { font-size: 12px; font-weight: 500; }

  .footer-logo-img { height: 44px; }
  .footer-brand p,
  .footer-col a,
  .footer-col p,
  .footer-col-quicklinks .footer-quick-grid a {
    font-size: 13px;
    font-weight: 500;
  }
  .footer-col h4 { font-size: 12px; font-weight: 500; }

  .empty-state { padding: 40px 16px; }
  .empty-state p { font-size: 14px; font-weight: 500; }

  .sponsor-item { font-size: 14px; font-weight: 500; }
}

/* ===== TABLET: medium typography & element scale (769–1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-title { font-size: 26px; line-height: 1.25; }
  .page-subtitle { font-size: 15px; }
  .section-title { font-size: 20px; }
  .btn { height: 40px; padding: 0 16px; font-size: 13px; font-weight: 600; }
  .btn-sm { height: 34px; padding: 0 12px; font-size: 12px; font-weight: 600; }
  .data-table td { min-height: 52px; }
  .avatar-lg { width: 50px; height: 50px; }
  .avatar-xl { width: 64px; height: 64px; }
}

/* ===== VIEW ALL LINK ===== */
.view-all { font-size: 13px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 4px; }
.view-all:hover { text-decoration: underline; }

/* ===== CHANGE INDICATOR ===== */
.change-up { color: #16a34a; font-size: 12px; font-weight: 700; }
.change-down { color: #dc2626; font-size: 12px; font-weight: 700; }

/* ===== LOADING / EMPTY ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state p { font-size: 15px; }
