/* ============================================================
   Takaful-hibah.com — blog.css
   Blog listing + Article page styles
   ============================================================ */

/* ── READING PROGRESS BAR ───────────────────────────────── */
#read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold), var(--gold-lt));
  z-index: 10000;
  transition: width 0.15s linear;
  pointer-events: none;
}

/* ── BLOG HERO ──────────────────────────────────────────── */
.blog-hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 80px;
  overflow: hidden;
  background: var(--navy);
  text-align: center;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 70% at 80% 10%, rgba(201,168,76,0.11) 0%, transparent 65%),
    radial-gradient(ellipse 55% 55% at 20% 90%, rgba(13,27,42,0.8) 0%, transparent 65%),
    linear-gradient(160deg, #0d1b2a 0%, #112135 50%, #0d1b2a 100%);
}

.blog-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
}

.blog-hero-inner .section-label {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px;
  padding: 6px 18px;
  background: rgba(201,168,76,0.07);
}

.blog-hero-inner h1 { margin-bottom: 16px; }

.blog-hero-sub {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.75;
}

.blog-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

/* ── CATEGORY BADGES ────────────────────────────────────── */
.blog-cat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.blog-cat-asas {
  background: rgba(201,168,76,0.14);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-lt);
}

.blog-cat-warisan {
  background: rgba(30,100,220,0.15);
  border: 1px solid rgba(80,140,255,0.3);
  color: #8ab4ff;
}

.blog-cat-kos {
  background: rgba(29,185,84,0.12);
  border: 1px solid rgba(29,185,84,0.3);
  color: #4de08a;
}

.blog-cat-hukum {
  background: rgba(180,100,220,0.14);
  border: 1px solid rgba(180,100,220,0.3);
  color: #c97dff;
}

/* ── FEATURED ARTICLE ───────────────────────────────────── */
.blog-featured-section {
  padding: 64px 0;
  background: var(--navy2);
}

.blog-featured {
  display: flex;
  border-radius: 24px;
  overflow: hidden;
  background: var(--navy3);
  border: 1px solid var(--navy-bdr);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-feat-img {
  flex: 0 0 460px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  background: url('/images/blog_1.webp') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-feat-img::after {
  content: '';
}

.blog-feat-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 55%, rgba(22,45,71,0.85) 100%);
}

.blog-feat-content {
  flex: 1;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-feat-content h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  margin-bottom: 14px;
  color: var(--white);
  line-height: 1.35;
}

.blog-feat-content > p {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 24px;
}

.blog-feat-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.blog-author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.blog-feat-meta-info { display: flex; flex-direction: column; }
.blog-feat-meta-info strong { font-size: 0.88rem; color: var(--white); font-weight: 600; }
.blog-feat-meta-info span  { font-size: 0.78rem; color: var(--muted); }

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.25s var(--ease);
}

.blog-featured:hover .blog-read-more { gap: 14px; }

/* ── ARTICLE GRID ───────────────────────────────────────── */
.blog-grid-section { background: var(--navy); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy2);
  border: 1px solid var(--navy-bdr);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.blog-card:not(.blog-card-soon):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.blog-card-soon { opacity: 0.6; cursor: default; pointer-events: none; }

.blog-card-img {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img::after {
  font-size: 3.5rem;
  opacity: 0.35;
}

.blog-card-img-1 { background: url('/images/blog_1.webp') center / cover no-repeat; }
.blog-card-img-1::after { content: ''; }

.blog-card-img-2 { background: url('/images/blog_2.webp') center / cover no-repeat; }
.blog-card-img-2::after { content: ''; }

.blog-card-img-3 { background:  url('/images/blog_3.webp') center / cover no-repeat; }
.blog-card-img-3::after { content: ''; }

.blog-card-img-4 { background: url('/images/blog_4.webp') center / cover no-repeat; }
.blog-card-img-4::after { content: ''; }

.blog-card-img-5 { background: url('/images/MPS_banknegara.webp') center / cover no-repeat; }
.blog-card-img-5::after { content: ''; }

.blog-card-img-6 { background: url('/images/blog_6.webp') center / cover no-repeat; }
.blog-card-img-6::after { content: ''; }

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card-body h3 {
  font-size: 0.97rem;
  line-height: 1.45;
  color: var(--white);
  font-weight: 600;
}

.blog-card-body > p {
  font-size: 0.84rem;
  color: var(--body);
  line-height: 1.65;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--navy-bdr);
}

.blog-soon-badge {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════
   ARTICLE PAGE STYLES
   ════════════════════════════════════════════════════════ */

/* ── ARTICLE HEADER ─────────────────────────────────────── */
.art-header {
  background: var(--navy2);
  padding: calc(var(--nav-h) + 60px) 0 60px;
  border-bottom: 1px solid var(--navy-bdr);
  position: relative;
  overflow: hidden;
}

.art-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 88% 15%, rgba(201,168,76,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 12% 85%, rgba(201,168,76,0.05) 0%, transparent 60%);
}

.art-hdr-inner {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

.art-breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.art-breadcrumb a { color: var(--muted); transition: color 0.2s; }
.art-breadcrumb a:hover { color: var(--gold); }
.art-breadcrumb .sep { color: rgba(255,255,255,0.2); }

.art-hdr-inner h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  color: var(--white);
  margin: 16px 0 20px;
}

.art-lead {
  font-size: 1.06rem;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 720px;
}

.art-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.art-author-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.art-meta-info { display: flex; flex-direction: column; gap: 3px; }
.art-meta-info strong { font-size: 0.92rem; color: var(--white); font-weight: 600; }
.art-meta-info span  { font-size: 0.78rem; color: var(--muted); }

/* ── ARTICLE BODY (light background) ───────────────────── */
.art-body-bg {
  background: #f4f6f9;
  padding: 60px 0 80px;
}

.art-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.art-content { min-width: 0; }

/* Table of Contents */
.art-toc {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 40px;
}

.art-toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dk);
  margin-bottom: 14px;
}

.art-toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.art-toc li { font-size: 0.87rem; }
.art-toc a { color: #1a3350; text-decoration: none; line-height: 1.4; transition: color 0.2s; }
.art-toc a:hover { color: var(--gold-dk); }

/* ── PROSE TYPOGRAPHY ───────────────────────────────────── */
.art-prose {
  color: #1e2f42;
  font-size: 1.02rem;
  line-height: 1.85;
}

.art-prose h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: #0d1b2a;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8edf3;
  line-height: 1.3;
}

.art-prose h3 {
  font-size: 1.08rem;
  color: #0d1b2a;
  font-weight: 600;
  margin: 30px 0 12px;
}

.art-prose p { color: #2c3e50; margin-bottom: 18px; line-height: 1.85; }

.art-prose ul {
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.art-prose ul li {
  padding-left: 24px;
  position: relative;
  color: #2c3e50;
  font-size: 0.97rem;
}

.art-prose ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-dk);
  font-size: 0.6rem;
  top: 6px;
}

.art-prose ol {
  list-style: decimal;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px;
}

.art-prose ol li { color: #2c3e50; font-size: 0.97rem; padding-left: 4px; }

.art-prose strong { color: #0d1b2a; font-weight: 700; }
.art-prose em { color: var(--gold-dk); font-style: normal; font-weight: 600; }

.art-prose blockquote {
  margin: 28px 0;
  padding: 20px 26px;
  border-left: 4px solid var(--gold);
  background: rgba(201,168,76,0.06);
  border-radius: 0 12px 12px 0;
  font-size: 1.04rem;
  color: #1a2a3a;
  font-style: italic;
  line-height: 1.7;
}

/* Comparison table */
.art-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.art-prose table thead th {
  background: #0d1b2a;
  color: #fff;
  font-weight: 600;
  padding: 14px 18px;
  text-align: left;
  font-size: 0.85rem;
}

.art-prose table tbody tr:nth-child(even) { background: #f8fafc; }
.art-prose table tbody tr:nth-child(odd)  { background: #fff; }

.art-prose table td {
  padding: 12px 18px;
  color: #2c3e50;
  border-bottom: 1px solid #e8edf3;
  vertical-align: top;
  line-height: 1.5;
}

.art-prose table td:first-child { font-weight: 600; color: #0d1b2a; }

/* Callout boxes */
.art-highlight {
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.04) 100%);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 28px 0;
}

.art-highlight-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-dk);
  margin-bottom: 8px;
}

.art-highlight p { font-size: 0.95rem; color: #1a2a3a; margin: 0; line-height: 1.7; }

.art-warning {
  background: rgba(230,57,70,0.05);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 28px 0;
}

.art-warning .art-highlight-title { color: #c0392b; }
.art-warning p { color: #2c1a1a; margin: 0; line-height: 1.7; }

/* Mid-article CTA */
.art-cta-inline {
  background: linear-gradient(135deg, #0d1b2a 0%, #112135 100%);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 18px;
  padding: 32px 36px;
  margin: 44px 0;
  text-align: center;
}

.art-cta-inline h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 10px; }
.art-cta-inline p  { color: var(--body) !important; font-size: 0.95rem; margin-bottom: 20px; }

/* FAQ */
.art-faq { margin-top: 44px; }

.art-faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.art-faq-item summary {
  padding: 17px 22px;
  font-weight: 600;
  font-size: 0.93rem;
  color: #0d1b2a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  gap: 12px;
}

.art-faq-item summary::-webkit-details-marker { display: none; }
.art-faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--gold-dk); transition: transform 0.25s; flex-shrink: 0; }
.art-faq-item[open] summary::after { transform: rotate(45deg); }
.art-faq-item summary:hover { background: #f8fafc; }
.art-faq-item[open] summary { border-bottom: 1px solid #e2e8f0; }

.art-faq-body { padding: 17px 22px; font-size: 0.92rem; color: #2c3e50; line-height: 1.75; }

/* Share row */
.art-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 44px 0;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.art-share-label { font-size: 0.85rem; font-weight: 600; color: #4a5568; }

.art-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--tx);
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
}

.art-share-wa { background: #25d366; color: #fff; }
.art-share-wa:hover { background: #1db954; color: #fff; }

.art-share-copy { background: #f0f5fb; color: #1a3350; border-color: #d0dce8; }
.art-share-copy:hover { background: #e0e8f0; }

/* Author bio box */
.art-author-bio {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.art-author-bio-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.art-author-bio-content h4 { font-size: 1rem; color: #0d1b2a; margin-bottom: 2px; }
.art-author-bio-content .art-author-title { font-size: 0.78rem; color: var(--gold-dk); font-weight: 600; display: block; margin-bottom: 10px; }
.art-author-bio-content p { font-size: 0.87rem; color: #4a5568; line-height: 1.65; margin: 0; }

/* ── SIDEBAR ────────────────────────────────────────────── */
.art-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.art-sidebar-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
}

.art-sidebar-box-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7a8d;
  margin-bottom: 14px;
}

.art-sidebar-cta {
  background: linear-gradient(135deg, #0d1b2a, #162d47);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.art-sidebar-cta h4 { font-size: 1rem; color: var(--white); margin-bottom: 10px; line-height: 1.4; }
.art-sidebar-cta p  { font-size: 0.83rem; color: var(--body); margin-bottom: 18px; line-height: 1.6; }
.art-sidebar-cta .btn { width: 100%; justify-content: center; display: block; text-align: center; }

.art-sidebar-toc ol {
  list-style: decimal;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.art-sidebar-toc li { font-size: 0.83rem; }
.art-sidebar-toc a { color: #2d4a6a; text-decoration: none; line-height: 1.4; transition: color 0.2s; }
.art-sidebar-toc a:hover { color: var(--gold-dk); }

/* ── RELATED ARTICLES ───────────────────────────────────── */
.art-related {
  background: var(--navy2);
  padding: 72px 0;
  border-top: 1px solid var(--navy-bdr);
}

.art-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .blog-featured { flex-direction: column; }
  .blog-feat-img { flex: none; min-height: 220px; width: 100%; }
  .blog-feat-img-overlay { background: linear-gradient(to bottom, transparent 40%, rgba(22,45,71,0.9) 100%); }
  .blog-feat-content { padding: 32px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .art-layout { grid-template-columns: 1fr; }
  .art-sidebar { position: static; }
  .art-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .blog-feat-content { padding: 22px 18px; }
  .blog-grid { grid-template-columns: 1fr; }
  .art-author-bio { flex-direction: column; align-items: center; text-align: center; }
  .art-related-grid { grid-template-columns: 1fr; }
  .art-prose table { display: block; overflow-x: auto; font-size: 0.82rem; }
  .art-cta-inline { padding: 24px 20px; }
}
