/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra child theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ========== Latest posts cards (ee-lb-*) ========== */
.ee-lb-heading {
  text-align: left;
  font-weight: 700;
  margin: 0 0 1.25rem;
}
.ee-lb-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .ee-lb-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.ee-lb-card {
  background: var(--ast-global-color-5, #ffffff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  position: relative;
  display: flex;
  flex-direction: column;
}
.ee-lb-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

/* Badge */
.ee-lb-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ast-global-color-0, #007cba);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
}

/* Body */
.ee-lb-body { padding: 18px 18px 6px; }
.ee-lb-title { margin: 0 0 8px; font-weight: 700; line-height: 1.3; font-size: 1.15rem; }
.ee-lb-title a { color: var(--ast-global-color-2, currentColor); text-decoration: none; }
.ee-lb-title a:hover { color: var(--ast-global-color-0, #007cba); }
.ee-lb-excerpt { margin: 0 0 10px; color: var(--ast-global-color-3, #4b5563); }

/* Foot */
.ee-lb-more {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: var(--ast-global-color-0, #007cba);
}
.ee-lb-foot {
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 12px 18px;
  color: var(--ast-global-color-4, #6b7280);
  font-size: .9rem;
}

/* ===================================================
   TERM CARDS (ee-term-*) — mobile-first verbeterd
   =================================================== */

/* Grid: op mobiel altijd 1 kolom */
.ee-term-grid { display: grid; gap: 16px; margin: 0; }
.ee-term-grid.cols-2,
.ee-term-grid.cols-3,
.ee-term-grid.cols-4 { grid-template-columns: 1fr; }

/* Vanaf tablet meer kolommen */
@media (min-width:768px){
  .ee-term-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
  .ee-term-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
  .ee-term-grid.cols-4 { grid-template-columns: repeat(4,1fr); }
}

/* Card */
.ee-term-card{
  background: var(--ast-global-color-5,#fff);
  border-radius: 18px;
  padding: 20px;                  /* compacter op mobiel */
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* Icon / fallback-letter netjes als rondje */
.ee-term-icon{ margin-bottom:12px; display:flex; justify-content:center; }
.ee-term-icon img{ width:64px; height:64px; object-fit:contain; }
.ee-term-icon-fallback{
  width:64px; height:64px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:24px;
  background: var(--ast-global-color-3,#000); color:#fff;
}

/* Typografie */
.ee-term-title{ margin:6px 0 6px; font-weight:700; font-size:1.15rem; line-height:1.3; }
.ee-term-desc{ color: var(--ast-global-color-3,#4b5563); margin:0 0 12px; font-size:.95rem; }

/* Knop: geen underline en pill look; alle states */
.ee-term-btn,
.ee-term-btn:visited,
.ee-term-btn:active {
  display:inline-block;
  padding:.6rem 1.1rem;
  border-radius:999px;
  background: var(--ast-global-color-3,#fff);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  box-shadow: 0 6px 0 rgba(0,0,0,.08);
}

.ee-term-btn a{
	color: #fff !important;
}
.ee-term-btn:hover{ filter: brightness(0.95); text-decoration:none; }

/* Voor secties met groene h2 */
.colorgreen h2{ color:#606C38 !important; }

/* ==== Blog Custom Template layout reset ==== */
.sb-blog{ 
  display:block !important;
  max-width: 100%;
}
.sb-blog:after{ content:''; display:block; clear:both; }
.sb-blog > *{ width:100%; }

.entry-header .entry-meta{
  margin:.25rem 0 1rem;
  color: var(--ast-global-color-4,#6b7280);
  font-size: .95rem;
}
.entry-header .entry-thumb{ margin:0 0 1rem; }
.entry-header .entry-thumb img{ width:100%; height:auto; display:block; }

/* Typo binnen sb-blog (houd het bescheiden en consistent) */
.sb-blog h2{
  font-size: clamp(1.25rem, 1.6vw, 1.75rem);
  line-height:1.3;
  margin: 1.25rem 0 .5rem;
}
.sb-blog p{ margin: 0 0 1rem; }

/* Video 16:9 wrapper */
.sb-blog .ratio-16x9{
  position:relative; padding-bottom:56.25%; height:0; overflow:hidden; margin:1rem 0;
}
.sb-blog .ratio-16x9 iframe{
  position:absolute; inset:0; width:100%; height:100%;
}

/* FAQ subtitels iets compacter */
.sb-blog .faq-list .faq-q{ margin:.75rem 0 .25rem; font-weight:700; }
.sb-blog .faq-list .faq-a{ margin:0 0 1rem; }

/* ===== Blog header (custom template) ===== */
.sb-blog-header{
  text-align:center;
  margin: 1rem auto 1.5rem;
  max-width: 920px;
}
.sb-blog-header .sb-title{
  margin: 0 0 .35rem;
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.sb-blog-header .sb-meta{
  color: #000 !important;
  font-size: .95rem;
  margin-bottom: .9rem;
}
.sb-blog-header .sb-hero{
  max-width: 920px;
  margin: 0 auto;
}
.sb-blog-header .sb-hero-img{
  width: 100%;
  height: 300px;           /* max height */
  max-height: 300px;
  object-fit: cover;       /* netjes bijsnijden */
  border-radius: 12px;
  display: block;
}

/* optioneel: verwijder eventuele marges die Astra of blokken toevoegen */
.entry-header .entry-meta, .entry-header .entry-thumb { margin: 0; }

/* ===== Custom blog template layout ===== */
.sb-header{
  max-width: 920px;
  margin: 1rem auto 1.5rem;
  text-align: center;
  padding: 0 20px;
}
.sb-title{
  margin: 0 0 .35rem;
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.sb-meta{
  color: #000;
  font-size: .95rem;
  margin-bottom: .9rem;
}

/* Featured image, gecentreerd en beperkt in hoogte */
.sb-hero{ max-width: 920px; margin: 0 auto; }
.sb-hero-img{
  width: 100%;
  height: 300px;        /* max visuele hoogte */
  max-height: 300px;
  object-fit: cover;    /* nette crop */
  border-radius: 12px;
  display: block;
}

/* Content wrapper */
.sb-blog{
  max-width: 920px;
  margin: 0 auto 2rem;
  padding: 0 20px;
}
.sb-blog h2{ margin: 1.25rem 0 .5rem; line-height:1.3; }

/* Full-width responsive video (ongeacht oEmbed output) */
.sb-video{ margin: 1rem 0; }
.ratio-16x9{ position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.ratio-16x9 iframe{ position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }

/* FAQ klein beetje compacter */
.faq-list .faq-q{ margin:.75rem 0 .25rem; font-weight:700; }
.faq-list .faq-a{ margin:0 0 1rem; }

/* ===== Related posts (Ook interessant) ===== */
.sb-related{
  margin: 2.25rem auto 0;
}
.sb-related > h2{
  text-align: left;
  font-weight: 800;
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}
.sb-related-grid{
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;         /* mobile first */
}
@media (min-width: 768px){
  .sb-related-grid{ grid-template-columns: repeat(3, 1fr); }
}
.sb-related-card{
  background: var(--ast-global-color-5,#fff);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sb-related-thumb{ display:block; }
.sb-related-thumb img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.sb-related-thumb--placeholder{
  width: 100%;
  height: 180px;
  background: linear-gradient(0deg, rgba(0,0,0,.06), rgba(0,0,0,.06)), var(--ast-global-color-5,#fff);
}
.sb-related-title{
  margin: 12px 14px 6px;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
}
.sb-related-title a{
  color: var(--ast-global-color-2, currentColor);
  text-decoration: none;
}
.sb-related-title a:hover{ color: var(--ast-global-color-0,#007cba); }
.sb-related-more{
  margin: 0 14px 14px;
  color: var(--ast-global-color-0,#007cba);
  text-decoration: none;
  font-weight: 600;
}
/* ==== Share bar ==== */
.sb-share{
  max-width: 920px;
  margin: 1.5rem auto 0;
  padding: 1rem 20px 0;
  border-top: 1px solid rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  gap: 14px;
}
.sb-share-label{
  color: var(--ast-global-color-4,#6b7280);
  font-size: .95rem;
}
.sb-share-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width: 28px; height: 28px; border-radius: 6px;
  color: #2d5be3; /* basisblauw; pakt svg via currentColor */
  text-decoration:none;
}
.sb-share-icon svg{ fill: currentColor; display:block; }
.sb-share-icon:hover{ filter: brightness(.9); }

/* Mobiel: netjes justify zonder afsnijden */
@media (max-width: 768px) {
  .sb-blog p,
  .sb-blog li {
    text-align: justify;
    text-justify: inter-word;      /* waar ondersteund */
    hyphens: auto;                 /* nette woordafbreking */
    overflow-wrap: break-word;     /* GEEN 'anywhere' meer */
    word-break: normal;
    padding-inline-end: 1px;       /* anti-clip fix */
  }

  .sb-blog ul,
  .sb-blog ol {
    padding-left: 1.25rem;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .sb-blog li + li { margin-top: .35rem; }
}

/* Laat horizontale overflow zichtbaar (vermijdt edge-clip) */
.sb-blog { overflow-x: visible; }

/* Media (veiligheid) */
.sb-blog img,
.sb-blog iframe,
.sb-blog .sb-video {
  max-width: 100%;
  height: auto;
  display: block;
}/* Alleen Home (9), Contact (134) en pagina 119 */
@media (max-width: 768px) {
  .page-id-9 .entry-content p,
  .page-id-9 .entry-content li,
  .page-id-134 .entry-content p,
  .page-id-134 .entry-content li,
  .page-id-119 .entry-content p,
  .page-id-119 .entry-content li,
  .page-id-9 .wp-block-paragraph,
  .page-id-134 .wp-block-paragraph,
  .page-id-119 .wp-block-paragraph,
  .page-id-9 .wp-block-list li,
  .page-id-134 .wp-block-list li,
  .page-id-119 .wp-block-list li {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
    padding-inline-end: 1px; /* voorkomt afsnijden */
  }

  .page-id-9 .entry-content ul,
  .page-id-9 .entry-content ol,
  .page-id-134 .entry-content ul,
  .page-id-134 .entry-content ol,
  .page-id-119 .entry-content ul,
  .page-id-119 .entry-content ol {
    padding-left: 1.25rem;
    margin-left: 0;
    margin-right: 0;
    list-style-position: outside;
    max-width: 100%;
  }
}

/* Media veilig houden */
.page-id-9 .entry-content img,
.page-id-9 .entry-content iframe,
.page-id-134 .entry-content img,
.page-id-134 .entry-content iframe,
.page-id-119 .entry-content img,
.page-id-119 .entry-content iframe {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Zorg dat elke productkaart dezelfde hoogte krijgt */
ul.wc-block-product-template__responsive li.wc-block-product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Container van de inhoud flexibel maken */
ul.wc-block-product-template__responsive li.wc-block-product .wc-block-grid__product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Zorg dat de knop altijd onderaan staat */
ul.wc-block-product-template__responsive li.wc-block-product .wp-block-button {
  margin-top: auto;
}

.ast-main-header-wrap.main-header-bar-wrap {
  transition: opacity 0.3s ease, height 0.3s ease;
}

.ast-main-header-wrap.main-header-bar-wrap.header-hidden {
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.custom-post-hero {
  position: relative;
  width: 100%;
  height: 300px; /* niet te hoog, kan je aanpassen */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem; /* ruimte onder de header */
}

.custom-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); /* zwarte overlay, pas de 0.5 aan voor meer/minder donker */
}

.custom-post-hero-content {
  position: relative;
  color: #fff !important;
  text-align: center;
  z-index: 2;
  padding: 0 20px;
}

.custom-post-hero-title {
  font-size: 2.5rem; /* grootte van de titel */
  line-height: 1.2;
  margin: 0;
	color: #fff !important;
}
.custom-post-hero-meta {
  margin-top: 10px;
  font-size: 1rem;
  color: #ffffff;
  text-align: center;
}

.custom-post-hero-meta span {
  margin: 0 8px;
  color: #ffffff;
}

.custom-post-hero-author,
.custom-post-hero-date {
  display: inline-block;
}
/* Alleen mobiel */
.show-mobile-only {
    display: none !important;
}

@media (max-width: 767px) {
    .show-mobile-only {
        display: block !important;
    }
}

/* Tablet + desktop */
.show-tablet-desktop {
    display: block !important;
}

@media (max-width: 767px) {
    .show-tablet-desktop {
        display: none !important;
    }
}
.hero-grid {
  position: relative;
  background: #f3f4f6;
}

.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    linear-gradient(to right, rgba(0,0,0,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.08) 1px, transparent 1px);

  background-size: 40px 40px;
}
/* ============================================
   CATEGORY ARCHIVE - readable card grid
   ============================================ */

.category-archive-page .tutorial-main-content {
  min-width: 0;
}

.category-archive-header{
  margin-bottom: 18px;
}

.category-archive-description{
  max-width: 860px;
  color: #495057;
  line-height: 1.7;
  margin-top: 10px;
}

.category-archive-content{
  max-width: 1100px;
}

.category-archive-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px){
  .category-archive-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1200px){
  .category-archive-grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.category-archive-card{
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  min-height: 170px;
}

.category-archive-card:hover{
  border-color: #0066cc;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}

.category-archive-card-top{
  display:flex;
  justify-content:flex-start;
  margin-bottom: 10px;
}

.category-archive-badge{
  display:inline-flex;
  align-items:center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  color: #495057;
}

.category-archive-card-title{
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #212529;
  line-height: 1.35;
}

.category-archive-card-excerpt{
  margin: 0 0 14px 0;
  color: #495057;
  line-height: 1.6;
  font-size: 14px;
}

.category-archive-card-link{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0066cc;
}

/* Pagination */
.category-archive-pagination{
  margin-top: 28px;
}

.category-archive-pagination ul{
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.category-archive-pagination a,
.category-archive-pagination span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #dee2e6;
  text-decoration: none;
  color: #495057;
  background: #ffffff;
}

.category-archive-pagination .current{
  border-color: #0066cc;
  color: #0066cc;
  font-weight: 700;
}

/* Mobile spacing consistent with your tutorial wrapper */
@media (max-width: 767px){
  .category-archive-page .tutorial-container{
    padding: 0;
  }
  .category-archive-page .tutorial-main-content{
    padding: 15px;
  }
}

/* Force archive styling on category pages (Astra-proof) */
body.category .category-archive-grid{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

@media (min-width: 768px){
  body.category .category-archive-grid{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
}
@media (min-width: 1200px){
  body.category .category-archive-grid{
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

body.category a.category-archive-card{
  display:flex !important;
  flex-direction:column !important;
  background:#fff !important;
  border:1px solid #dee2e6 !important;
  border-radius:12px !important;
  padding:18px !important;
  text-decoration:none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}