/* ==========================================================================
   SINGLE POST ARTICLE STYLING (PERFECT DESKTOP & MOBILE RESPONSIVE)
   ========================================================================== */

.single-post-main {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  overflow-x: hidden; /* Mencegah horizontal scroll bug */
}

/* Breadcrumbs Navigasi */
.post-breadcrumbs {
  font-size: 0.825rem;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.post-breadcrumbs a {
  color: var(--text-subtle);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-breadcrumbs a:hover {
  color: var(--accent-camel);
}

.breadcrumb-current {
  color: var(--accent-camel);
  font-weight: 600;
}

/* Header Artikel */
.post-header {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  box-sizing: border-box;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  word-wrap: break-word;
}

.post-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-gold);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.post-author-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
  color: var(--text-main);
}

.post-date {
  font-size: 0.825rem;
  color: var(--text-subtle);
}

/* Tombol Bagikan (Share Buttons) */
.post-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-subtle);
  margin-right: 0.25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  padding: 0.45rem 0.85rem;
  border-radius: 99px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background-color: var(--text-main);
  color: var(--bg-primary);
  border-color: var(--text-main);
}

/* Gambar Utama Artikel (Hero Wide) */
.post-hero-image-wrapper {
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.post-hero-img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.photo-caption {
  display: block;
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-top: 0.75rem;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

/* Wadah Teks Artikel (Dibuat Ramping 760px untuk Kenyamanan Baca) */
.post-body-container {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-main);
  box-sizing: border-box;
}

.post-lead {
  font-size: 1.2rem;
  line-height: 1.75;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.post-body-container h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1.15rem;
  color: var(--text-main);
  word-wrap: break-word;
}

.post-body-container p {
  margin-bottom: 1.65rem;
  word-wrap: break-word;
}

.post-body-container a {
  color: var(--accent-camel);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.post-body-container ul,
.post-body-container ol {
  margin-bottom: 2rem;
  padding-left: 1.35rem;
}

.post-body-container li {
  margin-bottom: 0.75rem;
}

/* Gambar In-line Di Dalam Artikel */
.post-inline-photo {
  margin: 2.5rem 0;
  width: 100%;
}

.post-inline-photo img {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  height: auto;
  display: block;
}

.post-inline-photo figcaption {
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 0.6rem;
}

/* Callout Banner Preset Di Tengah Artikel */
.post-preset-callout {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent-camel);
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-sizing: border-box;
}

.callout-text h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  margin-top: 0 !important;
}

.callout-text p {
  font-size: 0.95rem;
  color: var(--text-subtle);
  margin-bottom: 0;
}

.btn-callout {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bg-primary);
  background-color: var(--text-main);
  padding: 0.8rem 1.6rem;
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.btn-callout:hover {
  opacity: 0.85;
}

/* Tag & Footer Artikel */
.post-footer-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-gold);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.post-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.post-tag {
  font-size: 0.8rem;
  color: var(--text-main);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-tag:hover {
  background-color: var(--accent-camel);
  color: #fff;
}

/* Author Box (Penulis Bio untuk E-E-A-T AdSense) */
.author-bio-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
  box-sizing: border-box;
}

.author-bio-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bio-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-camel);
}

.bio-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.bio-desc {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text-subtle);
  margin-bottom: 0;
}

/* Wadah Slot Iklan AdSense */
.ad-container {
  margin: 3rem auto;
  text-align: center;
  box-sizing: border-box;
}

.ad-slot {
  display: inline-block;
  width: 100%;
  max-width: 728px;
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-gold);
  padding: 1rem;
  border-radius: 8px;
  box-sizing: border-box;
}

.ad-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 0.5rem;
}

.ad-placeholder {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-subtle);
  background-color: oklch(from var(--text-main) l c h / 0.03);
  border-radius: 4px;
}

/* ==========================================================================
   PERFECT RELATED POSTS SECTION (DESKTOP & MOBILE FIX)
   ========================================================================== */
.related-posts-section {
  max-width: 1000px; /* Lebar simetris seimbang dengan gambar hero */
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border-gold);
  box-sizing: border-box;
}

.related-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: 2rem;
  color: var(--text-main);
  text-align: left;
}

/* Grid Layout 2 Kolom Presisi */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-img-wrapper {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: var(--bg-secondary);
}

.related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.related-card:hover .related-img {
  transform: scale(1.04);
}

.related-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.related-cat {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-camel);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.related-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0;
}

.related-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-card-title a:hover {
  color: var(--accent-camel);
}

/* ==========================================================================
   FIXED MOBILE RESPONSIVE (Max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .single-post-main {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
  }

  /* Padding Samping Container Mobile */
  .post-header,
  .post-body-container,
  .ad-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .post-title {
    font-size: 1.95rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
  }

  /* REDESIGN POST META BAR (Sejajar 1 Baris di HP) */
  .post-meta-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
  }

  .post-author-meta {
    gap: 0.65rem;
  }

  .author-avatar {
    width: 36px;
    height: 36px;
  }

  .author-name {
    font-size: 0.875rem;
    line-height: 1.2;
  }

  .post-date {
    font-size: 0.75rem;
    display: block;
    line-height: 1.2;
    margin-top: 2px;
  }

  /* Sembunyikan label teks "Bagikan:" agar tombol muat dalam 1 baris */
  .post-share-buttons .share-label {
    display: none;
  }

  .post-share-buttons {
    width: auto;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  /* Ubah tombol share jadi ikon lingkaran clean di HP */
  .share-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .post-hero-image-wrapper {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .post-hero-img {
    max-height: 320px;
    border-radius: 8px;
  }

  .post-body-container {
    font-size: 0.975rem;
    line-height: 1.75;
  }

  .post-lead {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .post-body-container h2 {
    font-size: 1.35rem;
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
  }

  /* Preset Callout Box di HP */
  .post-preset-callout {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .btn-callout {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* Author Box di HP */
  .author-bio-box {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
  }

  .post-footer-tags {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Related Posts di HP */
  .related-posts-section {
    margin-top: 3rem;
    padding-top: 2rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .related-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}