/*
Theme Name: Berita Tangerang Pro
Theme URI: https://www.beritatangerang.co.id
Author: Antigravity Media Team
Author URI: https://www.beritatangerang.co.id
Description: Tema Portal Berita Modern, Super Cepat, 100% Responsif HP (Mobile View), dan Dioptimasi Penuh untuk SEO Google Berita & Google Discover.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: berita-tangerang
Tags: news, blog, magazine, responsive-layout, seo-friendly, custom-header, grid-layout
*/

/* ==========================================================================
   DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;

  /* Color Palette */
  --color-primary: #dc2626;       /* Editorial Tangerang Red */
  --color-primary-hover: #b91c1c;
  --color-primary-light: #fef2f2;
  --color-secondary: #0f172a;     /* Deep Slate Navy */
  --color-accent: #2563eb;        /* Royal Blue */
  --color-accent-amber: #f59e0b;  /* Warning / Highlight */

  /* Neutral Tones */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-subtle: #e2e8f0;

  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 24px -4px rgba(220, 38, 38, 0.15);

  /* Layout */
  --container-width: 1240px;
  --container-padding: 1.25rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}

/* Dark Mode Support */
[data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-surface: #131b2e;
  --bg-surface-elevated: #1a243b;
  --bg-muted: #1e293b;
  --bg-subtle: #334155;
  --border-color: #1e293b;
  --border-dark: #334155;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --color-primary-light: #450a0a;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 60px; /* Space for mobile bottom bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

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

img, picture, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.site-container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.site-main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .site-main-layout {
    grid-template-columns: 8fr 4fr;
  }
}

/* ==========================================================================
   MAIN BRAND HEADER & ACTIONS
   ========================================================================== */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0 1.15rem 0;
  position: relative;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.site-header .site-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
}

/* Vertical hierarchy for logo + tagline + date */
.site-branding {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 0.25rem !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

.brand-logo-text {
  font-size: 2.35rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.8px !important;
  line-height: 1 !important;
  margin: 0 0 0.15rem 0 !important;
  padding: 0 !important;
  display: block !important;
}

.brand-logo-text a {
  text-decoration: none !important;
  color: var(--color-secondary) !important;
  display: inline-block !important;
  transition: opacity var(--transition-fast) !important;
}

.brand-logo-text a:hover {
  opacity: 0.9 !important;
}

[data-theme="dark"] .brand-logo-text a {
  color: #ffffff !important;
}

.brand-logo-text span {
  color: var(--color-primary) !important;
}

.brand-tagline {
  font-size: 0.8125rem !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  letter-spacing: 0.1px !important;
}

.brand-date-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-top: 0.35rem !important;
}

.brand-date-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-size: 0.75rem !important;
  color: var(--color-primary) !important;
  font-weight: 700 !important;
  background: rgba(220, 38, 38, 0.08) !important;
  padding: 0.22rem 0.65rem !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid rgba(220, 38, 38, 0.2) !important;
}

[data-theme="dark"] .brand-date-badge {
  background: rgba(220, 38, 38, 0.16) !important;
  color: #fca5a5 !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
}

.brand-date-badge svg {
  width: 12px !important;
  height: 12px !important;
  color: inherit !important;
  flex-shrink: 0 !important;
}

.brand-edition-badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  font-weight: 600 !important;
  background: var(--bg-muted) !important;
  padding: 0.22rem 0.55rem !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-color) !important;
}

/* Header Right Actions */
.header-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-left: auto !important;
}

.header-quick-links {
  display: none;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

@media (min-width: 1024px) {
  .header-quick-links {
    display: flex !important;
  }
}

.header-quick-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.header-quick-links a:hover {
  color: var(--color-primary);
}

.header-sep {
  color: var(--border-dark);
  font-size: 0.625rem;
}

.header-actions .theme-toggle-btn {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.header-actions .theme-toggle-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

[data-theme="dark"] .header-actions .theme-toggle-btn {
  background: var(--bg-surface-elevated);
  border-color: var(--border-color);
  color: #ffffff;
}

[data-theme="dark"] .header-actions .theme-toggle-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Mobile buttons: search & drawer */
.menu-toggle-btn, .search-toggle-btn {
  display: none !important; /* Strictly hidden on desktop */
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.menu-toggle-btn:hover, .search-toggle-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

@media (max-width: 1023px) {
  .menu-toggle-btn, .search-toggle-btn {
    display: inline-flex !important;
  }
  .brand-logo-text {
    font-size: 1.75rem !important;
  }
}

/* ==========================================================================
   MAIN NAVIGATION (STICKY, RED-ACCENTED DESKTOP BAR)
   ========================================================================== */
.site-navigation-wrap {
  background-color: #0b1120;
  border-top: 3px solid var(--color-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: none;
}

@media (min-width: 1024px) {
  .site-navigation-wrap {
    display: block;
  }
}

.main-navigation-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.main-navigation-menu > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.main-navigation-menu > li > a:hover,
.main-navigation-menu > li.current-menu-item > a {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-bottom-color: var(--color-primary);
}

.main-navigation-menu > li.active-home > a {
  background-color: var(--color-primary);
  color: #ffffff;
  border-bottom-color: transparent;
}

.nav-search-form {
  margin-left: auto;
  position: relative;
}

.nav-search-form input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 0.42rem 1.1rem 0.42rem 2.25rem;
  color: #ffffff;
  font-size: 0.8125rem;
  outline: none;
  transition: all var(--transition-fast);
  width: 210px;
}

.nav-search-form input:focus {
  background: rgba(255, 255, 255, 0.18);
  width: 270px;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.4);
}

.nav-search-form input::placeholder {
  color: #94a3b8;
}

.nav-search-form svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #94a3b8;
  pointer-events: none;
}

/* ==========================================================================
   TRENDING TOPICS BAR (DETIK / KOMPAS EDITORIAL STYLE)
   ========================================================================== */
.trending-bar-wrap {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.45rem 0;
  font-size: 0.8125rem;
  position: relative;
  z-index: 98;
}

.trending-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.trending-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.trending-bar-label svg {
  color: var(--color-primary);
}

.trending-tags-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
  padding: 0.1rem 0;
}

.trending-tags-scroll::-webkit-scrollbar {
  display: none;
}

.trending-tag-item {
  display: inline-block;
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.trending-tag-item:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

[data-theme="dark"] .trending-tag-item {
  background: var(--bg-surface-elevated);
  border-color: var(--border-color);
  color: var(--text-main);
}

[data-theme="dark"] .trending-tag-item:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border-color: #dc2626;
}

/* ==========================================================================
   MOBILE OFF-CANVAS DRAWER
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(2px);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  max-width: 85%;
  height: 100%;
  background-color: var(--bg-surface);
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(320px);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  padding: 1.25rem;
  background-color: var(--color-secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.drawer-title span {
  color: var(--color-primary);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.drawer-search {
  padding: 1rem;
  background: var(--bg-muted);
}

.drawer-search form {
  position: relative;
}

.drawer-search input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.875rem;
}

.drawer-search svg {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.drawer-menu {
  padding: 1rem 0;
  flex: 1;
}

.drawer-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.drawer-menu li a:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MOBILE BOTTOM BAR (Smartphones HP View)
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 990;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  gap: 0.2rem;
  text-decoration: none;
  flex: 1;
  height: 100%;
}

.mobile-bottom-item.active, .mobile-bottom-item:hover {
  color: var(--color-primary);
}

.mobile-bottom-item svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   HERO / HEADLINE SECTION (Portal News Showcase)
   ========================================================================== */
.hero-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-news-grid {
    grid-template-columns: 7fr 5fr;
  }
}

/* Big Main Headline Card */
.main-headline-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 768px) {
  .main-headline-card {
    min-height: 440px;
  }
}

.main-headline-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.main-headline-card:hover img {
  transform: scale(1.04);
}

.main-headline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(15, 23, 42, 0.7) 60%, rgba(15, 23, 42, 0.95) 100%);
  pointer-events: none;
}

.main-headline-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  color: #ffffff;
}

.news-badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}

.main-headline-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .main-headline-title {
    font-size: 1.75rem;
  }
}

.main-headline-title a {
  color: #ffffff;
}

.main-headline-title a:hover {
  color: #fca5a5;
}

.news-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.news-meta-row svg {
  width: 14px;
  height: 14px;
  margin-right: 0.25rem;
  display: inline-block;
  vertical-align: -2px;
}

/* Sub Headlines Stack (Right Column of Hero) */
.sub-headlines-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 500px) and (max-width: 767px) {
  .sub-headlines-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sub-headline-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-secondary);
  box-shadow: var(--shadow-sm);
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sub-headline-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sub-headline-card:hover img {
  transform: scale(1.05);
}

.sub-headline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 10%, rgba(15, 23, 42, 0.75) 65%, rgba(15, 23, 42, 0.95) 100%);
  pointer-events: none;
}

.sub-headline-content {
  position: relative;
  z-index: 2;
  padding: 0.85rem 1rem;
  color: #ffffff;
}

.sub-headline-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.sub-headline-title a {
  color: #ffffff;
}

.sub-headline-title a:hover {
  color: #fca5a5;
}

/* ==========================================================================
   SECTION HEADINGS WITH STYLISH ACCENT
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background-color: var(--color-primary);
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title-icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.section-view-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.section-view-all:hover {
  text-decoration: underline;
}

/* ==========================================================================
   NEWS CARDS & STREAMS (Content Column)
   ========================================================================== */
.latest-news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-card-horizontal {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 576px) {
  .news-card-horizontal {
    grid-template-columns: 180px 1fr;
    gap: 1.25rem;
    padding: 1rem;
  }
}

.news-card-horizontal:hover {
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-thumb-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-muted);
}

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

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

.news-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

@media (min-width: 576px) {
  .news-card-title {
    font-size: 1.125rem;
  }
}

.news-card-title a {
  color: var(--text-main);
}

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

.news-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: none;
}

@media (min-width: 576px) {
  .news-card-excerpt {
    display: -webkit-box;
  }
}

.news-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 2-Column Grid News (Section Highlight) */
.news-two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .news-two-col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-card-vertical {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.news-card-vertical:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(220, 38, 38, 0.4);
}

.news-card-vertical .news-thumb-wrap {
  aspect-ratio: 16/9;
  border-radius: 0;
}

.news-card-vertical .news-card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-vertical .news-card-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar-widget {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

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

.trending-rank {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-light);
  line-height: 1;
  min-width: 24px;
}

.trending-item:nth-child(1) .trending-rank { color: #dc2626; }
.trending-item:nth-child(2) .trending-rank { color: #ea580c; }
.trending-item:nth-child(3) .trending-rank { color: #d97706; }

.trending-content {
  flex: 1;
}

.trending-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.trending-title a {
  color: var(--text-main);
}

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

/* Quick Service Widget (SIM Keliling & Info Penting Tangerang) */
.service-widget-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.service-widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.service-widget-title svg {
  color: #f59e0b;
}

.service-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
}

.service-info-item:last-child {
  margin-bottom: 0;
}

.service-info-item svg {
  width: 16px;
  height: 16px;
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Category Pill Badges */
.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-pill {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.category-pill:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* ==========================================================================
   SINGLE ARTICLE / DETAIL BERITA (SEO Optimized)
   ========================================================================== */
.article-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .article-container {
    padding: 2.25rem;
  }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

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

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

.article-header {
  margin-bottom: 1.5rem;
}

.article-headline {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .article-headline {
    font-size: 2.25rem;
  }
}

.article-meta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.author-name {
  font-weight: 700;
  color: var(--text-main);
}

.article-date-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

/* Share Buttons */
.social-share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.share-btn:hover {
  opacity: 0.9;
  color: #ffffff;
}

.share-btn-wa { background-color: #25d366; }
.share-btn-fb { background-color: #1877f2; }
.share-btn-tw { background-color: #0f1419; }
.share-btn-tg { background-color: #229ed9; }
.share-btn-copy { background-color: #64748b; }

/* Article Hero Image with Caption */
.article-featured-image {
  margin-bottom: 1.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-muted);
}

.article-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.image-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.5rem 0.75rem;
  background: var(--bg-muted);
  border-left: 3px solid var(--color-primary);
}

/* Typography of Article Body */
.entry-content {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-main);
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  padding-left: 0.6rem;
  border-left: 4px solid var(--color-primary);
}

.entry-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.entry-content blockquote {
  font-family: var(--font-primary);
  font-style: italic;
  background: var(--bg-muted);
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.05rem;
  color: var(--text-main);
}

.entry-content ul, .entry-content ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.entry-content ol li {
  list-style: decimal;
}

.entry-content strong {
  font-weight: 700;
  color: var(--text-main);
}

/* Article Tags */
.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.article-tags-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.article-tag-item {
  font-size: 0.8125rem;
  background: var(--bg-muted);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.article-tag-item:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* Author Box */
.author-bio-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

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

.author-bio-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.author-bio-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-secondary);
  color: #cbd5e1;
  border-top: 3px solid var(--color-primary);
  margin-top: auto;
  font-size: 0.875rem;
}

.footer-top {
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 4fr 2fr 3fr 3fr;
  }
}

.footer-col-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-brand-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-brand-title span {
  color: var(--color-primary);
}

.footer-desc {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.footer-links-list li {
  margin-bottom: 0.6rem;
}

.footer-links-list a {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-press-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 1rem;
  line-height: 1.5;
}

.footer-bottom {
  background-color: #090d16;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-bottom .site-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom .site-container {
    flex-direction: row;
    text-align: left;
  }
}

/* ==========================================================================
   PAGINATION (MODERN EDITORIAL NEWS STYLE)
   ========================================================================== */
.pagination-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  margin: 3rem 0 1.5rem 0 !important;
  flex-wrap: wrap !important;
}

.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 0.85rem !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-main) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  transition: all var(--transition-fast) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.page-numbers:hover {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25) !important;
}

.page-numbers.current {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
  cursor: default !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3) !important;
}

.page-numbers.dots {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  cursor: default !important;
  box-shadow: none !important;
  min-width: 24px !important;
}

.page-numbers.prev,
.page-numbers.next {
  font-weight: 800 !important;
  padding: 0 1rem !important;
}

[data-theme="dark"] .page-numbers {
  background: var(--bg-surface-elevated) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .page-numbers:hover,
[data-theme="dark"] .page-numbers.current {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   COMMENTS SECTION (Redesigned Editorial Style)
   ========================================================================== */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.comments-header-box {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.comments-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.comments-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.comments-main-title svg {
  color: var(--color-primary);
}

.comments-count-badge {
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.comments-guideline-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Comments List */
.comments-list-wrap {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-card-item {
  list-style: none;
}

.comment-card-inner {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.comment-card-inner:hover {
  border-color: rgba(220, 38, 38, 0.3);
}

.comment-meta-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.comment-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.comment-author-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comment-author-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.comment-author-name a {
  color: var(--text-main);
}

.comment-author-name a:hover {
  color: var(--color-primary);
}

.comment-role-badge {
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.comment-post-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
}

.comment-waiting-moderation {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
  font-size: 0.8125rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .comment-waiting-moderation {
  background-color: #451a03;
  border-color: #78350f;
  color: #fde68a;
}

.comment-text-body {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.comment-text-body p:last-child {
  margin-bottom: 0;
}

.comment-reply-wrap {
  text-align: right;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.comment-reply-link:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* Nested Replies */
.comments-list-wrap .children {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 2px solid var(--border-color);
}

@media (min-width: 768px) {
  .comments-list-wrap .children {
    padding-left: 2.5rem;
  }
}

/* Empty State */
.comments-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-muted);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
}

.comments-empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.comments-empty-state h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.comments-empty-state p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
}

/* Comment Form Respond Box */
.comment-respond-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .comment-respond-wrapper {
    padding: 2rem;
  }
}

.comment-reply-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cancel-reply-wrap a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #dc2626;
  text-decoration: underline;
  margin-left: 0.5rem;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .comment-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.comment-field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.comment-input-field,
.comment-textarea-field {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  outline: none;
}

.comment-input-field:focus,
.comment-textarea-field:focus {
  border-color: var(--color-primary);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.comment-textarea-field {
  resize: vertical;
  min-height: 110px;
}

.comment-submit-btn {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.comment-submit-btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.comment-submit-btn:active {
  transform: translateY(0);
}

