/* ==========================================================
   Blog pages (/blog, /blog/:slug) and homepage "Artikel Terkini"
   Builds on styles.css tokens.
   ========================================================== */

.narrow { max-width: 760px; }
.blog-page main { padding-top: 76px; }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { right: 0; }

/* ---------- Blog index ---------- */
.blog-head { padding: 80px 0 40px; border-bottom: 1px solid var(--line); }
.blog-head__title { font-size: clamp(40px, 6.5vw, 88px); font-weight: 900; line-height: 0.95; letter-spacing: -0.045em; }
.blog-head .section__intro { max-width: 620px; }
.blog-list { padding: 56px 0 110px; }
.blog-empty { padding: 60px 30px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); }

.post-feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: 22px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease); margin-bottom: 22px;
}
.post-feature:hover { border-color: rgba(198, 244, 50, 0.4); transform: translateY(-3px); }
.post-feature__img { display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.post-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.post-feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-right: 14px; }
.post-feature__title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s var(--ease);
}
.post-card:hover { border-color: rgba(198, 244, 50, 0.4); transform: translateY(-4px); }
.post-card__img { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__img img, .post-feature:hover .post-feature__img img { transform: scale(1.03); }
.post-card__ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 44px; font-weight: 900; letter-spacing: -0.05em; color: #2c3f6f; background: linear-gradient(135deg, #1d2e5b, #14224a); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.post-card__meta { font-size: 12.5px; color: var(--dim); font-weight: 600; letter-spacing: 0.02em; }
.post-card__title { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.post-card__excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.post-card__more { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--text); }

/* ---------- Single post ---------- */
.post__head { padding: 64px 0 36px; }
.post__back { display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 26px; }
.post__back:hover { color: var(--text); }
.post__title { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.06; letter-spacing: -0.04em; }
.post__meta { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.post__meta img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.post__meta b { display: block; font-size: 15px; }
.post__meta small { display: block; font-size: 13px; color: var(--dim); }
.post__cover { max-width: 1000px; margin-bottom: 48px; }
.post__cover img { width: 100%; border-radius: 22px; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }

.prose-article { font-size: 18px; line-height: 1.8; color: #d5ddf0; }
.prose-article > * + * { margin-top: 1.1em; }
.prose-article p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.prose-article h2 { margin-top: 2em; font-size: clamp(26px, 3vw, 32px); font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; color: var(--text); }
.prose-article h3 { margin-top: 1.7em; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--text); }
.prose-article h4 { margin-top: 1.5em; font-size: 18px; font-weight: 700; color: var(--text); }
.prose-article strong { color: var(--text); font-weight: 700; }
.prose-article a { color: var(--text); text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }
.prose-article a:hover { text-decoration-color: var(--text); }
.prose-article ul, .prose-article ol { padding-left: 1.4em; }
.prose-article ul { list-style: disc; }
.prose-article ol { list-style: decimal; }
.prose-article li + li { margin-top: 0.45em; }
.prose-article li::marker { color: var(--dim); }
.prose-article blockquote { margin-left: 0; padding: 18px 24px; border-left: 3px solid var(--text); background: var(--surface); border-radius: 0 14px 14px 0; font-size: 19px; font-weight: 500; color: var(--text); }
.prose-article figure { margin: 2em 0; }
.prose-article figure img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.prose-article figcaption { margin-top: 10px; font-size: 14px; color: var(--dim); text-align: center; }
.prose-article hr { border: 0; height: 1px; background: var(--line-2); margin: 2.5em 0; }
.prose-article .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose-article table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose-article th, .prose-article td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose-article th { background: var(--surface-2); color: var(--text); font-weight: 700; }
.prose-article tr:last-child td { border-bottom: 0; }

.post__share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 56px 0 28px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.post__share span { margin-right: 4px; font-weight: 600; }
.post__share a, .post__share button {
  font: inherit; font-weight: 600; color: var(--text); padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; transition: border-color 0.2s;
}
.post__share a:hover, .post__share button:hover { border-color: var(--text); }

.post__cta { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 110px; padding: 30px; border-radius: 24px; background: linear-gradient(150deg, #1d2e5b, #121e44 75%); border: 1px solid rgba(198, 244, 50, 0.25); }
.post__cta img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.post__cta-k { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hi); }
.post__cta-t { margin-top: 8px; font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; }
.post__cta-s { margin: 8px 0 20px; color: var(--muted); font-size: 15px; }

/* ---------- Homepage "Artikel Terkini" ---------- */
.latest[hidden] { display: none; }
.latest .post-grid { margin-top: 0; }

@media (max-width: 900px) {
  .post-feature { grid-template-columns: 1fr; gap: 22px; padding: 16px; }
  .post-feature__body { padding: 0 6px 8px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .blog-head { padding: 56px 0 32px; }
  .post-grid { grid-template-columns: 1fr; }
  .prose-article { font-size: 17px; }
  .post__cta { flex-direction: column; padding: 24px; }
  .post__cover { padding: 0; }
  .post__cover img { border-radius: 0; border-left: 0; border-right: 0; }
}
