/* ============================================================
   article.css — 7-block article layout (techindo.com)
   Dark Gold Warm theme, reading width 720px, mobile-first
   ============================================================ */

/* ---- LAYOUT ---- */
.article-main {
  padding: 40px 16px 80px;
  min-height: 70vh;
}
.article-container {
  max-width: 720px;
  margin: 0 auto;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13px; color: #999; margin-bottom: 24px;
}
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: #d4af37; }
.breadcrumb [aria-current="page"] { color: #e8e8e8; }

/* ---- COVER ---- */
.article-hero-cover {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  border-radius: 12px; margin-bottom: 28px;
  background: #111;
}
.article-hero-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---- BLOCK 1: TITLE ---- */
.article-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700; line-height: 1.25;
  color: #f0e8d0; margin: 0 0 16px;
  letter-spacing: -0.02em;
}

/* ---- META ---- */
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: #888; margin-bottom: 32px;
}
.article-meta time { color: #888; }
.meta-author { color: #d4af37; font-weight: 600; }
.meta-sep { color: #444; }
.meta-cat {
  color: #999; text-decoration: none;
  border-bottom: 1px solid #333; padding-bottom: 1px;
}
.meta-cat:hover { color: #d4af37; border-color: #d4af37; }

/* ---- BLOCK 2: ANSWER BOX ---- */
.article-answer-wrap { margin-bottom: 36px; }
.answer-box {
  background: linear-gradient(135deg, #1a1600, #1f1a00);
  border-left: 4px solid #d4af37;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  color: #f0e8c8;
  font-size: 1rem; line-height: 1.7;
  position: relative;
}
.answer-box::before {
  content: '⚡ Jawaban singkat';
  display: block; font-size: 11px; font-weight: 700;
  color: #d4af37; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 8px;
}

/* ---- BLOCK 3+4: BODY CONTENT ---- */
.article-body-content {
  font-size: 1rem; line-height: 1.8; color: #d8d0c4;
  margin-bottom: 40px;
}
.article-body-content h2 {
  font-size: 1.45rem; font-weight: 700;
  color: #f0e8d0; margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2a2a;
}
.article-body-content h3 {
  font-size: 1.15rem; font-weight: 600;
  color: #e8dfc8; margin: 28px 0 10px;
}
.article-body-content p { margin: 0 0 18px; }
.article-body-content ul,
.article-body-content ol {
  padding-left: 24px; margin: 0 0 18px;
}
.article-body-content li { margin-bottom: 8px; }
.article-body-content a {
  color: #d4af37; text-underline-offset: 3px;
}
.article-body-content a:hover { color: #ffd700; }
.article-body-content strong { color: #f0e8d0; font-weight: 600; }
.article-body-content blockquote {
  border-left: 3px solid #d4af37;
  margin: 24px 0; padding: 12px 20px;
  background: #111; border-radius: 0 8px 8px 0;
  color: #bbb; font-style: italic;
}
.article-body-content code {
  background: #1e1e1e; color: #ffd700;
  padding: 2px 6px; border-radius: 4px;
  font-size: 0.88em; font-family: 'Courier New', monospace;
}
.article-body-content pre {
  background: #131313; border: 1px solid #2a2a2a;
  border-radius: 8px; padding: 20px;
  overflow-x: auto; margin: 24px 0;
}
.article-body-content pre code {
  background: none; padding: 0; color: #e8d8a0;
  font-size: 0.88rem;
}
.article-body-content hr {
  border: none; border-top: 1px solid #222;
  margin: 36px 0;
}
.article-body-content img {
  max-width: 100%; border-radius: 8px;
  display: block; margin: 24px auto;
}
.article-body-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.article-body-content th,
.article-body-content td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid #2a2a2a; font-size: 0.93rem;
}
.article-body-content th { color: #d4af37; font-weight: 600; }
.table-responsive { overflow-x: auto; }

/* ---- INLINE CTA (class: cta-inline) — mid-scroll ~50% ---- */
.cta-inline {
  background: #111; border: 1px solid #2a2a2a;
  border-radius: 12px; padding: 24px;
  margin: 36px 0; text-align: center;
}
.cta-inline p { color: #bbb; margin: 0 0 14px; font-size: 0.95rem; }
.cta-inline a {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #0a0a0a; font-weight: 700;
  padding: 10px 24px; border-radius: 8px;
  text-decoration: none; font-size: 0.95rem;
  transition: opacity 0.2s;
}
.cta-inline a:hover { opacity: 0.85; }

/* ---- FOUNDER NOTE (class: founder-note) ---- */
.founder-note {
  background: #111; border-left: 3px solid #8a6d1a;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px; margin: 28px 0;
  color: #bfb08a; font-size: 0.93rem; line-height: 1.7;
}
.founder-note::before {
  content: '— Handry';
  display: block; font-size: 11px;
  color: #8a6d1a; font-weight: 600;
  letter-spacing: 0.06em; margin-bottom: 6px;
}

/* ---- BLOCK 5: FAQ (details/summary) ---- */
.article-body-content details {
  border: 1px solid #222; border-radius: 8px;
  margin: 12px 0; overflow: hidden;
}
.article-body-content details summary {
  padding: 14px 18px; cursor: pointer;
  font-weight: 600; color: #e8e0cc;
  list-style: none; background: #111;
  display: flex; justify-content: space-between; align-items: center;
}
.article-body-content details summary::after {
  content: '+'; color: #d4af37; font-size: 1.2rem; font-weight: 400;
}
.article-body-content details[open] summary::after { content: '−'; }
.article-body-content details > :not(summary) {
  padding: 14px 18px; color: #bbb;
  border-top: 1px solid #222; background: #0e0e0e;
}

/* ---- BLOCK 6: HARD CTA BLOCK ---- */
.article-cta-block {
  background: linear-gradient(135deg, #1a1500, #1f1b00);
  border: 1px solid #3a3010; border-radius: 14px;
  padding: 32px 28px; text-align: center;
  margin: 48px 0;
}
.cta-block-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8a6d1a; margin: 0 0 12px;
}
.cta-block-btn {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #0a0a0a; font-weight: 700;
  padding: 13px 32px; border-radius: 10px;
  text-decoration: none; font-size: 1rem;
  transition: opacity 0.2s, transform 0.15s;
}
.cta-block-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.cta-block-note {
  margin: 14px 0 0; color: #666; font-size: 0.87rem; font-style: italic;
}

/* ---- BLOCK 7: RELATED ARTICLES ---- */
.article-related {
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid #222;
}
.related-heading {
  font-size: 1.1rem; font-weight: 700;
  color: #e8dfc8; margin: 0 0 20px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.related-card {
  display: block; text-decoration: none; color: inherit;
  background: #111; border: 1px solid #222; border-radius: 10px;
  overflow: hidden; transition: border-color 0.2s;
}
.related-card:hover { border-color: #d4af37; }
.related-cover {
  aspect-ratio: 16/9; overflow: hidden; background: #0e0e0e;
}
.related-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.related-body { padding: 12px 14px; }
.related-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #8a6d1a; display: block; margin-bottom: 6px;
}
.related-title {
  font-size: 0.88rem; line-height: 1.5; color: #d8d0c4; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-empty { color: #666; font-size: 0.93rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .article-main { padding: 24px 16px 60px; }
  .article-title { font-size: 1.55rem; }
  .answer-box { padding: 16px 18px; }
  .article-cta-block { padding: 24px 18px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-body-content h2 { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-block-btn { transition: none; }
  .related-card { transition: none; }
}

/* ═══════════════════════════════════════════
   ARTICLE INLINE SUBSCRIBE BOX
═══════════════════════════════════════════ */
.article-subscribe-box {
  margin: 2.5rem 0;
  padding: 2rem 1.75rem;
  background: linear-gradient(135deg,rgba(212,175,55,.08) 0%,rgba(180,120,30,.04) 100%);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 12px;
}
.art-sub-heading {
  font-size: 1.1rem; font-weight: 700; color: #d4af37; margin: 0 0 .35rem;
}
.art-sub-sub { color: #aaa; font-size: .9rem; margin: 0 0 1rem; }
.art-sub-fields { display: flex; gap: .5rem; flex-wrap: wrap; }
.art-sub-input {
  flex: 1 1 180px; padding: .65rem .9rem; border-radius: 7px;
  border: 1.5px solid rgba(212,175,55,.3); background: rgba(255,255,255,.04);
  color: #f0f0f0; font-size: .9rem; outline: none; transition: border-color .2s;
}
.art-sub-input:focus { border-color: #d4af37; }
.art-sub-btn {
  padding: .65rem 1.2rem;
  background: linear-gradient(135deg,#d4af37,#b8860b);
  color: #1a1200; font-weight: 700; font-size: .9rem;
  border: none; border-radius: 7px; cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.art-sub-btn:hover { opacity: .9; transform: translateY(-1px); }
.art-sub-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.art-sub-msg { margin-top: .5rem; font-size: .85rem; min-height: 1.1em; }
.art-sub-msg.success { color: #6fcf6f; }
.art-sub-msg.error   { color: #e07070; }
@media (max-width: 480px) {
  .art-sub-fields { flex-direction: column; }
  .art-sub-input, .art-sub-btn { width: 100%; }
}

/* ═══════════════════════════════════════════
   ARTICLE PAGE NAV — nav-cta-sm
═══════════════════════════════════════════ */
.nav-cta-sm {
  padding: .4rem .9rem;
  background: linear-gradient(135deg,#d4af37,#b8860b);
  color: #1a1200 !important; font-weight: 700; font-size: .83rem;
  border-radius: 20px; white-space: nowrap;
  transition: opacity .2s, transform .15s;
}
.nav-cta-sm:hover { opacity: .88; transform: translateY(-1px); }
