/* ============================================================
   GLOBAL ARTICLE CONTAINER
============================================================ */
.qp-blog-article {
  color: #444;
  font-family: system-ui, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  min-width: 0;
  background: #fff;
  padding: 40px 24px;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  margin-bottom: 40px;
}

/* ============================================================
   BREADCRUMBS
============================================================ */
.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: #777;
}
.breadcrumbs a {
  color: #555;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero-blog {
  text-align: center;
  margin-bottom: 20px;
}
.hero-blog img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.hero-text h1 {
  margin: 16px 0 6px;
  color: #222;
}
.meta {
  font-size: 0.9rem;
  color: #777;
}
.category {
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 6px;
}
.hero.hero-blog {
  padding: 0 !important; /* blog pagina moet geen padding gebruiken */
}

/* ============================================================
   CTA BUTTONS
============================================================ */
.cta-section {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.cta-button {
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.cta-button.primary {
  background: #646464;
  color: #fff;
}
.cta-button.primary:hover {
  background: #000;
}
.cta-button.secondary {
  background: #f4f4f4;
  color: #333;
}
.cta-button.secondary:hover {
  background: #e0e0e0;
}

/* ============================================================
   FULL PAGE LAYOUT (SIDEBAR + ARTICLE)
============================================================ */
.qp-blog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================================
   SIDEBAR
============================================================ */
.qp-blog-sidebar {
  position: sticky;
  top: 100px;
}

/* Alleen sidebar */
.qp-blog-sidebar .blog-content {
  flex: 1;
  overflow: hidden;
}

.qp-blog-sidebar .blog-content h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-blog-sidebar .blog-content p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



/* ============================================================
   SIDEBAR LAYOUT
============================================================ */
.qp-blog-sidebar h3 {
  font-size: 1rem;
  color: #646464;
}

.sidebar-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   BLOG CARD (SIDEBAR ITEM)
============================================================ */
.blog-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);

  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Entire card is clickable */
.blog-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}

/* Thumbnail */
.blog-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Right content */
.blog-content {
  flex: 1;
  overflow: hidden;
}

/* Category label */
.blog-category {
  background: #f3f3f3;
  color: #555;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-bottom: 4px;
  display: inline-block;
}



/* ============================================================
   RESPONSIVE (SIDEBAR BECOMES FULL-WIDTH)
============================================================ */
@media (max-width: 960px) {
  .blog-card {
    border-radius: 10px;
  }

  .blog-link {
    padding: 10px;
  }

  .blog-thumb {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 600px) {
  .blog-thumb {
    width: 56px;
    height: 56px;
  }
}

/* ============================================================
   RESPONSIVE SIDEBAR FALLBACK
============================================================ */
@media (max-width: 960px) {
  .qp-blog-layout {
    grid-template-columns: 1fr;
  }
  .qp-blog-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }
}

/* ============================================================
   ENGAGEMENT BAR
============================================================ */
.engagement-bar {
  margin: 35px 0;
  padding: 22px 26px;

  border-radius: 14px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 28px rgba(0,0,0,0.08);

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Like button */
.like-button {
  display: flex;
  align-items: center;
  gap: 10px;

  background: #fff;
  border: 1px solid #e4e4e4;
  padding: 10px 18px;
  border-radius: 12px;

  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}
.like-button .like-icon {
  font-size: 1.3rem;
  transition: transform .25s ease;
}
.like-button:hover {
  background: #ffe9ef;
  border-color: #ffb5c3;
  color: #c71a43;
}
.like-button.liked {
  background: linear-gradient(90deg, #ffadad, #ff6b6b);
  color: #fff;
}
.like-count {
  font-weight: 700;
}

/* Share buttons */
.share-button {
  background: #fff;
  border: 1px transparent;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  transition: all .25s ease;
}
.share-button:hover {
  background: #fafafa;
  border-color: #ccc;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .engagement-bar {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
}

/* ============================================================
   EXTRA SMALL DEVICES (MAX 600PX)
============================================================ */
@media (max-width: 600px) {
  .qp-blog-article {
    padding: 22px 16px;
    border-radius: 10px;
  }

  .hero-text h1 {
    font-size: 1.55rem;
  }

  .blog-content {
    font-size: 0.95rem;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 10px 14px;
  }
}
