/* --- Schedule Tabel Stijlen (Desktop) --- */
.schedule-table {
  width: 90%;
  max-width: 950px;
  margin: 0 auto 40px auto;
  border-collapse: collapse;
  color: #ffffff;
  background-color: #1a1a1a;
  border: 1px solid #333;
}

.schedule-table th {
  background-color: #d01a2f;
  color: #ffffff;
  /* Wit op de rode balk */
  padding: 15px;
  font-family: "LemonMilk", sans-serif;
  text-transform: uppercase;
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
}

.schedule-table td {
  padding: 15px;
  border-bottom: 1px solid #333;
  text-align: left;
  font-size: 0.9rem;
}

/* Forceer gelijke en logische kolombreedtes op desktop (4 kolommen totaal) */
.schedule-table th:nth-child(1),
.schedule-table td:nth-child(1) {
  width: 22%;
  /* Date */
}

.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
  width: 28%;
  /* Event */
}

.schedule-table th:nth-child(3),
.schedule-table td:nth-child(3) {
  width: 28%;
  /* Circuit */
}

/* Alleen de DATA-cellen (td) in de 4e kolom krijgen de rode kleur en monospace font */
.schedule-table td:nth-child(4) {
  width: 22%;
  /* Countdown / Status */
  font-family: monospace;
  font-weight: bold;
  color: #d01a2f;
}

/* Zorg dat de TH in de 4e kolom gewoon wit blijft net als de rest van de koppen */
.schedule-table th:nth-child(4) {
  width: 22%;
  color: #ffffff;
}

.event-row {
  cursor: pointer;
  transition: background 0.2s;
}

.event-row:hover {
  background-color: #2a2a2a;
}

/* --- Stijlen voor sectie titels op de Schedule pagina --- */
.content-page h2 {
  font-family: "LemonMilk", sans-serif;
  color: #ffffff;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* --- Responsief voor mobiel --- */
@media (max-width: 768px) {
  .schedule-table {
    width: 100%;
    background-color: transparent;
    border: none;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100% !important;
  }

  /* Maak van elke rij een los "kaartje" */
  .schedule-table tr {
    margin-bottom: 20px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-top: 3px solid #d01a2f;
    box-sizing: border-box;
  }

  /* Flex-instelling met ruimte ertussen */
  .schedule-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #252525;
    box-sizing: border-box;
    text-align: right;
    gap: 12px;
    overflow-wrap: anywhere;
  }

  .schedule-table td:not(:first-child) {
    min-width: 0;
  }

  .schedule-table td::after {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .schedule-table td:last-child {
    border-bottom: none;
  }

  /* Het label links */
  .schedule-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #d01a2f;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    flex-shrink: 0;
    margin-right: 20px;
  }
}
