/* ==========================================================================
   SKK GANTO UNIVERSITAS NEGERI PADANG (UNP)
   Official Modern Web Mockup - Native, Fast, Mobile-Optimized, PageSpeed 100
   Light & Dark Theme (Default: Light)
   ========================================================================== */

:root {
  /* Brand Palette - Warna Primer #d13635 - WCAG AA & AAA Compliant */
  --primary: #d13635;
  --primary-hover: #b32a29;
  --primary-text: #991b1b; /* High-contrast crimson (7.60:1 on #fef2f2, 8.31:1 on #FFFFFF - WCAG AAA) */
  --primary-light: #fef2f2;
  --primary-glow: rgba(209, 54, 53, 0.22);
  --accent: #EA580C;
  --dark-navy: #0F172A;

  /* Light Theme (Default) */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-surface: #F1F5F9;
  --bg-surface-subtle: #E2E8F0;
  --border-color: #CBD5E1;
  --border-light: #E2E8F0;
  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-inverse: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 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);
  --card-radius: 12px;
  --pill-radius: 9999px;
  --header-bg: rgba(255, 255, 255, 0.98);
  --ticker-bg: #FFF5F5;
  --ticker-text: #991b1b;
}

[data-theme="dark"] {
  --primary: #f87171;
  --primary-hover: #d13635;
  --primary-text: #fca5a5; /* High-contrast pastel red (7.71:1 on dark surface - WCAG AAA) */
  --bg-page: #0B0F19;
  --bg-card: #151D2F;
  --bg-surface: #1E293B;
  --bg-surface-subtle: #334155;
  --border-color: #243049;
  --border-light: #1A2337;
  --text-main: #F8FAFC;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.5);
  --header-bg: rgba(21, 29, 47, 0.98);
  --ticker-bg: #2A1719;
  --ticker-text: #FCA5A5;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Skip Link for Accessibility & SEO */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 10000;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   RESPONSIVE VISIBILITY UTILITIES
   ========================================================================== */
.desktop-only {
  display: none !important;
}

.mobile-only {
  display: flex !important;
}

@media (min-width: 992px) {
  .desktop-only {
    display: block !important;
  }
  .desktop-only.desktop-flex {
    display: flex !important;
  }
  .mobile-only {
    display: none !important;
  }
}

/* ==========================================================================
   HEADER COMPONENT (Centered Logo, Desktop Regular Menu & Mobile Hamburger)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  position: relative;
}

/* Header Columns: Left (Hamburger on Mobile / Date on Desktop) */
.header-left-col {
  display: flex;
  align-items: center;
  width: 240px;
}

.hamburger-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-main);
  gap: 5px;
  transition: all 0.2s ease;
}

.hamburger-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

[data-theme="dark"] .hamburger-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.desktop-date-tagline {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  line-height: 1.35;
}

.header-date {
  font-weight: 700;
  color: var(--text-main);
}

.header-tagline {
  color: var(--text-muted);
  font-style: italic;
}

/* Header Column: CENTER LOGO (RATA TENGAH) */
.header-center-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.brand-link-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-link-center:hover .brand-logo {
  transform: scale(1.02);
}

/* Header Column: Right (Search Button) */
.header-right-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 240px;
}

@media (max-width: 991px) {
  .header-main-row {
    padding: 8px 0;
  }
  .header-left-col {
    width: 44px;
  }
  .header-right-col {
    width: 44px;
  }
  .brand-logo {
    height: 38px;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--pill-radius);
  color: var(--text-secondary);
  background: var(--bg-surface);
  transition: all 0.2s ease;
}

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

[data-theme="dark"] .icon-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   DESKTOP REGULAR NAVIGATION BAR (Visible only on Desktop)
   ========================================================================== */
.desktop-nav-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 50;
}

.desktop-menu-list {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.desktop-menu-item {
  position: relative;
}

.desktop-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.15s ease;
  border-bottom: 2px solid transparent;
}

.desktop-menu-link:hover,
.desktop-menu-item.active .desktop-menu-link {
  color: var(--primary-text);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
}

[data-theme="dark"] .desktop-menu-link:hover,
[data-theme="dark"] .desktop-menu-item.active .desktop-menu-link {
  color: var(--primary-text);
  background: rgba(239, 68, 68, 0.15);
}

.dropdown-chevron {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.desktop-menu-item:hover .dropdown-chevron {
  transform: rotate(180deg);
}

/* Desktop Dropdown Menus (Floating above trending bar with high z-index) */
.desktop-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  list-style: none;
  display: none;
  z-index: 1000;
  animation: dropdownAnim 0.2s ease;
}

.desktop-menu-item:last-child .desktop-dropdown {
  left: auto;
  right: 0;
}

@keyframes dropdownAnim {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.desktop-menu-item.has-dropdown:hover .desktop-dropdown {
  display: block;
}

.desktop-dropdown li a {
  display: block;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.desktop-dropdown li a:hover,
.desktop-dropdown li a.active {
  background: var(--bg-surface);
  color: var(--primary-text);
  padding-left: 22px;
}

/* ==========================================================================
   MOBILE CATEGORY PILLS BAR (Visible only on Mobile)
   ========================================================================== */
.nav-scroll-wrapper {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.nav-pills {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-pills li a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--pill-radius);
  transition: all 0.2s ease;
}

.nav-pills li a:hover {
  color: var(--primary-text);
  background: var(--primary-light);
}

[data-theme="dark"] .nav-pills li a:hover {
  color: var(--primary-text);
  background: rgba(239, 68, 68, 0.2);
}

.nav-pills li a.active {
  color: #FFFFFF;
  background: var(--primary);
  box-shadow: 0 2px 6px var(--primary-glow);
}

/* Sub-category Filter Tabs on Specific Category Pages */
.subnav-tabs {
  background: var(--bg-surface);
  border-radius: var(--card-radius);
  padding: 6px;
  margin: 16px 0 24px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-tabs::-webkit-scrollbar {
  display: none;
}

.subnav-tab-item {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.subnav-tab-item:hover {
  color: var(--text-main);
  background: var(--bg-card);
}

.subnav-tab-item.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

/* Topik Terkini (Trending Hashtags Bar - Matching PDF) */
.trending-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 7px 0;
  font-size: 0.8rem;
}

.trending-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.trending-inner::-webkit-scrollbar {
  display: none;
}

.trending-label {
  font-weight: 700;
  color: #991b1b; /* High-contrast crimson (7.58:1 on #F1F5F9, 8.31:1 on #FFFFFF - Exceeds WCAG AAA) */
  display: flex;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .trending-label {
  color: #fca5a5; /* High-contrast pastel red (7.71:1 on dark surface - WCAG AAA) */
}

.trending-tag {
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-weight: 600;
  transition: all 0.15s ease;
}

.trending-tag:hover {
  color: #991b1b;
  border-color: #991b1b;
}

[data-theme="dark"] .trending-tag:hover {
  color: #fca5a5;
  border-color: #fca5a5;
}

/* ==========================================================================
   HAMBURGER DRAWER / OFF-CANVAS NAVIGATION MENU (Mobile)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.drawer-nav.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.drawer-close-btn {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-secondary);
  padding: 4px 8px;
}

.drawer-close-btn:hover {
  color: var(--primary);
}

.drawer-content {
  padding: 16px 0;
  flex: 1;
}

/* Theme Toggle inside Drawer Content (As Requested) */
.drawer-theme-box {
  margin: 0 16px 16px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-theme-info {
  display: flex;
  flex-direction: column;
}

.drawer-theme-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.drawer-theme-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.drawer-theme-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.drawer-theme-btn:hover {
  transform: scale(1.08);
}

.drawer-menu-list {
  list-style: none;
}

.drawer-menu-item {
  border-bottom: 1px solid var(--border-light);
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: background 0.15s ease, color 0.15s ease;
}

.drawer-link:hover,
.drawer-link.active {
  background: var(--bg-surface);
  color: var(--primary-text);
}

.drawer-link.active {
  border-left: 4px solid var(--primary);
}

.drawer-toggle-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.drawer-submenu {
  list-style: none;
  background: var(--bg-surface);
  display: none;
  padding: 6px 0;
}

.drawer-submenu.open {
  display: block;
}

.drawer-submenu li a {
  display: block;
  padding: 8px 20px 8px 36px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.drawer-submenu li a:hover,
.drawer-submenu li a.active {
  color: var(--primary-text);
  font-weight: 700;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Search Modal */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  backdrop-filter: blur(4px);
  padding: 20px;
  align-items: flex-start;
  justify-content: center;
}

.search-modal.active {
  display: flex;
}

.search-box-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  width: 100%;
  max-width: 600px;
  padding: 20px;
  margin-top: 50px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.search-input-group {
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-btn-submit {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
}

/* ==========================================================================
   HEADLINE / HERO CARD COMPONENT (Matching PDF design)
   ========================================================================== */
.hero-headline {
  margin: 16px 0 24px;
}

.headline-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.headline-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0F172A;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.headline-card:hover .headline-thumb img {
  transform: scale(1.03);
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.badge-tag {
  display: inline-block;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
}

.headline-title {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.headline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #E2E8F0;
  flex-wrap: wrap;
}

/* ==========================================================================
   SECTION TITLES (Red vertical bar accent as in PDF)
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

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

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.see-all-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-text);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   ARTICLE CARDS & GRIDS
   ========================================================================== */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

@media (min-width: 992px) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Horizontal Card for Mobile (Compact Feed) */
.article-card-horizontal {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  padding: 12px;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.article-card-horizontal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-thumb {
  width: 105px;
  min-width: 105px;
  height: 85px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
}

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

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

.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-text);
  text-transform: uppercase;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

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

/* Standard Vertical Card */
.article-card-vertical {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.article-card-vertical:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-vertical-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
}

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

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

.card-vertical-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 6px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   ARTIKEL / KOLOM / OPINI (Author-Centric + Photo Next to Title!)
   ========================================================================== */
.opinion-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.opinion-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.author-highlight-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

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

.author-title-group {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.author-role {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Side-by-side Title + Photo Row for Artikel/Kolom/Opini */
.opinion-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.opinion-title-col {
  flex: 1;
  min-width: 0;
}

.opinion-side-thumb {
  width: 100px;
  min-width: 100px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  flex-shrink: 0;
}

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

.opinion-card:hover .opinion-side-thumb img {
  transform: scale(1.06);
}

.opinion-category-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: inline-block;
}

.opinion-headline {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opinion-quote-body {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  padding-left: 12px;
  border-left: 3px solid var(--border-color);
}

.opinion-card:hover .opinion-quote-body {
  border-left-color: var(--primary);
}

.opinion-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SASTRA & BUDAYA AUTHOR AVATAR BOX (Foto Penulis Sastra Budaya)
   ========================================================================== */
.sastra-author-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
}

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

.sastra-author-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sastra-author-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.sastra-author-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   POPULAR LIST (Red Circle, White Number, Vertical Align Center!)
   ========================================================================== */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item {
  display: flex;
  align-items: center; /* Rata vertical align center */
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.popular-item:hover {
  border-color: var(--primary);
  transform: translateX(3px);
}

.popular-number {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%; /* Bulat */
  background: var(--primary); /* Merah */
  color: #FFFFFF; /* Nomor warna putih */
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 6px var(--primary-glow);
}

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

.popular-thumb-right {
  width: 76px;
  min-width: 76px;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface);
}

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

/* Media Thumbnail for Artikel/Kolom/Opini Terpopuler (Replacing Numbers) */
.popular-thumb-media {
  width: 80px;
  min-width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.popular-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.popular-item:hover .popular-thumb-media img {
  transform: scale(1.06);
}

/* ==========================================================================
   GANTO FOTO (Sliding Carousel - "Slide Fotonya Bergerak" & Gallery Grid)
   ========================================================================== */
.photo-slider-container {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  background: #000;
}

.photo-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.photo-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: #fff;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--pill-radius);
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
}

.slider-nav-btn:hover {
  background: var(--primary);
}

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

.slider-dots {
  position: absolute;
  bottom: 10px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--pill-radius);
  background: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-dot.active {
  width: 20px;
  background: var(--primary);
}

/* ==========================================================================
   PHOTO ALBUM 4-COLUMN BOX GRID
   ========================================================================== */
.photo-album-grid-4col {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

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

@media (min-width: 1024px) {
  .photo-album-grid-4col {
    grid-template-columns: repeat(4, 1fr);
  }
}

.album-box-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  height: 100%;
}

.album-box-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.album-box-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
}

.album-box-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.album-box-card:hover .album-box-thumb img {
  transform: scale(1.08);
}

.album-box-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(209, 54, 53, 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.album-box-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}

.album-box-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.album-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}

.album-box-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.album-box-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   GANTO TV (Video Player & YouTube Cards)
   ========================================================================== */
.youtube-connect-banner {
  background: linear-gradient(135deg, #991B1B, #d13635);
  color: #fff;
  border-radius: var(--card-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
  gap: 12px;
}

.youtube-btn-sub {
  background: #fff;
  color: #B91C1C;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--pill-radius);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-player-card {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s ease;
}

.video-play-overlay:hover {
  background: rgba(0,0,0,0.5);
}

.play-circle {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: var(--pill-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(211, 21, 27, 0.4);
}

/* Ganto TV Homepage Showcase (Proporsional 2-Kolom Elegan & 100% Responsif) */
.ganto-tv-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

@media (min-width: 640px) {
  .ganto-tv-showcase {
    padding: 18px;
    gap: 18px;
  }
}

@media (min-width: 860px) {
  .ganto-tv-showcase {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    padding: 22px;
    gap: 24px;
    align-items: stretch;
  }
}

.ganto-tv-player-col {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ganto-tv-embed-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-sm);
  min-height: 200px;
}

.ganto-tv-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ganto-tv-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
}

.ganto-tv-info-top {
  margin-bottom: 12px;
}

.ganto-tv-title {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 6px 0 8px;
  word-break: break-word;
}

.ganto-tv-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.ganto-tv-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ganto-tv-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ganto-tv-playlist {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-bottom: 14px;
  width: 100%;
}

.ganto-tv-playlist-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ganto-tv-playlist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
  margin-bottom: 4px;
  width: 100%;
  box-sizing: border-box;
}

.ganto-tv-playlist-item:hover {
  background: rgba(209, 54, 53, 0.06);
}

.ganto-tv-playlist-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(209, 54, 53, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ganto-tv-playlist-text {
  min-width: 0;
  flex: 1;
}

.ganto-tv-playlist-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.ganto-tv-playlist-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.ganto-tv-actions {
  margin-top: auto;
  padding-top: 8px;
}

@media (max-width: 640px) {
  .ganto-tv-actions a {
    display: flex !important;
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   PODCAST & SPOTIFY SECTION
   ========================================================================== */
.media-audio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.media-audio-card:hover {
  border-color: #15803D;
  transform: translateY(-2px);
}

.audio-cover {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background: linear-gradient(135deg, #15803D, #191414);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

/* ==========================================================================
   PUISI & SASTRA SPECIAL STYLING (Matching PDF design page 6 & 9)
   ========================================================================== */
.puisi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--card-radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.puisi-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.puisi-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 4px 0 12px;
  color: var(--text-main);
}

.puisi-verse-box {
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ==========================================================================
   E-PAPER DISPLAY (Frontpage Newspaper Mockup)
   ========================================================================== */
.epaper-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .epaper-banner {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
}

.epaper-cover-wrap {
  width: 150px;
  min-width: 150px;
  aspect-ratio: 256 / 362;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  flex-shrink: 0;
  margin: 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.epaper-cover-wrap:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px var(--primary-glow);
}

.epaper-cover-wrap img,
.epaper-thumb-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 256 / 362;
  object-fit: cover;
  display: block;
}

.epaper-archive-thumb {
  position: relative;
  width: 100%;
  max-width: 160px;
  aspect-ratio: 256 / 362;
  margin: 0 auto 12px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.epaper-edition-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--pill-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.epaper-card-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.epaper-btn-group {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   ARTICLE DETAIL PAGE (Google News & SEO Optimal)
   ========================================================================== */
.article-header {
  margin: 20px 0 16px;
}

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

.article-main-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 14px;
}

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

.author-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

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

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--pill-radius);
  background: var(--primary-light);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.share-buttons-row {
  display: flex;
  gap: 8px;
}

.share-btn,
.btn-share-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--pill-radius);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--bg-surface);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  margin: 20px 0;
  color: var(--text-secondary);
}

/* ==========================================================================
   GOOGLE EEAT & JOURNALISTIC TRANSPARENCY BOX (Trust & Standards)
   ========================================================================== */
.eeat-trust-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eeat-trust-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.eeat-trust-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.eeat-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary-text);
  border: 1px solid var(--primary-text);
  padding: 3px 10px;
  border-radius: var(--pill-radius);
  font-size: 0.74rem;
  font-weight: 700;
}

[data-theme="dark"] .eeat-verified-badge {
  color: var(--primary-text);
  border-color: var(--primary-text);
  background: rgba(239, 68, 68, 0.2);
}

.eeat-trust-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eeat-trust-list a {
  color: var(--primary-text);
  font-weight: 700;
  text-decoration: underline;
}

.eeat-trust-list a:hover {
  color: var(--primary-hover);
}

.eeat-trust-list li {
  position: relative;
  padding-left: 18px;
}

.eeat-trust-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease;
}

/* ==========================================================================
   MANDATORY LEGAL / EDITORIAL PAGES (Privacy Policy, Disclaimer, Redaksi, etc.)
   ========================================================================== */
.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 24px 0;
}

@media (min-width: 992px) {
  .legal-layout {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

.legal-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.legal-sidebar-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.legal-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-nav-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.legal-nav-list a:hover,
.legal-nav-list a.active {
  background: var(--primary);
  color: #FFFFFF;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.legal-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-text);
  margin-bottom: 14px;
}

.legal-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 18px 0 8px;
}

.legal-card p,
.legal-card li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-card ul,
.legal-card ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.redaksi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.redaksi-member-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.redaksi-member-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER (Transparency for Google News & Mandatory Menu Links)
   ========================================================================== */
.site-footer {
  background: #0B0F19;
  color: #CBD5E1;
  padding: 40px 0 20px;
  margin-top: 40px;
  border-top: 1px solid #1E293B;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 30px;
}

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

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.8fr 1fr 1.2fr 1.5fr;
  }
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 3px solid var(--primary);
  padding-left: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #CBD5E1;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #94A3B8;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-bottom p {
    width: 40%;
    margin: 0;
    text-align: left;
  }
  .footer-legal-inline {
    width: 60% !important;
    justify-content: flex-end;
  }
}

.footer-legal-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.footer-legal-inline a {
  color: #CBD5E1;
}

.footer-legal-inline a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   FOOTER SOCIAL MEDIA CHANNELS (Official SKK Ganto UNP)
   ========================================================================== */
.footer-social-wrap {
  margin-top: 18px;
}

.footer-social-title {
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1E293B;
  color: #CBD5E1;
  border: 1px solid #334155;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.08);
  color: #FFFFFF;
}

.social-icon-btn.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(214, 36, 159, 0.4);
}

.social-icon-btn.youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.social-icon-btn.tiktok:hover {
  background: #000000;
  border-color: #00F2FE;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.4);
  color: #00F2FE;
}

.social-icon-btn.twitter:hover {
  background: #000000;
  border-color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.social-icon-btn.facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-icon-btn.spotify:hover {
  background: #1DB954;
  border-color: #1DB954;
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.social-icon-btn.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.footer-social-list-text {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: #CBD5E1;
  margin-top: 10px;
}

.footer-social-list-text li a {
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-social-list-text li a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Go to Top Button (Replaces Floating Theme Toggle - Muncul saat scroll >= 50%) */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: var(--pill-radius);
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--primary-glow);
  z-index: 85;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.back-to-top-btn:active {
  transform: translateY(0) scale(0.96);
}

.icon-sun,
.icon-moon {
  transition: transform 0.2s ease;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}

.page-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==========================================================================
   ARTICLE BODY CONTENT STANDARD TYPOGRAPHY (EEAT & WCAG AAA COMPLIANT)
   ========================================================================== */
.article-body-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: break-word;
  letter-spacing: -0.005em;
  font-family: inherit;
  margin-bottom: 28px;
}

.article-body-content > p {
  margin-top: 0;
  margin-bottom: 1.45rem;
  line-height: 1.85;
  color: var(--text-main);
}

.article-body-content > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
  font-weight: 500;
}

.article-body-content h2,
.article-body-content h3,
.article-body-content h4 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.35;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.article-body-content h2 {
  font-size: 1.4rem;
}

.article-body-content h3 {
  font-size: 1.22rem;
}

.article-body-content h4 {
  font-size: 1.08rem;
}

.article-body-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.article-body-content a:hover {
  color: var(--primary-dark, #b91c1c);
  text-decoration-thickness: 2px;
}

.article-body-content blockquote {
  margin: 1.8rem 0;
  padding: 16px 20px;
  background: rgba(209, 54, 53, 0.04);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
}

.article-body-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-body-content ul,
.article-body-content ol {
  margin: 1.2rem 0 1.5rem 1.6rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body-content li {
  margin-bottom: 0.45rem;
  padding-left: 4px;
}

.article-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.article-body-content figure {
  margin: 1.8rem 0;
  text-align: center;
}

.article-body-content figcaption {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.4;
}

.article-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.95rem;
}

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

.article-body-content th {
  background: var(--bg-tag);
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   INLINE BACA JUGA (RELATED NEWS IN-BODY CARD)
   ========================================================================== */
.inline-baca-juga {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 12px 18px;
  margin: 1.6rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.inline-baca-juga:hover {
  transform: translateX(4px);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(209, 54, 53, 0.12);
}

.inline-baca-juga-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.inline-baca-juga-link {
  flex: 1;
  min-width: 200px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.inline-baca-juga-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================================================
   EEAT JOURNALISM & TRANSPARENCY TRUST BOX (END OF CONTENT)
   ========================================================================== */
.eeat-trust-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid #16a34a;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 2rem 0;
  font-size: 0.86rem;
  line-height: 1.65;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.eeat-trust-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.eeat-trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.eeat-trust-title {
  font-weight: 800;
  color: var(--text-main);
  font-size: 0.92rem;
}

.eeat-trust-desc {
  margin: 0 0 8px;
  color: var(--text-secondary);
}

.eeat-trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  margin-top: 6px;
}

.eeat-trust-links a {
  color: var(--primary-text);
  font-weight: 700;
  text-decoration: none;
}

.eeat-trust-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   AUTHOR HIGHLIGHT HEADER FOR ARTIKEL & OPINI
   ========================================================================== */
.author-highlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 14px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.author-highlight-header:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(209, 54, 53, 0.35);
  border-left-color: var(--primary);
}

.author-highlight-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.author-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
}

.author-avatar-wrap .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  background: var(--bg-card);
  display: block;
}

.author-avatar-wrap .author-verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.author-highlight-header .author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.author-highlight-header .author-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.35;
}

.author-highlight-header .author-oleh-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--primary-text);
}

.author-highlight-header .author-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.15s ease;
}

.author-highlight-header .author-name:hover {
  color: var(--primary);
  text-decoration: underline;
}

.author-highlight-header .author-title {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.author-highlight-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  margin-left: auto;
}

.author-highlight-meta .meta-dot {
  color: var(--text-muted);
}

.author-highlight-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 640px) {
  .author-highlight-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
  }
  .author-highlight-meta {
    width: 100%;
    margin-left: 0;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    font-size: 0.78rem;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   WYSIWYG Standar Editorial Content Styles (Figures, Captions, Social Embeds)
   ========================================================================== */
.article-body-content figure.article-figure {
  margin: 24px 0;
  display: block;
}

.article-body-content figure.article-figure.align-center {
  text-align: center;
  max-width: 100%;
}

.article-body-content figure.article-figure.align-left {
  float: left;
  max-width: 48%;
  margin: 8px 24px 16px 0;
}

.article-body-content figure.article-figure.align-right {
  float: right;
  max-width: 48%;
  margin: 8px 0 16px 24px;
}

.article-body-content figure.article-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.article-body-content figure.article-figure figcaption {
  font-size: 0.82rem;
  color: var(--text-secondary, #64748b);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
  padding: 0 8px;
}

.article-body-content .media-embed {
  margin: 24px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background: var(--bg-surface, #f8fafc);
}

.article-body-content .media-embed.youtube-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.article-body-content .media-embed.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   GAYA SASTRA & BUDAYA (Literer, Estetis, Majalah Seni)
   ========================================================================== */
.sastra-banner-header {
  background: linear-gradient(135deg, rgba(209, 54, 53, 0.07) 0%, rgba(180, 83, 9, 0.06) 100%);
  border: 1px solid rgba(209, 54, 53, 0.15);
  border-left: 5px solid var(--primary);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.sastra-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.sastra-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(209, 54, 53, 0.35);
}

.sastra-card-puisi {
  border-left: 4px solid #b45309;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(254, 243, 199, 0.15) 100%);
}

.sastra-card-cerpen {
  border-left: 4px solid var(--primary);
}

.sastra-card-resensi {
  border-left: 4px solid #047857;
}

.sastra-verse-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-main);
  background: rgba(180, 83, 9, 0.05);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 12px 0 16px;
  border-left: 3px solid #b45309;
}

.sastra-narrative-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 10px 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   GAYA ARTIKEL & OPINI (Pemikiran Intelektual, Kolumnis & Akademisi)
   ========================================================================== */
.opini-banner-header {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.04) 0%, rgba(209, 54, 53, 0.06) 100%);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.opinion-thought-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.opinion-thought-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(209, 54, 53, 0.35);
}

.opinion-pull-quote {
  background: rgba(209, 54, 53, 0.035);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
  margin: 12px 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
