/* ==========================================================================
   MEEST GELEZEN - VOLLEDIG RESPONSIVE
   ========================================================================== */

/* 1. Desktop instellingen (Standaard) */
#block-bugel-final-views-block-meestgelezen-block-1 {
  background-color: #000000 !important;
  color: #ffffff !important;
  height: 604.6px !important;
  padding: 25px 30px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}

#block-bugel-final-views-block-meestgelezen-block-1 h2 {
  font-family: 'Georgia', serif !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  color: #ffffff !important;
  border-bottom: 1px solid #333 !important;
  padding-bottom: 15px !important;
  margin: 0 0 10px 0 !important;
}

.meest-gelezen-item {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 15px !important;
  padding: 18px 0 !important;
  border-bottom: 1px solid #222 !important;
  align-items: flex-start !important;
}

.vi-marker {
  background-color: #eeb416 !important;
  color: #ffffff !important;
  width: 32px !important;
  height: 32px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Georgia', serif !important;
  font-weight: 900 !important;
  font-size: 0.85rem !important;
  margin-top: 2px !important;
}

.meest-gelezen-titel {
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: 'Georgia', serif !important;
  font-size: 1.05rem !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease !important;
}

/* 2. RESPONSIVE AANPASSINGEN (Mobiel & Tablet) */
@media screen and (max-width: 992px) {
  /* Laat de vaste hoogte los zodat de kolom kan meegroeien met de content */
  #block-bugel-final-views-block-meestgelezen-block-1 {
    height: auto !important;
    min-height: 300px !important;
    margin-top: 20px !important; /* Ruimte tussen dit blok en de dossiers erboven */
  }

  /* Iets meer ruimte voor de duim om te klikken op mobiel */
  .meest-gelezen-item {
    padding: 22px 0 !important;
  }

  /* Titel iets groter voor leesbaarheid op kleine schermen */
  .meest-gelezen-titel {
    font-size: 1.15rem !important;
  }
}

/* 2. RESPONSIVE AANPASSINGEN (Mobiel, Tablet & Landscape) */

/* We verhogen de grens naar 1024px (iPad Pro breedte) 
   en voegen een regel toe voor landscape op mobiel 
*/
@media screen and (max-width: 1024px), screen and (orientation: landscape) and (max-device-width: 932px) {
  
  /* 1. De container: Laat de vaste hoogte van 604.6px los */
  #block-bugel-final-views-block-meestgelezen-block-1,
  .region-middle-blocks .view-content,
  .region-sidebar-black {
    height: auto !important;
    min-height: 0 !important;
    display: block !important; /* Geen kolommen meer, maar blokken onder elkaar */
    width: 100% !important;
  }

  /* 2. Voeg marge toe tussen de kolommen die nu onder elkaar staan */
  #block-bugel-final-views-block-meestgelezen-block-1 {
    margin-top: 30px !important;
    padding: 20px !important;
  }

  /* 3. Optimalisatie voor de items in landscape */
  .meest-gelezen-item {
    padding: 15px 0 !important;
  }

  .meest-gelezen-titel {
    font-size: 1.1rem !important;
  }
}

/* Extra check voor hele kleine telefoons in portrait */
@media screen and (max-width: 480px) {
  .vi-marker {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
  }
}