/* ===================================================== */
/* SINGLE POST (inspira-single.css)                      */
/* ===================================================== */

.im-single-grid{ gap: 28px; }

.im-breadcrumbs{
  font-size: 12.5px;
  color: rgba(0,0,0,0.55);
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.im-breadcrumbs a{
  color: rgba(0,0,0,0.70);
  text-decoration: none !important; /* ✅ no underline */
}
.im-breadcrumbs a:hover{
  color: rgba(0,0,0,0.85);
  text-decoration: none !important; /* ✅ no underline */
}
.im-bc-sep{ opacity: .6; }

.im-single-title{
  font-size: 28px;     /* professional (tidak kebesaran) */
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 8px;
  color: #111827;
}
@media (max-width: 600px){
  .im-single-title{ font-size: 22px; line-height: 1.2; }
}

.im-single-meta{
  font-size: 12.5px;
  color: rgba(0,0,0,0.55);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.im-single-author{
  color: rgba(0,0,0,0.70);
  font-weight: 700;
  text-decoration: none !important; /* ✅ no underline */
}
.im-single-author:hover{
  color: rgba(0,0,0,0.85);
  text-decoration: none !important; /* ✅ no underline */
}

.im-single-figure{ margin: 0 0 14px; }
.im-single-thumb{
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}
.im-single-img{ width: 100%; height: auto; display: block; }

.im-single-caption{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0,0,0,0.50);
}

.im-single-body{
  font-size: 15.5px;
  line-height: 1.75;
  color: #111827;
}
.im-single-body p{ margin: 0 0 14px; }
.im-single-body h2, .im-single-body h3{
  line-height: 1.25;
  margin: 18px 0 10px;
}
.im-single-body img{ border-radius: 12px; }

/* ===== BACA JUGA ===== */
.im-bacajuga{
  margin: 16px 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.035);
  border: 1px solid rgba(0,0,0,0.06);
}
.im-bacajuga-title{
  font-size: 12px;
  letter-spacing: .02em;
  font-weight: 900;
  color: rgba(0,0,0,0.70);
  margin-bottom: 8px;
}
.im-bacajuga-list{ display: grid; gap: 8px; }
.im-bacajuga-item{
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  text-decoration: none !important; /* ✅ no underline */
}
.im-bacajuga-item:hover{
  color: rgba(0,0,0,0.75);
  text-decoration: none !important; /* ✅ no underline */
}

/* ===== Author box (mirip screenshot) ===== */
.im-authorbox{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}
.im-authorbox-avatar{
  width: 64px !important;
  height: 64px !important;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.08);
}
.im-authorbox-name{
  font-weight: 900;
  color: #111827;
  margin-bottom: 4px;
}
.im-authorbox-bio{
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0,0,0,0.60);
}

/* ===== Section headings ===== */
.im-single-h2{
  font-size: 18px;
  font-weight: 900;
  margin: 18px 0 12px;
  color: #111827;
}

/* ===== TAGS row (di atas Berita Terkait) ===== */
.im-tags-row{
  margin: 10px 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(0,0,0,0.70);
}
.im-tags-label{
  font-weight: 900;
  color: #0b2a3a; /* ✅ biru tua */
  margin-right: 8px;
}
.im-tags-row a{
  color: rgba(0,0,0,0.72);
  font-weight: 400; /* ✅ font biasa */
  text-decoration: none !important; /* ✅ no underline */
}
.im-tags-row a:hover{
  color: rgba(0,0,0,0.90);
  text-decoration: none !important; /* ✅ no underline */
}

/* ===== Berita Terkait (2 kolom list, clean) ===== */
.im-related-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
@media (max-width: 600px){
  .im-related-grid{ grid-template-columns: 1fr; }
}
.im-related-item{
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: #111827;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none !important; /* ✅ no underline */
}
.im-related-item:nth-child(odd){ padding-right: 14px; }
.im-related-item:nth-child(even){ padding-left: 14px; }
@media (max-width: 600px){
  .im-related-item:nth-child(odd),
  .im-related-item:nth-child(even){ padding-left: 0; padding-right: 0; }
}
.im-related-item:hover{
  color: rgba(0,0,0,0.72);
  text-decoration: none !important; /* ✅ no underline */
}

/* ===== Rekomendasi grid (3 kolom, 2 baris) ===== */
.im-rekomendasi-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.im-rekomendasi-more{
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(0,0,0,0.55);
  text-decoration: none !important; /* ✅ no underline */
}
.im-rekomendasi-more:hover{
  color: rgba(0,0,0,0.80);
  text-decoration: none !important; /* ✅ no underline */
}

.im-rekom-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 991px){
  .im-rekom-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .im-rekom-grid{ grid-template-columns: 1fr; }
}

.im-rekom-card{
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none !important; /* ✅ no underline */
}
.im-rekom-card:hover{ text-decoration: none !important; } /* ✅ no underline */

.im-rekom-media{
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  height: 140px;
}
.im-rekom-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.im-rekom-fallback{ width: 100%; height: 100%; }

/* ✅ kategori orange kontras */
.im-rekom-cat{
  font-size: 12px;
  font-weight: 900;
  color: #f97316; /* orange kontras di background putih */
  margin-bottom: 4px;
}

.im-rekom-title{
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
}
.im-rekom-card:hover .im-rekom-title{ color: rgba(0,0,0,0.72); }

/* ===== Comments spacing ===== */
.im-comments{ margin-top: 18px; }

/* ===== ADS Single box ===== */
.im-single-ads-card{ padding: 12px; }

/* Sticky khusus sidebar single */
.im-single-sidebar{
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  align-self: start;
}

/* Pastikan parent tidak menghambat sticky */
.im-single-grid{ overflow: visible; }
.im-single-content{ overflow: visible; }

/* ===== Spacing: TAGS -> Berita Terkait -> Rekomendasi ===== */

/* Setelah TAGS, kasih jarak sebelum Berita Terkait */
.im-tags-row{
  margin-bottom: 22px; /* sebelumnya 14px, kita tambahin biar ada napas */
}

/* Berita Terkait: jangan nempel ke TAGS */
.im-related{
  margin-top: 0; /* aman karena sudah diatur via margin-bottom tags */
}

/* Setelah Berita Terkait, kasih jarak sebelum Rekomendasi */
.im-rekomendasi{
  margin-top: 26px;
}


/* =========================
   SHARE BAR (Premium)
   - Desktop: icon + text
   - Tablet: bigger pills (icon + text)
   - Mobile: icon-only (bigger)
   ========================= */

.im-sharebar{
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* base button */
.im-share-btn{
  appearance: none;
  border: 0;
  color: #fff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: 999px;

  font-weight: 800;
  font-size: 13px;
  line-height: 1;

  cursor: pointer;

  box-shadow: 0 10px 22px rgba(0,0,0,.16);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, opacity .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.im-share-btn svg{
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
  color: #fff;
  opacity: .98;
}

.im-share-btn span{
  color: #fff;
  white-space: nowrap;
}

/* Hover / focus */
.im-share-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
  filter: brightness(.92);
}
.im-share-btn:active{
  transform: translateY(0px);
  filter: brightness(.88);
}
.im-share-btn:focus{
  outline: none;
}
.im-share-btn:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,.45), 0 14px 28px rgba(0,0,0,.22);
}

/* Brand backgrounds */
.im-share-btn.is-facebook{ background: #1877F2; }
.im-share-btn.is-whatsapp{ background: #25D366; }
.im-share-btn.is-telegram{ background: #229ED9; }
.im-share-btn.is-x{ background: #111111; }
.im-share-btn.is-email{ background: #6B7280; }
.im-share-btn.is-share{ background: #7C3AED; }
.im-share-btn.is-copy{ background: #0F766E; }

/* ===== Tablet: "Tab icon jadi full besar" =====
   - tombol lebih besar & lebih enak di tap
*/
@media (min-width: 768px) and (max-width: 1024px){
  .im-sharebar{ gap: 12px; }
  .im-share-btn{
    padding: 14px 18px;
    font-size: 14px;
    gap: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
  }
  .im-share-btn svg{
    width: 18px;
    height: 18px;
  }
}

/* ===== Mobile: icon-only + bigger ===== */
@media (max-width: 560px){
  .im-sharebar{ gap: 10px; }

  .im-share-btn{
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 16px; /* lebih modern daripada pill di mobile */
    gap: 0;
    box-shadow: 0 12px 26px rgba(0,0,0,.18);
  }

  .im-share-btn span{
    display: none;
  }

  .im-share-btn svg{
    width: 22px;
    height: 22px;
  }
}

/* ===== Optional: kalau sharebar nempel dalam figure, rapikan spacing ===== */
.im-single-figure .im-sharebar{
  margin-top: 12px;
}