/* Blog page styles */
.blog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.blog-search-wrap input {
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--light-grey);
  border-radius: 50px;
  font-size: 0.95rem;
  width: 280px;
  outline: none;
  transition: border-color 0.2s;
}
.blog-search-wrap input:focus { border-color: var(--primary); }

.category-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.category-filter {
  padding: 0.4rem 1rem;
  border: 1px solid var(--light-grey);
  border-radius: 50px;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.category-filter:hover,
.category-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Reading progress bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 0;
  background: var(--accent);
  z-index: 9999;
  width: 0;
  transition: width 0.1s;
}
body.page-scrolled #reading-progress {
  height: 3px;
}

/* Blog Article styles */
.blog-article-header {
  position: relative;
  padding: 9rem 0 5rem;
  background: var(--primary-dark);
  overflow: hidden;
}
.blog-article-header .header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}
.blog-article-header h1 {
  color: var(--white);
  max-width: 800px;
  margin-bottom: 1rem;
}
.blog-article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.blog-article-meta .category { color: var(--accent-light); font-weight: 600; }

.blog-content {
  max-width: 800px;
  margin: 0 auto;
}
.blog-content h2 { margin: 2.5rem 0 1rem; }
.blog-content h3 { margin: 2rem 0 0.75rem; }
.blog-content p { margin-bottom: 1.25rem; }
.blog-content ul, .blog-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.blog-content ul li { list-style: disc; color: var(--text-light); }
.blog-content ol li { list-style: decimal; color: var(--text-light); }
.blog-content .article-img {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.blog-content .article-img img { width: 100%; height: auto; }
.blog-content .article-img figcaption {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--mid-grey);
  font-style: italic;
  background: var(--off-white);
}
.blog-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--off-white);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
}
.blog-content .key-takeaways {
  background: linear-gradient(135deg, rgba(26,58,92,0.06), rgba(200,168,75,0.08));
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 2rem 0;
}
.blog-content .key-takeaways h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.blog-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--primary);
}
.related-posts li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-grey);
}
.related-posts li:last-child { border-bottom: none; }
.related-posts li a {
  font-size: 0.875rem;
  color: var(--text);
  display: block;
  line-height: 1.4;
}
.related-posts li a:hover { color: var(--primary); }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-controls { flex-direction: column; align-items: stretch; }
  .blog-search-wrap input { width: 100%; }
}

/* ================================================
   Article Hero (new-style blog articles)
   ================================================ */
.article-hero {
  position: relative;
  overflow: hidden;
  max-height: 520px;
  min-height: 340px;
}
.article-hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,45,0.85) 30%, rgba(10,25,45,0.3) 100%);
  display: flex;
  align-items: flex-end;
}
.article-hero-overlay .container {
  padding-bottom: 2.5rem;
  padding-top: 2rem;
  width: 100%;
}
.article-category {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.article-hero-overlay h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  max-width: 860px;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
}
.article-meta i { margin-right: 0.4rem; color: var(--accent); }

/* Breadcrumb nav (article pages) */
.breadcrumb-nav {
  background: var(--off-white);
  border-bottom: 1px solid var(--light-grey);
  padding: 0.6rem 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.breadcrumb li { color: var(--mid-grey); }
.breadcrumb li a { color: var(--primary); }
.breadcrumb li a:hover { color: var(--accent); }
.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: var(--mid-grey);
}

/* Article form banner (top strip) */
.article-form-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 2.5rem 0;
}
.form-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.form-banner-text h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.form-banner-text p { color: rgba(255,255,255,0.8); margin-bottom: 0; }
.form-banner-form .hs-form-frame { max-width: 100%; }

/* Article body layout */
.article-body { padding: 3rem 0; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.article-content {
  min-width: 0;
}
.article-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(26,58,92,0.04), rgba(200,168,75,0.06));
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.article-content h2 { margin: 2.5rem 0 1rem; color: var(--primary); }
.article-content h3 { margin: 1.75rem 0 0.75rem; color: var(--primary); }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-content ul li { list-style: disc; color: var(--text-light); }
.article-content ol li { list-style: decimal; color: var(--text-light); }

/* Article CTA box */
.article-cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2rem;
  margin: 3rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.article-cta-box h3 { color: #fff; }
.article-cta-box p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.article-cta-box .btn { display: inline-block; margin-right: 1rem; margin-top: 0.5rem; }

/* FAQ block (article pages) */
.faq-block { margin: 2.5rem 0; }
.faq-item-article {
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-item-article .faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  padding: 1.25rem 1.5rem;
  background: var(--off-white);
  margin: 0;
  cursor: default;
}
.faq-item-article .faq-a {
  padding: 1rem 1.5rem 1.25rem;
  color: var(--text-light);
  font-size: 0.94rem;
  line-height: 1.7;
  margin: 0;
}

/* Sidebar (article pages) */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-widget h3 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--primary);
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.sidebar-links li {
  border-bottom: 1px solid var(--light-grey);
}
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links li a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.4;
}
.sidebar-links li a:hover { color: var(--primary); padding-left: 0.3rem; }
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  border-color: transparent !important;
}
.sidebar-cta h3 { color: #fff !important; }
.sidebar-cta p { color: rgba(255,255,255,0.8); font-size: 0.88rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Bottom article form */
.article-bottom-form { padding: 4rem 0; }
.form-center-wrap { max-width: 700px; margin: 0 auto; }

/* Responsive */
@media (max-width: 960px) {
  .form-banner-inner { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-hero img { height: 380px; }
}
