/* ===================================================================
   SECTIE: SPORT LIJST & TABEL
   =================================================================== */

/* Container voor de badges */
.sport-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px;
  align-items: start; /* Belangrijk: zorgt dat items niet uitrekken in hoogte als een buur uitklapt */
  margin-bottom: 40px;
}

.sport-grid-container.related-sports {
  grid-template-columns: repeat(4, 1fr); 
}

.sport-grid-container.sport-overview {
    grid-template-columns: repeat(4, 1fr); 
    margin-top: -460px;
}

/* Algemene kaart styling */
.sport-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 15px;
  border: 1px solid #e6e9ed;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.sport-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.sport-card.is-group:hover {
  transform: scale(1);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 15px;
}

/* Afbeeldingen */
.sport-card-image {
  width: 100%;
  height: 150px;
  position: relative;
}

.sport-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
}

/* Label voor categorieën */
.badge-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--clr-med-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-btn);
  text-transform: uppercase;
}

/* Content Body */
.sport-card-content {
  padding: 20px 30px 40px;
  display: flex;
  flex-direction: column;
  min-height: 120px;
}

.sport-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: #001158;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Details Footer (Locaties & Sterren) */
.sport-card-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* Locatie tags (iets compacter gemaakt voor in de kaart) */
.sport-locations .location-tag {
  display: inline-block;
  font-size: 13px;
  padding: 4px 10px;
  border: solid 1px #0e76bc;
  border-radius: 20px;
  color: #001158;
  margin-right: 4px;
}

/* Sterren aanpassing voor kleine ruimte */
.sport-intensity .star-rating {
  font-size: 14px; /* Iets kleiner dan origineel */
}

/* ===================================================================
   ACCORDEON / CATEGORIE SPECIFIEK
   =================================================================== */

details.sport-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  /* Reset min-height voor details om witruimte te voorkomen */
  height: auto;
}

summary.sport-card-summary {
  list-style: none;
  outline: none;
}
summary.sport-card-summary::-webkit-details-marker {
  display: none;
}

.sport-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sport-children {
  display: inline-block;
  font-size: 14px;
  padding: 4px 30px;
  border: solid 1px #0e76bc;
  border-radius: 20px;
  background: #0e76bc;
  color: #fff;
  font-weight: bold;
}

.toggle-icon .arrow {
  transition: transform 0.3s ease;
  color: #0e76bc;
}

details[open] .arrow {
  transform: rotate(180deg);
}

/* Kinder items (het menu) */
.sport-card-children {
  background-color: #fcfcfc;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.child-sport-item {
  padding: 20px 20px 40px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: background 0.2s;
}

.child-sport-item:last-child {
  border-bottom: none;
}

.child-sport-item:hover {
  background-color: #e7f4f9;
}

.child-name {
  display: block;
  margin-bottom: 16px;
  font-size: 21px;
  font-weight: 700;
  color: #001158;
  text-transform: uppercase;
  line-height: 1.2;
}

.child-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
  gap: 6px;
}

.child-locs .location-tag {
  /* Hergebruik basis styling maar zonder border in het menuutje voor rustiger beeld */
  border: none;
  padding: 0;
  background: transparent;
  color: #666;
  font-weight: 500;
}
/* Komma toevoegen als er meerdere zijn in menu stijl? */
.child-locs .location-tag:not(:last-child):after {
  content: ",";
}

.separator {
  color: #ccc;
  font-size: 10px;
}

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

/* @media (max-width: 1200px) {
  .sport-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
} */

@media (max-width: 900px) {
  .sport-grid-container,
  .sport-grid-container.related-sports,
  .sport-grid-container.sport-overview  {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sport-grid-container,  
  .sport-grid-container.related-sports,
  .sport-grid-container.sport-overview  {
    grid-template-columns: 1fr;
  }
  .sport-card-image {
    height: 180px;
  }
}

/* ===================================================================
   SECTIES: INTRO & REQUIREMENTS
   =================================================================== */

.requirements-box {
  align-self: start;
  position: relative;
  background-color: #bcdcf5;
  border-radius: var(--radius-std);
  padding: 0;
  background-image: url(https://mww.universiteitleiden.nl/assets/images/rings-white.svg);
  background-repeat: no-repeat;
  background-position: right bottom;
  border-bottom-right-radius: var(--radius-std);
}

.requirements-box-content {
  padding: 3rem;
}

.requirements-box .info-box-title,
.requirements-box-content h3 {
  margin-top: 18px;
  margin-bottom: 2rem;
  color: var(--clr-med-blue);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
}
.requirements-box .checklist {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.requirements-box .checklist-item {
  display: flex;
  position: relative;
  font-size: 21px;
  line-height: 1.2;
  user-select: none;
  color: var(--clr-text);
  font-weight: 600;
  align-items: flex-start;
}
.requirements-box .checklist-item small {
  display: block;
  font-weight: 400;
  opacity: 0.7;
  font-size: 18px;
  margin-top: 6px;
}

.checklist-checkmark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}

.checklist-text {
  padding-left: 12px;
}

/* ===================================================================
   SECTIE: ROOSTER (TABS & DROPDOWNS)
   =================================================================== */

.roster {
  background-color: var(--clr-white);
  border-radius: 20px;
  border: 1px solid #e6e9ed;
}

.roster-section {
  padding-block: 6rem;
  background: var(--clr-bg-light);
}
.roster-container {
  background: var(--clr-white);
  border-radius: var(--radius-std);
  padding: 3rem;
}
.roster-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.roster-section-header h2 {
  font-size: 1.2rem;
  font-family: "Vestula", serif;
  color: var(--clr-accent);
  font-weight: normal;
}

/* Tabs */
.tabs-nav {
  display: flex;
  border-bottom: 1px solid #d0d5dc;
}

.roster .tabs-nav {
  margin: 0 40px;
}

.tab-button {
  font-family: "Vestula", serif;
  font-weight: 700;
  color: #666;
  padding: 30px 30px 14px;
  border: none;
  border-bottom: 4px solid transparent;
  background: none;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.tab-button.tab-events {
    padding: 0 30px 14px;
}


.tab-button svg {
  width: 20px;
  margin-right: 6px;
}
.tab-button:hover {
  color: #0e76bc;
}
.tab-button.is-active {
  color: #0e76bc;
  border-bottom: 4px solid #0e76bc;
}

.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
  padding: 40px 0;
}

.roster .tab-panel.is-active {
  padding: 40px;
}

.timetable-block {
  margin-bottom: 2.5rem;
}
.timetable-block:last-child {
  margin-bottom: 0;
}
.timetable-block h3 {
  font-size: 20px;
  font-weight: 600;
  font-family: "Vestula", serif;
  margin-bottom: 1.5rem;
  color: var(--clr-accent);
}

.iframe-container {
  overflow: hidden;
}

.iframe-container iframe {
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  height: 450px;
  border: none;
}

.tab-panel,
.roster-iframe {
  display: none;
}
.tab-panel.is-active,
.roster-iframe.is-active {
  display: block;
}
.no-timetable-message {
  text-align: center;
  padding: 2rem;
  background-color: #f1f9fc;
  border-radius: 12px;
}

/* Custom Dropdown Styling */
.roster-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.roster-selector.location-selector {
  margin: 2rem 0 0 0;
}

.dropdown {
  position: relative;
  width: 300px;
  height: 50px;
  font: normal 18px / 1.3 "Vestula", sans-serif;
}
.dropdown::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  right: 20px;
  top: 18px;
  border: 2px solid #333;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  transition: transform 0.5s;
  pointer-events: none;
  z-index: 1;
}
.dropdown.active::before {
  top: 22px;
  transform: rotate(-225deg);
}

.dropdown .textBox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #ececec;
  outline: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 0 0 0 20px;
  border-radius: 10px;
  font: inherit;
  color: #333;
}

.dropdown .option {
  position: absolute;
  top: 60px;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  display: none;
  z-index: 10;
}
.dropdown.active .option {
  display: block;
}
.dropdown .option div {
  padding: 16px 24px;
  cursor: pointer;
}
.dropdown .option div:hover {
  background-color: #62baea;
  color: #fff;
}

/* Container voor relatieve positionering van het pijltje */
.location-dropdown-wrapper {
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
}

/* De Select zelf */
.location-select {
  appearance: none; /* Verberg standaard browser styling */
  -webkit-appearance: none;
  width: 100%;
  background-color: #fff;
  border: 2px solid #0e76bc; /* Jouw blauwe kleur */
  color: #001158;
  padding: 15px 20px;
  font-size: 18px;
  font-family: "Vestula", serif;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
}

.location-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 118, 188, 0.3);
}

/* Het pijltje rechts */
.select-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* Klik gaat er doorheen naar de select */
  color: #0e76bc;
}

/* ===================================================================
   SECTIE: AUDIENCES (Voor Wie?)
   =================================================================== */
.audiences-section .section-intro {
  margin-bottom: 3rem;
}
.audiences-section .two-column-layout {
  align-items: center;
}
@media (min-width: 900px) {
  .audiences-section .two-column-layout {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

.audience-item {
  border-bottom: 1px solid rgba(0, 27, 72, 0.1);
}
.audience-item:last-child {
  border-bottom: none;
}
.audience-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-med-blue);
  cursor: pointer;
  list-style: none;
  text-transform: uppercase;
}
.audience-item summary::-webkit-details-marker {
  display: none;
}
.audience-item summary .arrow {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.6s ease;
  transform: rotate(-90deg);
}
.audience-item[open] > summary .arrow {
  transform: rotate(0deg);
}
.item-content {
  font-family: var(--font-serif);
  padding: 0 1rem 1.5rem 0;
  line-height: 1.7;
  color: var(--clr-text);
  font-size: 18px;
}

.item-content p {
  margin-block: 0;
}

.audience-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .audience-image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 899px) {
  .audience-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.audience-image-grid figure {
  margin: 0;
  border-radius: var(--radius-std);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.audience-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

/* ===================================================================
   SECTIE: FAQ & ACCORDION
   =================================================================== */
.faq-section {
  padding-block: 6rem;
  background: var(--clr-bg-light);
}
.accordion {
  max-width: 100%;
}
.accordion-item {
  box-shadow: 0 10px 30px rgb(0 0 0 / 3%);
  background: var(--clr-white);
  margin-bottom: 1rem;
  border-radius: var(--radius-std);
  font-size: 18px;
}
.accordion-item:last-child {
  border-bottom: none;
}
.accordion-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 3rem;
  font-size: 23px;
  line-height: 1.1;
  color: #0e76bc;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.accordion-title::-webkit-details-marker {
  display: none;
}
.accordion-content {
  padding: 0 3rem 3rem 3rem;
  font-family: var(--font-serif);
}

.accordion-content p {
  margin-block: 0;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  margin-left: 1rem;
  flex-shrink: 0;
  color: var(--clr-med-blue);
  transition: transform 0.2s ease-in-out;
}
.accordion-item .icon-minus {
  display: none;
}
.accordion-item .icon-plus {
  display: block;
}
.accordion-item[open] .icon-plus {
  display: none;
}
.accordion-item[open] .icon-minus {
  display: block;
}
.accordion-item[open] .accordion-icon {
  transform: rotate(180deg);
}

/* ===================================================================
   SECTIE: LEVEL TABS & CARDS
   =================================================================== */
.level-cards-container {
  display: grid;
  gap: 2.5rem;
  margin: 2rem auto;
}
.level-card {
  overflow: hidden;
}
.level-card-header {
  color: var(--clr-dark-blue);
  padding: 0.5rem 2rem;
  font-size: 14px;
  text-transform: uppercase;
  display: inline-block;
  background-color: rgb(255 255 255 / 50%);
  border-radius: 20px 20px 0 0;
  font-weight: bold;
}
.level-card-content {
  background-color: rgb(255 255 255 / 50%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1.5rem 2rem;
  border-radius: 0 20px 20px 20px;
}
@media (min-width: 600px) {
  .level-card-content {
    grid-template-columns: 1fr 1fr;
  }
}

.level-column h4 {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--clr-dark-blue);
  margin-bottom: 0.75rem;
  border-bottom: 1px dotted #7783b7;
  padding-bottom: 0.5rem;
}
.level-column ul {
  display: flex;
  padding: 0;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 18px;
}
.level-column li {
  position: relative;
  padding-left: 20px;
  color: var(--clr-text);
}
.level-column li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--clr-dark-blue);
  font-weight: bold;
}

/* Geneste Tabs (in FAQ) */
.level-tabs-container {
  margin: 2rem auto 1rem;
  overflow: hidden;
}
button.level-tab {
  font-family: "Vestula", serif;
  color: var(--clr-text);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 12px 1.5rem;
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
}
.level-tab.active {
  background-color: #bbdcf5;
  border-radius: 20px 20px 0 0;
  color: var(--clr-text);
}
.level-content-panel {
  display: none;
  padding: 1.5rem 2rem;
}
.level-content-panel.active {
  display: block;
  background-color: #bbdcf5;
  border-radius: var(--radius-std);
}
.level-content-panel:first-child.active {
  border-radius: 0 20px 20px 20px;
}
.level-columns-wrapper {
  display: flex;
  gap: 2rem;
}
.level-column {
  flex: 1;
}

/* ===================================================================
