/*
Theme Name: NHBos
Theme URI: https://www.nhbos.nl
Version: 1.1
Description: Child theme voor Stichting NHBos.
Author: Dick Sijtsma
Author URI: https://www.incsu-software.nl
template: bb-theme
*/

/* ==============================
   1) Basis & helpers
   ============================== */

body { font-family: 'Euclid Square', sans-serif; }

.centered-inner {
  max-width: 1366px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================
   2) Tekstlinks in BB-content
   ============================== */

.fl-builder-content .fl-module-rich-text a {
  color: #2A9F06 !important;
  text-decoration: none;
}
.fl-builder-content .fl-module-rich-text a:hover {
  color: #239500 !important;
}

/* ==============================
   3) Header – logo na scroll
   JS voegt body.show-logo toe
   ============================== */

.header-nhbos .logo-after-scroll {
  opacity: 0;
  transition: opacity .2s ease;
}
body.show-logo .header-nhbos .logo-after-scroll {
  opacity: 1;
  transform: none;
}

.header-nhbos .fl-menu-mobile-flyout,
.header-nhbos .fl-menu-mobile-overlay {
  box-shadow: none !important;
  border: none !important;
}

/* ==============================
   4) PowerPack Image Carousel – captions altijd zichtbaar
   ============================== */

.pp-image-carousel .swiper-slide,
.pp-image-carousel .pp-carousel-item,
.pp-image-carousel .pp-image,
.pp-image-carousel .pp-slide { position: relative !important; }

.pp-image-carousel .pp-overlay,
.pp-image-carousel .pp-hover-overlay,
.pp-image-carousel .pp-image-overlay,
.pp-image-carousel .pp-carousel-caption,
.pp-image-carousel [class*="caption"] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
  pointer-events: none;
}

.pp-image-carousel .pp-overlay,
.pp-image-carousel .pp-hover-overlay,
.pp-image-carousel .pp-image-overlay { background: none !important; }

.pp-image-carousel .pp-carousel-caption,
.pp-image-carousel [class*="caption"] {
  position: absolute !important;
  bottom: 16px !important;
  right: 16px !important;
  left: auto !important;
  text-align: right !important;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 6px 10px;
  line-height: 1.4;
  font-size: .95em;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
}

/* ==============================
   5) Globale verticale spacing (desktop)
   ============================== */

.fl-module-heading h1,
.fl-module-heading h2,
.fl-module-heading h3 { margin-bottom: 26px; }

.fl-module-heading h4,
.fl-module-heading h5,
.fl-module-heading h6 { margin-bottom: 13px; }

.fl-module-rich-text { margin-bottom: 26px; }

.fl-module-button { margin-top: 52px; }

/* ==============================
   6) CF7 formulieren (BB)
   ============================== */

.bb-form {
  margin: 0;
  padding: 0;
}

.bb-form label {
  display: block;
  margin: 0 0 16px;
}

.bb-form input[type="file"] {
  display: block;
  margin-top: 6px;
}

.bb-form label + label { margin-top: 20px; }
.form-row + .form-row { margin-top: 24px; }

.wpcf7 form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}

.wpcf7 form .form-col {
  flex: 1 1 0;
  min-width: 240px;
}

.wpcf7 form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 400;
  color: inherit;
}

.wpcf7 form .form-col br { display: none; }

.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form input[type="tel"],
.wpcf7 form input[type="number"],
.wpcf7 form input[type="date"],
.wpcf7 form select,
.wpcf7 form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid var(--fl-global-groen, #66CC00);
  border-radius: 3px;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
}

.wpcf7 form input:focus,
.wpcf7 form select:focus,
.wpcf7 form textarea:focus {
  outline: none;
  border-color: var(--fl-global-donkergroen, #2A9F06);
}

.wpcf7 form textarea { min-height: 140px; resize: vertical; }

.wpcf7 form .wpcf7-not-valid {
  border-color: var(--wp--preset--color--vivid-red, #cf2e2e) !important;
}

.wpcf7 form .wpcf7-not-valid-tip {
  color: var(--wp--preset--color--vivid-red, #cf2e2e);
  font-size: 14px;
  margin-top: 6px;
}

.wpcf7 form .wpcf7-acceptance,
.wpcf7 form .wpcf7-checkbox { margin: 6px 0 14px; }

.wpcf7 form h3 { margin: 22px 0 8px; font-weight: 600; }

.field-description {
  font-size: 0.875em;
  font-style: italic;
  color: #666;
  margin: 4px 0 8px;
}

/* ==============================
   7) Post feed – gedeelde basisstijl
   ============================== */

/* Verwijder scheidingslijn en dubbele marge uit alle feed-contexten */
.fl-post-feed-post {
  border-bottom: none;
}

.fl-post-feed-post:after { content: none !important; }

/* ==============================
   8) Lijst Bijhouwerprijs (feed)
   module met class .prijzen-lijst
   ============================== */

.prijzen-lijst .fl-post-feed-post {
  border: none !important;
  margin-bottom: 8px;
  padding-bottom: 0;
}

.prijzen-lijst .fl-post-text { padding: 0; }

.prijzen-lijst .prijs-item { margin: 0 0 8px 0; }

.prijzen-lijst .prijs-jaar {
  font-weight: 700;
  color: #333;
  margin-bottom: 2px;
}

.prijzen-lijst .prijs-titel a {
  color: #000;
  font-weight: 400;
  text-decoration: none;
}

.prijzen-lijst .prijs-titel a:hover {
  color: #000;
  text-decoration: underline;
}

/* ==============================
   9) Toekenningen – PowerPack grid
   ============================== */

.toekenningen-rij .pp-content-grid-post {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.toekenningen-rij .pp-content-grid-post-image {
  padding: 0 !important;
  margin: 0;
}

.toekenningen-rij .pp-content-grid-post-image img {
  display: block;
  width: 100%;
  height: auto;
}

.toekenningen-rij .pp-content-grid-post-text {
  padding: 0;
  margin-top: 16px;
}

.toekenningen-rij .prijs-jaar {
  font-size: 18px !important;
  line-height: 1.4;
  margin: 0 0 4px;
}

.toekenningen-rij .prijs-titel a,
.toekenningen-rij .fl-post-more-link a {
  color: #000 !important;
  text-decoration: none;
  font-weight: 400;
  font-size: 18px !important;
}

.toekenningen-rij .prijs-titel a:hover,
.toekenningen-rij .fl-post-more-link a:hover { text-decoration: underline; }

/* ==============================
   10) Stipendia (archief + latest + filter)
   ============================== */

.stipendia-lijst .fl-post-feed .fl-post-feed-post .fl-post-text {
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
}

.stipendia-lijst .fl-post-feed .fl-post-feed-post {
  border-bottom: none !important;
}

.stipendia-latest .prijs-item,
.subsidies-latest .prijs-item,
.talentbeurs-latest .prijs-item,
.stipendia-tag-filter div { margin-bottom: 12px; }

.stipendia-latest .prijs-jaar,
.subsidies-latest .prijs-jaar,
.talentbeurs-latest .prijs-jaar {
  font-weight: 600;
  margin-right: 6px;
  display: inline-block;
}

.stipendia-latest .prijs-titel a,
.stipendia-tag-filter a {
  color: inherit;
  text-decoration: none;
}

.stipendia-latest .prijs-titel a:hover,
.stipendia-tag-filter a:hover { text-decoration: underline; }

.stipendia-tag-filter a.is-active {
  font-weight: 600;
  text-decoration: underline;
}

.stipendia-tag-filter h6 {
  display: inline;
  margin: 0;
}

/* ==============================
   11) Scroll to top button
   ============================== */

#fl-to-top {
  background-color: #66CC00 !important;
  color: #fff !important;
}

/* ==============================
   12) Anchor scroll-correctie
   ============================== */

html { scroll-padding-top: 220px; }
.prijs-item { scroll-margin-top: 220px; }

/* ==============================
   13) Breadcrumbs
   ============================== */

.pp-breadcrumbs-navxt .current-item {
  font-weight: 600;
}

/* ==============================
   14) Nieuwsgrid layout
   ============================== */

.home-news-grid .pp-content-post {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.home-news-grid .pp-content-grid-inner {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.home-news-grid .pp-content-post-data {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.home-news-grid .pp-content-grid-more-link {
  margin-top: auto !important;
  padding-top: 24px !important;
}

/* ==============================
   15) Actueel layout
   ============================== */

.fl-post-item {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  background-color: #ffffff;
  padding: 0;
}

.fl-post-image {
  flex: 0 0 300px;
  height: 300px;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.fl-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fl-post-text { flex: 1; }

.fl-post-title {
  font-size: 28px !important;
  margin-bottom: 0.8rem !important;
}

.fl-post-title a {
  color: #2d2d2d;
  text-decoration: none;
}

.fl-post-more-link a {
  color: green;
  text-decoration: none;
}

/* ==============================
   16) Responsive (≤ 768px)
   ============================== */

@media (max-width: 768px) {

  /* CF7: stapel kolommen */
  .wpcf7 form .form-row { display: block; }
  .wpcf7 form .form-col { min-width: 0; }

  /* Spacing compacter */
  .fl-module-heading h1,
  .fl-module-heading h2,
  .fl-module-heading h3 { margin-bottom: 20px; }

  .fl-module-heading h4,
  .fl-module-heading h5,
  .fl-module-heading h6 { margin-bottom: 10px; }

  .fl-module-rich-text { margin-bottom: 20px; }
  .fl-module-button { margin-top: 32px; }

  /* Header logo op mobiel altijd zichtbaar */
  .header-nhbos .logo-after-scroll {
    opacity: 1;
    transform: none;
  }

  /* Actueel: stapel afbeelding en tekst */
  .fl-post-item { flex-direction: column; }

  .fl-post-image {
    flex: 0 0 100%;
    width: 100%;
    height: 250px;
  }

  .fl-post-image img { width: 100%; }
}