/* ============================================================
   ANGEL CREDIT SERVICES – BLOG STYLESHEET
   Bespoke, High-End Editorial Financial UI Design.
   Extends main.css. Load after main.css.
   ============================================================ */

/* ── 1. READING PROGRESS BAR ──────────────────────────────── */
#readingProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), #d4a96a);
  z-index: 9999;
  transition: width 50ms linear;
  border-radius: 0 2px 2px 0;
}

/* ── 2. ARTICLE HERO ──────────────────────────────────────── */
.article-hero {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.article-hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.article-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  background: var(--accent-gold-light);
  padding: 4px 14px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base);
}
.article-category-tag:hover {
  background: var(--accent-gold);
  color: #fff;
}

.article-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--primary-navy);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 820px;
  letter-spacing: -0.01em;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.6;
}

.article-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-medium);
  flex-shrink: 0;
}

/* ── 3. ARTICLE LAYOUT (content + sidebar) ────────────────── */
.article-wrap {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
  padding-block: 3.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .article-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .article-toc-sidebar {
    display: none;
  }
}

/* ── 4. ARTICLE BODY ──────────────────────────────────────── */
.article-body {
  min-width: 0;
  width: 100%;
}

/* ── 5. ARTICLE TYPOGRAPHY & HYGIENE ──────────────────────── */
.article-content {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #334155;
  width: 100%;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  color: var(--primary-navy);
  font-weight: 500;
  line-height: 1.25;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: calc(var(--nav-h) + 32px);
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--primary-navy);
  font-weight: 600;
  line-height: 1.35;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  scroll-margin-top: calc(var(--nav-h) + 32px);
}

.article-content h4 {
  font-size: 1.125rem;
  color: var(--primary-navy);
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: calc(var(--nav-h) + 32px);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--t-base);
}
.article-content a:hover { color: #8b6b38; }

.article-content strong {
  color: var(--primary-navy);
  font-weight: 600;
}

.article-content em { font-style: italic; }

.article-content ul,
.article-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.article-content li::marker {
  color: var(--accent-gold);
}

.article-content > h2:first-child { margin-top: 0; }

/* ── 6. MINIMALIST STICKY TABLE OF CONTENTS (sidebar) ────── */
.article-toc-sidebar {
  position: relative;
}

.toc-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  max-height: calc(100vh - var(--nav-h) - 4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 0 1.25rem;
  border-left: 1px solid var(--border-light);
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.toc-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  line-height: 1.45;
  transition: color var(--t-base), border-color var(--t-base);
}

.toc-list a:hover {
  color: var(--accent-gold);
  border-left-color: var(--accent-gold);
}

.toc-list a.toc-active {
  color: var(--primary-navy);
  border-left-color: var(--accent-gold);
  font-weight: 600;
}

.toc-list .toc-h3 a {
  padding-left: 22px;
  font-size: 0.8125rem;
}

/* Mobile ToC */
.toc-mobile {
  display: none;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
}

@media (max-width: 1024px) {
  .toc-mobile { display: block; }
}

.toc-mobile-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary-navy);
  cursor: pointer;
  gap: 0.75rem;
}

.toc-mobile-toggle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--t-base);
}

.toc-mobile-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.toc-mobile-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.toc-mobile-panel.open { max-height: 600px; }

.toc-mobile-panel .toc-list {
  padding: 0 1.25rem 1rem;
}

/* ── 7. EDITORIAL CALLOUT BOXES & KEY TAKEAWAYS ───────────── */
.callout {
  display: block;
  padding: 1.75rem 2rem;
  margin-block: 2.5rem;
  border-radius: 4px;
  background: #FAF9F6;
  border: none;
  border-left: 3px solid var(--accent-gold);
}

.callout-icon { display: none !important; }
.callout-body { min-width: 0; }

.callout-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.callout-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
  margin: 0;
}

/* Specific callout variations */
.callout-info {
  background: #F4F6F9;
  border-left: 3px solid var(--primary-navy);
}
.callout-info .callout-title { color: var(--primary-navy); }

.callout-warning {
  background: #FFFBF5;
  border-left: 3px solid #D97706;
}
.callout-warning .callout-title { color: #B45309; }

.callout-tip {
  background: #F4FBF7;
  border-left: 3px solid #16A34A;
}
.callout-tip .callout-title { color: #15803D; }

.callout-key {
  background: #FAF8F5;
  border-left: 3px solid var(--accent-gold);
}
.callout-key .callout-title { color: var(--accent-gold); }

/* Clean callout lists */
.callout .key-list,
.callout .article-checklist {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.callout .key-list li,
.callout .article-checklist li {
  font-size: 0.9375rem;
  color: #334155;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
  margin: 0;
  background: transparent !important;
  border: none !important;
}

.callout .key-list li::before,
.callout .article-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Standalone Article Checklist */
.article-checklist {
  list-style: none;
  padding: 0;
  margin-block: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  padding: 0.875rem 1.25rem;
  background: #F8FAFC;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
}

.article-checklist li::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ── 8. HIGH-END FINANCIAL COMPARISON TABLES ──────────────── */
.comparison-table-wrap,
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-block: 2.5rem;
  -webkit-overflow-scrolling: touch;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(11, 21, 40, 0.06);
  background: #ffffff;
}

.comparison-table,
.article-content table,
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 480px;
}

.comparison-table th,
.article-content table th,
.article-table th {
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  border: none;
}

.comparison-table td,
.article-content table td,
.article-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #F1F5F9;
  color: #475569;
  vertical-align: top;
  line-height: 1.6;
}

.comparison-table td:first-child,
.article-content table td:first-child {
  font-weight: 600;
  color: var(--primary-navy);
}

.comparison-table tr:last-child td,
.article-content table tr:last-child td { border-bottom: none; }

.comparison-table tr:nth-child(even) td,
.article-content table tr:nth-child(even) td { background: #F8FAFC; }

.comparison-table tr:hover td,
.article-content table tr:hover td { background: rgba(163, 128, 76, 0.04); }

.comparison-table .td-highlight { color: var(--accent-gold); font-weight: 700; }
.comparison-table .td-check::before { content: '✓'; color: #16A34A; font-weight: 700; margin-right: 6px; }
.comparison-table .td-cross::before { content: '✗'; color: #DC2626; font-weight: 700; margin-right: 6px; }

/* ── 9. LUXURY EDITORIAL FAQ ACCORDION ────────────────────── */
.article-faq {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
}

.article-faq-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  color: var(--primary-navy);
  font-weight: 500;
  margin-bottom: 2rem;
}

.faq-accordion {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.faq-accordion-item {
  border: none;
  border-bottom: 1px solid #E2E8F0;
  background: transparent;
  padding: 1.25rem 0;
  border-radius: 0;
  margin: 0;
  transition: border-color var(--t-base);
}

.faq-accordion-item:last-child {
  border-bottom: none;
}

.faq-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary-navy);
  cursor: pointer;
  transition: color var(--t-base);
  line-height: 1.4;
}

.faq-accordion-btn:hover { color: var(--accent-gold); }

.faq-accordion-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid #CBD5E1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 300;
  color: var(--accent-gold);
  transition: transform 250ms ease, background 250ms ease, border-color 250ms ease, color 250ms ease;
  line-height: 1;
}

.faq-accordion-btn[aria-expanded="true"] .faq-accordion-icon {
  transform: rotate(45deg);
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.faq-accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-panel.open { max-height: 800px; }

.faq-accordion-panel p,
.faq-accordion-panel ul {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.75;
  padding-top: 0.875rem;
  padding-bottom: 0.5rem;
  margin: 0;
}

.faq-accordion-panel ul { padding-left: 1.25rem; list-style: disc; }
.faq-accordion-panel ul li { margin-bottom: 0.375rem; }

/* ── 10. TAGS & SOCIAL SHARING ────────────────────────────── */
.social-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-block: 2.5rem;
}

.social-share-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
}

.share-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.share-btn.share-whatsapp:hover { border-color: #25D366; color: #25D366; }
.share-btn.share-twitter:hover  { border-color: #000; color: #000; }
.share-btn.share-linkedin:hover { border-color: #0077B5; color: #0077B5; }

.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 2.5rem;
}

.article-tags-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.tag-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #F1F5F9;
  border: none;
  border-radius: 9999px;
  padding: 5px 14px;
  text-decoration: none;
  transition: all var(--t-base);
}

.tag-chip:hover { background: var(--accent-gold); color: #ffffff; }

/* ── 11. AUTHOR CARD & CTA ────────────────────────────────── */
.author-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-secondary);
  margin-top: 3.5rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info { flex: 1; min-width: 0; }

.author-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.author-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.author-title {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.author-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .author-card { flex-direction: column; }
}

.article-cta {
  background: var(--primary-navy);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  margin-block: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(11, 21, 40, 0.12);
}

.article-cta::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(163,128,76,.15);
}

.article-cta-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.article-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-cta-desc {
  font-size: 0.9375rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 600px;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── 12. PREV / NEXT & RELATED ARTICLES ───────────────────── */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-block: 3.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

@media (max-width: 600px) { .article-nav { grid-template-columns: 1fr; } }

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.article-nav-link:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

.article-nav-link.nav-next { align-items: flex-end; text-align: right; }

.article-nav-dir {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.article-nav-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-navy);
  line-height: 1.4;
  transition: color var(--t-base);
}

.article-nav-link:hover .article-nav-title { color: var(--accent-gold); }

.related-articles {
  margin-block: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.related-articles-title {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  color: var(--primary-navy);
  font-weight: 500;
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border-light);
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 6px;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.related-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.related-card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  display: block;
}

.related-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-navy);
  line-height: 1.45;
  transition: color var(--t-base);
}

.related-card:hover .related-card-title { color: var(--accent-gold); }

.related-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ── 13. BLOG LISTING PAGE STYLING ────────────────────────── */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.category-filter-btn {
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-base);
}

.category-filter-btn:hover,
.category-filter-btn.active {
  border-color: var(--primary-navy);
  color: #ffffff;
  background: var(--primary-navy);
}

.blog-listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.blog-search {
  border-radius: 9999px !important;
  padding: 8px 20px !important;
  border: 1px solid #CBD5E1 !important;
}

.blog-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) { .blog-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid-v2 { grid-template-columns: 1fr; } }

.blog-card-v2 {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #ffffff;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  overflow: hidden;
}

.blog-card-v2:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 12px 32px rgba(11, 21, 40, 0.08);
  transform: translateY(-3px);
}

.blog-card-v2-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-tertiary);
}

.blog-card-v2-body { padding: 1.75rem; }

.blog-card-v2-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.blog-card-v2-cat { color: var(--accent-gold); }
.blog-card-v2-date { color: var(--text-muted); }

.blog-card-v2-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary-navy);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color var(--t-base);
}

.blog-card-v2:hover .blog-card-v2-title { color: var(--accent-gold); }

.blog-card-v2-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-v2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.blog-read-more {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-v2.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}

@media (max-width: 768px) {
  .blog-card-v2.featured { grid-template-columns: 1fr; grid-column: auto; }
}

.blog-card-v2.featured .blog-card-v2-image { aspect-ratio: auto; height: 100%; min-height: 320px; }
.blog-card-v2.featured .blog-card-v2-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.blog-card-v2.featured .blog-card-v2-title { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-bottom: 1rem; }

/* ── 14. SCROLL TO TOP & MISC UTILITIES ───────────────────── */
#scrollToTop {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--primary-navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 140;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-base);
  box-shadow: 0 4px 16px rgba(11, 21, 40, 0.2);
}

#scrollToTop.visible { opacity: 1; transform: translateY(0); }
#scrollToTop:hover { background: var(--accent-gold); }
#scrollToTop svg { width: 16px; height: 16px; }

.article-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin-block: 3rem;
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: #F1F5F9;
  border-radius: 9999px;
  padding: 4px 12px;
}

.last-updated svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #readingProgress { transition: none; }
}

@media print {
  #readingProgress,
  .article-toc-sidebar,
  .toc-mobile,
  .social-share,
  .article-cta,
  .article-nav,
  .related-articles,
  #scrollToTop,
  .whatsapp-float { display: none !important; }

  .article-wrap { display: block; padding: 0; }
  .article-content { max-width: 100%; font-size: 12pt; }
  .article-content a { color: inherit; text-decoration: none; }
}
