/* ========================================
   IKKM NEWS — Article Page Styles
   ======================================== */

/* ===== READING PROGRESS ===== */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--green), var(--gold));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ===== ARTICLE HERO (max 450px desktop) ===== */
.article-hero {
  position: relative;
  height: 450px;
  overflow: hidden;
  background: var(--black);
}
.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.88);
  transform: scale(1.02);
  transition: transform 0.8s ease;
}
.article-hero.loaded .article-hero-img { transform: scale(1); }
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.2) 48%,
    transparent 100%
  );
}
.article-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 20px;
  color: var(--white);
  margin: 0 auto;
}

/* BREADCRUMB */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--gold); }
.article-breadcrumb .bc-sep { opacity: 0.4; font-size: 0.6rem; }
.article-breadcrumb .bc-current { color: var(--gold); font-weight: 600; }

.article-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.article-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.22;
  max-width: 860px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 24px rgba(0,0,0,0.7);
  margin-bottom: 12px;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  flex-wrap: wrap;
}
.article-hero-meta i { color: var(--gold); margin-right: 4px; }
.article-hero-meta .meta-dot { opacity: 0.3; }

/* ===== MAIN LAYOUT ===== */
.article-main { padding: 28px 0 56px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) 310px;
  gap: 28px;
  align-items: start;
  justify-content: center;
}

/* ===== ARTICLE BODY ===== */
.article-body { min-width: 0; }

/* SHARE BAR */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.share-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gray);
  margin-right: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.share-label i { color: var(--gold); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.share-fb  { background: #1877F2; color: #fff; }
.share-tw  { background: #1DA1F2; color: #fff; }
.share-wa  { background: #25D366; color: #fff; }
.share-tg  { background: #229ED9; color: #fff; }
.share-copy { background: var(--gray-light); color: var(--black); }
.share-copy.copied { background: var(--green); color: #fff; }
.share-bar-bottom { margin-top: 24px; margin-bottom: 24px; }

/* ARTICLE FIGURE */
.article-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.article-figure img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.article-figure figcaption {
  background: var(--gray-light);
  color: var(--gray);
  font-size: 0.76rem;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
}
.article-figure figcaption::before {
  content: '\f030';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--gold);
  flex-shrink: 0;
  font-style: normal;
}

/* ===== ARTICLE TEXT (20px, line-height 1.9) ===== */
.article-text {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 20px;
  font-size: 1.25rem; /* 20px */
  line-height: 1.9;
  color: #2A2A2A;
}
.article-text p { margin-bottom: 22px; }
.article-text p:last-child { margin-bottom: 0; }

.article-text figure {
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid #E3E7EC;
  background: #F8FAFC;
}

.article-text figure img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-text figcaption {
  padding: 10px 14px;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.45;
  font-style: italic;
}

/* Drop cap IKKM */
.article-text .ikkm-dropcap::first-letter,
.article-text.ikkm-dropcap::first-letter {
  float: left;
  font-family: 'Playfair Display', serif;
  font-size: 4.2rem;
  line-height: 0.78;
  padding-right: 10px;
  padding-top: 6px;
  color: var(--green);
  font-weight: 900;
}

/* H2 */
.article-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--black);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--gold);
  line-height: 1.3;
}

/* H3 */
.article-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 28px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-text h3::before {
  content: '';
  width: 4px;
  height: 1.1em;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}

/* Blockquote */
.article-text blockquote {
  border-left: 4px solid var(--gold);
  background: linear-gradient(to right, rgba(200,155,60,0.07), rgba(200,155,60,0.02));
  padding: 18px 22px 18px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #3D3D3D;
  font-size: 1.15rem;
  position: relative;
}
.article-text blockquote::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 12px;
  line-height: 1;
}
.article-text blockquote cite {
  display: block;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--gray);
  margin-top: 10px;
  font-weight: 600;
}
.article-text blockquote cite::before { content: '— '; }

/* Lists */
.article-text ul, .article-text ol {
  padding-left: 1.6em;
  margin-bottom: 22px;
}
.article-text li { margin-bottom: 8px; }
.article-text ul li::marker { color: var(--gold); }
.article-text ol li::marker { color: var(--green); font-weight: 700; }

/* ===== PHOTO GALLERY ===== */
.article-gallery {
  margin: 28px 0;
  background: var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 16px;
}
.gallery-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gallery-label i { color: var(--gold); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,0.25); }
.gallery-item-overlay i { color: white; font-size: 1.5rem; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-item-overlay i { opacity: 1; }
.gallery-caption {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.gallery-lightbox.active { opacity: 1; pointer-events: all; }
.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: var(--gold); color: var(--black); }

/* ===== YOUTUBE EMBED ===== */
.article-video {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--black);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-caption {
  background: var(--gray-light);
  color: var(--gray);
  font-size: 0.76rem;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
}
.video-caption i { color: #FF0000; }

/* Video sebagai sampul artikel (.article-figure berisi .article-video) */
.article-figure-video { background: var(--black); }
.article-figure-video .article-video { margin: 0; border-radius: 0; box-shadow: none; }
.article-figure-video .video-wrapper { padding-bottom: 56.25%; }
.article-figure-video .video-caption { display: none; }
.article-figure-video iframe { display: block; }

/* ===== TAGS ===== */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}
.article-tags .tags-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gray);
}
.article-tags .tag {
  background: var(--gray-light);
  color: var(--gray);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.article-tags .tag:hover { background: var(--green); color: var(--white); }

/* ===== AUTHOR CARD ===== */
.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
  font-weight: 800;
}
.author-info .author-name { font-size: 0.92rem; font-weight: 800; color: var(--black); margin-bottom: 2px; }
.author-info .author-role { font-size: 0.72rem; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.author-info .author-bio { font-size: 0.8rem; color: var(--gray); line-height: 1.6; }

/* ===== ARTICLE NAV ===== */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.art-nav-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--black);
  box-shadow: var(--shadow-sm);
}
.art-nav-btn:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); }
.art-nav-btn.prev { align-items: flex-start; border-left: 3px solid var(--gold); }
.art-nav-btn.next { align-items: flex-end; text-align: right; border-right: 3px solid var(--gold); }
.art-nav-label { font-size: 0.65rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.art-nav-label i { color: var(--gold); }
.art-nav-title { font-size: 0.82rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-nav-btn:hover .art-nav-title { color: var(--green); }

/* ===== SIDEBAR ===== */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 70px;
}

/* Ad slot 300x250 */
.ad-slot-300x250 {
  width: 300px;
  height: 250px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px dashed #ced4da;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.ad-slot-300x250::before {
  content: 'SLOT IKLAN';
  position: absolute;
  top: 8px; left: 12px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.ad-slot-300x250 .ad-size { font-size: 1.1rem; font-weight: 800; color: #ced4da; }
.ad-slot-300x250 .ad-sub { font-size: 0.7rem; }

/* Related articles */
.related-list { display: flex; flex-direction: column; gap: 10px; }
.related-card {
  display: flex;
  gap: 10px;
  cursor: pointer;
  padding: 7px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  text-decoration: none;
  color: var(--black);
}
.related-card:hover { background: var(--gray-light); }
.related-card:hover .related-title { color: var(--green); }
.related-img { width: 70px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-badge { font-size: 0.6rem; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.related-title { font-size: 0.79rem; font-weight: 700; line-height: 1.35; transition: color 0.2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-date { font-size: 0.66rem; color: var(--gray); margin-top: 3px; }

/* Sticky share */
.sticky-share-widget .sticky-share-btns { display: flex; flex-direction: column; gap: 7px; }
.sticky-share-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 700;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s;
}
.sticky-share-btn:hover { transform: translateX(3px); filter: brightness(1.08); }
.sticky-share-btn i { width: 14px; text-align: center; }
.s-fb { background: #1877F2; color: #fff; }
.s-tw { background: #1DA1F2; color: #fff; }
.s-wa { background: #25D366; color: #fff; }
.s-tg { background: #229ED9; color: #fff; }
.s-cp { background: var(--gray-light); color: var(--black); }
.s-cp.copied { background: var(--green); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .sticky-share-widget { display: none; }
  .ad-slot-300x250 { width: 100%; height: 120px; }
  .article-hero { height: 380px; }
  .article-hero-title { font-size: 1.5rem; }
  .article-text { font-size: 1.05rem; padding: 24px 22px; }
}
@media (max-width: 620px) {
  .article-hero { height: 280px; }
  .article-hero-title { font-size: 1.1rem; }
  .article-hero-meta { gap: 8px; font-size: 0.7rem; }
  .article-hero-content { padding: 18px 16px; }
  .article-text { padding: 18px 16px; font-size: 1rem; }
  .article-text .ikkm-dropcap::first-letter,
  .article-text.ikkm-dropcap::first-letter { font-size: 3rem; }
  .article-text h2 { font-size: 1.2rem; }
  .article-text h3 { font-size: 1rem; }
  .article-figure img { height: 200px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .article-nav { grid-template-columns: 1fr; }
  .article-sidebar { grid-template-columns: 1fr; }
  .share-btn span { display: none; }
}

/* Ad page layout: inner grid jadi 1-kolom karena sidebar di luar */
.ad-page-center .article-layout { grid-template-columns: 1fr; }

/* ===== PORTAL ARTICLE OVERRIDE ===== */
.article-hero {
  height: auto;
  min-height: 0;
  background: var(--white);
  border-bottom: 1px solid #DDE1E7;
}

.article-hero-img,
.article-hero-overlay {
  display: none;
}

.article-hero-content {
  position: static;
  color: var(--black);
  padding: 28px 28px 24px;
}

.article-breadcrumb {
  color: var(--gray);
}

.article-breadcrumb a,
.article-breadcrumb .bc-current {
  color: var(--gray);
}

.article-hero-badge {
  background: transparent;
  color: var(--gold-dark);
  padding: 0;
  border-radius: 0;
  font-size: 0.84rem;
}

.article-hero-title {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  font-size: 2rem;
  line-height: 1.22;
  max-width: 900px;
  text-shadow: none;
  overflow-wrap: anywhere;
}

.article-hero-meta {
  color: #8B939E;
}

.article-main {
  padding: 0 0 28px;
}

.article-main .container {
  padding: 0;
}

.article-body {
  background: var(--white);
}

.share-bar {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
  margin: 0;
}

.article-figure {
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.article-figure img {
  height: auto;
  max-height: 430px;
  object-fit: contain;
  background: #111;
}

.article-text {
  border-radius: 0;
  box-shadow: none;
  border: 0;
  padding: 32px 42px;
  font-size: 1.15rem;
  line-height: 1.85;
}

.article-text .ikkm-dropcap::first-letter,
.article-text.ikkm-dropcap::first-letter {
  color: var(--gold-dark);
}

.author-card,
.article-nav,
.article-tags,
.share-bar-bottom {
  margin-left: 28px;
  margin-right: 28px;
}

.article-sidebar .widget-title h3 {
  color: var(--gold-dark);
}

@media (max-width: 760px) {
  .article-hero-content {
    padding: 22px 18px;
  }

  .article-hero-title {
    font-size: 1.3rem;
    line-height: 1.28;
  }

  .article-figure img {
    max-height: 260px;
  }

  .article-text {
    padding: 24px 18px;
    font-size: 1rem;
  }

  .article-text figure {
    margin: 22px -18px;
    border-left: 0;
    border-right: 0;
  }

  .article-text figure img {
    max-height: none;
    object-fit: contain;
    background: #111;
  }

  .author-card,
  .article-nav,
  .article-tags,
  .share-bar-bottom {
    margin-left: 18px;
    margin-right: 18px;
  }
}
