:root {
  --blue: #0b3d91;
  --blue-dark: #072b66;
  --accent: #f4b000;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #d9e1ef;
  --radius: 18px;
  --shadow: 0 14px 35px rgba(11, 61, 145, .10);
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  width: min(1180px, 92%);
  margin: auto
}

.site-header {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: .3px
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--blue);
  font-weight: 900
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #eaf1ff;
  font-weight: 700;
  font-size: 14px
}

.nav a.active,
.nav a:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff
}

.hero {
  background: linear-gradient(135deg, var(--blue), #1765d1);
  color: #fff;
  padding: 56px 0 42px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 28px;
  align-items: stretch
}

.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  margin: 0 0 16px
}

.hero p {
  font-size: 18px;
  color: #e6efff;
  margin: 0 0 26px
}

.hero-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 320px;
  display: flex;
  flex-direction: column
}

.hero-card h2 {
  margin: 0 0 10px
}

.sponsor-viewer {
  margin-top: 12px;
  height: 220px;
  flex: 1 0 220px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .94)
}

.sponsor-viewer a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center
}

.sponsor-viewer img {
  width: 100%;
  height: 100%;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  object-fit: scale-down;
  display: block;
  background: #fff
}

.sponsor-empty {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, .5);
  border-radius: 12px;
  color: #e6efff;
  font-size: 14px
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #111827;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800
}

.section {
  padding: 36px 0
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px
}

.section-title h2 {
  margin: 0;
  font-size: 28px
}

.section-title p {
  margin: 0;
  color: var(--muted)
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px
}

.news-card .date,
.tag {
  display: inline-block;
  color: var(--blue);
  background: #eaf1ff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800
}

.news-card h3 {
  margin: 14px 0 8px
}

.muted {
  color: var(--muted)
}

.match-list {
  display: grid;
  gap: 12px
}

.match {
  display: grid;
  grid-template-columns: 90px 70px minmax(0, 1fr) 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff
}

.match strong {
  color: var(--blue)
}

.match > span:nth-of-type(2),
.match > span:nth-of-type(4) {
  min-width: 0;
  overflow-wrap: anywhere
}

.score {
  font-weight: 900;
  text-align: center;
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px;
  white-space: nowrap
}

.select-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center
}

.select-row select {
  min-width: 260px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 16px;
  line-height: 1.2
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px
}

.table-wrap + .section-title {
  margin-top: 20px
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap
}

th {
  background: #eef4ff;
  color: var(--blue);
  font-size: 13px;
  text-transform: uppercase
}

tr:last-child td {
  border-bottom: 0
}

.rank {
  font-weight: 900;
  color: var(--blue)
}

.fairplay-good {
  color: #087443;
  font-weight: 900
}

.footer {
  background: #0f172a;
  color: #d8e0f0;
  margin-top: 40px;
  padding: 32px 0
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px
}

.footer h3 {
  color: #fff;
  margin-top: 0
}

.mobile-menu {
  display: none
}

.news-page .container,
.algemeen-page .container {
  width: min(1380px, 94%)
}

.news-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap
}

.news-feed {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 18px
}

.news-sponsors {
  width: 300px;
  flex: 0 0 300px;
  position: sticky;
  top: 108px;
  padding: 22px
}

.news-sponsors h3 {
  margin: 0 0 16px
}

.news-sponsor-list {
  display: grid;
  gap: 14px
}

.news-sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff
}

.news-sponsor-item img {
  max-width: 100%;
  max-height: 120px;
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  display: block
}

.news-card {
  min-width: 0;
  padding: 28px
}

.news-card p {
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0 0 12px
}

.news-card h3 {
  overflow-wrap: anywhere;
  word-break: break-word
}

.news-card p:last-child {
  margin-bottom: 0
}

.news-toggle-row {
  display: flex;
  justify-content: flex-start
}

.news-toggle {
  border: 0;
  cursor: pointer
}

.news-archive[hidden] {
  display: none
}

.news-archive {
  display: grid;
  gap: 18px
}

.mobile-menu span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 99px;
  margin: 5px 0;
  transition: .2s ease
}

.select-row .button {
  border: 0;
  cursor: pointer
}

.fixture-results {
  margin-top: 16px
}

.fixture-results[hidden] {
  display: none
}

.fixture-results h4 {
  margin: 0 0 10px
}

.fixtures-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff
}

.fixtures-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px
}

.fixtures-table th,
.fixtures-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap
}

.fixtures-table tbody tr:last-child td {
  border-bottom: 0
}

.sponsor-strip-section {
  padding-top: 10px
}

.sponsor-strip-wrap {
  padding: 16px
}

.sponsor-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px
}

.sponsor-chip {
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px
}

.sponsor-chip img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 90px;
  object-fit: scale-down;
  display: block
}

@media (max-width:900px) {

  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr
  }

  .header-inner {
    position: relative;
    align-items: center
  }

  .mobile-menu {
    display: block;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    border-radius: 12px;
    padding: 8px 11px;
    cursor: pointer
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 14px;
    background: var(--blue-dark);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, .22);
    flex-direction: column;
    gap: 4px
  }

  .nav.is-open {
    display: flex
  }

  .nav a {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px
  }

  .mobile-menu.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg)
  }

  .mobile-menu.is-open span:nth-child(2) {
    opacity: 0
  }

  .mobile-menu.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg)
  }

  .match {
    grid-template-columns: 82px 58px minmax(0, 1fr) 64px minmax(0, 1fr)
  }

  .match strong,
  .match>span:first-of-type {
    white-space: nowrap
  }

  .section {
    padding: 26px 0
  }

  .hero-card {
    min-height: 280px
  }

  .sponsor-viewer {
    height: 180px;
    flex-basis: 180px
  }

  .sponsor-viewer img {
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px)
  }

}

@media (max-width:700px) {
  .news-layout {
    display: block
  }

  .news-sponsors {
    width: auto;
    flex: none;
    position: static
  }

  .ranking-table {
    min-width: 0
  }

  .ranking-table th,
  .ranking-table td {
    display: table-cell;
    padding: 11px 6px
  }

  .ranking-table th:nth-child(4),
  .ranking-table td:nth-child(4),
  .ranking-table th:nth-child(5),
  .ranking-table td:nth-child(5),
  .ranking-table th:nth-child(6),
  .ranking-table td:nth-child(6),
  .ranking-table th:nth-child(7),
  .ranking-table td:nth-child(7) {
    display: none
  }

  .ranking-table th:nth-child(8),
  .ranking-table td:nth-child(8) {
    display: table-cell
  }

  .ranking-table {
    font-size: 14px
  }

  .table-wrap {
    overflow-x: visible
  }
}

@media (max-width:520px) {
  .brand span:last-child {
    font-size: 14px
  }

  .news-card {
    padding: 20px
  }

  .hero {
    padding: 36px 0 28px
  }

  .card {
    padding: 16px
  }

  .match {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px 10px;
    align-items: start
  }

  .match strong,
  .match>span:nth-of-type(1) {
    white-space: nowrap
  }

  .match strong {
    grid-column: 1;
    grid-row: 1
  }

  .match>span:nth-of-type(1) {
    grid-column: 3;
    grid-row: 1;
    justify-self: end
  }

  .match>span:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2
  }

  .match .score {
    grid-column: 2;
    grid-row: 2;
    text-align: center
  }

  .match>span:nth-of-type(4) {
    grid-column: 3;
    grid-row: 2;
    text-align: right
  }
}