/* =====================================================
   SB30 HEALTH – Blog Enhancements (CTA & Related Posts)
===================================================== */

/* INJECTED CTA BANNER */
.post-cta-wrapper {
  margin: 48px 0;
}
.dynamic-cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, var(--entry) 0%, rgba(39, 137, 74, 0.08) 100%);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dynamic-cta-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.dynamic-cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: var(--primary);
  opacity: 0.8;
}
@media(min-width: 768px) {
  .dynamic-cta-banner {
    flex-direction: row;
    text-align: left;
    padding: 40px;
  }
}

.cta-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.cta-banner-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}
.cta-banner-title {
  margin: 0 !important;
  font-family: var(--font-head, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary);
}

.cta-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--theme) !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(39, 137, 74, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cta-banner-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(39, 137, 74, 0.45);
}

/* Themes handling for different categories */
.theme-panas { border-color: hsla(145, 55%, 35%, 0.6); }
.theme-panas .cta-banner-btn { background: hsl(145, 55%, 35%); box-shadow: 0 8px 20px hsla(145, 55%, 35%, 0.4); }
.theme-panas::before { background: hsl(145, 55%, 35%); }

.theme-tobat { border-color: hsla(288, 60%, 52%, 0.6); }
.theme-tobat .cta-banner-btn { background: hsl(288, 60%, 52%); box-shadow: 0 8px 20px hsla(288, 60%, 52%, 0.4); }
.theme-tobat::before { background: hsl(288, 60%, 52%); }

.theme-tanya { border-color: hsla(207, 80%, 52%, 0.6); }
.theme-tanya .cta-banner-btn { background: hsl(207, 80%, 52%); box-shadow: 0 8px 20px hsla(207, 80%, 52%, 0.4); }
.theme-tanya::before { background: hsl(207, 80%, 52%); }

.theme-lifehack { border-color: hsla(28, 88%, 52%, 0.6); }
.theme-lifehack .cta-banner-btn { background: hsl(28, 88%, 52%); box-shadow: 0 8px 20px hsla(28, 88%, 52%, 0.4); }
.theme-lifehack::before { background: hsl(28, 88%, 52%); }


/* RELATED POSTS SECTION */
.related-posts-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-title {
  font-family: var(--font-head, 'Outfit', sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px !important;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media(min-width: 600px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  background: var(--entry);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.rc-image {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--tertiary);
}
.rc-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rc-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px 0 !important;
  color: var(--primary);
}
.rc-meta {
  font-size: 0.8rem;
  color: var(--secondary);
  margin-top: auto;
}

/* BLOG CATEGORY FILTER */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 40px;
  background: var(--entry);
  padding: 18px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.blog-filter span {
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.95rem;
  margin-right: 12px;
  font-family: var(--font-head, 'Outfit', sans-serif);
}
.blog-filter-item {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  background: var(--tertiary);
  color: var(--primary);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.blog-filter-item:hover, .blog-filter-item.active {
  background: hsl(145, 55%, 35%);
  color: #fff;
  border-color: hsl(145, 55%, 35%);
  box-shadow: 0 6px 16px rgba(39, 137, 74, 0.25);
  transform: translateY(-2px);
}
