/*
Theme Name: ProBisnis
Theme URI: https://github.com/ejhaa/probisnis
Author: ejhaa
Author URI: https://ejhaa.dev
Description: ProBisnis adalah tema WordPress berita profesional dengan tampilan modern ala portal berita Indonesia. Mendukung halaman home, kategori, arsip, tag, dan single post.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, blog, magazine, responsive, custom-menu, featured-images, two-columns, three-columns
Text Domain: probisnis
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --color-primary: #e8192c;
  --color-primary-dark: #c0121f;
  --color-secondary: #1a1a2e;
  --color-text: #1a1a1a;
  --color-text-light: #666;
  --color-text-muted: #999;
  --color-border: #e8e8e8;
  --color-bg: #f5f5f5;
  --color-white: #ffffff;
  --color-dark: #111;
  --color-category-bg: #e8192c;
  --font-primary: 'Noto Sans', 'Noto Sans JP', Arial, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.14);
  --transition: all 0.2s ease;
  --container-width: 1200px;
  --sidebar-width: 300px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.content-area {
  display: flex;
  gap: 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--color-dark);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #333;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-date {
  font-weight: 500;
  color: #aaa;
}

.top-bar-links {
  display: flex;
  gap: 16px;
}

.top-bar-links a {
  color: #ccc;
  font-size: 12px;
}

.top-bar-links a:hover {
  color: var(--color-primary);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* === Logo Image (custom_logo) – Header === */
.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.site-logo .custom-logo-link img,
.site-logo img.custom-logo {
  width: auto;
  height: 50px;          /* tinggi tetap, lebar menyesuaikan */
  max-width: 200px;      /* batas lebar agar tidak melar */
  max-height: 50px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.logo-text span:first-child {
  color: var(--color-primary);
  font-style: italic;
}

.logo-text span:last-child {
  color: var(--color-secondary);
}

.logo-dot {
  color: var(--color-primary);
}

.header-search {
  flex: 1;
  max-width: 400px;
}

.search-form {
  display: flex;
  border: 1.5px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  background: #f8f8f8;
}

.search-form input {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--color-text);
}

.search-form input::placeholder {
  color: var(--color-text-muted);
}

.search-form button {
  background: none;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.search-form button:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.btn-masuk {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 8px 20px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}

.btn-masuk:hover {
  background: var(--color-primary-dark);
  color: var(--color-white) !important;
}

/* =============================================
   NAVIGATION
   ============================================= */
.main-nav {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.nav-menu {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-menu > li > a .arrow {
  font-size: 10px;
  opacity: 0.6;
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 200px;
  box-shadow: var(--shadow-hover);
  border-top: 3px solid var(--color-primary);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
}

.nav-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.nav-menu .sub-menu a:hover {
  background: #fafafa;
  color: var(--color-primary);
  padding-left: 20px;
}

.nav-menu-indeks {
  margin-left: auto;
}

/* =============================================
   CATEGORY BADGE
   ============================================= */
.cat-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
  line-height: 1.4;
}

.cat-badge:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.cat-badge.cat-arena { background: #1e40af; }
.cat-badge.cat-ototekno { background: #0369a1; }
.cat-badge.cat-hangout { background: #065f46; }
.cat-badge.cat-market { background: #92400e; }
.cat-badge.cat-finance { background: #b45309; }
.cat-badge.cat-sektor-riil { background: #7e22ce; }
.cat-badge.cat-internasional { background: #0f766e; }
.cat-badge.cat-regional { background: #1d4ed8; }
.cat-badge.cat-umum { background: #374151; }
.cat-badge.cat-haji { background: #7c3aed; }
.cat-badge.cat-cyberlife { background: #0891b2; }
.cat-badge.cat-polhukam { background: #dc2626; }
.cat-badge.cat-sepak-bola { background: #16a34a; }

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-section {
  background: var(--color-white);
  padding: 0 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  height: 420px;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Hanya link gambar yang block full-size, bukan link badge */
.slide > a:first-child {
  display: block;
  width: 100%;
  height: 100%;
}

/* Badge & link lain di dalam slide tetap inline */
.slide-content a {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
}

.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 48px 20px 20px;
  color: var(--color-white);
}

.slide-content .cat-badge {
  display: inline-block;  /* pastikan tidak full width */
  margin-bottom: 8px;
}

.slide-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-white);
}

.slide-title a {
  color: inherit;
}

.slide-title a:hover {
  color: #f0f0f0;
}

.slide-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: var(--transition);
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(255,255,255,0.4);
}

.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--color-white);
  width: 20px;
  border-radius: 4px;
}

/* Hero Terpopuler */
.hero-terpopuler {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 420px;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-terpopuler .popular-list {
  flex: 1;
  overflow: hidden;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

.section-title-bar h2 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text);
  position: relative;
  padding-left: 12px;
}

.section-title-bar h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-title-bar .see-all {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.popular-item-img {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

.popular-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-item-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  min-width: 0;
}

.popular-item-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-item-title a:hover {
  color: var(--color-primary);
}

.popular-item-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* =============================================
   KATEGORI BISNIS (kb-section)
   5 postingan terbaru dari kategori Bisnis
   ============================================= */
.kb-section {
  background: var(--color-white);
  padding: 20px 0 28px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  overflow: visible; /* pastikan tombol carousel tidak terpotong */
}

/* Wrapper carousel dengan tombol prev/next */
.kb-carousel-wrap {
  position: relative;
  margin-top: 14px;
  /* Beri ruang untuk tombol di kiri/kanan */
  padding: 0 36px;
}

.kb-prev,
.kb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
  padding: 0;
}

.kb-prev { left: 0; }
.kb-next { right: 0; }

.kb-prev:hover,
.kb-next:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.kb-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.kb-grid::-webkit-scrollbar {
  display: none;
}

.kb-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 185px;
  min-width: 185px;
}

.kb-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg);
}

.kb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.kb-thumb:hover img {
  transform: scale(1.05);
}

.kb-no-thumb {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.kb-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kb-body .cat-badge {
  display: inline-block !important;
  width: auto !important;
  align-self: flex-start; /* paksa badge hanya selebar teks */
}

.kb-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  word-break: break-word;
  max-width: 100%;
}

.kb-title a:hover {
  color: var(--color-primary);
}

.kb-meta {
  font-size: 11px;
  color: var(--color-text-muted);
}

.no-posts-note {
  color: var(--color-text-muted);
  font-size: 13px;
  padding: 12px 0;
}

/* =============================================
   NEWS CARD
   ============================================= */
.news-card {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  min-width: 0;
  width: 100%;
}

.news-card:last-child {
  border-bottom: none;
}

.news-card .card-thumb {
  width: 130px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg);
}

.news-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.news-card:hover .card-thumb img {
  transform: scale(1.05);
}

.news-card .card-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
}

.card-category {
  margin-bottom: 5px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
}

.card-title a:hover {
  color: var(--color-primary);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  min-width: 0;
}

.card-meta .author {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--color-text-light);
}

.card-meta .author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.card-meta .separator {
  color: var(--color-border);
}

.card-meta .time {
  color: var(--color-text-muted);
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.card-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Grid card (for category page) */
.news-card-grid {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-card-grid:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.news-card-grid .card-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--color-bg);
}

.news-card-grid .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card-grid:hover .card-thumb img {
  transform: scale(1.05);
}

.news-card-grid .card-body {
  padding: 14px;
}

.news-card-grid .card-title {
  font-size: 14px;
  -webkit-line-clamp: 2;
}

/* =============================================
   BERITA TERBARU SECTION
   ============================================= */
.berita-section {
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}

/* =============================================
   INFOGRAFIS
   ============================================= */
.infografis-section {
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.infografis-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.infografis-item {
  flex-shrink: 0;
  width: 200px;
}

.infografis-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* =============================================
   VIDEO SECTION
   ============================================= */
.video-section {
  background: var(--color-secondary);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.video-section .section-title-bar h2 {
  color: var(--color-white);
}

.video-section .section-title-bar h2::before {
  background: var(--color-primary);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
}

.video-featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

/* YouTube embed responsive */
.yt-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-thumb-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.3s;
}

.yt-thumb-overlay.playing {
  opacity: 0;
  pointer-events: none;
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255,0,0,0.88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.yt-play-btn::after {
  content: '';
  display: block;
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.yt-thumb-overlay:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255,0,0,1);
}

.video-featured-info {
  background: #1a1a1a;
  padding: 12px 14px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.video-featured-title a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-featured-title a:hover { color: var(--color-primary); }

.video-featured-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

.video-featured img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  opacity: 0.75;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.video-play-btn::after {
  content: '▶';
  color: white;
  font-size: 20px;
  margin-left: 3px;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 32px 14px 14px;
  color: white;
}

.video-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-item {
  display: flex;
  gap: 10px;
  cursor: pointer;
}

.video-item .vthumb {
  position: relative;
  width: 100px;
  height: 65px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #333;
}

.video-item .vthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.video-item .vthumb::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  background: rgba(0,0,0,0.5);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
}

.video-item .vtitle {
  font-size: 12px;
  font-weight: 600;
  color: #ddd;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-item .vtime {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}


/* Video item thumbnail play indicator */
.vthumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vthumb-play::after {
  content: '';
  display: block;
  border-style: solid;
  border-width: 7px 0 7px 14px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.5));
}

.vbody {
  flex: 1;
  min-width: 0;
}

/* =============================================
   THREE-COL SECTION (HOME BOTTOM)
   ============================================= */
.three-col-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
  align-items: start;
}

.col-section {
  background: var(--color-white);
  padding: 14px;
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}

/* News card dalam col-section: kompak horizontal */
.col-section .news-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  min-width: 0;
  width: 100%;
}

.col-section .news-card .card-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.col-section .news-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.col-section .news-card .card-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.col-section .news-card .card-title {
  font-size: 13px;
  -webkit-line-clamp: 2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.col-section .news-card .card-meta {
  font-size: 11px;
}

.col-section .section-title-bar {
  margin-bottom: 10px;
}

.col-section .section-title-bar h2 {
  font-size: 14px;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-widget {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
  position: relative;
  padding-left: 12px;
}

.widget-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 10px;
  width: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Trending widget */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.trending-item img {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.trending-item-content {
  flex: 1;
}

.trending-item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-item-title a:hover { color: var(--color-primary); }

.trending-item-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 3px;
}

/* Social media widget */
.social-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.social-stat-item {
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius);
  background: #f8f8f8;
}

.social-stat-item .s-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.social-stat-item .s-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.social-stat-item .s-label {
  font-size: 10px;
  color: var(--color-text-muted);
}

/* Topik Populer */
.topik-list {
  display: flex;
  flex-direction: column;
}

.topik-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topik-item:last-child {
  border-bottom: none;
}

.topik-item:hover {
  color: var(--color-primary);
}

.topik-item .hash {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 800;
}

/* Advertisement widget */
.ad-widget {
  text-align: center;
}

.ad-widget img {
  width: 100%;
  border-radius: var(--radius);
}

.ad-label {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* =============================================
   CATEGORY / ARCHIVE PAGE HEADER
   ============================================= */
.cat-header {
  background: var(--color-white);
  padding: 0;
  margin-bottom: 0;
}

.cat-hero {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.cat-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.cat-hero-title {
  color: white;
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cat-hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-top: 4px;
}

/* =============================================
   NEWS GRID (Category/Archive)
   ============================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.news-list-section {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

/* =============================================
   SINGLE POST
   ============================================= */
.article-wrapper {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.article-header {
  margin-bottom: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb .sep {
  color: var(--color-border);
}

.article-cat {
  margin-bottom: 10px;
}

.article-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 16px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-author img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.author-info .date {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: #f0f0f0;
  color: var(--color-text);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--color-primary);
  color: white;
}

.share-btn-text {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #f0f0f0;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn-text:hover {
  background: var(--color-primary);
  color: white;
}

/* Font size slider */
.font-size-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.font-size-bar label {
  font-size: 12px;
}

.font-size-bar input[type="range"] {
  flex: 1;
  max-width: 200px;
  accent-color: var(--color-primary);
}

/* Article content */
.article-thumbnail {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-thumbnail img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

.article-thumbnail figcaption {
  background: #f5f5f5;
  font-size: 12px;
  color: var(--color-text-muted);
  padding: 8px 12px;
  text-align: center;
  line-height: 1.5;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

.article-content p {
  margin-bottom: 18px;
}

.article-content h2, .article-content h3, .article-content h4 {
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--color-text);
}

.article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 18px; }

.article-content ul, .article-content ol {
  margin: 16px 0 16px 24px;
  list-style: initial;
}

.article-content ol { list-style: decimal; }

.article-content li { margin-bottom: 6px; }

.article-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  background: #fafafa;
  padding: 16px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--color-text-light);
}

.article-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: var(--radius);
  margin: 16px 0;
}

/* Read more box */
.read-more-box {
  border-left: 4px solid var(--color-primary);
  background: #fff8f8;
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 14px;
}

.read-more-box .label {
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.read-more-box a {
  color: var(--color-primary);
  font-weight: 600;
}

/* WhatsApp CTA */
.whatsapp-cta {
  background: #e8f5e9;
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 13px;
}

.whatsapp-cta .icon {
  color: #25d366;
  font-size: 24px;
}

.whatsapp-cta .text {
  flex: 1;
  font-weight: 600;
  color: var(--color-text);
}

.whatsapp-cta .btn-gabung {
  background: var(--color-primary);
  color: white;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.whatsapp-cta .btn-gabung:hover {
  background: var(--color-primary-dark);
  color: white;
}

/* Article footer */
.article-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-item {
  background: #f0f0f0;
  color: var(--color-text);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}

.tag-item:hover {
  background: var(--color-primary);
  color: white;
}

.article-reactions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.reaction-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Google Source CTA */
.google-source-cta {
  background: #f0f7ff;
  border: 1px solid #d0e4f7;
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 12px;
  flex-wrap: wrap;
}

.google-source-cta .g-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.google-source-cta .text {
  flex: 1;
  min-width: 120px;
  color: var(--color-text-muted);
  line-height: 1.4;
  font-size: 12px;
}

.google-source-cta .btn-tambah {
  background: var(--color-primary);
  color: white;
  padding: 7px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.google-source-cta .btn-tambah:hover {
  opacity: 0.9;
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-area {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.comments-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.comment-form-area {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-form-area .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg);
  flex-shrink: 0;
  overflow: hidden;
}

.comment-textarea {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  resize: vertical;
  min-height: 80px;
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: var(--transition);
}

.comment-textarea:focus {
  border-color: var(--color-primary);
}

.comment-submit {
  background: var(--color-primary);
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
}

.comment-submit:hover {
  background: var(--color-primary-dark);
}

/* =============================================
   RELATED POSTS
   ============================================= */
.related-posts {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.related-item {
  display: flex;
  gap: 10px;
}

.related-item .rthumb {
  width: 90px;
  height: 65px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

.related-item .rthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-item .rtitle {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item .rtitle a:hover { color: var(--color-primary); }

.related-item .rmeta {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.btn-more {
  display: block;
  text-align: center;
  margin: 16px auto 0;
  background: var(--color-primary);
  color: white;
  padding: 10px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  width: fit-content;
  transition: var(--transition);
}

.btn-more:hover {
  background: var(--color-primary-dark);
  color: white;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination-wrap {
  margin: 8px 0 20px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  line-height: 1;
}

.pagination a:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.pagination .current {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.pagination .dots {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-dark);
  color: #ccc;
  padding: 40px 0 0;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #333;
}

.footer-brand .logo-text span:first-child { color: var(--color-primary); }
.footer-brand .logo-text span:last-child { color: #fff; }

/* === Logo Image (custom_logo) – Footer === */
.footer-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer-brand .custom-logo-link img,
.footer-brand img.custom-logo {
  width: auto;
  height: 40px;          /* sedikit lebih kecil di footer */
  max-width: 160px;
  max-height: 40px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1); /* logo jadi putih di background gelap */
  opacity: 0.9;
}

.footer-brand .powered {
  font-size: 12px;
  color: #888;
  margin: 10px 0 6px;
}

.footer-brand .biznet-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--color-text);
  font-weight: 700;
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid #444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #888;
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.footer-nav h4 {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav ul li a {
  font-size: 13px;
  color: #aaa;
  transition: var(--transition);
}

.footer-nav ul li a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-bottom {
  background: #0a0a0a;
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  color: #666;
}

.footer-bottom strong {
  color: #888;
}

/* =============================================
   SUARA DARI RIMBA (Opini)
   ============================================= */
.opinion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opinion-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.opinion-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.opinion-item .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg);
}

.opinion-item-content .author-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
}

.opinion-item-content .article-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-top: 2px;
}

.opinion-item-content .article-title a:hover { color: var(--color-primary); }

.opini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}

/* =============================================
   BANNER / AD
   ============================================= */
.banner-section {
  padding: 12px 0;
  text-align: center;
  background: var(--color-white);
  margin-bottom: 0;
}

.banner-section img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 0 auto;
}

/* =============================================
   NO POSTS
   ============================================= */
.no-posts {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.no-posts h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* =============================================
   LOADING / SKELETON
   ============================================= */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* =============================================
   PAGE TEMPLATE (page.php)
   Halaman statis: Tentang Kami, Kontak, dll
   ============================================= */

/* Hero banner judul halaman */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #b01020 100%);
  padding: 36px 0 32px;
  margin-bottom: 0;
}

.page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Breadcrumb di hero — warna putih */
.page-hero .breadcrumb,
.page-hero .breadcrumb a,
.page-hero .breadcrumb span {
  color: rgba(255,255,255,0.75) !important;
  font-size: 12px;
}

.page-hero .breadcrumb-sep {
  color: rgba(255,255,255,0.5) !important;
}

.page-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.3px;
}

.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.page-hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.page-hero-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-hero-author {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.page-hero-date {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

/* Layout: main + sidebar */
.page-layout {
  display: flex;
  gap: 24px;
  padding: 24px 0 32px;
  align-items: flex-start;
}

.page-main {
  flex: 1;
  min-width: 0;
}

/* Card wrapper konten */
.page-wrapper {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Featured image */
.page-featured-img {
  width: 100%;
  overflow: hidden;
}

.page-thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

/* Konten halaman — padding dalam wrapper */
.page-content {
  padding: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

/* Jika ada featured image, beri padding atas lebih kecil */
.page-featured-img + .page-content {
  padding-top: 20px;
}

/* Paragraf pertama lebih besar (lead) */
.page-content > p:first-child {
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
}

/* Divider antar elemen konten */
.page-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 28px 0 12px;
  color: var(--color-text);
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
}

.page-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0 10px;
  color: var(--color-text);
}

.page-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 8px;
}

.page-content p {
  margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 8px; line-height: 1.6; }

.page-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  text-decoration: none;
}

.page-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--color-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 15px;
}

.page-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius);
  display: block;
  margin: 16px auto;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  overflow-x: auto;
  display: block;
}

.page-content table th,
.page-content table td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
}

.page-content table th {
  background: var(--color-bg);
  font-weight: 700;
}

.page-content table tr:nth-child(even) {
  background: rgba(0,0,0,0.02);
}

/* Pagination halaman panjang */
.page-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  flex-wrap: wrap;
}

.page-links span,
.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
}

.page-links a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Author box di bawah konten */
.page-author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.page-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.page-author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.page-author-bio {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── RESPONSIVE PAGE ── */
@media (max-width: 768px) {
  .page-hero { padding: 24px 0 20px; }
  .page-hero-title { font-size: 22px; }
  .page-layout {
    flex-direction: column;
    padding: 16px 0 24px;
  }
  .page-content { padding: 16px; }
  .page-content > p:first-child { font-size: 15px; }
  .page-content h2 { font-size: 18px; }
  .page-content h3 { font-size: 16px; }
  .page-author-box { flex-direction: column; text-align: center; align-items: center; }
  .page-thumb { max-height: 240px; }
}

@media (max-width: 480px) {
  .page-hero-title { font-size: 18px; }
  .page-hero { padding: 18px 0 16px; }
  .page-content { padding: 12px; font-size: 15px; }
  .page-content h2 { font-size: 16px; }
}

/* =============================================
   CATEGORY / ARCHIVE PAGE — HERO SLIDER
   Label nama kategori di atas slider
   ============================================= */
.cat-hero-section {
  margin-bottom: 0;
}

.cat-hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.cat-hero-label a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.cat-hero-label a:hover {
  color: var(--color-primary);
}

.cat-hero-arrow {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1;
}

.cat-hero-current {
  color: var(--color-primary);
  font-weight: 800;
}

.slider-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
  background: var(--color-bg);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 14px;
}

/* =============================================
   CATEGORY PAGE NAV TABS
   ============================================= */
.cat-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.cat-tab.active, .cat-tab:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* =============================================
   STICKY SIDEBAR
   ============================================= */
.sidebar {
    position: relative; /* needed for sticky context */
}

.sidebar-inner {
    position: sticky;
    top: 80px; /* offset below fixed header */
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
    padding-right: 4px;
}





/* =============================================
   CATEGORY PAGE HERO BANNER
   (mirip referensi: banner gelap dengan nama kategori besar)
   ============================================= */
.cat-page-hero {
    background: linear-gradient(135deg, #0f2027 0%, #1a3a2a 60%, #16a34a 100%);
    padding: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.cat-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cat-page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 28px 0 24px;
}

.cat-page-breadnav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.cat-page-breadnav a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.cat-page-breadnav a:hover {
    color: white;
}

.cat-page-breadnav span {
    color: rgba(255,255,255,0.9);
}

.cat-page-arrow {
    font-size: 18px;
    opacity: 0.6;
    line-height: 1;
}

.cat-page-title {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cat-page-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 6px;
    line-height: 1.5;
}

/* Breadcrumb wrap below hero */
.breadcrumb-wrap {
    padding: 10px 0 0;
}

/* =============================================
   CATEGORY PAGE — FEATURED POST
   (post pertama: gambar kiri besar + teks kanan)
   ============================================= */
.cat-featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.cat-featured-thumb {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.cat-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.cat-featured-post:hover .cat-featured-thumb img {
    transform: scale(1.04);
}

.cat-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.cat-featured-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-white);
}

.cat-featured-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--color-text);
}

.cat-featured-title a:hover {
    color: var(--color-primary);
}

.cat-featured-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

.cat-featured-meta .meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--color-text-light);
}

.meta-sep {
    color: var(--color-border);
}

.meta-time {
    color: var(--color-text-muted);
}

.meta-stats {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--color-text-muted);
}

/* =============================================
   CATEGORY PAGE — 2-COLUMN TOP GRID
   (artikel ke-2 dan ke-3: kartu grid 2 kolom)
   ============================================= */
.cat-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.cat-top-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cat-top-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.cat-top-thumb {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: var(--color-bg);
}

.cat-top-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.cat-top-card:hover .cat-top-thumb img {
    transform: scale(1.05);
}

.cat-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    /* inherits .cat-badge styles */
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    line-height: 1.4;
}

.cat-card-badge--sm {
    font-size: 9px;
    padding: 2px 6px;
}

.cat-top-body {
    padding: 14px;
}

.cat-top-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-top-title a:hover {
    color: var(--color-primary);
}

.cat-top-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

/* =============================================
   CATEGORY PAGE — LIST SECTION (artikel ke-4+)
   (kartu horizontal: gambar kiri, teks kanan)
   ============================================= */
.cat-list-section {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 0 0 4px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.cat-list-divider {
    display: flex;
    align-items: center;
    padding: 14px 16px 10px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 4px;
}

.cat-list-divider span {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    padding-left: 10px;
    position: relative;
}

.cat-list-divider span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.cat-list-card {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
    transition: background 0.15s;
}

.cat-list-card:last-child {
    border-bottom: none;
}

.cat-list-card:hover {
    background: #fafafa;
}

.cat-list-thumb {
    position: relative;
    width: 140px;
    height: 96px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
}

.cat-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.cat-list-card:hover .cat-list-thumb img {
    transform: scale(1.05);
}

.cat-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cat-list-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-list-title a:hover {
    color: var(--color-primary);
}

.cat-list-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .cat-featured-post {
    grid-template-columns: 1fr;
  }
  .cat-featured-thumb {
    min-height: 220px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-terpopuler {
    display: none;
  }
  .three-col-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .video-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  /* KB: 3 kolom di tablet */
}

@media (max-width: 768px) {
  /* Category page */
  .cat-page-title { font-size: 26px; }
  .cat-featured-post { grid-template-columns: 1fr; }
  .cat-featured-thumb { min-height: 200px; }
  .cat-top-grid { grid-template-columns: 1fr; }
  .cat-list-thumb { width: 110px; height: 78px; }

  /* Sidebar */
  .sidebar-inner {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  /* Top bar */
  .top-bar-links { display: none; }

  /* Header: search bar turun ke baris kedua */
  .header-main {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .site-logo { flex: 1; }

  /* Logo lebih kecil di mobile */
  .site-logo .custom-logo-link img,
  .site-logo img.custom-logo {
    height: 36px;
    max-width: 140px;
    max-height: 36px;
  }

  .header-search {
    display: flex;
    width: 100%;
    order: 3;
    margin-top: 8px;
  }
  .header-actions { gap: 6px; }
  .btn-icon { width: 32px; height: 32px; }

  /* Navigation scroll horizontal */
  .main-nav {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-menu { flex-wrap: nowrap; white-space: nowrap; }
  .nav-menu > li > a { padding: 10px 10px; font-size: 12px; }

  /* Content area */
  .content-area {
    flex-direction: column;
  }
  .sidebar { width: 100%; }

  /* Grid */
  .news-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .three-col-section { grid-template-columns: 1fr; }

  /* col-section: horizontal card */
  .col-section .news-card {
    flex-direction: row;
    align-items: flex-start;
  }
  .col-section .news-card .card-thumb {
    width: 90px;
    height: 68px;
  }

  /* Article */
  .article-title { font-size: 22px; }
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .share-bar { margin-left: 0; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Hero slider height — homepage & archive/category */
  .hero-slider { height: 240px; }
  .slide img { height: 240px; object-fit: cover; object-position: center; }

  /* Single post mobile */
  .article-wrapper { padding: 14px; }

  /* Archive hero label */
  .cat-hero-label { font-size: 11px; padding: 8px 0 6px; }

  /* Archive featured post — stack vertical */
  .cat-featured-post {
    grid-template-columns: 1fr;
  }
  .cat-featured-thumb { min-height: 200px; }
  .cat-featured-title { font-size: 18px; }

  /* Archive top grid — 1 kolom */
  .cat-top-grid { grid-template-columns: 1fr; }

  /* Archive list card — selalu horizontal */
  .cat-list-card {
    flex-direction: row;
    align-items: flex-start;
  }
  .cat-list-thumb {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
  }
  .cat-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .cat-list-title { font-size: 13px; }

  /* KB: 2 kolom di mobile */
  .kb-title { font-size: 12px; }

  /* Pagination */
  .pagination a, .pagination span {
    min-width: 30px;
    height: 30px;
    font-size: 12px;
  }

  /* Video */
  .video-grid { grid-template-columns: 1fr; }
  .video-list { grid-template-columns: 1fr; }

  /* News card: gambar kiri teks kanan */
  .news-card {
    flex-direction: row;
    align-items: flex-start;
  }
  .news-card .card-thumb {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
  }
  .news-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .card-title {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  /* KB carousel mobile */
  .kb-carousel-wrap { padding: 0 26px; }
  .kb-prev, .kb-next { width: 26px; height: 26px; font-size: 15px; }
  .kb-item { flex: 0 0 145px; min-width: 145px; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 20px; }
  .article-title { font-size: 18px; }
  .social-stats { grid-template-columns: 1fr 1fr; }

  /* Hero */
  .hero-slider { height: 200px; }
  .slide img { height: 200px; object-fit: cover; object-position: center; }
  .hero-section { padding: 0; }

  /* Container padding */
  .container { padding: 0 10px; }

  /* KB: 2 kolom di HP kecil */
  .kb-title { font-size: 11px; -webkit-line-clamp: 2; }
  .kb-meta { font-size: 10px; }

  /* Pagination */
  .pagination { gap: 3px; padding: 12px 0; }
  .pagination a, .pagination span {
    min-width: 28px;
    height: 28px;
    font-size: 11px;
  }

  /* Archive hero */
  .cat-hero-label { gap: 5px; font-size: 10px; }
  .cat-featured-title { font-size: 16px; }
  .cat-list-title { font-size: 12px; }
  .cat-list-thumb { width: 85px; height: 65px; }

  /* KB carousel HP kecil */
  .kb-carousel-wrap { padding: 0 22px; }
  .kb-prev, .kb-next { width: 22px; height: 22px; font-size: 13px; }
  .kb-item { flex: 0 0 125px; min-width: 125px; }

  /* News card HP kecil: tetap horizontal, tidak overlap */
  .news-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }
  .news-card .card-thumb {
    width: 85px;
    height: 65px;
    flex-shrink: 0;
    overflow: hidden;
  }
  .news-card .card-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .card-title {
    font-size: 12px;
    -webkit-line-clamp: 3;
  }
  .card-meta { font-size: 11px; gap: 4px; }
}
