/* Enhanced article pages — brand-aligned (#0070DC / #FFC220) */

:root {
  --article-blue: #0070dc;
  --article-blue-deep: #0a2740;
  --article-accent: #ffc220;
  --article-ink: #1a2332;
  --article-muted: #5a6575;
  --article-surface: #f3f6fa;
  --article-white: #ffffff;
  --article-line: rgba(10, 39, 64, 0.1);
  --article-radius: 14px;
}

body.article-enhanced {
  background: var(--article-surface);
}

body.article-enhanced .site-main.post {
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(0, 112, 220, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 8%, rgba(255, 194, 32, 0.1), transparent 50%),
    var(--article-surface);
}

body.article-enhanced .site-main .page-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

body.article-enhanced .elementor[data-elementor-type="wp-post"] > .elementor-section.elementor-top-section {
  padding: 40px 0 80px !important;
}

/* Title */
body.article-enhanced .elementor-col-66 > .elementor-widget-wrap > .elementor-widget-heading:first-child .elementor-heading-title {
  color: var(--article-ink) !important;
  font-family: Lora, Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  line-height: 1.18 !important;
  margin: 0 0 8px !important;
}

/* Date badge */
body.article-enhanced .elementor-widget-post-info .elementor-widget-container {
  margin: 8px 0 28px !important;
}

body.article-enhanced .elementor-widget-post-info .elementor-icon-list-items {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  background: rgba(0, 112, 220, 0.08);
  border: 1px solid rgba(0, 112, 220, 0.14);
  border-radius: 999px;
}

body.article-enhanced .elementor-widget-post-info .elementor-icon-list-text,
body.article-enhanced .elementor-widget-post-info .elementor-icon-list-text a {
  color: var(--article-blue) !important;
  font-family: Inter, Poppins, system-ui, sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}

body.article-enhanced .elementor-widget-post-info .elementor-icon-list-icon i {
  color: var(--article-blue) !important;
}

/* Body copy */
body.article-enhanced .elementor-col-66 .elementor-widget-text-editor {
  color: var(--article-ink) !important;
  font-family: Inter, Poppins, system-ui, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}

body.article-enhanced .elementor-col-66 .elementor-widget-text-editor p {
  margin: 0 0 1.15em;
}

body.article-enhanced .elementor-col-66 .elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

body.article-enhanced .elementor-col-66 .elementor-widget-text-editor ul,
body.article-enhanced .elementor-col-66 .elementor-widget-text-editor ol {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

body.article-enhanced .elementor-col-66 .elementor-widget-text-editor li {
  margin-bottom: 0.45em;
}

body.article-enhanced .elementor-col-66 .elementor-widget-text-editor a {
  color: var(--article-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.article-enhanced .elementor-col-66 .elementor-widget-text-editor img {
  border-radius: 12px;
  display: block;
  height: auto;
  margin: 8px 0 20px;
  max-width: 100%;
}

/* Section headings */
body.article-enhanced .elementor-col-66 .elementor-widget-heading:not(:first-child) .elementor-heading-title {
  color: var(--article-ink) !important;
  font-family: Lora, Georgia, serif !important;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding-top: 8px;
}

body.article-enhanced .elementor-col-66 .elementor-widget-heading:not(:first-child) > .elementor-widget-container {
  margin: 36px 0 14px !important;
  padding-left: 14px;
  border-left: 3px solid var(--article-accent);
}

/* Recente artikelen heading — heading widget right before posts */
body.article-enhanced .site-main .elementor-widget-heading:has(+ .elementor-widget-posts) > .elementor-widget-container,
body.article-enhanced .site-main .elementor-element-2b94be2a > .elementor-widget-container {
  margin: 56px 0 20px !important;
  padding-left: 0 !important;
  border-left: none !important;
}

body.article-enhanced .site-main .elementor-widget-heading:has(+ .elementor-widget-posts) .elementor-heading-title,
body.article-enhanced .site-main .elementor-element-2b94be2a .elementor-heading-title {
  font-family: Lora, Georgia, serif !important;
  font-size: 1.6rem !important;
  color: var(--article-ink) !important;
  padding-top: 0 !important;
}

/* Author box */
body.article-enhanced .elementor-widget-author-box .elementor-widget-container {
  margin: 28px 0 36px !important;
}

body.article-enhanced .elementor-author-box {
  align-items: flex-start;
  background: linear-gradient(135deg, #ffffff 0%, #eef4fb 100%);
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  box-shadow: 0 10px 28px rgba(10, 39, 64, 0.06);
  display: flex;
  gap: 18px;
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
}

body.article-enhanced .elementor-author-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--article-blue), var(--article-accent));
}

body.article-enhanced .elementor-author-box__avatar img {
  border: 3px solid #fff;
  border-radius: 50% !important;
  box-shadow: 0 6px 16px rgba(10, 39, 64, 0.15);
  height: 88px !important;
  object-fit: cover;
  width: 88px !important;
}

body.article-enhanced .elementor-author-box__name {
  color: var(--article-ink) !important;
  font-family: Lora, Georgia, serif !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin-bottom: 6px;
}

body.article-enhanced .elementor-author-box__bio,
body.article-enhanced .elementor-author-box__bio p {
  color: var(--article-muted) !important;
  font-family: Inter, Poppins, system-ui, sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* TOC */
body.article-enhanced .elementor-col-33 > .elementor-element-populated {
  margin-left: 24px !important;
}

body.article-enhanced .elementor-widget-table-of-contents {
  --header-background-color: transparent !important;
  --header-color: #fff !important;
  --item-text-color: var(--article-ink) !important;
  --item-text-hover-color: var(--article-blue) !important;
  --marker-color: var(--article-blue) !important;
  position: sticky;
  top: 24px;
  z-index: 2;
  animation: articleFadeUp 0.5s ease 0.12s both;
}

body.article-enhanced .elementor-widget-table-of-contents .elementor-widget-container {
  background: var(--article-white);
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  box-shadow: 0 12px 32px rgba(10, 39, 64, 0.08);
  overflow: hidden;
}

body.article-enhanced .elementor-toc__header {
  background: linear-gradient(135deg, var(--article-blue-deep) 0%, #123a5c 55%, var(--article-blue) 100%) !important;
  color: #fff !important;
  flex-direction: row !important;
  justify-content: center;
  padding: 14px 16px !important;
  margin: 0 !important;
}

body.article-enhanced .elementor-toc__header-title {
  color: #fff !important;
  font-family: Inter, Poppins, system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-align: center !important;
  text-transform: uppercase;
}

body.article-enhanced .elementor-toc__body {
  padding: 12px 8px 16px;
}

body.article-enhanced .elementor-toc__list-wrapper {
  margin: 0;
  padding: 0 8px;
}

body.article-enhanced .elementor-toc__list-item {
  margin: 0;
  list-style: none;
}

body.article-enhanced .elementor-toc__list-item-link {
  border-radius: 8px;
  color: var(--article-ink) !important;
  display: block;
  font-family: Inter, Poppins, system-ui, sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  line-height: 1.4;
  padding: 10px 12px;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.article-enhanced .elementor-toc__list-item-link:hover {
  background: rgba(0, 112, 220, 0.08);
  color: var(--article-blue) !important;
  transform: translateX(3px);
}

/* Recent posts — equal image size, no gap under media */
body.article-enhanced .site-main .elementor-widget-posts .elementor-posts-container {
  align-items: stretch !important;
  display: grid !important;
  gap: 20px !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post {
  background: var(--article-white);
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  box-shadow: 0 8px 22px rgba(10, 39, 64, 0.05);
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post:hover {
  box-shadow: 0 14px 34px rgba(10, 39, 64, 0.12);
  transform: translateY(-3px);
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post__thumbnail__link {
  display: block !important;
  flex-shrink: 0;
  height: 180px !important;
  margin: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  position: relative !important;
  width: 100% !important;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post__thumbnail {
  background: #d9e4ef;
  display: block !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  position: relative !important;
  width: 100% !important;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post__thumbnail::before {
  /* kill Elementor ratio spacer if present */
  content: none !important;
  display: none !important;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-posts-container .elementor-post__thumbnail {
  padding-bottom: 0 !important;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post__thumbnail img {
  display: block !important;
  height: 100% !important;
  left: 0 !important;
  margin: 0 !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  transform: none !important;
  transition: transform 0.35s ease;
  width: 100% !important;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post:hover .elementor-post__thumbnail img {
  transform: scale(1.04) !important;
}

/* Posts without thumbnail still reserve equal media height */
body.article-enhanced .site-main .elementor-widget-posts .elementor-post:not(:has(.elementor-post__thumbnail__link))::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 112, 220, 0.28), transparent 55%),
    linear-gradient(135deg, #0a2740, #123a5c);
  content: "Blog";
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: Lora, Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  height: 180px;
  width: 100%;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  margin: 0 !important;
  padding: 14px 16px 16px !important;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post__title,
body.article-enhanced .site-main .elementor-widget-posts .elementor-post__title a {
  color: var(--article-ink) !important;
  font-family: Lora, Georgia, serif !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post__meta-data {
  color: var(--article-blue) !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  order: -1;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post__excerpt {
  margin: 0 !important;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post__excerpt p {
  margin: 0 !important;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post__read-more {
  color: var(--article-blue) !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  margin-top: auto !important;
  text-decoration: none !important;
}

body.article-enhanced .site-main .elementor-widget-posts .elementor-post__read-more:hover {
  color: var(--article-blue-deep) !important;
  text-decoration: underline !important;
}

@keyframes articleFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.article-enhanced .elementor-col-66 > .elementor-widget-wrap > .elementor-element {
  animation: articleFadeUp 0.45s ease both;
}

body.article-enhanced .elementor-col-66 > .elementor-widget-wrap > .elementor-element:nth-child(1) { animation-delay: 0.02s; }
body.article-enhanced .elementor-col-66 > .elementor-widget-wrap > .elementor-element:nth-child(2) { animation-delay: 0.06s; }
body.article-enhanced .elementor-col-66 > .elementor-widget-wrap > .elementor-element:nth-child(3) { animation-delay: 0.1s; }
body.article-enhanced .elementor-col-66 > .elementor-widget-wrap > .elementor-element:nth-child(4) { animation-delay: 0.14s; }

@media (max-width: 1024px) {
  body.article-enhanced .elementor-col-33 > .elementor-element-populated {
    margin-left: 0 !important;
    margin-top: 28px !important;
  }

  body.article-enhanced .elementor-widget-table-of-contents {
    position: static;
  }
}

@media (max-width: 767px) {
  body.article-enhanced .site-main .page-content {
    padding: 0 16px 48px;
  }

  body.article-enhanced .elementor[data-elementor-type="wp-post"] > .elementor-section.elementor-top-section {
    padding: 24px 0 48px !important;
  }

  body.article-enhanced .elementor-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.article-enhanced .elementor-author-box__text {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.article-enhanced .elementor-col-66 > .elementor-widget-wrap > .elementor-element,
  body.article-enhanced .elementor-widget-table-of-contents,
  body.article-enhanced .site-main .elementor-widget-posts .elementor-post {
    animation: none !important;
    transition: none !important;
  }
}
