/*
Theme Name: Astra Child
Theme URI: https://www.chrisvantienhoven.nl
Description: Een child-theme voor Astra.
Author: Chris van Tienhoven
Template: astra
Version: 1.0
*/

/* ============================================================
   0. COMPACTE GUTENBERG-STIJL — FRONT-END
   ============================================================ */

/* Blokelementen zonder automatische witruimte */
p, ul, ol, blockquote, h1, h2, h3, h4, h5, h6 {
  margin: 0 !important;
  padding: 0;
  line-height: 1.6;
}

/* Lijst-elementen: geen verticale ruimte tussen items */
ul li, ol li {
  margin: 0;
  padding: 0;
}

/* ✅ Herstel horizontale insprong voor lijsten */
ul,
ol {
  padding-left: 1.6em !important;
  list-style-position: outside;
}

/* ✅ Diepere insprong voor geneste lijsten */
ul ul,
ol ol {
  padding-left: 1.2em !important;
}

h1, h2, h3, h4 {
  font-weight: bold;
}

h4 {
  margin-bottom: 1em !important; /* Of 1em zoals je noemde */
}
h5 {
  margin-top: 1em !important; /* Of 1em zoals je noemde */
}


/* Gutenberg wrappers */
.wp-block-group,
.wp-block-columns,
.wp-block-column,
.wp-block-buttons,
.wp-block-button,
.wp-block-cover,
.wp-block-image,
.wp-block-quote,
.wp-block-table,
.wp-block-media-text {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: inherit;
}

.wp-block-button__link {
  margin: 0 !important;
  padding: 0.6em 1.2em;
  line-height: 1.3;
  text-decoration: none;
}

.wp-block-column > *:first-child {
  margin-top: 0 !important;
}
.wp-block-column > *:last-child {
  margin-bottom: 0 !important;
}

.wp-block-group:empty {
  margin: 0 !important;
  padding: 0 !important;
}

/* Ruimte-klassen */
/* Gebruik bijv. <p class="extra-ruimte">tekst</p> */
.ruimte-boven {
  margin-top: 1.2em !important;
}
.ruimte-onder {
  margin-bottom: 1.2em !important;
}
.extra-ruimte {
  margin-top: 1.2em !important;
  margin-bottom: 1.2em !important;
}
.kleine-ruimte-boven {
  margin-top: 0.6em !important;
}
.kleine-ruimte-onder {
  margin-bottom: 0.6em !important;
}
.inspring {
  margin-left: 2em !important;
}

img.epg-image {
    display: block;
    height: 400px;
    transform: scale(1.0); /* schaalfactor aanpasbaar bijv. 0.7 */
    margin: 2em auto;
    max-width: 100%;
}



/* ============================================================
   1. HEADER
   ============================================================ */

/* .ast-site-identity {
  margin-left: 10px; */
}

.ast-separate-container {
  background-color: transparent !important;
  background-image: none !important;
}

/* Maak de hele headerbalk achtergrondvrij — behalve .ast-container */
.ast-below-header-bar {
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
}

/* Verwijder grijze achtergrond bij alle generieke onderlagen — behalve .ast-container */
.ast-below-header-bar > *:not(.ast-container),
.ast-below-header-bar .ast-builder-grid-row,
.ast-below-header-bar .ast-builder-layout-element {
  background-color: transparent !important;
  background-image: none !important;
}

/* Alleen de blauwe container zichtbaar houden */
.ast-below-header-bar .ast-container {
  max-width: 1250px;
  margin: 0 auto;
  background-color: #f2f9fe !important;
  background-color: #e7f4fd !important;
  background-color: #dceeff !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 0.5em 1.5em;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Mobiele styling */
@media (max-width: 768px) {
  .ast-below-header-bar .ast-container {
    max-width: 100%;
    margin: 0 1em;
    padding: 1em;
    border-radius: 0;
  }
}

/* Verwijder onderrand van de primaire header erboven */
.ast-primary-header-bar {
  border-bottom: none !important;
}

.main-header-menu li a,
.ast-primary-header-bar .main-header-menu li a {
  color: #007acc !important;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: rgba(0, 122, 204, 0.3);
  text-underline-offset: 2px;
}

.main-header-menu li a:hover,
.ast-primary-header-bar .main-header-menu li a:hover {
  color: #007acc !important;
  text-decoration-color: rgba(0, 122, 204, 0.7);
}



/* ============================================================
   2. INDELING PAGINA EN STRUCTUUR
   ============================================================ */

.page-layout {
  display: flex;
}

.main-content {
  margin-right: 20px;
}

.sidebar {
  margin-left: 20px;
}

.navigation-buttons {
  margin-bottom: 20px;
}

.sections .section {
  margin-bottom: 15px;
}

.bullet-list {
  list-style-type: disc;
}

.content-wrapper {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* EPG-pagina indeling */
.page-template-epg-template .content-wrapper {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.epg-mainlink {
  color: #1e73be;
  text-decoration: underline;
  text-decoration-color: rgba(30, 115, 190, 0.3); /* zachtblauw */
  text-underline-offset: 2px;
  font-weight: bold;
  transition: text-decoration-color 0.2s ease-in-out;
}

.epg-mainlink:hover {
  text-decoration-color: rgba(30, 115, 190, 0.7); /* iets donkerder bij hover */
}


/* ============================================================
   3a. SIDEBAR-CONTAINER
   ============================================================ */
.epg-sidebar {
  margin-top: 3.3em; /* Enige verticale positionering */
}

/* ============================================================
   3b. SIDEBAR-INHOUD
   ============================================================ */
.epg-sidebar-html {
  padding: 0.3em 1em 1em 1em;
  border: 1.5px solid #ccc;
  background-color: transparent;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #f9fcff;
  align-content
  border-radius: 4px;
  /* Geen margin-top meer: wordt geregeld door .epg-sidebar */
}

div.epg-sidebar-html {
  background-color: #ffffff; 
  color: #333 !important; /* goed leesbare tekstkleur */
}


/* ============================================================
   3c. SIDEBAR-INHOUD INLINE-ELEMENTEN
   ============================================================ */
.epg-sidebar-html span,
.epg-sidebar-html span a {
  display: inline !important;
  color: #1e73be !important;
  font-weight: normal !important;
  visibility: visible !important;
  opacity: 1 !important;
  line-height: 1.5 !important;
}

.epg-sidebar-html img {
  margin: 0;
  display: inline-block;
  max-width: 100%;
}

.epg-sidebar-html li a {
  line-height: 1.5;
  display: inline-block;
  vertical-align: middle;
}


.epg-explore-block {
  border-top: 1px solid #ddd;
  margin-top: 1.5em;
  padding-top: 0.8em;
}

.epg-explore-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1em;
}

.epg-explore-list li {
  margin: 6px 0;
}

.epg-explore-link {
  display: inline-block;
  color: #1e73be;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.5;
  vertical-align: middle;
}


/* ============================================================
   3d. ALGEMENE WIDGETSTYLING
   ============================================================ */
.widget-area {
  background-color: #f9fcff;
	background-color: #f3f9fd;  /* net iets donkerder dan #f9fcff */
	background-color: #f2f9ff;  /* net iets donkerder dan #f9fcff */
  padding: 10px;
  border: 1px solid #ddd;
  /* border-radius: 5px; optioneel */
}

/* Optioneel: deze margin-top kan worden verwijderd of geneutraliseerd */
.widget .epg-sidebar-html {
  margin-top: 0;
}

/* ============================================================
   4. TYPOGRAFIE
   ============================================================ */

.epg-sidebar-html > strong,
.epg-sidebar-html p strong {
  font-size: 16px;
  display: block;
  color: #808080;
  margin-top: 1em;
}

.epg-sidebar-html > strong {
  margin-top: 0;
}

.epg-sidebar-html p {
  margin-top: 1em;
  margin-bottom: 0.2em;
}


/* ============================================================
   5a. LINKS in the sidebar
   ============================================================ */

.epg-sidebar-html a {
  text-decoration: underline;
  text-decoration-color: rgba(30, 115, 190, 0.3);
  text-underline-offset: 2px;
}

.epg-sidebar-html a:hover {
  text-decoration-color: rgba(30, 115, 190, 0.7);
}

/* ============================================================
   5b. REF-LINKS (gescope op hoofdinhoud)
   ============================================================ */

.entry-content a.ref-link {
  color: #3c80e3;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.entry-content a.ref-link:hover {
  color: #2361c9;
  background-color: #eef4ff;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 0 2px;
}

/* ============================================================
   5c. PREVIOUS-NEXT HEAD-BAR in EPG-Template-Info
   ============================================================ */

.epg-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  background-color: #eef;
  background-color: #f9fcff;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 35px;
  border: 1px solid #ccc;
}

.epg-topbar a {
  text-decoration: none;
  color: #0073aa;
  font-weight: bold;
}

.epg-topbar span {
  color: #999;
}




/* ============================================================
   6. Sidebar-LIJSTEN
   ============================================================ */

.epg-sidebar-html ul {
  list-style-type: disc;
  margin-left: 1.2em;
  padding-left: 0;
}

.epg-sidebar-html ul ul {
  list-style-type: circle;
  margin-left: 1em;
}

.epg-sidebar-html ul li::marker {
  content: "● ";
  font-size: 0.9em;
  color: #1e73be;
}

.epg-sidebar-html li {
  margin-bottom: 0.3em;
}

.epg-sidebar-html li span {
  margin-right: 0;
}

/* ============================================================
   6. Sidebar - EPG-Explore
   ============================================================ */

.epg-explore-block {
  border-top: 1px solid #ddd;
  margin-top: 1.5em;
  padding-top: 0.8em;
}

.epg-explore-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1em;
}

.epg-explore-list li {
  margin: 6px 0;
}

.epg-explore-link {
  display: inline-block;
  color: #1e73be;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.5;
  vertical-align: middle;
}

a.epg-explore-link {
  text-decoration: underline;
  text-decoration-color: #1e73be; /* zachtblauw */
}


/* ============================================================
   7. Sidebar - POPULAR LIST
   ============================================================ */

.epg-popular-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.epg-popular-list span {
  display: inline-block;
  width: 70px;
}

.epg-popular-list li {
  display: list-item !important;
  color: #1e73be !important;
  font-weight: normal !important;
  line-height: 1.5 !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* ============================================================
   8. CONTENT EN TABLE TOOLTIPS
   ============================================================ */

main#primary {
  background-color: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.table-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.table-cell:hover {
  overflow: visible;
  white-space: normal;
  position: absolute;
  z-index: 1;
  background-color: white;
  border: 1px solid #ccc;
}


/* ============================================================
   9. CUSTOM ICON
   ============================================================ */

.theme-icon {
  background-image: url('EQF-logo.png');
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
}



/* ============================================================
   10a. TABELLEN EN CUSTOMIZER-CSS
   Sjabloon voor menutabellen: 2 subtabellen naast elkaar
   ============================================================ */

/* Hoofdtabel zonder omlijning */
table.hoofdtabel,
table.hoofdtabel td,
table.hoofdtabel th {
  border: none;
}

/* Hoofdtabel-opbouw */
.hoofdtabel-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

table.hoofdtabel {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

table.hoofdtabel td.subkolom {
  width: 50%;
  vertical-align: top;
  padding-left: 10px;
  padding-right: 10px;
}

table.hoofdtabel td.subkolom:first-child {
  padding-left: 0;
}

table.hoofdtabel td.subkolom:last-child {
  padding-right: 0;
}

/* Subtabel-opmaak */
table.subtabel {
  width: 100%;
  border-collapse: separate;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  overflow: hidden;
  table-layout: fixed;
}

table.subtabel td:first-child {
  width: 12%;
}

table.subtabel td:last-child {
  width: 88%;
}

/* Zebra-striping */
table.subtabel tr:nth-child(odd) {
  background-color: #f9f9f9;
}

/* Basislijn voor álle rijen */
table.subtabel tr td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Zachte lijnen boven en onder zebra's */
table.subtabel tr:nth-child(odd) td {
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* Celopmaak subtabel */
table.subtabel td {
  padding: 2px 4px;
  font-size: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 30px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Eerste kolom in subtabel iets inspringen */
table.subtabel td:first-child {
  padding-left: 8px;
  width: 25%;
}

/* Links in subtabel */
.subtabel a {
  text-decoration: underline;
  text-decoration-color: rgba(30, 115, 190, 0.3);
  text-underline-offset: 2px;
}

.subtabel a:hover {
  text-decoration-color: rgba(30, 115, 190, 0.7);
}

/* RESPONSIEF gedrag (stapelkolommen op mobiel) */
@media (max-width: 768px) {
  table.hoofdtabel,
  table.hoofdtabel tbody,
  table.hoofdtabel tr,
  table.hoofdtabel td {
    display: block;
    width: 100%;
  }

  table.hoofdtabel td.subkolom {
    padding: 0 0 24px 0;
  }

  table.subtabel {
    width: 100%;
  }
}

.subtabel td,
.subtabel th {
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.kop-centraal {
  text-align: center;
}


/* ============================================================
   11a. DRIELUIK - HOOFDTABELSTRUCTUUR
   ============================================================ */
.epg-hoofdtabel-drieluik {
  border-collapse: collapse;   /* voorkomt spacing aan buitenzijden */
  border: none;                /* 👈 verwijdert eventueel omlijning hoofdtabel */
  width: 100%;
  margin: 0;
  padding: 0;
  table-layout: fixed;
}

.epg-kolom-links,
.epg-kolom-midden,
.epg-kolom-rechts {
  width: 33.33%;
  vertical-align: top;
  padding: 0;
  margin: 0;
  border: none;                /* 👈 geen rand rond kolomcellen */
}

.epg-kolom-midden {
  padding: 0 9px;  /* horizontale ruimte alleen tussen links en rechts */
}


/* ============================================================
   11b. DRIELUIK - SUBTABELSTYLING
   ============================================================ */
.epg-subtabel {
  width: 100%;
  table-layout: fixed; /* 👈 dwing gelijke kolombreedte per subtabel af */
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
}

.epg-subtabel td {
  padding: 2px 4px;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
  border: 1px solid #ccc;
  white-space: nowrap;
}

/* Zebra-strepen */
.epg-subtabel tr:nth-child(odd) td {
  background-color: #f7f7f7;  /* lichtgrijs op oneven rijen */
}

.epg-subtabel tr:nth-child(even) td {
  background-color: #ffffff;  /* wit op even rijen */
}



.page-id-64 .ast-hfb-header {
  line-height: 1.4 !important;
  margin-bottom: 0 !important;
}

/* ============================================================
   12. VARIABELE EPG-TABLE STYLING
   ============================================================ */


.epgtabel {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Roboto', sans-serif; /* 👈 Roboto toegepast */
  font-size: 15px;
  margin: 20px 0; /* verticale marge boven en onder */
}

/* Headerkleuren */
.epgtabel.zachtblauw th {
  background-color: #dbeeff;
  color: #333;
}
.epgtabel.grijs th {
  background-color: #eeeeee;
  color: #333;
}

/* Zebra-striping */
.epgtabel.zebra tbody tr:nth-child(even) {
  background-color: #f7faff;
}

/* Lijnhoogte-opties */
.epgtabel.lh-compact td,
.epgtabel.lh-compact th {
  line-height: 1.2;
  padding: 4px 8px;
}
.epgtabel.lh-std td,
.epgtabel.lh-std th {
  line-height: 1.5;
  padding: 6px 10px;
}
.epgtabel.lh-ruim td,
.epgtabel.lh-ruim th {
  line-height: 1.8;
  padding: 8px 12px;
}

/* Kolombreedtes */
.kolom5 { width: 5%; }
.kolom10 { width: 10%; }
.kolom12 { width: 12%; }
.kolom13 { width: 13%; }
.kolom15 { width: 15%; }
.kolom20 { width: 20%; }
.kolom25 { width: 25%; }
.kolom30 { width: 30%; }
.kolom35 { width: 35%; }
.kolom40 { width: 40%; }
.kolom50 { width: 50%; }
.kolom60 { width: 60%; }
.kolom70 { width: 70%; }
.kolom75 { width: 75%; }

.epgtabel td.text-left,
.epgtabel th.text-left {
  text-align: left !important;
}
.epgtabel td.text-center,
.epgtabel th.text-center {
  text-align: center !important;
}
.epgtabel td.text-right,
.epgtabel th.text-right {
  text-align: right !important;
}

/* ============================================================
   12. EPG-SEARCH PAGE STYLING
   ============================================================ */

.epg-search-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.1em;
  background-color: #f9fcff;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.epg-search-results {
  margin-top: 2em;
}

.epg-search-item {
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #e0e0e0;
}

.epg-search-item h3 {
  font-size: 18px;
  color: #0073aa;
  margin-bottom: 0.3em;
}

.epg-search-item p {
  font-size: 14px;
  color: #333;
}

/* ============================================================
   13. LANDINGSPAGINA
   ============================================================ */

.explore-table {
  max-width: 1000px;
  margin: 3em auto;
  font-family: "Source Sans Pro", sans-serif;
}

.explore-row {
  display: grid;
  grid-template-columns: 1.12fr 1fr 0.88fr;
  gap: 2em;
}

.explore-cell {
  flex: 1;
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fdfdfd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.explore-content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.2em;
  width: 100%;
}

.explore-content h4 {
  margin: 0 0 0.6em;
  font-size: 1.1em;
  color: #222;
}

.explore-content p {
  margin: 0 0 1em;
  font-size: 0.95em;
  color: #555;
}

.explore-content a {
  align-self: end;
  justify-self: start;
  text-decoration: none;
  color: #005a9c;
  font-weight: 500;
  border: 1px solid #005a9c;
  padding: 0.4em 0.8em;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.explore-content a:hover {
  background-color: #005a9c;
  color: white;
}

.n-box {
  display: inline-block;
  background-color: #e0e0e0; /* zacht grijs */
  color: #000;               /* zwarte letter */
  font-weight: 500;
  font-size: 0.95em;
  padding: 0.1em 0.4em;
  border-radius: 0.2em;
  line-height: 1;
}

.link-academic {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-variant: small-caps;
  font-size: 1.15rem;
  letter-spacing: 0.4px;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ============================================================
   14. Redirect-afhandeling
   ============================================================ */
.redirect-notice {
  display: none;
  background: #d9ecff;   /* lichtblauwe balk */
  color: #003366;        /* contrasterende tekstkleur */
  padding: 0.5em;
  text-align: center;
  font-size: 0.95rem;
}
