/* ============ RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #e74c3c;
  --primary-dark: #c0392b;
  --dark: #1a1a2e;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-400: #ced4da;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --font: 'Inter', sans-serif;
  --serif: 'Merriweather', serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: #1f2937; background: #f3f4f6; line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============ BREAKING NEWS ============ */
.breaking-news-bar {
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.breaking-label {
  background: var(--primary-dark);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  gap: 6px;
  letter-spacing: .5px;
}
.breaking-ticker { flex: 1; overflow: hidden; }
.ticker-content {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 0.82rem;
}
.ticker-content a { color: white; }
.ticker-content a:hover { text-decoration: underline; }
@keyframes ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

/* ============ HEADER ============ */
.site-header { background: white; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 999; }
.breaking-news-bar + .site-header { top: 36px; }
.header-top { background: var(--dark); color: rgba(255,255,255,0.7); padding: 6px 0; font-size: 0.78rem; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.btn-login { background: var(--primary); color: white !important; padding: 4px 14px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.btn-login:hover { background: var(--primary-dark); }
.header-main .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.header-logo a { display: flex; align-items: center; gap: 10px; }
.logo-text { font-size: 1.8rem; font-weight: 800; color: var(--dark); letter-spacing: -1px; }
.logo-text span { color: var(--primary); }
.tagline { font-size: 0.75rem; color: var(--gray-600); margin-top: 2px; }

/* ============ NAV ============ */
.main-nav { background: var(--dark); position: relative; z-index: 100; }
.main-nav .container { display: flex; align-items: stretch; }

/* Menu list */
.nav-menu {
  display: flex;
  align-items: stretch;
  flex: 1;
  margin: 0; padding: 0; list-style: none;
}
.nav-menu > li { position: relative; display: flex; align-items: stretch; }

/* Nav links */
.nav-menu > li > a,
.nav-menu > li > .nav-dropdown-toggle {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.85);
  padding: 0 16px;
  height: 48px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-menu > li > a:hover,
.nav-menu > li > .nav-dropdown-toggle:hover { 
  color: white; 
  background: rgba(255,255,255,0.08);
}
.nav-menu > li > a.active {
  color: white;
  border-bottom-color: var(--primary);
  background: rgba(231,76,60,0.15);
}

/* Chevron arrow */
.nav-arrow { font-size: 0.65rem; margin-left: 2px; transition: transform .2s; }
.nav-has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* ── DROPDOWN ──────────────────────────────────── */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: white;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  min-width: 220px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  z-index: 999;
  border-top: 3px solid var(--primary);
  /* Grid 2 kolom jika banyak item */
  columns: 2;
  column-gap: 0;
}
.nav-has-dropdown:hover .nav-dropdown { display: block; }

.nav-dropdown li { break-inside: avoid; }
.nav-dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-dropdown li a:hover {
  background: #fef2f2;
  color: var(--primary);
}
.nav-dropdown li a i { width: 16px; text-align: center; font-size: 0.85rem; }

/* Titik warna di depan nama kategori */
.nav-kat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; display: inline-block;
}

/* Search box */
.nav-search { padding: 8px 0; margin-left: auto; flex-shrink: 0; }
.nav-search form { display: flex; }
.nav-search input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; padding: 7px 12px;
  border-radius: 6px 0 0 6px; font-size: 0.85rem; width: 190px;
  outline: none; transition: background .2s;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search input:focus { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
.nav-search button {
  background: var(--primary); border: none; color: white;
  padding: 7px 14px; border-radius: 0 6px 6px 0; cursor: pointer;
  font-size: 0.9rem; transition: background .15s;
}
.nav-search button:hover { background: var(--primary-dark); }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none;
  color: white; font-size: 1.2rem;
  padding: 0 14px; cursor: pointer; height: 48px;
  align-items: center;
}

/* ── MOBILE NAV ──────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark); z-index: 200;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li { flex-direction: column; }
  .nav-menu > li > a,
  .nav-menu > li > .nav-dropdown-toggle { height: 46px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  
  /* Dropdown mobile — tampil sebagai list vertikal */
  .nav-dropdown {
    display: none !important;
    position: static !important;
    border-radius: 0; box-shadow: none;
    border-top: none; border-left: 3px solid var(--primary);
    background: rgba(0,0,0,0.2);
    padding: 4px 0;
    columns: 1;
  }
  .nav-has-dropdown.open .nav-dropdown { display: block !important; }
  .nav-dropdown li a { color: rgba(255,255,255,0.8); padding-left: 28px; }
  .nav-dropdown li a:hover { background: rgba(255,255,255,0.08); color: white; }

  .nav-search { display: none; }
  .main-nav .container { flex-wrap: wrap; position: relative; }
}

/* ============ CONTAINER / LAYOUT ============ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.site-main { padding: 24px 0; }
.main-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.content-area { min-width: 0; }

/* ============ FEATURED SLIDER ============ */
.hero-section { margin-bottom: 28px; }
.featured-slider { display: grid; grid-template-columns: 1fr 280px; gap: 4px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.slider-main { position: relative; }
.slider-main-item { display: none; position: relative; }
.slider-main-item.active { display: block; }
.slider-main-item img { width: 100%; height: 400px; object-fit: cover; }
.slider-main-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 40px 20px 20px;
  color: white;
}
.slider-kat { background: var(--primary); color: white; padding: 3px 10px; border-radius: 3px; font-size: 0.75rem; font-weight: 700; display: inline-block; margin-bottom: 8px; }
.slider-main-info h2 { font-size: 1.2rem; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.slider-main-info:hover h2 { color: #ffd700; }
.slider-main-info .meta { font-size: 0.75rem; opacity: 0.8; }
.slider-thumbs { display: flex; flex-direction: column; gap: 4px; }
.slider-thumb { display: flex; gap: 10px; background: #1a1a2e; padding: 12px; cursor: pointer; transition: background .2s; }
.slider-thumb:hover, .slider-thumb.active { background: #e74c3c; }
.slider-thumb img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.slider-thumb-info h4 { font-size: 0.78rem; color: rgba(255,255,255,0.9); line-height: 1.4; }
.slider-thumb-info span { font-size: 0.7rem; color: rgba(255,255,255,0.6); }

/* ============ SECTION HEADER ============ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--primary); }
.section-header h2 { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.see-all { font-size: 0.82rem; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.see-all:hover { color: var(--primary-dark); }
.news-section { margin-bottom: 32px; }

/* ============ NEWS GRID & CARD ============ */

/* Grid layouts */
.news-grid   { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.news-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }

/* Base card */
.news-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}

/* Gambar */
.news-card-img {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
}
.news-card-img img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }

/* Badge kategori di atas gambar */
.news-card-kat {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: white;
  letter-spacing: .3px;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}

/* Body teks */
.news-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.news-card-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-body h3 a { color: inherit; transition: color .15s; }
.news-card-body h3 a:hover { color: var(--primary); }
.news-card-body p {
  font-size: 0.79rem;
  color: var(--gray-600);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.71rem;
  color: var(--gray-400);
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}
.news-card-meta i { margin-right: 3px; color: var(--primary); opacity: .7; }

/* Card kecil — grid 4 kolom */
.news-card-small .news-card-img img { height: 140px; }
.news-card-small .news-card-body { padding: 11px 13px 13px; }
.news-card-small .news-card-body h3 { font-size: 0.82rem; -webkit-line-clamp: 2; }

/* ── Card pertama di .news-grid → full-width 2 kolom ─── */
.news-grid > .news-card:first-child:not(:only-child) {
  grid-column: 1 / -1;
  flex-direction: row;
}
.news-grid > .news-card:first-child:not(:only-child) .news-card-img {
  border-radius: 10px 0 0 10px;
  width: 45%;
  flex-shrink: 0;
}
.news-grid > .news-card:first-child:not(:only-child) .news-card-img img {
  height: 100%;
  min-height: 260px;
}
.news-grid > .news-card:first-child:not(:only-child) .news-card-body {
  padding: 22px 24px;
  justify-content: center;
}
.news-grid > .news-card:first-child:not(:only-child) .news-card-body h3 {
  font-size: 1.15rem;
  -webkit-line-clamp: 4;
}
.news-grid > .news-card:first-child:not(:only-child) .news-card-body p {
  -webkit-line-clamp: 3;
}

/* Batalkan first-child di mobile */
@media (max-width: 640px) {
  .news-grid > .news-card:first-child:not(:only-child) {
    grid-column: auto;
    flex-direction: column;
  }
  .news-grid > .news-card:first-child:not(:only-child) .news-card-img {
    width: 100%;
    border-radius: 10px 10px 0 0;
  }
  .news-grid > .news-card:first-child:not(:only-child) .news-card-img img {
    height: 200px;
    min-height: unset;
  }
}

/* ============ SIDEBAR ============ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: white; border-radius: var(--radius); overflow: visible; box-shadow: var(--shadow); }
.widget > *:first-child { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.widget > *:last-child { border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.widget > *:only-child { border-radius: var(--radius); overflow: hidden; }
.widget-header { padding: 14px 16px; border-bottom: 1px solid var(--gray-200); }
.widget-header h3 { font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.popular-list { padding: 12px 0; }
.popular-item { display: flex; gap: 12px; padding: 10px 16px; transition: background .15s; cursor: pointer; }
.popular-item:hover { background: var(--gray-100); }
.popular-num { font-size: 1.5rem; font-weight: 800; color: var(--gray-200); line-height: 1; min-width: 28px; }
.popular-info { flex: 1; }
.popular-kat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.popular-info h4 { font-size: 0.82rem; font-weight: 600; line-height: 1.4; margin: 3px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.popular-views { font-size: 0.72rem; color: var(--gray-600); }
.kategori-cloud { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.kat-badge { padding: 6px 13px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; border: 1px solid; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; line-height: 1.4; transition: all .2s; }
.kat-badge:hover { transform: translateY(-2px); opacity: 0.85; }
.widget-newsletter { padding-bottom: 0; }
.widget-newsletter p { padding: 8px 16px; font-size: 0.82rem; color: var(--gray-600); }
.newsletter-form { display: flex; border-top: 1px solid var(--gray-200); }
.newsletter-form input { flex: 1; padding: 10px 14px; border: none; font-size: 0.85rem; outline: none; font-family: var(--font); }
.newsletter-form button { background: var(--primary); color: white; border: none; padding: 10px 16px; font-weight: 600; cursor: pointer; font-size: 0.82rem; }
.newsletter-form button:hover { background: var(--primary-dark); }

/* ============ PAGINATION ============ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination .pag-btn,
.pagination span,
.pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--gray-200); background: white; color: var(--gray-800);
  cursor: pointer; transition: all .15s; user-select: none;
}
.pagination .pag-btn:hover:not(.disabled):not(.active),
.pagination span:hover:not(.disabled):not(.active) { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: white !important; }
.pagination .disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ============ PAGE HEADER ============ */
.page-header { display: flex; align-items: center; gap: 16px; background: white; padding: 20px 24px; border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.page-header-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.page-header h1 { font-size: 1.4rem; font-weight: 800; }
.page-header p { font-size: 0.85rem; color: var(--gray-600); margin-top: 2px; }
.search-header { background: white; padding: 24px; border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); }
.search-header h1 { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
.big-search-form { display: flex; gap: 0; margin-bottom: 10px; }
.big-search-form input { flex: 1; padding: 12px 16px; border: 2px solid var(--gray-200); border-right: none; border-radius: 8px 0 0 8px; font-size: 0.95rem; outline: none; }
.big-search-form input:focus { border-color: var(--primary); }
.big-search-form button { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 0 8px 8px 0; font-weight: 600; cursor: pointer; font-size: 0.9rem; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-600); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; display: block; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; }

/* ============ ARTICLE DETAIL ============ */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--gray-600); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.article-header { background: white; padding: 28px; border-radius: var(--radius); margin-bottom: 20px; box-shadow: var(--shadow); }
.article-category { display: flex; gap: 8px; margin-bottom: 14px; }
.kat-label { padding: 4px 14px; border-radius: 4px; font-size: 0.78rem; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: .5px; }
.breaking-tag { background: #fef2f2; color: var(--primary); border: 1px solid #fecaca; padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.article-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; line-height: 1.4; margin-bottom: 14px; color: var(--dark); }
.article-summary { font-size: 1.05rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; font-style: italic; border-left: 3px solid var(--primary); padding-left: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; color: var(--gray-600); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.article-meta strong { color: var(--dark); }
.share-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-buttons span { font-size: 0.82rem; font-weight: 600; color: var(--gray-600); }
.share-fb { background: #1877f2; color: white; padding: 6px 14px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.share-tw { background: #000; color: white; padding: 6px 14px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.share-wa { background: #25d366; color: white; padding: 6px 14px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.share-copy { background: var(--gray-100); color: var(--gray-800); border: 1px solid var(--gray-200); padding: 6px 14px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: var(--font); }
.article-figure { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-figure img { width: 100%; max-height: 500px; object-fit: cover; }
.article-figure figcaption { padding: 10px 14px; background: var(--gray-100); font-size: 0.78rem; color: var(--gray-600); font-style: italic; }
.article-body { background: white; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); line-height: 1.9; font-size: 1rem; margin-bottom: 20px; }
.article-body h2 { font-size: 1.3rem; font-weight: 700; margin: 24px 0 12px; color: var(--dark); }
.article-body h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body blockquote { border-left: 4px solid var(--primary); margin: 20px 0; padding: 14px 20px; background: #fef2f2; border-radius: 0 8px 8px 0; font-style: italic; color: var(--gray-600); }
.article-body img { border-radius: 8px; margin: 16px 0; max-width: 100%; }
.article-tags { background: white; padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.article-tags strong { font-size: 0.85rem; }
.tag-item { background: var(--gray-100); border: 1px solid var(--gray-200); padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; color: var(--gray-800); transition: all .2s; }
.tag-item:hover { background: var(--primary); color: white; border-color: var(--primary); }
.article-author-box { background: white; padding: 20px; border-radius: var(--radius); display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow); margin-bottom: 20px; }
.author-avatar img, .avatar-placeholder { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-placeholder { background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--gray-600); }
.author-info h4 { font-size: 0.78rem; color: var(--gray-600); margin-bottom: 4px; }
.author-info strong { font-size: 0.95rem; }
.author-info p { font-size: 0.82rem; color: var(--gray-600); margin-top: 4px; }
.related-news { background: white; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.related-news h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related-item { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; border: 1px solid var(--gray-200); transition: box-shadow .2s; }
.related-item:hover { box-shadow: var(--shadow); }
.related-item img { width: 100%; height: 110px; object-fit: cover; }
.related-info { padding: 10px; }
.related-kat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.related-info h4 { font-size: 0.82rem; font-weight: 600; margin: 4px 0; line-height: 1.4; }
.related-date { font-size: 0.72rem; color: var(--gray-600); }
.sidebar-news-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--gray-100); }
.sidebar-news-item img { width: 64px; height: 50px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.sidebar-news-item h5 { font-size: 0.78rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.sidebar-news-item span { font-size: 0.7rem; color: var(--gray-600); }

/* ============ KOMENTAR ============ */
.comment-section { background: white; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.comment-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.comment-list { margin-bottom: 28px; }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { font-size: 2rem; color: var(--gray-400); flex-shrink: 0; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.comment-header strong { font-size: 0.88rem; }
.comment-header span { font-size: 0.75rem; color: var(--gray-600); }
.comment-body p { font-size: 0.88rem; line-height: 1.6; color: #374151; }
.no-comment { color: var(--gray-600); font-style: italic; text-align: center; padding: 20px; }
.comment-form h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; padding-top: 14px; border-top: 1px solid var(--gray-200); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 6px; font-size: 0.88rem; font-family: var(--font); outline: none; transition: border .2s; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); }
.comment-form textarea { width: 100%; margin-bottom: 12px; resize: vertical; }
.btn-submit { background: var(--primary); color: white; border: none; padding: 10px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 0.9rem; font-family: var(--font); display: flex; align-items: center; gap: 8px; }
.btn-submit:hover { background: var(--primary-dark); }

/* ============ SKELETON LOADING ============ */
.loading-skeleton { animation: pulse 1.5s infinite; }
.skeleton-title { height: 32px; background: var(--gray-200); border-radius: 4px; margin-bottom: 12px; }
.skeleton-meta { height: 16px; background: var(--gray-200); border-radius: 4px; width: 60%; margin-bottom: 20px; }
.skeleton-img { height: 300px; background: var(--gray-200); border-radius: 8px; margin-bottom: 20px; }
.skeleton-text { height: 14px; background: var(--gray-200); border-radius: 4px; margin-bottom: 10px; }
.skeleton-text.short { width: 70%; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ============ FOOTER ============ */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 50px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; color: white; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.footer-about p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 16px; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: white; transition: opacity .2s; }
.social-links a:hover { opacity: 0.8; }
.footer-col ul li a { font-size: 0.85rem; line-height: 2; display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: white; }
.footer-news a { font-size: 0.82rem; line-height: 1.8; display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.7); }
.footer-news a:hover { color: white; }
.footer-contact p { font-size: 0.83rem; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.footer-contact i { margin-top: 3px; color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-slider { grid-template-columns: 1fr; }
  .slider-thumbs { flex-direction: row; }
  .slider-thumb { flex-direction: column; }
  .slider-thumb img { width: 100%; height: 80px; }
}
@media (max-width: 768px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .article-title { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .featured-slider { grid-template-columns: 1fr; }
  .slider-thumbs { display: none; }
}
@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-grid-4 { grid-template-columns: 1fr; }
  .nav-search { display: none; }
}

/* ============ SCROLLBAR CUSTOM ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============ ERROR 404 INLINE ============ */
.error-404 { text-align: center; padding: 60px 20px; }
.error-404 h2 { font-size: 1.5rem; margin-bottom: 12px; }
.error-404 a { background: var(--primary); color: white; padding: 10px 24px; border-radius: 6px; font-weight: 600; display: inline-block; margin-top: 12px; }

/* ============ BERITA CARD FIRST LARGE ============ */
.news-grid .news-card:first-child:not(:only-child) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.news-grid .news-card:first-child:not(:only-child) .news-card-img img { height: 260px; }
.news-grid .news-card:first-child:not(:only-child) .news-card-body { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.news-grid .news-card:first-child:not(:only-child) .news-card-body h3 { font-size: 1.1rem; }

/* ============ RESPONSIVE BERITA CARD ============ */
@media (max-width: 768px) {
  .news-grid .news-card:first-child:not(:only-child) { grid-column: auto; display: block; }
}

/* ============ STICKY SIDEBAR ============ */
@media (min-width: 1024px) {
  .sidebar { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
}

/* ============ LINK HOVER ============ */
.news-card-body h3 a { transition: color .2s; }

/* ============ FEATURED NEWS BADGE ============ */
.featured-badge {
  position: absolute; top: 10px; right: 10px;
  background: #fbbf24; color: #92400e;
  padding: 3px 8px; border-radius: 4px;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase;
}

/* ============ PAGE HEADER RESPONSIVE ============ */
@media (max-width: 480px) {
  .page-header { flex-direction: column; text-align: center; }
  .page-header-icon { margin: 0 auto; }
}

/* ============ BACK TO TOP BUTTON ============ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  background: var(--primary); color: white;
  border: none; border-radius: 50%;
  font-size: 1rem; cursor: pointer;
  box-shadow: 0 4px 12px rgba(231,76,60,0.4);
  display: none; align-items: center; justify-content: center;
  z-index: 100; transition: all .2s;
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-to-top.visible { display: flex; }

/* ============ FIX & TAMBAHAN ============ */

/* News card — sudah didefinisikan di blok NEWS GRID & CARD */

/* Slider arrow navigation dots */
.slider-dots { position: absolute; bottom: 12px; right: 14px; display: flex; gap: 6px; z-index: 5; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.slider-dot.active { background: white; }

/* Berita card border-radius — sudah di blok NEWS GRID */

/* Sidebar sticky scroll */
@media (min-width: 1024px) {
  .sidebar { align-self: start; position: sticky; top: 72px; }
}

/* Komentar form row fix mobile */
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

/* No image SVG — ukuran minimum */
img[src$=".svg"] { min-height: 80px; background: var(--gray-100); }

/* Detail artikel gambar responsive */
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px auto; display: block; }

/* Tags cloud di article */
.article-tags { gap: 8px; }

/* Footer link fix */
.footer-col ul li { line-height: 1; }

/* Nav item active state — sudah di-handle di blok NAV utama */

/* ============ ANIMASI & POLISH ============ */

/* Fade-in artikel saat load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.news-card { animation: fadeUp .35s ease both; }
.news-card:nth-child(2) { animation-delay: .05s; }
.news-card:nth-child(3) { animation-delay: .10s; }
.news-card:nth-child(4) { animation-delay: .15s; }
.news-card:nth-child(n+5) { animation-delay: .20s; }

/* Slider fade transition */
.slider-main-item { transition: opacity .4s ease; opacity: 0; pointer-events: none; position: absolute; inset: 0; }
.slider-main-item.active { opacity: 1; pointer-events: auto; position: relative; }
.slider-main { position: relative; min-height: 260px; }

/* Breaking news animation pause saat hover */
.breaking-ticker:hover .ticker-content { animation-play-state: paused; }

/* Nav active indicator */
.main-nav .container { position: relative; }

/* Article body pre & code */
.article-body pre { background: #1e1e2e; color: #a8b5c8; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 16px 0; font-size: .88rem; }
.article-body code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: .88em; color: #e74c3c; }
.article-body pre code { background: none; color: inherit; padding: 0; }

/* Article body table */
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body th { background: var(--dark); color: white; padding: 10px 14px; text-align: left; font-size: .85rem; }
.article-body td { padding: 9px 14px; border-bottom: 1px solid var(--gray-200); font-size: .88rem; }
.article-body tr:nth-child(even) td { background: var(--gray-50); }

/* Share buttons hover */
.share-fb:hover { background: #1557b0; }
.share-tw:hover { background: #333; }
.share-wa:hover { background: #1da851; }

/* Footer gradient divider */
.site-footer::before { content: ''; display: block; height: 3px; background: linear-gradient(90deg, var(--primary), #f39c12, var(--primary)); }

/* Header scroll shadow */
.site-header { transition: box-shadow .2s; }

/* Navbar separator */
.main-nav .container::after { content: none; }

/* Berita card background — sudah di blok NEWS GRID */

/* Widget header border */
.widget-header { border-bottom: 2px solid var(--primary); }

/* Popular number */
.popular-num { color: var(--gray-400); }

/* Komentar avatar color */
.comment-avatar { color: var(--gray-300); }

/* Print styles */
@media print {
  .site-header, .site-footer, .sidebar, .share-buttons, .breaking-news-bar,
  .comment-section, .related-news, .back-to-top { display: none !important; }
  .main-layout { display: block; }
  .article-body { box-shadow: none; padding: 0; }
}

/* ============ NAVBAR DROPDOWN POLISH ============ */

/* Separator antara header-main dan nav */
.header-main { border-bottom: 1px solid rgba(0,0,0,0.06); }

/* Dropdown container */
.nav-has-dropdown { position: relative; }

/* Animasi dropdown masuk */
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-has-dropdown:hover > .nav-dropdown { animation: dropIn .18s ease forwards; }

/* Dropdown item hover — indikator kiri berwarna */
.nav-dropdown li a {
  border-left: 3px solid transparent;
  transition: border-color .12s, background .12s, color .12s;
}
.nav-dropdown li a:hover { border-left-color: var(--primary); }

/* Aktif nav dropdown toggle */
.nav-has-dropdown:hover > .nav-dropdown-toggle {
  color: white !important;
  background: rgba(231,76,60,0.15) !important;
  border-bottom-color: var(--primary) !important;
}

/* Header top bar */
.header-top .separator { margin: 0 6px; opacity: 0.4; }
.main-nav .container { min-height: 48px; }

/* Kolom dropdown: 2 kolom di desktop, 1 di tablet */
@media (min-width: 1025px) {
  .nav-dropdown { columns: 2; min-width: 380px; }
  /* Divider visual antara kolom */
  .nav-dropdown li:nth-child(5) {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 4px; margin-bottom: 4px;
  }
}
@media (max-width: 1024px) {
  .nav-dropdown { columns: 1; min-width: 200px; }
}

/* Mobile overlay gelap */
@media (max-width: 768px) {
  body.nav-open::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99;
  }
}

/* ============================================================
   KATEGORI SECTION — Layout 1 besar + 3 kecil
   ============================================================ */

/* Section header dengan dot warna */
.kat-section .section-header {
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 10px;
}
.kat-section-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Wrapper grid */
.kat-grid { margin-top: 2px; }
.kat-grid-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}

/* ── Berita Utama (kiri) ───────────────────────── */
.kat-card-main {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.kat-card-main:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.kat-card-main-img {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}
.kat-card-main-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.kat-card-main:hover .kat-card-main-img img { transform: scale(1.05); }

.kat-card-main-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kat-card-main-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kat-card-main:hover .kat-card-main-body h3 { color: var(--primary); }
.kat-card-main-body p {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.kat-card-main-body .news-card-meta { margin-top: auto; }

/* ── Daftar 3 Berita Kecil (kanan) ────────────── */
.kat-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kat-card-item {
  display: flex;
  gap: 12px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 10px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: transform .18s, box-shadow .18s;
  border-left: 3px solid transparent;
}
.kat-card-item:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.kat-card-item-img {
  flex-shrink: 0;
  width: 90px;
  height: 68px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--gray-100);
}
.kat-card-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.kat-card-item:hover .kat-card-item-img img { transform: scale(1.08); }

.kat-card-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.kat-card-item-body h4 {
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kat-card-item:hover .kat-card-item-body h4 { color: var(--primary); }
.kat-card-item-body .news-card-meta {
  font-size: 0.7rem;
  color: var(--gray-400);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .kat-grid-inner {
    grid-template-columns: 1fr;
  }
  .kat-card-main-img img { height: 200px; }
  .kat-card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .kat-card-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px;
  }
  .kat-card-item-img {
    width: 100%; height: 100px;
  }
}

@media (max-width: 600px) {
  .kat-card-list { grid-template-columns: 1fr; }
  .kat-card-item {
    flex-direction: row;
    align-items: center;
  }
  .kat-card-item-img { width: 80px; height: 62px; }
}
