/* ============================================================
   Blog Duta Bis
   Halaman indeks dan artikel. Memakai token dari style.css
   dan bagong.css agar header/footer tetap konsisten.
   ============================================================ */

.blog-index,
.post-page {
  background: var(--bg);
}

/* ---------- hero indeks ---------- */

.blog-hero {
  padding: calc(var(--b-header-h) + clamp(42px, 6vw, 78px)) 0
    clamp(46px, 6vw, 76px);
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 137, 59, 0.22), transparent 34%),
    linear-gradient(135deg, #17143f 0%, #262261 58%, #1d1a4d 100%);
  color: #fff;
}

.blog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.blog-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-hero h1 {
  max-width: 15ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 1.55rem + 2.4vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.blog-hero__lead {
  max-width: 55ch;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(0.98rem, 0.92rem + 0.22vw, 1.08rem);
  line-height: 1.75;
}

.blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.blog-hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.blog-hero__media {
  position: relative;
}

.blog-hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.65);
}

.blog-hero__caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(11, 10, 32, 0.72);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  line-height: 1.45;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- daftar artikel ---------- */

.blog-list {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 96px);
}

.blog-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 30px;
}

.blog-list__head h2 {
  font-size: clamp(1.65rem, 1.3rem + 1vw, 2.2rem);
}

.blog-list__head p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 34px -28px rgba(10, 14, 32, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -30px rgba(10, 14, 32, 0.42);
}

.blog-card__media {
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
}

.blog-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.035);
}

.blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 22px;
}

.blog-card__tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card__title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.blog-card__title a {
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--orange-dark);
}

.blog-card__excerpt {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted-soft);
  font-size: 0.73rem;
  font-weight: 600;
}

.blog-card__meta span + span::before {
  content: "·";
  margin-right: 8px;
}

.blog-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 32px;
  align-items: center;
  margin-top: 34px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
}

.blog-note h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.blog-note p {
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.blog-note .btn {
  white-space: nowrap;
}

/* ---------- kepala artikel ---------- */

.post-head {
  padding: calc(var(--b-header-h) + clamp(32px, 5vw, 58px)) 0
    clamp(42px, 5vw, 64px);
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 137, 59, 0.18), transparent 30%),
    linear-gradient(135deg, #17143f 0%, #262261 62%, #1c1949 100%);
  color: #fff;
}

.post-head__inner {
  max-width: 920px;
}

.post-head .breadcrumb {
  margin-bottom: 20px;
}

.post-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.post-head h1 {
  max-width: 20ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 1.45rem + 2.15vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.post-head__dek {
  max-width: 68ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(0.96rem, 0.92rem + 0.2vw, 1.06rem);
  line-height: 1.7;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 600;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.post-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- isi artikel ---------- */

.post-cover {
  margin-top: clamp(-42px, -4vw, -26px);
  position: relative;
  z-index: 2;
}

.post-cover img {
  width: 100%;
  height: auto;
  max-height: 560px;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 28px 60px -36px rgba(10, 14, 32, 0.6);
}

.post-body-wrap {
  padding: clamp(34px, 5vw, 58px) 0 clamp(58px, 7vw, 88px);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.post-content {
  max-width: 780px;
}

.post-body {
  color: #302e48;
  font-size: 1.02rem;
  line-height: 1.86;
}

.post-body > p {
  margin: 0 0 1.3em;
}

.post-body > p:first-child,
.post-body .post__lead {
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.78;
}

.post-body h2 {
  margin: 2.1em 0 0.7em;
  padding-top: 0.15em;
  font-size: clamp(1.48rem, 1.25rem + 0.75vw, 1.88rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  scroll-margin-top: calc(var(--b-header-h) + 24px);
}

.post-body h3 {
  margin: 1.65em 0 0.55em;
  font-size: 1.18rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--b-header-h) + 24px);
}

.post-body a {
  color: var(--orange-dark);
  font-weight: 600;
  text-decoration-color: rgba(217, 107, 23, 0.34);
}

.post-body a:hover {
  text-decoration-color: var(--orange-dark);
}

.post-body strong {
  color: var(--ink);
  font-weight: 700;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.35em;
  padding-left: 1.25em;
}

.post-body li {
  margin-bottom: 0.55em;
}

.post-body li::marker {
  color: var(--orange-dark);
  font-weight: 700;
}

/* ---------- daftar isi ---------- */

.post-aside {
  position: sticky;
  top: calc(var(--b-header-h) + 26px);
}

.post-toc {
  padding: 20px 20px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

.post-toc__label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-soft);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.post-toc li {
  counter-increment: toc;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.post-toc li::before {
  content: counter(toc, decimal-leading-zero);
  margin-right: 8px;
  color: var(--orange-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.post-toc a {
  text-decoration: none;
}

.post-toc a:hover {
  color: var(--orange-dark);
}

.post-cta {
  margin-top: 2.2em;
  padding: 24px 24px 22px;
  border: 1px solid rgba(244, 137, 59, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ef 0%, #fff 100%);
}

.post-cta h2 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 1.3rem;
}

.post-cta p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.post-cta .btn {
  min-height: 42px;
}

/* ---------- artikel terkait ---------- */

.related {
  margin-top: clamp(44px, 6vw, 68px);
  padding-top: clamp(30px, 4vw, 42px);
  border-top: 1px solid var(--border);
}

.related__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 22px;
}

.related__head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.65rem);
}

.related__head a {
  color: var(--orange-dark);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 137, 59, 0.5);
}

.related-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.related-card span {
  padding: 12px 13px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ---------- responsif ---------- */

@media (max-width: 1000px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-aside {
    display: none;
  }

  .post-content {
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .blog-hero__grid {
    grid-template-columns: 1fr;
  }

  .blog-hero h1 {
    max-width: 18ch;
  }

  .blog-hero__media {
    max-width: 620px;
  }

  .blog-note {
    grid-template-columns: 1fr;
  }

  .blog-note .btn {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding-top: calc(var(--b-header-h) + 34px);
  }

  .blog-hero h1 {
    font-size: clamp(1.85rem, 1.35rem + 2.2vw, 2.5rem);
  }

  .blog-hero__caption {
    display: none;
  }

  .blog-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .blog-card__body {
    padding: 17px 17px 19px;
  }

  .post-head h1 {
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem);
  }

  .post-cover {
    margin-top: -18px;
  }

  .post-cover img {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .post-body {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .post-body > p:first-child,
  .post-body .post__lead {
    font-size: 1.06rem;
  }

  .post-cta {
    padding: 20px 18px;
  }
}

@media (max-width: 380px) {
  .blog-hero__meta,
  .post-meta {
    display: grid;
    gap: 7px;
  }

  .post-body h2 {
    font-size: 1.36rem;
  }
}
