/* ============================================================
   JOGJA FIN — Article Detail Styles
   Tone: Merapi Green (#1B4D3E) + Kraton Gold (#C9A84C)
   File: public_html/assets/css/jogja-artikel.css
   ============================================================ */

/* ── Article card wrapper ── */
.jg-art-wrap {
  background: #fff; border-radius: 8px;
  padding: 24px 28px 28px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  margin-bottom: 24px;
}

/* ── Breadcrumb ── */
.jg-art-breadcrumb {
  display: flex !important; gap: 4px; align-items: center;
  font-size: 12px; color: #6B7280;
  margin: 0 0 14px !important; flex-wrap: wrap;
  list-style: none !important; padding: 0 !important;
}
/* reset Bootstrap's li defaults dalam breadcrumb */
.jg-art-breadcrumb li {
  list-style: none !important;
  padding: 0 !important; margin: 0 !important;
  display: flex; align-items: center;
}
.jg-art-breadcrumb a { color: var(--jg-green-mid); text-decoration: none !important; }
.jg-art-breadcrumb a:hover { color: var(--jg-gold-dark); }
.jg-art-breadcrumb .sep { color: #D1CBC0; margin: 0 3px; }
.jg-art-breadcrumb .current { color: #9CA3AF; }

/* ── Category Badge ── */
.jg-art-cat {
  background: var(--jg-gold); color: #1A1A1A;
  font-size: 11px; font-weight: 700; padding: 3px 12px;
  border-radius: 2px; text-transform: uppercase; letter-spacing: 1px;
  display: inline-block; margin-bottom: 14px;
  text-decoration: none;
}
.jg-art-cat:hover { background: var(--jg-gold-dark); color: #fff; }

/* ── Title ── */
.jg-art-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 2em; font-weight: 800; line-height: 1.25;
  color: #1A1A1A !important; margin-bottom: 16px;
}

/* ── Meta Bar ── */
.jg-art-meta {
  display: flex !important; align-items: center; gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--jg-cream-dark);
  border-bottom: 1px solid var(--jg-cream-dark);
  margin-bottom: 20px; flex-wrap: wrap;
}
/* Avatar lingkaran — pada <a> tag, paksa flex */
.jg-art-avatar {
  width: 38px; height: 38px; border-radius: 50% !important;
  background: var(--jg-green) !important; color: var(--jg-gold) !important;
  font-weight: 700; font-size: 13px;
  display: flex !important; align-items: center; justify-content: center;
  flex-shrink: 0; text-transform: uppercase;
  text-decoration: none !important;
  line-height: 1;
}
.jg-art-meta-info { display: flex; flex-direction: column; min-width: 0; }
.jg-art-author-name {
  font-size: 13px; font-weight: 700; color: var(--jg-green);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* override Bootstrap + style.css link warna di nama penulis */
.jg-art-author-name a {
  color: var(--jg-green) !important; text-decoration: none !important;
  font-weight: 700;
}
.jg-art-author-name a:hover { color: var(--jg-gold-dark) !important; }
.jg-art-author-role { font-size: 11px; color: #6B7280; }
.jg-art-meta-date { font-size: 12px; color: #6B7280; margin-left: 4px; white-space: nowrap; }
.jg-art-meta-date i { margin-right: 3px; }

/* Share inline (in meta bar) */
.jg-art-share-bar {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
}
.jg-art-share-label { font-size: 11px; color: #9CA3AF; }
.jg-art-share-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-size: 12px;
  transition: opacity .2s; border: none; cursor: pointer;
}
.jg-art-share-btn:hover { opacity: .8; color: #fff; }
.jg-share-wa { background: #25D366; }
.jg-share-fb { background: #1877F2; }
.jg-share-tw { background: #000; }
.jg-share-cp { background: #6B7280; }

/* ── WA Channel Banner ── */
.jg-art-wa-banner {
  background: linear-gradient(135deg, var(--jg-green) 0%, var(--jg-green-mid) 100%);
  border-radius: 6px; padding: 12px 16px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.jg-art-wa-icon { font-size: 22px; color: #25D366; flex-shrink: 0; }
.jg-art-wa-text-wrap { flex: 1; }
.jg-art-wa-title { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; }
.jg-art-wa-sub { font-size: 11px; color: rgba(255,255,255,.7); }
.jg-art-wa-btn {
  background: #25D366; color: #fff;
  font-size: 11px; font-weight: 700; padding: 5px 14px;
  border-radius: 20px; text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.jg-art-wa-btn:hover { background: #1da851; color: #fff; }

/* ── Hero Image / Swiper ── */
.jg-art-hero-wrap { border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.jg-art-hero-wrap .mySwiper2 img {
  width: 100% !important;
  max-height: 460px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block !important;
}
.jg-art-hero-wrap .mySwiper { margin-top: 6px; }
.jg-art-hero-wrap .mySwiper img {
  border-radius: 3px;
  max-height: none !important;
}
.jg-art-caption {
  font-size: 12px; color: #6B7280; font-style: italic;
  margin-bottom: 24px; text-align: center; padding: 0 4px;
}

/* ── Article Body ── */
.jg-art-body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px; line-height: 1.85; color: #374151;
}
.jg-art-body p { margin-bottom: 20px; }
.jg-art-body h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.3em; color: #1A1A1A;
  margin: 32px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--jg-gold);
}
.jg-art-body h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.1em; color: var(--jg-green);
  margin: 24px 0 10px;
}
.jg-art-body blockquote {
  border-left: 4px solid var(--jg-gold);
  background: var(--jg-cream);
  margin: 28px 0; padding: 18px 22px;
  border-radius: 0 6px 6px 0;
  font-style: italic; color: #374151; font-size: 1.05em; line-height: 1.65;
}
.jg-art-body blockquote cite {
  display: block; font-size: 12px; font-style: normal;
  font-weight: 700; margin-top: 10px; color: var(--jg-green);
}
.jg-art-body a { color: var(--jg-green); text-decoration: underline; }
.jg-art-body a:hover { color: var(--jg-gold-dark); }
.jg-art-body img {
  max-width: 100% !important; height: auto !important;
  border-radius: 4px; margin: 12px 0; display: block;
}
.jg-art-body ul, .jg-art-body ol { padding-left: 26px; margin-bottom: 20px; }
.jg-art-body li { margin-bottom: 6px; }
.jg-art-body hr {
  border: none; border-top: 2px solid var(--jg-cream-dark); margin: 32px 0;
}

/* ── Pagination ── */
.jg-art-pager { margin: 24px 0; padding: 12px 0; border-top: 1px solid var(--jg-cream-dark); }
.jg-art-pager a, .jg-art-pager span {
  font-size: 13px; color: var(--jg-green); font-weight: 500;
}
.jg-art-pager a:hover { color: var(--jg-gold-dark); }

/* ── Tags ── */
.jg-art-tags {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; padding: 18px 0 14px;
  border-top: 1px solid var(--jg-cream-dark);
  border-bottom: 1px solid var(--jg-cream-dark);
  margin-bottom: 20px;
}
.jg-art-tag-label { font-size: 12px; font-weight: 600; color: #6B7280; }
.jg-art-tag {
  background: var(--jg-cream); color: #374151;
  font-size: 12px; padding: 4px 14px; border-radius: 20px;
  border: 1px solid var(--jg-cream-dark); text-decoration: none;
  transition: all .18s;
}
.jg-art-tag:hover {
  background: var(--jg-green); color: var(--jg-gold); border-color: var(--jg-green);
}

/* ── Share Bottom (AddToAny) ── */
.jg-art-share-bottom {
  background: #fff; border-radius: 6px; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 24px;
}
.jg-art-share-bottom-title { font-size: 14px; font-weight: 600; color: var(--jg-green); }

/* ── Author Card ── */
.jg-art-author-card {
  background: #fff; border-radius: 6px; padding: 20px 22px;
  display: flex; gap: 18px; align-items: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-top: 3px solid var(--jg-gold);
  margin-bottom: 28px;
}
.jg-art-author-photo {
  width: 68px; height: 68px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--jg-green); color: var(--jg-gold);
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.jg-art-author-photo img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; border-radius: 50% !important;
  display: block !important;
}
.jg-art-author-card-name { font-size: 15px; font-weight: 700; margin-bottom: 1px; }
.jg-art-author-card-role {
  font-size: 10px; color: var(--jg-gold-dark); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 700; margin-bottom: 8px;
}
.jg-art-author-card-bio { font-size: 13px; color: #6B7280; line-height: 1.65; }

/* ── Berita Terkait ── */
.jg-art-related-head {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 16px;
}
.jg-art-related-accent { width: 4px; height: 18px; background: var(--jg-gold); border-radius: 2px; flex-shrink: 0; }
.jg-art-related-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1em; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--jg-green); margin: 0;
}
.jg-art-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 32px;
}
.jg-art-related-card {
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.jg-art-related-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-2px); }
.jg-art-related-img {
  width: 100%; height: 108px; object-fit: cover; display: block !important;
  max-height: none !important;
}
.jg-art-related-body { padding: 10px 12px 12px; }
.jg-art-related-cat {
  font-size: 10px; font-weight: 700; color: var(--jg-gold-dark);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px;
}
.jg-art-related-ttl {
  font-size: 12px; font-weight: 600; line-height: 1.45; color: #1A1A1A;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.jg-art-related-card:hover .jg-art-related-ttl { color: var(--jg-green); }

/* ── Sidebar Terkini ── */
/* pada <a> tag — paksa display grid agar tidak di-override style.css */
.jg-art-stk-item {
  display: grid !important; grid-template-columns: 70px 1fr;
  gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--jg-cream-dark);
  text-decoration: none !important; color: #1A1A1A !important;
}
.jg-art-stk-item:last-child { border-bottom: none; }
.jg-art-stk-item:hover .jg-art-stk-title { color: var(--jg-green) !important; }
.jg-art-stk-thumb {
  width: 70px; height: 52px; border-radius: 4px; overflow: hidden;
}
.jg-art-stk-thumb img {
  width: 100% !important; height: 100% !important; object-fit: cover !important;
  max-height: none !important; display: block !important; border-radius: 0 !important;
}
/* kolom kanan agar tidak overflow ke luar grid */
.jg-art-stk-item > div { min-width: 0; }
.jg-art-stk-title {
  font-size: 12px; font-weight: 600; line-height: 1.45; color: #1A1A1A;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color .18s;
}
.jg-art-stk-cat {
  font-size: 10px; font-weight: 700; color: var(--jg-gold-dark);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 3px;
}
.jg-art-stk-date { font-size: 10px; color: #999; margin-top: 3px; }

/* ── Sidebar Terpopuler ── */
/* pada <a> tag — paksa display flex */
.jg-art-pop-item {
  display: flex !important; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--jg-cream-dark);
  text-decoration: none !important; color: #1A1A1A !important;
}
.jg-art-pop-item:last-child { border-bottom: none; }
.jg-art-pop-item:hover .jg-art-pop-title { color: var(--jg-green) !important; }
.jg-art-pop-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 800; color: var(--jg-cream-dark);
  line-height: 1; min-width: 28px; flex-shrink: 0;
}
.jg-art-pop-item:first-child .jg-art-pop-num { color: var(--jg-gold); }
/* kolom info agar tidak overflow */
.jg-art-pop-item > div { min-width: 0; }
.jg-art-pop-title {
  font-size: 13px; font-weight: 500; line-height: 1.45; transition: color .18s;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.jg-art-pop-date { font-size: 11px; color: #999; margin-top: 3px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .jg-art-title { font-size: 1.45em !important; }
  .jg-art-body  { font-size: 16px; }
  .jg-art-share-bar { margin-left: 0; width: 100%; }
  .jg-art-author-card { flex-direction: column; }
  .jg-art-related-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 480px) {
  .jg-art-title { font-size: 1.25em !important; }
  .jg-art-related-grid { grid-template-columns: 1fr; }
}
