/**
 * LBH Jakarta — Global Article Template Styles
 * Spec: editorial, centered title, sidebar Baca Juga+Donasi+Bantuan+Share
 */

/* ============================================================
   ARTICLE SHELL
   ============================================================ */
.lbh-artikel {
  width: 100%;
  background: #fff;
  padding: 0;
}

.lbh-artikel-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   ARTICLE HEADER — full-width, centered, white
   ============================================================ */
.lbh-artikel-header {
  width: 100%;
  background: #fff;
  padding: 56px 0 0;
}

.lbh-artikel-inner {
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}

/* Category kicker */
.lbh-artikel-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8102e; /* LBH red accent */
  margin-bottom: 16px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.lbh-artikel-kicker:hover { opacity: 0.75; }

/* Title */
.lbh-artikel-title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #1a1a2e;
  margin: 0 0 20px;
  text-align: center;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

/* Date */
.lbh-artikel-date {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #888;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

/* Breadcrumb */
.lbh-artikel-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #aaa;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.lbh-artikel-breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}
.lbh-artikel-breadcrumb a:hover { color: #1a1a2e; }
.lbh-artikel-breadcrumb span { color: #ccc; }
.lbh-artikel-breadcrumb .current {
  color: #666;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   FEATURED IMAGE
   ============================================================ */
.lbh-artikel-featured {
  width: 100%;
  margin: 0 0 48px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
.lbh-artikel-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lbh-artikel-caption {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  padding-left: 4px;
  text-align: left;
  font-style: italic;
}

/* ============================================================
   CONTENT + SIDEBAR LAYOUT
   ============================================================ */
.lbh-artikel-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0 56px;
  align-items: start;
  padding-bottom: 80px;
}

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.lbh-artikel-main { min-width: 0; }

.lbh-artikel-body {
  color: #26384D;
  font-size: 17px;
  line-height: 1.85;
  text-align: justify;
  text-justify: inter-word;
}
.lbh-artikel-body p {
  margin: 0 0 22px;
}
.lbh-artikel-body h2,
.lbh-artikel-body h3,
.lbh-artikel-body h4 {
  color: #1a1a2e;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
  line-height: 1.25;
  font-family: 'DM Sans', -apple-system, sans-serif;
}
.lbh-artikel-body h2 { font-size: 26px; }
.lbh-artikel-body h3 { font-size: 21px; }
.lbh-artikel-body h4 { font-size: 18px; }
.lbh-artikel-body a {
  color: #1D70DB;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lbh-artikel-body a:hover { color: #c8102e; }
.lbh-artikel-body blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  background: #f0f4ff;
  border-left: 4px solid #1D70DB;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1.7;
  font-style: italic;
  color: #1a1a2e;
}
.lbh-artikel-body blockquote p:last-child { margin-bottom: 0; }
.lbh-artikel-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5em 0;
}
.lbh-artikel-body ul,
.lbh-artikel-body ol {
  margin: 0 0 22px;
  padding-left: 28px;
}
.lbh-artikel-body li { margin-bottom: 8px; }

/* ============================================================
   AUTHOR
   ============================================================ */
.lbh-artikel-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
  padding: 24px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.lbh-artikel-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0;
}
.lbh-artikel-author-label {
  display: block;
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.lbh-artikel-author-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
}

/* ============================================================
   RELATED ARTICLES (bottom)
   ============================================================ */
.lbh-artikel-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #eee;
}
.lbh-artikel-related-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a2e;
  margin: 0 0 28px;
}
.lbh-artikel-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lbh-artikel-related-item {
  text-decoration: none;
  color: inherit;
  display: block;
}
.lbh-artikel-related-thumb {
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #eee;
}
.lbh-artikel-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.lbh-artikel-related-item:hover .lbh-artikel-related-thumb img {
  transform: scale(1.04);
}
.lbh-artikel-related-cat {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8102e;
  margin-bottom: 6px;
}
.lbh-artikel-related-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lbh-artikel-related-info time {
  font-size: 12px;
  color: #999;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.lbh-artikel-sidebar {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lbh-side-section {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}
.lbh-side-section:first-child { padding-top: 0; }

/* Heading */
.lbh-side-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1a2e;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1a1a2e;
  display: inline-block;
}

/* Baca Juga list */
.lbh-side-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lbh-side-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}
.lbh-side-thumb-wrap {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
}
.lbh-side-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lbh-side-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.lbh-side-item-info h3 {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lbh-side-item-cat {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8102e;
  margin-bottom: 3px;
}
.lbh-side-item-info time {
  font-size: 11px;
  color: #aaa;
}

/* ============================================================
   DONATION SECTION
   ============================================================ */
.lbh-side-donate {
  background: #f8f9fc;
  border-radius: 16px;
  padding: 24px;
  border-bottom: none;
  margin-bottom: 4px;
}
.lbh-side-donate-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
  line-height: 1.3;
}
.lbh-side-donate-copy {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 16px;
}
.lbh-side-donate-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: #c8102e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.lbh-side-donate-btn:hover {
  background: #a50d25;
  transform: translateY(-1px);
}

.lbh-side-bank {
  padding-top: 16px;
  border-top: 1px solid #e2e6f0;
}
.lbh-side-bank-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 12px;
}
.lbh-side-bank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lbh-side-bank-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.lbh-side-bank-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  flex-shrink: 0;
  min-width: 44px;
}
.lbh-side-bank-number {
  font-size: 12px;
  color: #555;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ============================================================
   BANTUAN HUKUM
   ============================================================ */
.lbh-side-help {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 24px;
  border-bottom: none;
  margin-bottom: 4px;
}
.lbh-side-help-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}
.lbh-side-help-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0 0 16px;
}
.lbh-side-help-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  color: #1a1a2e;
  font-size: 13px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  border: 2px solid transparent;
}
.lbh-side-help-btn:hover {
  background: #c8102e;
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   SHARE
   ============================================================ */
.lbh-side-share {
  border-top: 1px solid #eee;
}
.lbh-side-share-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1a2e;
  margin: 0 0 14px;
}
.lbh-side-share-btns {
  display: flex;
  gap: 8px;
}
.lbh-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s, opacity 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: #1a1a2e;
}
.lbh-share-btn:hover { transform: translateY(-2px); opacity: 0.85; }
.lbh-share-fb { background: #1877F2; }
.lbh-share-x { background: #000; font-size: 11px; }
.lbh-share-wa { background: #25D366; }
.lbh-share-tg { background: #0088cc; }
.lbh-share-copy { background: #e0e0e0; color: #444; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .lbh-artikel-layout {
    grid-template-columns: 1fr 280px;
    gap: 0 40px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .lbh-artikel-shell {
    padding: 0 16px;
  }

  .lbh-artikel-header {
    padding: 32px 0 0;
  }

  .lbh-artikel-title {
    font-size: clamp(28px, 8vw, 42px);
    margin-bottom: 14px;
  }

  .lbh-artikel-date {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .lbh-artikel-breadcrumb {
    font-size: 11px;
    padding-bottom: 24px;
  }

  .lbh-artikel-featured {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    margin-bottom: 32px;
  }

  .lbh-artikel-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 48px;
  }

  /* Sidebar becomes full-width below article on mobile */
  .lbh-artikel-sidebar {
    position: static;
    margin-top: 48px;
    border-top: 1px solid #eee;
    padding-top: 8px;
  }

  .lbh-artikel-body {
    font-size: 16px;
    text-align: left; /* left-align on mobile for readability */
  }

  .lbh-artikel-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lbh-artikel-related-thumb {
    aspect-ratio: 16/8;
  }

  .lbh-artikel-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .lbh-side-donate,
  .lbh-side-help {
    border-radius: 12px;
  }

  .lbh-side-thumb-wrap {
    width: 64px;
    height: 64px;
  }
}

/* ============================================================
   NO-JS fallback
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .lbh-artikel-related-thumb img,
  .lbh-share-btn,
  .lbh-side-donate-btn,
  .lbh-side-help-btn {
    transition: none;
  }
}
