/*
 * Sumbu Theme — Custom CSS
 * Narrow card layout, navy + gold, peace/dialogue portal
 * Prefix: sb- (scoped, no conflict)
 */

/* ── VARIABLES ── */
:root {
  --sb-navy:     #1a3050;
  --sb-navy2:    #22405e;
  --sb-navy3:    #0f2040;
  --sb-gold:     #c8922a;
  --sb-gold2:    #e0a83a;
  --sb-bg:       #f0f4f8;
  --sb-bg2:      #e4eaf0;
  --sb-white:    #ffffff;
  --sb-text:     #1a1a2a;
  --sb-text-dim: #6a7a8a;
  --sb-border:   #d0dae4;
  --sb-tag-nat:  #1a3050;
  --sb-tag-opin: #6a4a8a;
  --sb-tag-ber:  #2a6a40;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.sb-portal {
  background-color: var(--sb-bg);
  background-image: url('/assets/themes/Sumbu/pattern.jpg');
  background-repeat: repeat;
  background-size: 80px 80px;
  color: var(--sb-text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

/* ── PAGE WRAPPER (card look) ── */
.sb-page-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--sb-white);
  min-height: 100vh;
  box-shadow: 0 4px 40px rgba(0,0,0,.14);
}

/* ── HEADER ── */
.sb-header {
  background: var(--sb-white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--sb-border);
}
.sb-logo-wrap {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.sb-logo-flame svg { width: 36px; height: 44px; }
.sb-logo-img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.sb-logo-name {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--sb-navy);
  line-height: 1;
}
.sb-logo-tag {
  font-size: 11px;
  color: var(--sb-text-dim);
  margin-top: 3px;
  line-height: 1.3;
}

/* Header right: search + button */
.sb-header-right { display: flex; align-items: center; gap: 10px; }
.sb-search-wrap { position: relative; }
.sb-search-input {
  background: var(--sb-bg);
  border: 1px solid var(--sb-border);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--sb-text);
  padding: 8px 14px 8px 32px;
  outline: none;
  width: 160px;
  transition: border-color .2s, width .3s;
}
.sb-search-input:focus { border-color: var(--sb-navy2); width: 190px; }
.sb-search-input::placeholder { color: var(--sb-text-dim); }
.sb-search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--sb-text-dim); font-size: 13px;
}
.sb-btn-masuk {
  background: var(--sb-navy);
  color: var(--sb-white);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.sb-btn-masuk:hover { background: var(--sb-navy2); color: var(--sb-white); }

/* ── NAVBAR ── */
.sb-main-nav {
  background: var(--sb-navy);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  position: relative;
}
.sb-main-nav::-webkit-scrollbar { display: none; }
.sb-nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .6px;
  color: rgba(255,255,255,.75);
  padding: 12px 20px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  flex-shrink: 0;
}
.sb-nav-link:hover { color: #fff; }
.sb-nav-link.active {
  color: var(--sb-gold2);
  border-bottom-color: var(--sb-gold2);
}

/* ── NAVBAR SCROLL WRAP ── */
.sb-nav-scroll-wrap {
  position: relative;
  background: var(--sb-navy);
  display: flex;
  align-items: stretch;
}
.sb-nav-arrow {
  position: absolute;
  top: 0; bottom: 0;
  width: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--sb-navy3);
  color: rgba(255,255,255,.8);
  font-size: 14px;
  z-index: 10;
  cursor: pointer;
  border: none;
  transition: color .2s, background .2s;
  flex-shrink: 0;
}
.sb-nav-arrow:hover { color: var(--sb-gold2); background: var(--sb-navy2); }
.sb-nav-arrow.visible { display: flex; }
.sb-nav-arrow-left  { left: 0; }
.sb-nav-arrow-right { right: 0; }

/* ── HERO ROW ── */
.sb-hero-row {
  display: grid;
  grid-template-columns: 1fr 240px;
}

/* Hero card — text below image, dark on white */
.sb-hero-card {
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.sb-hero-thumb {
  width: 100%; height: 300px;
  background: linear-gradient(135deg, #1a2a3a, #2a4a2a);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: rgba(255,255,255,.08);
  overflow: hidden;
  flex-shrink: 0;
}
.sb-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sb-hero-overlay { display: none; }
.sb-hero-content {
  padding: 14px 18px 16px;
  background: var(--sb-white);
  flex: 1;
  border-bottom: 1px solid var(--sb-border);
}
.sb-hero-badge {
  display: inline-block;
  background: var(--sb-gold);
  color: var(--sb-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.sb-hero-title {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--sb-navy);
  line-height: 1.35;
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.sb-hero-card:hover .sb-hero-title { color: var(--sb-gold); }
.sb-hero-sub {
  font-size: 12px;
  color: var(--sb-text-dim);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sorotan panel */
.sb-sorotan-panel {
  background: var(--sb-navy);
  display: flex;
  flex-direction: column;
}
.sb-sorotan-head {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--sb-white);
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  letter-spacing: .4px;
}
.sb-sorotan-item {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .15s;
  text-decoration: none;
  display: block;
}
.sb-sorotan-item:last-child { border-bottom: none; }
.sb-sorotan-item:hover { background: rgba(255,255,255,.06); }
.sb-sorotan-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--sb-white);
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sb-sorotan-item:hover .sb-sorotan-title { color: var(--sb-gold2); }
.sb-sorotan-meta {
  font-size: 11px;
  color: rgba(255,255,255,.45);
}

/* ── BOTTOM GRID ── */
.sb-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--sb-border);
}

/* Section title */
.sb-sec-title {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--sb-navy);
  padding: 14px 20px 11px;
  border-bottom: 2px solid var(--sb-navy);
  letter-spacing: .3px;
}
.sb-sec-title span { color: var(--sb-gold); }

/* Kabar Terkini */
.sb-kabar-col { border-right: 1px solid var(--sb-border); }
.sb-news-item {
  display: flex; gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--sb-border);
  transition: background .15s;
  align-items: flex-start;
  text-decoration: none;
}
.sb-news-item:last-child { border-bottom: none; }
.sb-news-item:hover { background: var(--sb-bg); }
.sb-news-thumb {
  width: 68px; height: 52px; flex-shrink: 0;
  background: linear-gradient(135deg, #1a2a3a, #2a3a4a);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: rgba(255,255,255,.2);
  border-radius: 4px;
  overflow: hidden;
}
.sb-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sb-news-meta-top {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.sb-news-date { font-size: 10px; color: var(--sb-text-dim); }
.sb-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--sb-white);
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: .3px;
}
.sb-tag-nasional { background: var(--sb-tag-nat); }
.sb-tag-opinion  { background: var(--sb-tag-opin); }
.sb-tag-berita   { background: var(--sb-tag-ber); }
.sb-tag-default  { background: var(--sb-navy2); }

.sb-news-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--sb-text);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sb-news-item:hover .sb-news-title { color: var(--sb-navy); }
.sb-news-ago {
  font-size: 11px;
  color: var(--sb-text-dim);
}

/* Opini col */
.sb-opini-col {}
.sb-opini-thumb {
  width: 68px; height: 52px; flex-shrink: 0;
  background: linear-gradient(135deg, #2a1a3a, #3a2a4a);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: rgba(255,255,255,.2);
  border-radius: 4px;
  overflow: hidden;
}
.sb-opini-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── ARTICLE DETAIL (full-width within 760px wrapper) ── */
.sb-breadcrumb {
  background: var(--sb-bg2);
  border-bottom: 1px solid var(--sb-border);
  padding: 8px 24px;
  font-size: 12px;
}
.sb-breadcrumb a { color: var(--sb-text-dim); text-decoration: none; }
.sb-breadcrumb a:hover { color: var(--sb-navy); }
.sb-breadcrumb-sep { color: var(--sb-border); margin: 0 6px; }
.sb-breadcrumb-current { color: var(--sb-navy); }

.sb-article-body-wrap { padding: 24px; }
.sb-article-cat-badge {
  display: inline-block;
  background: var(--sb-navy);
  color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; padding: 3px 10px;
  border-radius: 2px; margin-bottom: 12px;
  text-decoration: none; text-transform: uppercase;
}
.sb-article-cat-badge:hover { background: var(--sb-navy2); color: #fff; }
.sb-article-title {
  font-family: 'Lora', serif;
  font-size: 24px; font-weight: 700;
  color: var(--sb-navy); line-height: 1.3;
  margin-bottom: 12px;
}
.sb-article-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--sb-text-dim);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sb-border);
  margin-bottom: 18px;
  align-items: center;
}
.sb-article-meta i { color: var(--sb-gold); margin-right: 3px; }
.sb-sentiment {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 2px; letter-spacing: .3px;
}
.sb-sentiment-positive { background: rgba(42,106,64,.12); color: #2a6a40; border: 1px solid rgba(42,106,64,.3); }
.sb-sentiment-negative { background: rgba(180,40,40,.12); color: #b42828; border: 1px solid rgba(180,40,40,.3); }
.sb-sentiment-neutral  { background: var(--sb-bg2); color: var(--sb-text-dim); border: 1px solid var(--sb-border); }

.sb-article-hero-img {
  width: 100%; max-height: 360px;
  object-fit: cover; border-radius: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--sb-border);
}
.sb-article-hero-placeholder {
  width: 100%; height: 240px;
  background: linear-gradient(135deg, #1a2a3a, #2a4a2a);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: rgba(255,255,255,.08);
  margin-bottom: 16px; border-radius: 4px;
}
.sb-img-credit { font-size: 11px; color: var(--sb-text-dim); text-align: right; font-style: italic; margin-top: -10px; margin-bottom: 14px; }

.sb-ringkasan {
  border-left: 3px solid var(--sb-gold);
  padding: 10px 16px;
  background: rgba(200,146,42,.06);
  margin-bottom: 18px;
  font-style: italic;
  color: var(--sb-text-dim);
  font-size: 13px; line-height: 1.65;
  border-radius: 0 4px 4px 0;
}
.sb-article-content {
  font-family: 'Inter', sans-serif;
  font-size: 15px; line-height: 1.85;
  color: var(--sb-text);
}
.sb-article-content h1,.sb-article-content h2,.sb-article-content h3,
.sb-article-content h4,.sb-article-content h5 {
  font-family: 'Lora', serif;
  color: var(--sb-navy); margin: 1.4em 0 .5em;
}
.sb-article-content p { margin-bottom: 1em; }
.sb-article-content img { max-width: 100%; border-radius: 4px; border: 1px solid var(--sb-border); }
.sb-article-content a { color: var(--sb-navy); }
.sb-article-content blockquote {
  border-left: 3px solid var(--sb-gold);
  padding: 8px 16px; margin: 1em 0;
  background: rgba(200,146,42,.05);
  font-style: italic; color: var(--sb-text-dim);
  border-radius: 0 4px 4px 0;
}
.sb-tag-pill {
  font-size: 11px; color: var(--sb-text-dim);
  border: 1px solid var(--sb-border);
  padding: 2px 10px; border-radius: 2px;
  text-decoration: none; transition: border-color .2s, color .2s;
}
.sb-tag-pill:hover { border-color: var(--sb-navy); color: var(--sb-navy); }

.sb-entities-block {
  background: rgba(26,48,80,.04);
  border: 1px solid var(--sb-border);
  border-left: 3px solid var(--sb-gold);
  padding: 12px 16px; margin-top: 16px;
  font-size: 12px; color: var(--sb-text-dim);
  border-radius: 0 4px 4px 0;
}
.sb-entities-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; color: var(--sb-navy);
  margin-bottom: 7px; text-transform: uppercase;
}
.sb-entities-block div { margin-bottom: 3px; }
.sb-entities-block strong { color: var(--sb-text); }

.sb-share-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; margin-top: 18px;
  font-size: 12px; color: var(--sb-text-dim);
}

/* Related articles below article */
.sb-related-title-bar {
  font-family: 'Lora', serif;
  font-size: 14px; font-weight: 700;
  color: var(--sb-navy);
  padding: 14px 24px 11px;
  border-top: 1px solid var(--sb-border);
  border-bottom: 2px solid var(--sb-navy);
  letter-spacing: .3px;
}
.sb-related-title-bar span { color: var(--sb-gold); }

.sb-related-item {
  display: flex; gap: 12px;
  padding: 13px 24px;
  border-bottom: 1px solid var(--sb-border);
  text-decoration: none; transition: background .15s;
  align-items: flex-start;
}
.sb-related-item:hover { background: var(--sb-bg); }
.sb-related-thumb {
  width: 68px; height: 52px; flex-shrink: 0;
  background: linear-gradient(135deg, #1a2a3a, #2a4a2a);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: rgba(255,255,255,.2);
  border-radius: 4px; overflow: hidden;
}
.sb-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sb-related-article-title {
  font-size: 13px; font-weight: 600;
  color: var(--sb-text); line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sb-related-item:hover .sb-related-article-title { color: var(--sb-navy); }
.sb-related-date { font-size: 11px; color: var(--sb-text-dim); }

/* ── CATEGORY / SEARCH PAGE ── */
.sb-page-header {
  padding: 16px 24px 12px;
  border-bottom: 2px solid var(--sb-navy);
}
.sb-page-title {
  font-family: 'Lora', serif;
  font-size: 18px; font-weight: 700;
  color: var(--sb-navy);
}
.sb-page-title span { color: var(--sb-gold); }
.sb-page-count { font-size: 12px; color: var(--sb-text-dim); margin-top: 3px; }

.sb-art-row {
  display: flex; gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--sb-border);
  text-decoration: none; transition: background .15s;
  align-items: flex-start;
}
.sb-art-row:hover { background: var(--sb-bg); }
.sb-art-row-thumb {
  width: 90px; height: 68px; flex-shrink: 0;
  background: linear-gradient(135deg, #1a2a3a, #2a4a2a);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: rgba(255,255,255,.2);
  border-radius: 4px; overflow: hidden;
}
.sb-art-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sb-art-row-body { flex: 1; min-width: 0; }
.sb-art-row-cat {
  font-size: 10px; font-weight: 700;
  color: var(--sb-gold); letter-spacing: .8px;
  margin-bottom: 4px; text-transform: uppercase;
}
.sb-art-row-title {
  font-family: 'Lora', serif;
  font-size: 14px; font-weight: 700;
  color: var(--sb-navy); line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sb-art-row:hover .sb-art-row-title { color: var(--sb-gold); }
.sb-art-row-excerpt {
  font-size: 12px; color: var(--sb-text-dim);
  line-height: 1.5; margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sb-art-row-meta { font-size: 11px; color: var(--sb-text-dim); }

/* Pagination */
.sb-pagination .page-item .page-link {
  background: var(--sb-white); border-color: var(--sb-border);
  color: var(--sb-text-dim); border-radius: 4px;
}
.sb-pagination .page-item.active .page-link {
  background: var(--sb-navy); border-color: var(--sb-navy); color: #fff;
}
.sb-pagination .page-item .page-link:hover {
  background: var(--sb-bg2); color: var(--sb-navy); border-color: var(--sb-navy);
}

/* Search form */
.sb-search-form-wrap {
  padding: 16px 24px;
  border-bottom: 1px solid var(--sb-border);
  background: var(--sb-bg2);
}
.sb-search-form-input {
  background: var(--sb-white);
  border: 1px solid var(--sb-border);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: var(--sb-text);
  padding: 10px 16px;
  outline: none; width: 100%;
  transition: border-color .2s;
}
.sb-search-form-input:focus { border-color: var(--sb-navy); }
.sb-search-form-btn {
  background: var(--sb-navy); border: none;
  color: #fff; font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: 6px;
  cursor: pointer; transition: background .2s;
  white-space: nowrap;
}
.sb-search-form-btn:hover { background: var(--sb-navy2); }

/* Empty state */
.sb-empty {
  text-align: center; padding: 50px 24px;
  color: var(--sb-text-dim);
}
.sb-empty i { font-size: 44px; margin-bottom: 14px; color: var(--sb-border); display: block; }
.sb-empty h4 { font-family: 'Lora', serif; font-size: 20px; color: var(--sb-navy); margin-bottom: 8px; }

/* Scroll to top */
.sb-scroll-top {
  position: fixed; bottom: 24px; right: 20px;
  width: 38px; height: 38px;
  background: var(--sb-navy);
  color: #fff; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  font-size: 16px; text-decoration: none; z-index: 999;
  box-shadow: 0 2px 12px rgba(26,48,80,.3);
  transition: background .2s;
}
.sb-scroll-top.visible { display: flex; }
.sb-scroll-top:hover { background: var(--sb-navy2); color: #fff; }

/* ── FOOTER ── */
.sb-footer {
  background: var(--sb-navy);
  color: rgba(255,255,255,.6);
  text-align: center;
  font-size: 12px;
  padding: 16px 24px;
  border-top: 3px solid var(--sb-gold);
}
.sb-footer a { color: rgba(255,255,255,.6); text-decoration: none; margin: 0 8px; transition: color .2s; }
.sb-footer a:hover { color: var(--sb-gold2); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .sb-hero-row {
    grid-template-columns: 1fr;
  }
  .sb-sorotan-panel { display: none; }
  .sb-bottom-grid { grid-template-columns: 1fr; }
  .sb-kabar-col { border-right: none; border-bottom: 1px solid var(--sb-border); }
  .sb-header { padding: 12px 16px; }
  .sb-search-input { width: 120px; }
  .sb-article-body-wrap { padding: 16px; }
  .sb-art-row { padding: 12px 16px; }
  .sb-related-item { padding: 12px 16px; }
}
