/* ============================================================
   PT Tiga Perkasa — Gaya halaman artikel
   Palet: #a5d0a8 #8cada7 #110b11 #b7990d #f2f4cb
   ============================================================ */

.article-page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #241c24 60%, #3a323a 100%);
  color: var(--cream);
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(165, 208, 168, 0.16), transparent 42%);
  pointer-events: none;
}
.article-page-hero .container { position: relative; }
.article-page-hero .badge { margin-bottom: 16px; }
.article-page-hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  max-width: 860px;
  margin: 0 auto 14px;
}
.article-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(242, 244, 203, 0.75);
  font-size: 0.9rem;
  font-weight: 600;
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article-page-body { padding: 56px 0 72px; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  align-items: start;
}
.article-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px 44px;
  min-width: 0;
}
.article-content .article-cover {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 24px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-content .photo-credit {
  font-size: 0.74rem;
  color: var(--muted);
  margin: -14px 0 24px;
  line-height: 1.5;
}
.article-content .photo-credit a { color: inherit; text-decoration: underline; }
.article-content h2 {
  color: var(--primary-dark);
  font-size: 1.4rem;
  margin: 30px 0 12px;
  line-height: 1.35;
}
.article-content h3 {
  color: var(--primary-dark);
  font-size: 1.15rem;
  margin: 24px 0 10px;
}
.article-content p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.article-content .article-lead {
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 500;
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin-bottom: 20px;
}
.article-content ul, .article-content ol { margin: 0 0 18px 22px; color: var(--muted); line-height: 1.75; }
.article-content li { margin-bottom: 8px; }
.article-content li::marker { color: var(--accent); font-weight: 700; }
.article-content ul.article-list { list-style: disc; padding-left: 4px; }
.article-content ol.article-list { list-style: decimal; padding-left: 4px; }
.article-content strong { color: var(--text); }
.article-content a:not(.btn) { color: #6f5b06; text-decoration: underline; text-underline-offset: 2px; }
.article-content a:not(.btn):hover { color: var(--primary); }
.article-content .article-figure { margin: 22px 0; }
.article-content .article-figure img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.article-content .article-figure figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 20px 0 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.article-content table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.55;
}
.article-content th {
  background: var(--bg-alt);
  color: var(--primary-dark);
  text-align: left;
  font-weight: 700;
  padding: 12px 14px;
}
.article-content td {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
.article-content tbody tr:nth-child(even) { background: #fbfcf3; }

.article-cta-box {
  background: linear-gradient(120deg, #8c7a06, var(--accent));
  color: var(--primary);
  border-radius: 12px;
  padding: 26px 28px;
  margin: 32px 0 0;
  text-align: center;
}
.article-cta-box h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 8px; }
.article-cta-box p { color: rgba(17, 11, 17, 0.84); font-size: 0.95rem; margin-bottom: 18px; }
.article-cta-box .btn { background: var(--primary); color: var(--cream); }
.article-cta-box .btn:hover { background: #2a222a; }

.article-sidebar { display: flex; flex-direction: column; gap: 26px; }
.sidebar-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.sidebar-box h3 { color: var(--primary-dark); font-size: 1.05rem; margin-bottom: 16px; }
.sidebar-article { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.sidebar-article:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-article img { width: 68px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.sidebar-article a { font-size: 0.85rem; font-weight: 700; color: var(--primary-dark); line-height: 1.4; }
.sidebar-article a:hover { color: var(--accent-dark); }

.article-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}
.article-prevnext a {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.article-prevnext a:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.article-prevnext .next { text-align: right; }
.article-prevnext small { display: block; color: var(--muted); font-weight: 600; font-size: 0.75rem; margin-bottom: 4px; }

/* Key takeaways & answer box */
.article-content .key-takeaways {
  background: rgba(165, 208, 168, 0.22);
  border: 1px solid rgba(140, 173, 167, 0.55);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 24px 0;
}
.article-content .key-takeaways h2,
.article-content .key-takeaways h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
}
.article-content .key-takeaways ul { margin: 0 0 0 20px; list-style: disc; }
.article-content .key-takeaways li::marker { color: var(--accent-dark); }
.article-content .key-takeaways li { color: var(--text); font-size: 0.94rem; margin-bottom: 6px; }
.article-content .answer-box {
  background: #fbfcf3;
  border-left: 4px solid var(--sage-dark);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 0 0 20px;
}
.article-content .answer-box p { margin: 0; color: var(--text); }
.article-content .article-toc {
  background: #fbfcf3;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
}
.article-content .article-toc strong { display: block; color: var(--primary-dark); margin-bottom: 8px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.article-content .article-toc ol { margin: 0 0 0 18px; }
.article-content .article-toc li { margin-bottom: 4px; font-size: 0.9rem; }
.article-content .article-toc a { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.article-content .article-toc a:hover { color: var(--accent-dark); text-decoration: underline; }

.article-content .article-cta-box h2,
.article-content .article-cta-box h3 { color: var(--primary); }

.references { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
.references h2 { margin-top: 0; font-size: 1.1rem; }
.references ol { margin: 0 0 0 20px; font-size: 0.86rem; }
.references li { margin-bottom: 6px; color: var(--muted); }
.references a { overflow-wrap: anywhere; }

/* FAQ accordion */
.faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 0; margin-bottom: 12px; background: var(--bg); overflow: hidden; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 0.95rem; color: var(--primary-dark); padding: 14px 18px; list-style: none; position: relative; padding-right: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--accent-dark); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 18px 16px; font-size: 0.92rem; }
.faq-item summary:hover { background: #fbfcf3; }

/* Responsif */
@media (max-width: 992px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: 2; }
}
@media (max-width: 768px) {
  .article-content { padding: 26px 22px; }
  .article-prevnext { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .article-content table { min-width: 0; }
  .article-content thead { display: none; }
  .article-content table,
  .article-content tbody,
  .article-content tr,
  .article-content td { display: block; width: 100%; }
  .article-content tr { padding: 12px 14px; border-top: 1px solid var(--border); }
  .article-content tr:first-child { border-top: 0; }
  .article-content tbody tr:nth-child(even) { background: transparent; }
  .article-content td { border: 0; padding: 3px 0; }
  .article-content td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--primary-dark);
    opacity: 0.6;
    margin-bottom: 2px;
  }
  .article-content td:first-child {
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
    padding-bottom: 6px;
  }
  .article-content td:first-child::before { display: none; }
}
