/* Kroll SR Static Site — CSS Overrides
   Puppeteer-meting bevestigt: live site gebruikt ook html font-size: 20px.
   Pixel-gebaseerde Elementor-stijlen zijn identiek aan live site.
   Dit bestand bevat alleen layout-fixes voor de statische versie. */

/* Fix: Barnsbury theme voegt een tweede ▼ pijl toe via CSS ::after
   op .menu-item-has-children. Elementor heeft al een eigen SVG sub-arrow. */
.menu-item-has-children > a::after {
  display: none !important;
}

/* Fix: Elementor JS-animaties (fadeInUp etc.) draaien niet zonder JS.
   Elementen met elementor-invisible blijven anders onzichtbaar. */
.elementor-invisible {
  visibility: visible !important;
}

/* Fix: Elementor SmartMenus JS + Barnsbury theme verbergen sub-menu via:
   - Barnsbury: opacity:0; visibility:hidden; transition:all .5s
   - Elementor: .elementor-nav-menu--dropdown-tablet .elementor-nav-menu--dropdown { display:none }
   Alles overriden met !important voor CSS-only dropdown. */

/* Sub-menu default: verborgen */
.elementor-nav-menu--main .menu-item-has-children {
  position: relative;
}

.elementor-nav-menu--main .menu-item-has-children > ul.sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  display: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 220px;
  background-color: #fffdf6;
  border: 1px solid #e0d9cf;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  z-index: 9999;
  transition: none !important;
}

/* Sub-menu zichtbaar bij hover op parent li */
.elementor-nav-menu--main .menu-item-has-children:hover > ul.sub-menu {
  display: block !important;
}

.elementor-nav-menu--main .sub-menu .elementor-sub-item {
  display: block;
  padding: 8px 20px;
  color: #3c2323;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.elementor-nav-menu--main .sub-menu .elementor-sub-item:hover {
  background-color: rgba(45, 86, 43, 0.08);
  color: #2d562b;
}

/* Schaal de hele pagina 10% kleiner */
html {
  zoom: 0.9;
}

/* =============================================
   Insights page — card grid layout
   ============================================= */

/* Card grid: 3 kolommen op desktop, 2 op tablet, 1 op mobiel */
.elementor-posts-container.elementor-posts--skin-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 20px;
}

@media (max-width: 1024px) {
  .elementor-posts-container.elementor-posts--skin-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .elementor-posts-container.elementor-posts--skin-cards {
    grid-template-columns: 1fr;
  }
}

/* Card styling */
.elementor-posts--skin-cards .elementor-post__card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e0d9cf;
}

.elementor-posts--skin-cards .elementor-post__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Thumbnail */
.elementor-posts--skin-cards .elementor-post__thumbnail {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.elementor-posts--skin-cards .elementor-post__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.elementor-posts--skin-cards .elementor-post__card:hover .elementor-post__thumbnail img {
  transform: scale(1.03);
}

/* Text area */
.elementor-posts--skin-cards .elementor-post__text {
  padding: 16px 20px 8px;
  flex: 1;
}

.elementor-posts--skin-cards .elementor-post__title {
  font-family: 'Rubik', sans-serif;
  font-size: 1.1em;
  line-height: 1.4;
  margin: 0 0 8px;
}

.elementor-posts--skin-cards .elementor-post__title a {
  color: #3c2323;
  text-decoration: none;
  transition: color 0.2s;
}

.elementor-posts--skin-cards .elementor-post__title a:hover {
  color: #2d562b;
}

/* Author meta met avatar */
.elementor-posts--skin-cards .elementor-post__meta-data {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #f0ebe3;
  font-size: 13px;
  color: #655441;
}

.elementor-posts--skin-cards .author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Hide "Lees verder" — card zelf is klikbaar */
.elementor-posts--skin-cards .elementor-post__read-more-wrapper {
  display: none;
}

/* =============================================
   Blog page — Elementor-consistent layout
   ============================================= */

/* Hero section — eigen div, geen Elementor containers */
.blog-hero {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.blog-hero__image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Article container — eigen div, geen Elementor containers */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  box-sizing: border-box;
}

/* Breadcrumb */
.blog-breadcrumb {
  margin-bottom: 32px;
}

.blog-breadcrumb a {
  color: #2d562b;
  text-decoration: none;
  font-size: 14px;
  font-family: 'Rubik', sans-serif;
  transition: color 0.2s;
}

.blog-breadcrumb a:hover {
  color: #3c2323;
}

/* Blog title */
.blog-title {
  font-family: 'Rubik', sans-serif;
  font-size: 2.2em;
  color: #3c2323;
  margin: 0 0 24px;
  line-height: 1.3;
}

/* Author bar */
.blog-author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0d9cf;
}

.blog-author-bar__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0d9cf;
  flex-shrink: 0;
}

.blog-author-bar__info {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  color: #655441;
  line-height: 1.5;
}

.blog-author-bar__info strong {
  color: #3c2323;
  display: block;
}

/* Blog body content */
.blog-body {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #3c2323;
}

.blog-body h2 {
  font-family: 'Rubik', sans-serif;
  color: #2d562b;
  font-size: 1.5em;
  margin: 40px 0 16px;
  line-height: 1.3;
}

.blog-body h3, .blog-body h4 {
  font-family: 'Rubik', sans-serif;
  color: #3c2323;
  font-size: 1.2em;
  margin: 32px 0 12px;
}

.blog-body p {
  margin: 0 0 16px;
}

.blog-body ul, .blog-body ol {
  padding-left: 24px;
  margin: 0 0 20px;
}

.blog-body li {
  margin-bottom: 8px;
}

.blog-body a {
  color: #2d562b;
  text-decoration: underline;
  transition: color 0.2s;
}

.blog-body a:hover {
  color: #655441;
}

.blog-body strong {
  color: #3c2323;
}

/* CTA section */
.blog-cta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e0d9cf;
}

.blog-cta p {
  font-family: 'Rubik', sans-serif;
  font-size: 15px;
  color: #655441;
}

.blog-cta a {
  color: #2d562b;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-cta a:hover {
  color: #3c2323;
  text-decoration: underline;
}
