/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* ======================================================
   EIGEN AANPASSINGEN – SALIENT CHILD THEME
   ====================================================== */


/* ======================================================
   1. ALGEMENE LAYOUT EN OPMAAK
   ====================================================== */

/* Donkere achtergrondkleur voor de hele site */
body,
.container-wrap,
.post-content,
.nectar-post-grid,
.nectar-post-grid-wrap,
.nectar-post-grid-item,
.row-bg-wrap,
.page-content,
article {
  background-color: #111D1D !important;
}

/* Verberg breadcrumbs bovenaan pagina's */
#breadcrumbs {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* ======================================================
   2. POST GRID – KAARTSTIJL EN CATEGORIELABELS
   ====================================================== */

/* Stijl van kaarten in post grid */
.nectar-post-grid .nectar-post-grid-link {
  border: 1px solid #0096a1;
  border-radius: 10px;
  overflow: hidden;
}

/* Positionering van categorie-labels op de kaarten */
.nectar-post-grid-item {
  position: relative;
}

.nectar-post-grid-item .meta-category {
  position: absolute !important;
  top: 25px;
  left: 40px;
  z-index: 20;
  width: auto;
}

.nectar-post-grid-item .meta-category a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  background-color: #0073e6;
  color: #fff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Eerste kaart in masonry grid – kleine correctie */
.nectar-post-grid-item:first-child .meta-category {
  top: 25px !important;
  bottom: auto !important;
  left: 50px !important;
}


/* ======================================================
   3. CATEGORIEKLEUREN – OP BASIS VAN NAAM
   ====================================================== */

/* Voorbeeld: voeg class toe zoals .style-button.artikelen */
.style-button.artikelen {
  background-color: #006D77 !important;
  color: #fff !important;
}

.style-button.compliance {
  background-color: #d80b55 !important;
  color: #fff !important;
}

.style-button.events {
  background-color: #4a2e88 !important;
  color: #fff !important;
}

.style-button.masterclasses {
  background-color: #5f0f40 !important;
  color: #fff !important;
}

.style-button.podcasts {
  background-color: #ea6cb1 !important;
  color: #fff !important;
}

.style-button.rapporten {
  background-color: #004b55 !important;
  color: #fff !important;
}


/* ======================================================
   4. MENU – SUBMENU ALTIJD OPEN EN STIJL AANPASSINGEN
   ====================================================== */

/* Submenu’s altijd open in het zijmenu (slide-out menu) */
#slide-out-widget-area .sub-menu {
  display: block !important;
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  margin-top: 5px;
  margin-bottom: 10px;
  padding-left: 0.5em;
  border-left: 1px solid rgba(255, 255, 255, 0.2); /* visuele hiërarchie */
}

/* Verberg het pijltje dat standaard voor submenu’s staat */
#slide-out-widget-area .ocm-dropdown-arrow,
#slide-out-widget-area .ocm-dropdown-arrow i,
#slide-out-widget-area .ocm-dropdown-arrow i::before {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
}

/* Mooie bullets bij submenu-items */
#slide-out-widget-area .sub-menu > li {
  position: relative;
  padding-left: 1.2em;
}

#slide-out-widget-area .sub-menu > li::before {
  content: "•"; /* Of vervang met ander teken zoals "-" */
  position: absolute;
  left: 0;
  top: 0.2em;
  font-size: 1em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

/* Submenu-links iets kleiner voor hiërarchie */
#slide-out-widget-area .sub-menu > li > a {
  font-size: 90%;
  padding-left: 0;
}


/* ======================================================
   5. RESPONSIEVE TYPOGRAFIE – KOPJES IN FANCY BOXES
   ====================================================== */

/* Schaalbare tekst in nectar fancy box titels */
.nectar-fancy-box .inner h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem); /* mobiel tot desktop */
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  word-break: keep-all;
  hyphens: none;
}

/* Specifieke fix voor tablet-landscape */
@media (min-width: 768px) and (max-width: 1024px) {
  .nectar-fancy-box .inner h3 {
    font-size: 1.25rem;
  }
}


/* ======================================================
   6. LINKKLEUR - WCAG AAA COMPLIANT
   ====================================================== */
body p a {
  color: #00bbc5;
  text-decoration: underline;
}

body p a:hover {
  color: #87CFD3; /* AAA-safe hoverkleur */
  text-decoration: underline;
}

body p a {
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

