/* ==========================================================================
   1. ALGEMENE RESETS, VARIABELEN & ACCESSIBILITY
   ========================================================================== */
:root {
  --primary-color: #003366;
  --secondary-color: #ffffff;
  --accent-color: #d4a017;
  --text-color: #333333;
  --bg-light: #f8fafc;
  --bg-main: #f1f5f9;
  --border-color: #e2e8f0;

  --slate-dark: #1e293b;
  --slate-text: #003366;
  --slate-muted: #64748b;
  --purple-link: #6b21a8;

  --focus-ring: 2px solid var(--accent-color);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  line-height: 1.6;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

section {
  padding: 15px 0;
}

.content-block {
  background: var(--secondary-color);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
}

/* Standaard inspringing voor opsommingslijsten */
ul,
ol {
  padding-left: 25px;
  margin-top: 10px;
  margin-bottom: 10px;
}

ul li,
ol li {
  margin-bottom: 6px;
}

/* Inspringing specifiek voor lijsten in contentblokken */
.content-block ul,
.content-block ol {
  padding-left: 25px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.content-block li {
  margin-bottom: 8px;
}

h1,
.page-title {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 2.2rem;
  text-align: center;
}

h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
}

/* UTILITIES */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.mb-0 {
  margin-bottom: 0 !important;
}

/* ==========================================================================
   2. INFOBALK (BOVENAAN) - COMPACTE VERSIE
   ========================================================================== */
.infobar {
  background: linear-gradient(135deg, #d4a017 0%, #e6b833 100%);
  color: var(--slate-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 15px;
  display: flex;
  justify-content: center; /* Brengt alles mooi naar het midden dicht bij elkaar */
  align-items: center;
  flex-wrap: wrap;
  gap: 45px; /* Bepaalt de exacte afstand tussen de items (pas dit getal gerust aan naar wens) */
  box-shadow:
    inset 0 -2px 5px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.infobar a,
.infobar span,
.infobar div {
  color: var(--slate-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.infobar a:hover {
  color: var(--primary-color);
  text-decoration: underline;
  transform: translateY(-1px);
}

/* ==========================================================================
   3. HEADER & UNIVERSELE NAVIGATIE
   ========================================================================== */
.header {
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.hero-left,
.hero-right {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.nav > a,
.nav .dropdown > a,
.nav .dropdown > span.nav-drop-title {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  vertical-align: middle;
  transition: background-color 0.2s ease;
  border-radius: 4px;
}

.nav > a:hover,
.nav .dropdown > a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav .dropdown span.nav-drop-title {
  cursor: default;
}

.nav a.sponsor-btn {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.nav a.sponsor-btn:hover {
  background-color: #bfa014;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--secondary-color);
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  border-radius: 4px;
  top: 100%;
  left: 5px;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: normal;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:hover,
.dropdown-content a:focus {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

/* ==========================================================================
   4. HOMEPAGE GRID & CARDS
   ========================================================================== */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card-title {
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.read-more-link {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
}

.read-more-link:hover {
  text-decoration: underline;
}

.purple-link {
  color: var(--purple-link);
  text-decoration: underline;
}

.purple-link:hover {
  color: var(--primary-color);
}

/* NIEUWS & EVENEMENTEN RASTER */
.news-section {
  margin-top: 15px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.news-card {
  background: var(--bg-main);
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.news-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.news-link {
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  margin-top: 5px;
  text-decoration: none;
  font-size: 0.9rem;
}

.news-link:hover {
  text-decoration: underline;
}

/* SPONSOR BANNER HOMEPAGE */
.sponsor-banner {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  border-left: 5px solid var(--accent-color);
  margin-top: 25px;
  display: block;
  clear: both;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sponsor-banner h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: var(--secondary-color);
}

.sponsor-banner p {
  margin-bottom: 15px;
  color: var(--bg-main);
}

.sponsor-banner .sponsor-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.sponsor-banner .sponsor-btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* ==========================================================================
   EVENEMENTEN PAGINA
   ========================================================================== */
.event-list {
  padding-left: 25px;
}

/* ==========================================================================
   ZOEKBALK & TABEL STYLES (Nieuwspagina)
   ========================================================================== */

/* Zoekbalk Styling (Links en kleiner) */
.search-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start; /* Uitgelijnd naar links */
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 220px; /* Compacter formaat */
}

.search-input {
  width: 100%;
  padding: 6px 35px 6px 12px; /* Iets minder hoge vulling */
  font-size: 13px; /* Iets kleiner lettertype */
  border: 1px solid #ccc;
  border-radius: 16px;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.search-input:focus {
  border-color: #1b365d;
  box-shadow: 0 0 4px rgba(27, 54, 93, 0.3);
}

.search-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  color: #666;
}

.search-button:hover {
  color: #1b365d;
}

/* Transfer Tabel Styling */
.table-wrapper {
  overflow-x: auto;
}

.transfer-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.transfer-table thead tr {
  border-bottom: 2px solid #ddd;
  text-align: left;
}

.transfer-table th {
  padding: 8px;
}

.transfer-table tbody tr {
  border-bottom: 1px solid #eee;
}

.transfer-table tbody tr:last-child {
  border-bottom: none;
}

.transfer-table td {
  padding: 8px;
}

.transfer-table td.player-name {
  font-weight: bold;
}

/* ==========================================================================
   5. SPORTONGEVAL & STAPPENPLAN MODULE
   ========================================================================== */
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: #fef3c7;
  border-left: 4px solid var(--accent-color);
  padding: 15px 20px;
  border-radius: 6px;
  margin: 20px 0;
  color: #78350f;
}

.alert-box .icon {
  font-size: 1.4rem;
  line-height: 1;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.step-card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.step-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--bg-main);
  padding-bottom: 6px;
}

.step-card ul {
  margin-left: 18px;
  margin-top: 10px;
}

.step-card li {
  margin-bottom: 6px;
}

.download-section {
  background: var(--secondary-color);
  padding: 25px;
  border-radius: 8px;
  margin-top: 30px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.download-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  font-weight: bold !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
  transition:
    transform 0.2s,
    background-color 0.2s !important;
  cursor: pointer !important;
  margin-top: 20px !important;
}

.download-btn:hover {
  background-color: #002244 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
}

.download-btn:active {
  transform: translateY(0) !important;
}

.download-icon {
  flex-shrink: 0 !important;
}

/* Container variant voor de download knop */
.download-container {
  margin: 25px 0;
  display: flex;
  justify-content: center;
}

.download-container .btn-download {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  padding: 14px 24px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease !important;
}

.download-container .btn-download:hover {
  background-color: #002244 !important;
  border-color: #002244 !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25) !important;
}

.download-container .btn-download svg {
  color: #ffffff !important;
}

/* ==========================================================================
   6 & 7. BESTUUR, SPELERS & STAF
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bestuur-grid,
.player-grid,
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.bestuur-card,
.player-card,
.staff-card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.bestuur-card:nth-child(1),
.player-card:nth-child(1),
.staff-card:nth-child(1) {
  animation-delay: 0.05s;
}
.bestuur-card:nth-child(2),
.player-card:nth-child(2),
.staff-card:nth-child(2) {
  animation-delay: 0.1s;
}
.bestuur-card:nth-child(3),
.player-card:nth-child(3),
.staff-card:nth-child(3) {
  animation-delay: 0.15s;
}
.bestuur-card:nth-child(4),
.player-card:nth-child(4),
.staff-card:nth-child(4) {
  animation-delay: 0.2s;
}
.bestuur-card:nth-child(5),
.player-card:nth-child(5),
.staff-card:nth-child(5) {
  animation-delay: 0.25s;
}
.bestuur-card:nth-child(6),
.player-card:nth-child(6),
.staff-card:nth-child(6) {
  animation-delay: 0.3s;
}
.bestuur-card:nth-child(7),
.player-card:nth-child(7),
.staff-card:nth-child(7) {
  animation-delay: 0.35s;
}
.bestuur-card:nth-child(8),
.player-card:nth-child(8),
.staff-card:nth-child(8) {
  animation-delay: 0.4s;
}
.bestuur-card:nth-child(n + 9),
.player-card:nth-child(n + 9),
.staff-card:nth-child(n + 9) {
  animation-delay: 0.45s;
}

.bestuur-card:hover,
.player-card:hover,
.staff-card:hover,
.bestuur-card:focus-within,
.player-card:focus-within,
.staff-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.bestuur-avatar,
.player-photo,
.staff-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px auto;
  border: 3px solid var(--primary-color);
  background-color: var(--bg-main);
  display: block;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.bestuur-card:hover .bestuur-avatar,
.player-card:hover .player-photo,
.staff-card:hover .staff-photo {
  transform: scale(1.05);
  border-color: var(--accent-color);
}

.bestuur-naam,
.player-name,
.staff-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--slate-dark);
  margin-bottom: 6px;
  display: block;
}

.bestuur-functie,
.staff-role {
  font-size: 0.95rem;
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.bestuur-extra {
  font-size: 0.85rem;
  color: var(--slate-muted);
  font-style: italic;
  display: block;
}

/* ==========================================================================
   8. SPONSOR FORMULES MODULE
   ========================================================================== */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.sponsor-card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sponsor-package-title {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* ==========================================================================
   9. WEDSTRIJDEN & TABELLEN
   ========================================================================== */
.table-responsive,
.matches-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 15px;
}

.wedstrijd-tabel,
.matches-table,
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 0.95em;
  min-width: 650px;
  background: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.wedstrijd-tabel th,
.matches-table th,
table th {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: left;
  padding: 12px 15px;
  font-weight: bold;
}

.wedstrijd-tabel td,
.matches-table td,
table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.wedstrijd-tabel tr:hover,
.matches-table tr:hover,
table tr:hover {
  background-color: var(--bg-light);
}

.type-match {
  font-weight: bold;
  color: var(--accent-color);
}

.start-competitie {
  background-color: #e6f0ff;
  font-weight: bold;
}

/* ==========================================================================
   11. EXTRA DETAILS & SUBTITLES
   ========================================================================== */
.subtitle {
  font-size: 1.1rem;
  font-weight: bold;
  color: #475569;
  margin-bottom: 15px;
}

.block-footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  font-size: 0.9rem;
}

.logo-slider-footer {
  margin-top: 30px;
}

/* ==========================================================================
   12. LOGO SLIDER (SPONSOR ANIMATIE)
   ========================================================================== */
.logo-slider {
  width: 100%;
  overflow: hidden;
  background: var(--secondary-color);
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollRechts 25s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-track img,
.logo-track a {
  display: block;
}

.logo-track img {
  width: 225px;
  max-width: 100%;
  height: 120px;
  margin: 0 40px;
  object-fit: contain;
}

@keyframes scrollRechts {
  0% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   13. FORMULIER STYLING
   ========================================================================== */
.form-container {
  max-width: 500px;
  margin: 30px auto;
  padding: 25px;
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-container h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--text-color);
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 0.875rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  font-family: inherit;
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.15);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 12px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #002244;
}

/* ==========================================================================
   14. TERUG NAAR BOVEN KNOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 999;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* ==========================================================================
   15. DUBBELE WEDSTRIJDKAARTEN MODULE (A-PLOEG & B-PLOEG)
   ========================================================================== */
.matches-grid {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  align-items: stretch;
}

.next-match-card {
  flex: 1;
  background: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 160px;
}

.next-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.badge-title {
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: 0.85rem;
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}

.match-category {
  font-weight: bold;
  color: var(--primary-color);
}

.divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 0 0 15px 0;
}

.next-match-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: center;
  gap: 10px;
}

.match-team,
.match-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.match-team {
  flex: 1;
  min-width: 0;
}

.match-info {
  flex: 1.2;
  justify-content: center;
}

.match-logo {
  width: 50px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  display: block;
}

.match-logo[src=""],
.match-logo:not([src]) {
  visibility: hidden;
  height: 0;
  margin-bottom: 0;
}

.match-team-name {
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--primary-color);
  word-break: break-word;
  line-height: 1.2;
}

.vs-text {
  color: var(--accent-color);
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 2px;
}

.match-date {
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.match-time {
  font-weight: bold;
  font-size: 0.85rem;
  color: #2b6cb0;
  margin-bottom: 4px;
}

.match-location {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--slate-muted);
}

/* ==========================================================================
   16. RESPONSIVE DESIGN (MOBIELE OPTIMALISATIE)
   ========================================================================== */
@media screen and (max-width: 850px) {
  .matches-grid {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  .infobar {
    flex-direction: column;
    gap: 4px;
    padding: 6px 10px;
    font-size: 0.78rem;
    text-align: center;
  }

  .infobar a,
  .infobar span,
  .infobar div {
    justify-content: center;
    width: 100%;
  }

  .header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 10px;
    gap: 6px;
  }

  .hero-left {
    height: 40px;
    width: auto;
  }

  .hero-right {
    display: none;
  }

  /* Navigatie: geen overflow snijpunten meer zodat de dropdowns zichtbaar blijven */
  .nav {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: center;
    overflow-x: visible !important;
    white-space: normal !important;
    padding: 4px 0 8px 0;
    gap: 6px;
  }

  .nav > a,
  .nav .dropdown {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    width: auto !important;
    position: relative;
  }

  .nav a,
  .nav-drop-title {
    display: inline-block;
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
    white-space: nowrap;
  }

  /* Dropdown positionering op mobiel */
  .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    min-width: 180px;
    background: var(--secondary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    z-index: 2000;
    border-radius: 4px;
    padding: 5px 0;
  }

  .dropdown-content a {
    display: block !important;
    width: 100% !important;
    text-align: left;
    color: var(--text-color);
    padding: 10px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Zorgt dat de JS-toggle op mobiel werkt */
  .dropdown.active .dropdown-content {
    display: block !important;
  }

  .container {
    padding: 12px;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .home-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .content-block {
    padding: 15px;
  }

  .nav a.sponsor-btn {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 600px) {
  /* Maak de kaart compacter qua padding */
  .next-match-card {
    padding: 8px 10px;
    min-height: auto;
  }

  /* Houd de header (badge & team) op 1 rij */
  .next-match-header {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }

  .badge-title {
    font-size: 0.7rem !important;
    padding: 2px 8px !important;
  }

  .match-category {
    font-size: 0.8rem !important;
  }

  .divider {
    margin-bottom: 8px;
  }

  /* Blijf op mobiel de teams en info horizontaal naast elkaar tonen */
  .next-match-body {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
  }

  /* Verklein de logo's op mobiel */
  .match-logo {
    width: 32px;
    height: 38px;
    margin-bottom: 2px;
  }

  /* Maak de teamnamen en teksten schaalbaar en kleiner */
  .match-team-name {
    font-size: 0.75rem !important;
    line-height: 1.1;
  }

  .vs-text {
    font-size: 0.9rem !important;
    margin: 0;
  }

  .match-date {
    font-size: 0.75rem !important;
  }

  .match-time {
    font-size: 0.75rem !important;
    margin-bottom: 2px;
  }

  .match-location {
    font-size: 0.7rem !important;
  }
}
