/* =============================================
   Isle of Wight Chess Tournament
   Theme: Light Blue & White
   ============================================= */

:root {
  --blue-darkest: #0d2b6b;
  --blue-dark:    #1e3a8a;
  --blue-primary: #2563eb;
  --blue-mid:     #3b82f6;
  --blue-light:   #93c5fd;
  --blue-xlight:  #dbeafe;
  --blue-xxlight: #eff6ff;

  --white:        #ffffff;
  --off-white:    #f8faff;
  --gray-50:      #f9fafb;
  --gray-100:     #f3f4f6;
  --gray-200:     #e5e7eb;
  --gray-300:     #d1d5db;
  --gray-400:     #9ca3af;
  --gray-500:     #6b7280;
  --gray-600:     #4b5563;
  --gray-700:     #374151;
  --gray-800:     #1f2937;
  --gray-900:     #111827;

  --text-dark:    #0f172a;
  --text-body:    #334155;
  --text-muted:   #64748b;

  --gold:         #f59e0b;
  --gold-light:   #fbbf24;
  --red-accent:   #dc2626;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:       0 4px 16px rgba(15,23,42,0.10), 0 2px 6px rgba(15,23,42,0.06);
  --shadow-lg:    0 12px 40px rgba(15,23,42,0.14), 0 4px 12px rgba(15,23,42,0.08);
  --shadow-blue:  0 8px 24px rgba(37,99,235,0.18);

  --border:       #e2e8f0;
  --border-blue:  rgba(59,130,246,0.25);

  --transition:   all 0.22s ease;
  --radius:       10px;
  --radius-lg:    16px;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text-body);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--blue-dark); }

img { max-width: 100%; height: auto; display: block; }

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title { color: var(--text-dark); margin-bottom: 0.9rem; }
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* =============================================
   LAYOUT
   ============================================= */

.container        { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow{ max-width: 860px;  margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }

.section--white  { background: var(--white); }
.section--light  { background: var(--off-white); }
.section--blue   { background: var(--blue-xxlight); }
.section--dark   { background: var(--blue-dark); color: #e2eafc; }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark .section-label { color: var(--blue-light); }
.section--dark .section-subtitle { color: #a5bfee; }
.section--dark p  { color: #c5d6f5; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* =============================================
   ANNOUNCEMENT BAR
   ============================================= */

.announcement-bar {
  background: var(--blue-primary);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 1001;
}
.announcement-bar a { color: var(--blue-xlight); text-decoration: underline; margin-left: 8px; }
.announcement-bar strong { font-weight: 700; }

/* =============================================
   HEADER / NAV
   ============================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.logo-icon {
  width: 42px; height: 42px;
  background: var(--blue-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
  flex-shrink: 0;
}
.logo-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.68rem;
  color: var(--blue-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 7px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--blue-primary);
  background: var(--blue-xxlight);
}
.nav-cta {
  background: var(--blue-primary) !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  margin-left: 8px;
}
.nav-cta:hover {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   MOBILE NAV
   ============================================= */

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  padding: 90px 24px 40px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  border-top: 3px solid var(--blue-primary);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--text-body);
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--blue-xxlight);
  color: var(--blue-primary);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(13,43,107,0.88) 0%,
    rgba(30,58,138,0.75) 40%,
    rgba(37,99,235,0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(4px);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.hero h1 span {
  color: var(--blue-light);
  display: block;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 2.25rem;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
}
.hero-meta-item .icon { color: var(--blue-light); font-size: 1rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--blue-light), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%,100% { opacity: 1; height: 40px; }
  50%      { opacity: 0.4; height: 20px; }
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--blue-primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.btn-secondary {
  background: var(--white);
  color: var(--blue-primary);
  border: 1.5px solid var(--blue-primary);
}
.btn-secondary:hover {
  background: var(--blue-xxlight);
  color: var(--blue-dark);
}
.btn-secondary-white {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn-secondary-white:hover {
  background: rgba(255,255,255,0.25);
  color: var(--white);
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue-primary);
  border: 1.5px solid var(--blue-primary);
}
.btn-outline-blue:hover {
  background: var(--blue-primary);
  color: var(--white);
}
.btn-sm  { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg  { padding: 15px 34px; font-size: 1.05rem; }

/* =============================================
   STATS STRIP
   ============================================= */

.stats-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 16px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-primary);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 5px;
}

/* =============================================
   DIVIDER
   ============================================= */

.divider-blue { width: 48px; height: 3px; background: var(--blue-primary); border-radius: 2px; margin: 14px 0 24px; }
.divider-blue--center { margin: 14px auto 24px; }

/* =============================================
   CARDS
   ============================================= */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}

.card-img-wrap {
  overflow: hidden;
  height: 200px;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.04); }

.card-img-placeholder {
  width: 100%; height: 200px;
  background: var(--blue-xxlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.card-body { padding: 24px; }
.card-tag {
  display: inline-block;
  background: var(--blue-xxlight);
  color: var(--blue-primary);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.card-title  { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 8px; }
.card-text   { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.card-meta   { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: 0.82rem; color: var(--text-muted); }
.card-meta span { display: flex; align-items: center; gap: 5px; }

/* =============================================
   EVENT CARDS
   ============================================= */

.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}

.event-card-img {
  height: 170px;
  overflow: hidden;
  position: relative;
}
.event-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.event-card:hover .event-card-img img { transform: scale(1.05); }

.event-card-img-placeholder {
  height: 170px;
  background: linear-gradient(135deg, var(--blue-xxlight), var(--blue-xlight));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.event-card-header { padding: 22px 24px 0; }

.event-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-xxlight);
  color: var(--blue-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid var(--border-blue);
}

.event-card-title {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 9px;
  font-family: var(--font-heading);
}
.event-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.event-card-body { padding: 16px 24px; flex: 1; }

.event-detail-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.event-detail-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.86rem; color: var(--text-body); }
.event-detail-list .icon { color: var(--blue-primary); font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; }

.event-card-footer {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.event-price { color: var(--text-dark); font-weight: 700; font-size: 1.05rem; }
.event-price span { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }

/* =============================================
   SECTION HEADERS
   ============================================= */

.section-header { margin-bottom: 44px; }
.section-header--centered { text-align: center; }
.section-header--centered .section-subtitle { margin-left: auto; margin-right: auto; }

/* =============================================
   INFO BLOCKS
   ============================================= */

.info-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.info-block-icon {
  width: 50px; height: 50px;
  background: var(--blue-xxlight);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.info-block h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-dark); }
.info-block p, .info-block li { font-size: 0.9rem; color: var(--text-muted); }
.info-block ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.info-block ul li { display: flex; align-items: center; gap: 8px; color: var(--text-body); }
.info-block ul li::before { content: '♟'; color: var(--blue-primary); font-size: 0.8rem; }

/* =============================================
   ABOUT SECTION
   ============================================= */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
  position: relative;
}
.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-img-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--blue-primary);
  color: var(--white);
  padding: 18px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.about-img-badge strong { display: block; font-size: 1.6rem; font-family: var(--font-heading); line-height: 1; }
.about-img-badge span { font-size: 0.72rem; opacity: 0.85; letter-spacing: 0.05em; }

.about-highlights { display: flex; flex-direction: column; gap: 10px; margin: 1.5rem 0; }
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 15px;
  background: var(--blue-xxlight);
  border-radius: 8px;
  border-left: 2px solid var(--blue-primary);
}
.highlight-item .icon { font-size: 1.05rem; flex-shrink: 0; }
.highlight-item p { font-size: 0.87rem; color: var(--text-body); margin: 0; }

/* =============================================
   TOURNAMENT SECTION CARDS
   ============================================= */

.sections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.section-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--blue-primary);
}
.section-card.international::before { background: var(--blue-primary); }
.section-card.holiday::before       { background: #0891b2; }
.section-card.congress::before      { background: #7c3aed; }
.section-card.blitz::before         { background: #dc2626; }

.section-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.section-emoji { font-size: 1.9rem; margin-bottom: 12px; display: block; }
.section-card h3 { font-size: 1.05rem; margin-bottom: 7px; color: var(--text-dark); }
.section-card p  { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 12px; }
.section-detail  { font-size: 0.79rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 3px; }

/* =============================================
   VENUE SECTION
   ============================================= */

.venue-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow);
}
.venue-img {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.venue-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.venue-card:hover .venue-img img { transform: scale(1.04); }
.venue-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(255,255,255,0.1));
}
.venue-info { padding: 40px; }
.venue-info h3 { font-size: 1.4rem; margin-bottom: 7px; }
.venue-address { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.venue-details { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; }
.venue-details li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-body); }
.venue-details .icon { color: var(--blue-primary); width: 20px; text-align: center; }

/* =============================================
   PLAYERS TABLE
   ============================================= */

.players-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  align-items: center;
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  transition: var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover { border-color: var(--blue-light); color: var(--blue-primary); background: var(--blue-xxlight); }
.filter-btn.active { background: var(--blue-primary); border-color: var(--blue-primary); color: var(--white); }

.search-box { margin-left: auto; position: relative; }
.search-box input {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px 9px 36px;
  color: var(--text-dark);
  font-size: 0.9rem;
  width: 240px;
  outline: none;
  transition: var(--transition);
  font-family: var(--font-body);
}
.search-box input:focus { border-color: var(--blue-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.search-box input::placeholder { color: var(--gray-400); }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }

.players-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.players-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--white); }
.players-table th {
  background: var(--blue-xxlight);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-blue);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.players-table th:hover { background: var(--blue-xlight); }
.players-table th .sort-icon { opacity: 0.4; margin-left: 4px; }
.players-table th.sorted .sort-icon { opacity: 1; }
.players-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-body);
  vertical-align: middle;
}
.players-table tr:last-child td { border-bottom: none; }
.players-table tbody tr:hover { background: var(--blue-xxlight); }
.player-rank  { font-weight: 700; color: var(--text-muted); width: 44px; }
.player-name  { font-weight: 600; color: var(--text-dark); }
.player-title {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  margin-right: 6px;
  letter-spacing: 0.05em;
}
.player-title.gm { background: rgba(234,179,8,0.15); color: #92400e; }
.player-title.im { background: rgba(59,130,246,0.15); color: var(--blue-dark); }
.player-title.fm { background: rgba(124,58,237,0.12); color: #5b21b6; }
.player-title.cm { background: rgba(220,38,38,0.12); color: #991b1b; }
.flag { font-size: 1.1rem; margin-right: 5px; }
.rating-val  { font-weight: 700; color: var(--text-dark); }
.section-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
}
.section-badge.masters  { background: rgba(234,179,8,0.12); color: #92400e; }
.section-badge.u2000    { background: rgba(59,130,246,0.12); color: var(--blue-dark); }
.section-badge.congress { background: rgba(124,58,237,0.1);  color: #5b21b6; }
.section-badge.blitz    { background: rgba(220,38,38,0.1);   color: #991b1b; }

/* =============================================
   CONTACT FORM
   ============================================= */

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-icon {
  width: 44px; height: 44px;
  background: var(--blue-xxlight);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  border: 1px solid var(--border-blue);
}
.contact-item h4 { font-size: 0.82rem; color: var(--blue-primary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.contact-item p  { font-size: 0.9rem; color: var(--text-body); margin: 0; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */

.page-hero {
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,43,107,0.85) 0%, rgba(30,58,138,0.65) 100%);
}
.page-hero .container  { position: relative; z-index: 1; }
.page-hero h1          { color: var(--white); }
.page-hero .section-label { color: var(--blue-light); }
.page-hero p           { color: rgba(255,255,255,0.85); }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: 0.5; }

/* =============================================
   SPONSORS
   ============================================= */

.sponsors-strip {
  padding: 44px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sponsors-label {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 26px;
}
.sponsors-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.sponsor-logo {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: var(--transition);
}
.sponsor-logo:hover { background: var(--blue-xxlight); color: var(--blue-dark); border-color: var(--border-blue); }

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: var(--blue-darkest);
  color: #c5d6f5;
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-icon { background: rgba(255,255,255,0.15); }
.footer-brand .logo-title { color: var(--white); }
.footer-brand .logo-sub   { color: var(--blue-light); }
.footer-brand p { font-size: 0.87rem; color: rgba(197,214,245,0.75); margin-top: 12px; line-height: 1.65; }
.footer-social { display: flex; gap: 9px; margin-top: 18px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(197,214,245,0.7);
  transition: var(--transition);
  cursor: pointer;
}
.social-btn:hover { background: var(--blue-primary); color: var(--white); border-color: transparent; }
.footer-col h4 { font-size: 0.79rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.87rem; color: rgba(197,214,245,0.7); transition: var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(197,214,245,0.55); margin: 0; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(197,214,245,0.55); }
.footer-bottom-links a:hover { color: var(--white); }

/* =============================================
   MODAL
   ============================================= */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 36px;
  transform: translateY(16px);
  transition: transform 0.25s;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--gray-100); border: none;
  border-radius: 6px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-500);
  font-size: 1.1rem; transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }

/* =============================================
   TOAST
   ============================================= */

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-primary);
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 0.9rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.28s ease;
  max-width: 320px;
}
.toast.success { border-left-color: #16a34a; }
.toast.error   { border-left-color: var(--red-accent); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* =============================================
   UTILITY
   ============================================= */

.text-blue  { color: var(--blue-primary); }
.text-dark  { color: var(--text-dark); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =============================================
   INNER PAGE HERO
   ============================================= */

.page-hero-inner {
  background: var(--blue-xxlight);
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border-blue);
}
.page-hero-h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.back-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--blue-primary);
  text-decoration: none;
  margin-bottom: 12px;
  font-weight: 500;
}
.back-link:hover { text-decoration: underline; }

/* =============================================
   SPONSOR FIXED SIDEBAR
   ============================================= */

.sponsor-sidebar-fixed {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 88px;
  background: var(--white);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: -2px 0 20px rgba(15,23,42,0.08), 0 0 0 1px var(--border);
  padding: 14px 8px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sponsor-sidebar-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}
.sponsor-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 36px;
  border-radius: 6px;
  background: var(--gray-50);
  text-decoration: none;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.sponsor-sidebar-item:hover { border-color: var(--blue-light); background: var(--blue-xxlight); }
.sponsor-sidebar-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor-sidebar-text {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.2;
  padding: 2px;
  word-break: break-word;
}
.sponsor-sidebar-all {
  font-size: 0.65rem;
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
  margin-top: 4px;
}
.sponsor-sidebar-all:hover { text-decoration: underline; }
.sponsor-logo--img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 4px 8px;
  text-decoration: none;
}
.sponsor-logo--img img {
  max-height: 36px;
  max-width: 120px;
  object-fit: contain;
}

/* =============================================
   SPONSORS PAGE
   ============================================= */

.sponsors-tier { margin-bottom: 48px; }
.sponsors-tier-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-xlight);
}
.sponsors-grid {
  display: grid;
  gap: 20px;
}
.sponsors-grid--main    { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sponsors-grid--supporting { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sponsor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.sponsor-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sponsor-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  min-height: 100px;
}
.sponsor-card-logo img {
  max-height: 64px;
  max-width: 180px;
  object-fit: contain;
}
.sponsor-card-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-xlight);
  color: var(--blue-primary);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}
.sponsor-card-body { padding: 20px; }
.sponsor-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
}
.sponsor-card-title a { color: inherit; text-decoration: none; }
.sponsor-card-title a:hover { color: var(--blue-primary); }
.sponsor-card-desc { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* =============================================
   BLOG
   ============================================= */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 760px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow); }
.blog-card-img { max-height: 280px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 280px; object-fit: cover; display: block; }
.blog-card-body { padding: 28px; }
.blog-card-meta { margin-bottom: 10px; }
.blog-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
}
.blog-card-title a { color: var(--text-dark); text-decoration: none; }
.blog-card-title a:hover { color: var(--blue-primary); }
.blog-card-summary { color: var(--text-body); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.empty-blog { padding: 48px 0; text-align: center; color: var(--text-muted); }

.blog-post-content { max-width: 720px; }
.blog-post-hero-img {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.blog-post-hero-img img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.blog-post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}
.blog-post-body p { margin-bottom: 1.4em; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1280px) {
  .sponsor-sidebar-fixed { display: none; }
}

@media (max-width: 1024px) {
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .about-content  { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { max-width: 380px; margin: 0 auto; }
  .venue-card     { grid-template-columns: 1fr; }
  .venue-img      { min-height: 260px; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .site-nav  { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sections-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .sections-grid { grid-template-columns: 1fr; }
  .players-filter { flex-direction: column; align-items: stretch; }
  .search-box { margin-left: 0; }
  .search-box input { width: 100%; }
  .about-img-badge { display: none; }
}
