/* ============================================
   AUREX GROUP – blog.css
   Blog Listing + Blog Detail Page Styles
============================================ */

/* ============================================
   FEATURED POST CARD (blog listing)
============================================ */
.featured-post-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  color: inherit;
}
.featured-post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}
.fp-image {
  position: relative;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}
.fp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.featured-post-card:hover .fp-image img { transform: scale(1.05); }
.fp-cat-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 0.3px;
}
.fp-body {
  background: var(--white);
  padding: 44px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.fp-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.fp-date, .fp-read {
  font-size: 13px;
  color: var(--mid-gray);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.fp-featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245,166,35,0.12);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}
.fp-body h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark-text);
  margin-bottom: 16px;
}
.featured-post-card:hover .fp-body h2 { color: var(--primary); }
.fp-body p {
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.72;
  margin-bottom: 28px;
}
.fp-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.fp-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.fp-author strong { display: block; font-size: 14px; color: var(--dark-text); }
.fp-author span { font-size: 12px; color: var(--mid-gray); }
.fp-cta {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  gap: 6px;
  transition: var(--transition);
}
.featured-post-card:hover .fp-cta { color: var(--accent); gap: 10px; }

/* ============================================
   BLOG FILTER CONTROLS
============================================ */
.blog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.blog-cats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-cat-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.blog-cat-btn:hover {
  background: rgba(26,58,110,0.06);
  border-color: var(--primary);
  color: var(--primary);
}
.blog-cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 700;
}
.blog-search-wrap {
  position: relative;
  flex-shrink: 0;
}
.blog-search-wrap .bi {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mid-gray);
  font-size: 15px;
  pointer-events: none;
}
.blog-search-wrap input {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 18px 10px 40px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark-text);
  width: 240px;
  transition: var(--transition);
  outline: none;
}
.blog-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,110,0.08);
  width: 280px;
}
.blog-search-wrap input::placeholder { color: var(--mid-gray); }

/* ============================================
   BLOG CARDS (grid)
============================================ */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  height: 100%;
  color: inherit;
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}
.bc-image {
  position: relative;
  overflow: hidden;
  height: 210px;
  flex-shrink: 0;
}
.bc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .bc-image img { transform: scale(1.06); }
.bc-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.3px;
}
.bc-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bc-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.bc-meta span {
  font-size: 12px;
  color: var(--mid-gray);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
.bc-body h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.4;
  margin-bottom: 10px;
  transition: var(--transition);
}
.blog-card:hover .bc-body h5 { color: var(--primary); }
.bc-body p {
  font-size: 13.5px;
  color: var(--body-text);
  line-height: 1.68;
  flex: 1;
  margin-bottom: 18px;
}
.bc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.bc-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bc-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.bc-author span { font-size: 12px; color: var(--body-text); font-weight: 500; }
.bc-read-more {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  white-space: nowrap;
}
.blog-card:hover .bc-read-more { color: var(--accent); gap: 8px; }

/* ============================================
   POST FILTER ANIMATION
============================================ */
.blog-post-item { transition: opacity 0.3s ease, transform 0.3s ease; }
.blog-post-item.hidden {
  display: none !important;
}
.blog-post-item.fade-in {
  animation: blogFadeIn 0.4s ease forwards;
}
@keyframes blogFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   NO RESULTS
============================================ */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--mid-gray);
}
.no-results .bi { font-size: 52px; opacity: 0.3; display: block; margin-bottom: 16px; }
.no-results h5 { color: var(--dark-text); margin-bottom: 8px; }
.no-results p { font-size: 14px; margin-bottom: 20px; }

/* ============================================
   PAGINATION
============================================ */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bp-btn {
  min-width: 42px;
  height: 42px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--body-text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  cursor: pointer;
  transition: var(--transition);
}
.bp-btn:hover {
  background: var(--off-white);
  border-color: var(--primary);
  color: var(--primary);
}
.bp-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.bp-btn.bp-next { padding: 0 20px; }
.bp-ellipsis {
  color: var(--mid-gray);
  font-size: 16px;
  line-height: 42px;
}

/* ============================================
   NEWSLETTER SECTION
============================================ */
.newsletter-section { background: var(--primary-dark); }
.newsletter-box {
  background: linear-gradient(135deg, rgba(26,58,110,0.5), rgba(245,166,35,0.08));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 56px 52px;
}
.nl-icon {
  width: 52px;
  height: 52px;
  background: rgba(245,166,35,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 20px;
}
.newsletter-box h3 {
  color: var(--white);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.newsletter-box p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
}
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-input-group { display: flex; flex-direction: column; gap: 12px; }
.nl-input-group input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.nl-input-group input::placeholder { color: rgba(255,255,255,0.45); }
.nl-input-group input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.14);
}
.nl-input-group button {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nl-input-group button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.4);
}
.nl-note {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================
   TOPICS STRIP
============================================ */
.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}
.topic-icon {
  width: 52px;
  height: 52px;
  background: rgba(26,58,110,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 4px;
  transition: var(--transition);
}
.topic-icon.accent { background: rgba(245,166,35,0.1); color: var(--accent); }
.topic-card:hover .topic-icon { background: var(--primary); color: var(--white); transform: scale(1.1); }
.topic-card:hover .topic-icon.accent { background: var(--accent); }
.topic-card span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.35;
}
.topic-card em {
  font-size: 12px;
  color: var(--mid-gray);
  font-style: normal;
}

/* ============================================
   PAGE CTA BOX (reused from pages.css)
   Ensuring it works in blog context
============================================ */
.page-cta-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 24px;
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
}
.page-cta-box::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(245,166,35,0.08);
  pointer-events: none;
}
.page-cta-box h3 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.page-cta-box p { color: rgba(255,255,255,0.72); font-size: 15px; margin: 0; }
.btn-outline-primary-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-outline-primary-custom:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--white);
}

/* ============================================
   READING PROGRESS BAR (detail page)
============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================
   ARTICLE HERO (detail page)
============================================ */
.article-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
  overflow: hidden;
}
.ah-image {
  position: absolute;
  inset: 0;
}
.ah-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ah-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9,18,40,0.28) 0%,
    rgba(9,18,40,0.52) 40%,
    rgba(9,18,40,0.92) 100%
  );
}
.ah-content { max-width: 820px; padding-top: 120px; }
.ah-cat {
  display: inline-flex;
  align-items: center;
  background: rgba(245,166,35,0.2);
  border: 1px solid rgba(245,166,35,0.45);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
}
.ah-content h1 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 28px;
}
.ah-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.ah-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ah-avatar {
  width: 46px;
  height: 46px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.ah-author-wrap strong { display: block; color: var(--white); font-size: 14px; }
.ah-author-wrap span { font-size: 12px; color: rgba(255,255,255,0.6); }
.ah-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ah-stats span {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ah-stats .bi { color: rgba(255,255,255,0.5); }

/* ============================================
   ARTICLE LAYOUT (detail page)
============================================ */
.article-section { background: var(--white); }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 36px;
}
.share-bar > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--body-text);
  margin-right: 4px;
}
.share-btns { display: flex; align-items: center; gap: 8px; }
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.twitter { background: #000; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.email { background: var(--primary); }
.share-btn.copy { background: var(--mid-gray); }
.share-btn.copy.copied { background: var(--success); }
.share-bottom {
  margin-top: 36px;
  margin-bottom: 0;
}

/* Article typography */
.article-body {
  font-size: 16px;
  line-height: 1.82;
  color: var(--body-text);
}
.article-lead {
  font-size: 1.1rem;
  line-height: 1.78;
  color: var(--dark-text);
  font-weight: 400;
  border-left: 4px solid var(--accent);
  padding-left: 22px;
  margin-bottom: 28px !important;
}
.article-body h2 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 800;
  color: var(--dark-text);
  margin: 44px 0 18px;
  padding-top: 8px;
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px;
}
.article-body p { margin-bottom: 20px; }
.article-body strong { color: var(--dark-text); }

/* Article lists */
.article-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.65;
  padding: 10px 16px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.article-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}
.article-list.checkmark li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2322C55E' viewBox='0 0 16 16'%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z'/%3E%3C/svg%3E") center/contain no-repeat;
  border-radius: 50%;
  background-color: rgba(34,197,94,0.1);
  margin-top: 2px;
}

/* Stat box in article */
.article-stat-box {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0;
}
.asb-item {
  flex: 1;
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.asb-item:last-child { border-right: none; }
.asb-item strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.asb-item span {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  max-width: 100px;
  line-height: 1.45;
}

/* Callout box */
.article-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(26,58,110,0.05);
  border: 1px solid rgba(26,58,110,0.15);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 22px;
  margin: 28px 0;
  font-size: 15px;
}
.article-callout .bi { color: var(--primary); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.article-callout strong { color: var(--primary); }

/* Warning box */
.article-warning {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(245,166,35,0.06);
  border: 1px solid rgba(245,166,35,0.25);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 22px;
  margin: 28px 0;
  font-size: 15px;
}
.article-warning .bi { color: var(--accent); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.article-warning strong { color: var(--accent-dark); }

/* Article figure */
.article-figure {
  margin: 36px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15,36,72,0.12);
}
.article-figure img { width: 100%; height: 380px; object-fit: cover; }
.article-figure figcaption {
  padding: 14px 20px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: none;
  font-size: 13px;
  color: var(--mid-gray);
  font-style: italic;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Download CTA box */
.article-download-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--off-white), rgba(245,166,35,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px;
  margin: 36px 0;
  flex-wrap: wrap;
}
.adb-icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  flex-shrink: 0;
}
.adb-content { flex: 1; min-width: 180px; }
.adb-content strong { display: block; font-size: 16px; color: var(--dark-text); margin-bottom: 5px; }
.adb-content p { font-size: 13.5px; color: var(--body-text); margin: 0; }

/* Author bio box */
.author-bio-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  margin: 40px 0 32px;
}
.abb-avatar {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.abb-content strong { display: block; font-size: 16px; color: var(--dark-text); font-weight: 700; }
.abb-content span { font-size: 13px; color: var(--primary); font-weight: 600; display: block; margin-bottom: 10px; }
.abb-content p { font-size: 14px; color: var(--body-text); margin: 0; line-height: 1.68; }

/* Article tags */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}
.at-label { font-size: 13px; font-weight: 600; color: var(--mid-gray); margin-right: 4px; }
.article-tag {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--body-text);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  transition: var(--transition);
}
.article-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ============================================
   COMMENTS SECTION
============================================ */
.comments-section { border-top: 1px solid var(--border); padding-top: 48px; }
.comments-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.comments-title span {
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-of-type { border-bottom: none; }
.reply-comment { margin-left: 56px; }
.comment-avatar {
  width: 44px;
  height: 44px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.comment-avatar.accent { background: rgba(245,166,35,0.15); color: var(--accent-dark); }
.comment-body { flex: 1; }
.comment-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.comment-header strong { font-size: 14px; color: var(--dark-text); }
.comment-header span:not(.author-tag) { font-size: 12px; color: var(--mid-gray); }
.author-tag {
  background: rgba(26,58,110,0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
}
.comment-body p { font-size: 14px; color: var(--body-text); margin-bottom: 10px; line-height: 1.68; }
.comment-reply-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.comment-reply-btn:hover { color: var(--accent); }
.comment-form-wrap { border-top: 1px solid var(--border); padding-top: 32px; }
.comment-form-wrap h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 22px; }
/* re-use .form-input from style.css */
.form-input {
  width: 100%;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark-text);
  outline: none;
  transition: var(--transition);
  display: block;
}
.form-input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,58,110,0.08);
}
.form-input::placeholder { color: var(--mid-gray); }
textarea.form-input { resize: vertical; }

/* ============================================
   SIDEBAR (detail page)
============================================ */
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
}
.sw-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.sw-title .bi { color: var(--accent); }

/* Table of Contents */
.toc-nav { display: flex; flex-direction: column; gap: 2px; }
.toc-link {
  font-size: 13.5px;
  color: var(--body-text);
  padding: 7px 10px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  display: block;
  transition: var(--transition);
  font-weight: 500;
  line-height: 1.45;
}
.toc-link:hover, .toc-link.active {
  background: rgba(26,58,110,0.06);
  border-left-color: var(--primary);
  color: var(--primary);
}
.toc-sub { padding-left: 22px; font-size: 12.5px; color: var(--mid-gray); }
.toc-sub:hover, .toc-sub.active { color: var(--primary); }

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border: none;
  text-align: center;
}
.sw-cta-icon {
  width: 52px;
  height: 52px;
  background: rgba(245,166,35,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
  margin: 0 auto 16px;
}
.cta-widget h6 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.cta-widget p { color: rgba(255,255,255,0.65); font-size: 13px; margin-bottom: 20px; }
.cta-widget .btn-primary-custom { width: 100%; justify-content: center; margin-bottom: 10px; }
.cta-widget .btn-plan-outline {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 11px;
  border-radius: 50px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.cta-widget .btn-plan-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

/* Author Widget */
.author-widget { text-align: center; }
.aw-avatar {
  width: 68px;
  height: 68px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 12px;
}
.author-widget h6 { font-size: 16px; font-weight: 700; color: var(--dark-text); margin-bottom: 2px; }
.author-widget > span { font-size: 12px; color: var(--primary); font-weight: 600; display: block; margin-bottom: 10px; }
.author-widget p { font-size: 13px; color: var(--body-text); line-height: 1.62; margin-bottom: 16px; }
.aw-socials { display: flex; justify-content: center; gap: 8px; }
.aw-socials a {
  width: 36px;
  height: 36px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 15px;
  transition: var(--transition);
}
.aw-socials a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Related posts */
.related-posts { display: flex; flex-direction: column; gap: 16px; }
.related-post {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: inherit;
  transition: var(--transition);
}
.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post:hover { transform: translateX(4px); }
.rp-image {
  width: 72px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.rp-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.related-post:hover .rp-image img { transform: scale(1.08); }
.rp-body { flex: 1; }
.rp-cat { font-size: 10px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 4px; }
.rp-body h6 { font-size: 13px; font-weight: 600; color: var(--dark-text); line-height: 1.4; margin-bottom: 4px; transition: var(--transition); }
.related-post:hover .rp-body h6 { color: var(--primary); }
.rp-date { font-size: 11px; color: var(--mid-gray); }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--body-text);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 50px;
  transition: var(--transition);
}
.tag-cloud a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 991px) {
  .fp-image { min-height: 280px; }
  .fp-body { padding: 32px 28px; }
  .article-hero { min-height: 460px; padding-bottom: 48px; }
  .ah-image { background-attachment: scroll; }
  .article-sidebar { position: static; }
  .newsletter-box { padding: 36px 28px; }
  .article-figure img { height: 260px; }
  .asb-item strong { font-size: 1.6rem; }
}

@media (max-width: 767px) {
  .blog-controls { flex-direction: column; align-items: stretch; }
  .blog-search-wrap input,
  .blog-search-wrap input:focus { width: 100%; }
  .blog-cats { justify-content: center; }
  .article-stat-box { flex-direction: column; }
  .asb-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 20px; }
  .asb-item:last-child { border-bottom: none; }
  .article-download-box { flex-direction: column; text-align: center; }
  .adb-icon { margin: 0 auto; }
  .author-bio-box { flex-direction: column; }
  .reply-comment { margin-left: 24px; }
  .ah-meta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .share-bar { flex-direction: column; align-items: flex-start; }
  .page-cta-box { padding: 36px 24px; }
  .newsletter-box { padding: 28px 20px; }
  .fp-body { padding: 24px; }
  .featured-post-card .row { flex-direction: column; }
}