/**
 * InfoMinang Media Portal - Modern Design System
 * Colors: White, Black, Red Crimson (#D32F2F / #E50914) & Modern Gradients
 */

:root {
  /* Colors - Light Theme (Default) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-secondary: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --border-color: #e2e8f0;
  --border-color-light: #f1f5f9;
  
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --primary-red: #e50914;
  --primary-red-hover: #cc0812;
  --primary-red-dark: #990000;
  --primary-red-glow: rgba(229, 9, 20, 0.2);
  --primary-red-light: rgba(229, 9, 20, 0.08);

  --accent-gold: #f59e0b;
  --accent-blue: #2563eb;
  --accent-green: #10b981;

  --gradient-red: linear-gradient(135deg, #e50914 0%, #990000 100%);
  --gradient-dark: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 60%, rgba(15, 23, 42, 0.98) 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 8px 20px -4px rgba(229, 9, 20, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --container-width: 1240px;
  --header-height: 72px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
body.dark-mode {
  --bg-body: #0b0f17;
  --bg-surface: #121927;
  --bg-surface-secondary: #1a2334;
  --bg-surface-hover: #222d42;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-light: rgba(255, 255, 255, 0.04);

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --primary-red-light: rgba(229, 9, 20, 0.15);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.brand-logo .logo-dark {
  display: none;
}
.brand-logo .logo-light {
  display: block;
}

body.dark-mode .brand-logo .logo-light {
  display: none;
}
body.dark-mode .brand-logo .logo-dark {
  display: block;
}


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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

/* Progress Bar at Top */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: var(--gradient-red);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ==========================================================================
   TOP BAR (1 Baris: Date + Trending Ticker + Socials)
   ========================================================================== */
.site-topbar {
  background-color: #0b0f17;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 0;
  height: 38px;
  display: flex;
  align-items: center;
}

.topbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

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

.topbar-date {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 0.78rem;
}

.topbar-date svg {
  width: 13px;
  height: 13px;
  color: var(--primary-red);
}

.topbar-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 12px;
}

.topbar-ticker .ticker-badge {
  background: var(--gradient-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-ticker .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.topbar-ticker .ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 20px;
}

.topbar-ticker .ticker-list {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
}

.topbar-ticker .ticker-item {
  height: 20px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.topbar-ticker .ticker-item a {
  color: #e2e8f0;
  text-decoration: none;
}

.topbar-ticker .ticker-item a:hover {
  color: #ffffff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-socials a {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-socials a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   ADAPTIVE RESPONSIVE NAVIGATION BAR (Fills empty space on mobile with menus)
   ========================================================================== */
.site-navbar {
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--primary-red);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.navbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  height: 58px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  overflow: visible;
}

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

.brand-logo img {
  height: 36px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: block;
  padding: 8px 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  letter-spacing: -0.2px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-red);
  background-color: var(--bg-surface-secondary);
}

.nav-link.home-icon {
  padding-left: 6px;
  padding-right: 6px;
  color: var(--primary-red);
  display: flex;
  align-items: center;
}

.has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
  white-space: nowrap;
  transition: var(--transition);
}

.has-dropdown.active .dropdown-toggle-btn {
  color: var(--primary-red);
  background-color: var(--bg-surface-secondary);
}

.has-dropdown.active .dropdown-toggle-btn svg {
  transform: rotate(180deg);
}

.has-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 220px;
  max-height: 75vh;
  overflow-y: auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 35px -4px rgba(0, 0, 0, 0.2), 0 6px 10px -3px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  margin-top: 2px;
  z-index: 1200;
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Invisible hover bridge connecting trigger button directly to dropdown menu */
.has-dropdown .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

.has-dropdown.active .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .dropdown-toggle-btn:hover,
  .has-dropdown:hover .dropdown-toggle-btn {
    color: var(--primary-red);
    background-color: var(--bg-surface-secondary);
  }

  .has-dropdown:hover .dropdown-toggle-btn svg {
    transform: rotate(180deg);
  }

  .has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-section-title {
  padding: 6px 14px 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.dropdown-divider {
  border-top: 1px solid var(--border-color);
  margin: 6px 0;
}

.dropdown-item {
  display: block;
  padding: 8px 14px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item.active {
  background-color: var(--bg-surface-secondary);
  color: var(--primary-red);
  padding-left: 18px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle-btn-nav {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn-nav:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background: var(--bg-surface-hover);
}

.search-trigger-btn {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-trigger-btn kbd {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.7rem;
  font-family: monospace;
}

.search-trigger-btn:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* ==========================================================================
   RESPONSIVE NAVBAR SIZING
   ========================================================================== */
.nav-overflow-hidden {
  display: none !important;
}

@media (max-width: 479px) {
  .brand-logo img { height: 26px; max-width: 95px; }
  .navbar-wrapper { height: 48px; gap: 4px; }
  .nav-left { gap: 4px; }
  .nav-link { padding: 4px 6px; font-size: 0.78rem; }
  .dropdown-toggle-btn { padding: 4px 6px; font-size: 0.75rem; }
  .search-trigger-btn { padding: 5px 7px; }
  .theme-toggle-btn-nav { padding: 5px 7px; }
}

@media (min-width: 480px) and (max-width: 699px) {
  .brand-logo img { height: 28px; max-width: 110px; }
  .navbar-wrapper { height: 50px; gap: 6px; }
  .nav-left { gap: 6px; }
  .nav-link { padding: 5px 8px; font-size: 0.82rem; }
  .dropdown-toggle-btn { padding: 5px 8px; font-size: 0.78rem; }
}

@media (min-width: 700px) and (max-width: 899px) {
  .brand-logo img { height: 32px; max-width: 125px; }
  .nav-left { gap: 8px; }
  .nav-link { padding: 6px 10px; font-size: 0.85rem; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .brand-logo img { height: 34px; max-width: 140px; }
  .nav-left { gap: 10px; }
  .nav-link { padding: 8px 10px; font-size: 0.86rem; }
}

/* ==========================================================================
   BREAKING NEWS TICKER
   ========================================================================== */
.breaking-ticker {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  margin-bottom: 24px;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-badge {
  background: var(--gradient-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow-glow);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(0.95); opacity: 1; }
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 24px;
}

.ticker-list {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
}

.ticker-item {
  height: 24px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 0.9rem;
}

.ticker-item a:hover {
  color: var(--primary-red);
}

/* ==========================================================================
   HERO MAGAZINE GRID
   ========================================================================== */
.hero-magazine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 36px;
}

@media (min-width: 992px) {
  .hero-magazine-grid {
    grid-template-columns: 1.2fr 1fr;
    min-height: 480px;
  }
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 380px;
}

.hero-subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  height: 100%;
}

@media (min-width: 576px) {
  .hero-subgrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .hero-subgrid {
    grid-template-rows: 1fr 1fr;
  }
}

.hero-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  display: block;
  min-height: 220px;
  height: 100%;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-card:hover .card-img-wrapper img,
.hero-main-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
}

.hero-subcard .hero-overlay {
  padding: 16px;
}

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

.hero-title {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}

.hero-subcard .hero-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

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

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

/* ==========================================================================
   MAIN CONTENT & SIDEBAR LAYOUT
   ========================================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr 340px;
  }
  .sidebar-column {
    align-self: start;
  }
}

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

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 48px;
  height: 2.5px;
  background: var(--primary-red);
}

.view-all-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

/* Article Cards Grid */
.news-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

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

.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.news-card-img {
  display: block;
  position: relative;
  width: 100%;
  height: 185px;
  max-height: 185px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-surface-secondary);
  flex-shrink: 0;
}

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

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

.news-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

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

.news-card-excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}

/* Horizontal Article Card */
.news-card-horizontal {
  display: flex;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.news-card-horizontal:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(229, 9, 20, 0.3);
}

.horizontal-img {
  width: 130px;
  height: 90px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

/* Category Channel Horizontal News List */
.cat-news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.cat-news-item {
  display: flex;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  align-items: center;
}

.cat-news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(229, 9, 20, 0.3);
}

.cat-news-thumb {
  width: 240px;
  height: 155px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  background: var(--bg-surface-secondary);
}

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

.cat-news-item:hover .cat-news-thumb img {
  transform: scale(1.06);
}

.cat-news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.cat-news-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-main);
}

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

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

.cat-news-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .cat-news-item {
    gap: 14px;
    padding: 12px;
  }
  .cat-news-thumb {
    width: 120px;
    height: 90px;
  }
  .cat-news-title {
    font-size: 0.95rem;
  }
  .cat-news-excerpt {
    display: none;
  }
}

.horizontal-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontal-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 18px;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-red);
}

/* Trending Top 5 Rank List */
.trending-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color-light);
  align-items: center;
}

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

.trending-rank {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: #cbd5e1;
  width: 32px;
  flex-shrink: 0;
  text-align: center;
}

.trending-item:nth-child(1) .trending-rank { color: var(--primary-red); }
.trending-item:nth-child(2) .trending-rank { color: #f97316; }
.trending-item:nth-child(3) .trending-rank { color: #eab308; }

.trending-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

.trending-info h4 a:hover {
  color: var(--primary-red);
}

/* Newsletter Widget */
.newsletter-widget {
  background: var(--gradient-red);
  color: #ffffff;
  border: none;
}

.newsletter-widget h3, .newsletter-widget p {
  color: #ffffff;
}

.newsletter-widget h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.newsletter-widget p {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-btn {
  background: #ffffff;
  color: var(--primary-red);
  font-weight: 800;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   PROFILE CARD SOCIAL WIDGET (InfoAndalas Style Reference)
   ========================================================================== */
.profile-card-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  text-align: center;
  transition: var(--transition);
}

.profile-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.profile-avatar-wrapper {
  margin-bottom: 10px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.08) 0%, rgba(229, 9, 20, 0.16) 100%);
  border: 2.5px solid var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.2);
}

.profile-brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.verified-badge {
  flex-shrink: 0;
}

.profile-brand-url {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-social-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.profile-social-btn:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background-color: var(--bg-surface-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.08);
}

.profile-social-btn:hover svg {
  transform: scale(1.12);
}

.profile-card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color-light);
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SINGLE ARTICLE PAGE
   ========================================================================== */
.article-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

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

.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 10px;
  margin-bottom: 18px;
}

.article-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color-light);
  margin-bottom: 24px;
}

.author-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.author-mini-name {
  font-weight: 700;
  font-size: 0.95rem;
}

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

.font-size-btn {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.font-size-btn:hover {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.article-featured-image {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
  background-color: var(--bg-surface-secondary);
  box-shadow: var(--shadow-sm);
}

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

/* Social Share Toolbar */
.social-share-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.share-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  margin-right: 6px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  transition: var(--transition);
}

.share-wa { background-color: #25d366; }
.share-fb { background-color: #1877f2; }
.share-tw { background-color: #111827; }
.share-tg { background-color: #0088cc; }
.share-copy { background-color: #475569; }

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  opacity: 0.92;
}

/* Article Typography Body */
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

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

.article-content h2, .article-content h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.article-content blockquote {
  border-left: 4px solid var(--primary-red);
  background: var(--bg-surface-secondary);
  padding: 18px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-main);
}

.article-content ul, .article-content ol {
  margin: 18px 0 24px 24px;
}

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

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

/* Author Box */
.author-profile-box {
  display: flex;
  gap: 20px;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 36px 0;
}

.author-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-red);
}

.author-profile-info h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.author-profile-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Comments Section */
.comments-section {
  margin-top: 40px;
}

.comment-list {
  margin-bottom: 32px;
}

.comment-card {
  background: var(--bg-surface-secondary);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

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

.comment-date {
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.95rem;
  line-height: 1.6;
}

.comment-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-secondary);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px var(--primary-red-glow);
}

.btn-submit {
  background: var(--gradient-red);
  color: #ffffff;
  font-weight: 800;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.btn-submit:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* ==========================================================================
   MODAL & SEARCH
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-search-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-search-box {
  transform: translateY(0);
}

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

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  background: var(--bg-surface);
  z-index: 1300;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

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

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

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-link {
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.drawer-link:hover, .drawer-link.active {
  background: var(--primary-red-light);
  color: var(--primary-red);
}

/* Mobile Drawer Dropdown */
.mobile-dropdown-details summary {
  list-style: none;
}
.mobile-dropdown-details summary::-webkit-details-marker {
  display: none;
}
.dropdown-chevron {
  transition: transform 0.3s ease;
}
.mobile-dropdown-details[open] .dropdown-chevron {
  transform: rotate(180deg);
}
.mobile-dropdown-menu {
  padding-left: 12px;
  border-left: 2px solid var(--border-color);
  margin-left: 12px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-link.sub-link {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 14px;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 36px 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.9rem;
}

.page-link:hover, .page-link.active {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #0b0f17;
  color: #94a3b8;
  padding: 56px 0 24px;
  border-top: 3px solid var(--primary-red);
}

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

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

.footer-about h3 {
  color: #f8fafc;
  margin-bottom: 14px;
}

.footer-links h4 {
  color: #f8fafc;
  font-size: 1.1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary-red);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-align: center;
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-red);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE - Mobile First Full Suite
   ========================================================================== */

/* ---- Large Desktop (> 1240px) ---- */
@media (min-width: 1240px) {
  .container { padding-left: 24px; padding-right: 24px; }
}

/* ---- Tablet & smaller desktop (< 992px) ---- */
@media (max-width: 991px) {
  /* Topbar */
  .topbar-date-text { display: none; }
  .topbar-ticker { border-left: none; padding-left: 0; }

  /* Navbar */
  .navbar-wrapper { height: 54px; }
  .brand-logo img { height: 34px; max-width: 140px; }
  .nav-left { gap: 10px; }

  /* Search button compact */
  .search-btn-text,
  .search-btn-kbd { display: none !important; }
  .search-trigger-btn { padding: 6px 10px; }
  .theme-toggle-btn-nav { padding: 6px 8px; }

  /* Main layout: remove sidebar, full-width content */
  .main-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sidebar-column { order: 2; }
  .main-content-column { order: 1; }

  /* Hero magazine grid: stack */
  .hero-magazine-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  /* Article page */
  .article-container { padding: 24px; }
  .article-title { font-size: 1.75rem; }
  .article-meta-bar { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Author box */
  .author-profile-box { flex-direction: column; gap: 14px; }

  /* Share buttons: wrap on smaller screen */
  .social-share-toolbar { gap: 8px; }
  .share-btn { padding: 7px 10px; font-size: 0.8rem; }

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

  /* Cat news horizontal items: smaller thumb */
  .cat-news-thumb { width: 180px; height: 130px; }
  .cat-news-title { font-size: 1rem; }
}

/* ---- Tablet portrait (< 768px) ---- */
@media (max-width: 767px) {
  /* Container */
  .container { padding-left: 14px; padding-right: 14px; }

  /* Topbar: compact */
  .topbar-wrapper { gap: 8px; }
  .topbar-left { gap: 8px; }
  .topbar-ticker .ticker-badge { padding: 2px 6px; font-size: 0.65rem; }
  .topbar-ticker .ticker-item { font-size: 0.76rem; }
  .topbar-socials { gap: 8px; }

  /* Navbar */
  .brand-logo img { height: 32px; max-width: 130px; }
  .nav-actions { gap: 6px; }

  /* Hero main card */
  .hero-main-card { min-height: 260px; }
  .hero-title { font-size: 1.25rem; }

  /* Hero subgrid: 1 column */
  .hero-subgrid { grid-template-columns: 1fr; }
  .hero-subcard .hero-title { font-size: 0.92rem; }

  /* Cat news horizontal: smaller */
  .cat-news-item { padding: 14px; gap: 14px; }
  .cat-news-thumb { width: 140px; height: 110px; }
  .cat-news-title { font-size: 0.98rem; margin-bottom: 6px; }
  .cat-news-excerpt { display: none; }

  /* News cards: 1 column */
  .news-cards-grid { grid-template-columns: 1fr; }

  /* Article */
  .article-container { padding: 18px 16px; border-radius: var(--radius-md); }
  .article-title { font-size: 1.45rem; }
  .article-featured-image { max-height: 280px; border-radius: var(--radius-md); }
  .article-featured-image img { max-height: 280px; }
  .article-content { font-size: 1rem; line-height: 1.75; }

  /* Section headers: column mode, remove ::after to avoid overlap */
  .section-header { flex-direction: column; align-items: flex-start; gap: 2px; padding-bottom: 10px; border-bottom: 2.5px solid var(--border-color); }
  .section-title { font-size: 1.1rem; margin-bottom: 0; }
  .section-title::after { display: none; }
  .view-all-link { font-size: 0.8rem; }

  /* Horizontal news card */
  .news-card-horizontal { gap: 12px; padding: 12px; }
  .horizontal-img { width: 100px; height: 72px; }
  .horizontal-title { font-size: 0.88rem; margin-bottom: 4px; }

  /* Sidebar: make widgets compact */
  .sidebar-widget { padding: 18px; }
  .widget-title { font-size: 1rem; }

  /* Pagination */
  .pagination { gap: 5px; margin: 24px 0; }
  .page-link { min-width: 34px; height: 34px; font-size: 0.82rem; }

  /* Footer bottom: center */
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Category header card */
  .breadcrumbs { font-size: 0.78rem; }
}

/* ---- Mobile (< 576px) ---- */
@media (max-width: 575px) {
  /* Container */
  .container { padding-left: 12px; padding-right: 12px; }

  /* Topbar: minimal 1 baris */
  .site-topbar { height: 34px; padding: 4px 0; }
  .topbar-wrapper { gap: 6px; }
  .topbar-left { gap: 6px; }
  .topbar-date { display: none; }
  .topbar-ticker .ticker-badge { padding: 1px 5px; font-size: 0.62rem; }
  .topbar-ticker .ticker-item { font-size: 0.74rem; height: 18px; line-height: 18px; }
  .topbar-ticker .ticker-content { height: 18px; }
  .topbar-socials { gap: 6px; }
  .topbar-socials a svg { width: 12px; height: 12px; }

  /* Navbar: compact */
  .navbar-wrapper { height: 50px; }
  .brand-logo img { height: 28px; max-width: 120px; }
  .nav-actions { gap: 4px; }
  .search-trigger-btn { padding: 5px 8px; }
  .theme-toggle-btn-nav { padding: 5px 7px; }
  .mobile-menu-btn { padding: 4px; }

  /* Category page horizontal news list: very compact */
  .cat-news-item {
    padding: 12px;
    gap: 12px;
    align-items: flex-start;
  }
  .cat-news-thumb {
    width: 110px;
    height: 90px;
    flex-shrink: 0;
  }
  .cat-news-title { font-size: 0.9rem; margin-bottom: 4px; }
  .cat-news-excerpt { display: none; }
  .cat-news-content .post-meta { font-size: 0.72rem; }

  /* Section headers: mobile compact */
  .section-header { gap: 2px; padding-bottom: 8px; margin-bottom: 14px; }
  .section-title { font-size: 1rem; }
  .section-title::after { display: none; }
  .view-all-link { font-size: 0.78rem; }

  /* Horizontal news card: mobile */
  .news-card-horizontal { gap: 10px; padding: 10px; }
  .horizontal-img { width: 90px; height: 65px; }
  .horizontal-title { font-size: 0.85rem; line-height: 1.3; margin-bottom: 3px; }

  /* News cards: 1-column, compact */
  .news-cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-card-img { height: 160px; max-height: 160px; }
  .news-card-body { padding: 14px; }
  .news-card-title { font-size: 0.95rem; }

  /* Hero */
  .hero-main-card { min-height: 220px; }
  .hero-title { font-size: 1.05rem; }
  .hero-subcard .hero-title { font-size: 0.85rem; }
  .hero-overlay { padding: 16px; }

  /* Article */
  .article-container { padding: 14px 12px; }
  .article-title { font-size: 1.25rem; }
  .article-controls { gap: 6px; }
  .font-size-btn { padding: 5px 8px; font-size: 0.75rem; }
  .article-featured-image { max-height: 220px; }
  .article-featured-image img { max-height: 220px; }
  .article-content { font-size: 0.97rem; }
  .social-share-toolbar { gap: 6px; padding: 10px 0; }
  .share-btn { padding: 6px 8px; font-size: 0.75rem; gap: 4px; }
  .author-mini-avatar { width: 36px; height: 36px; }

  /* Related articles */
  .related-posts-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Comments form */
  .comment-form { padding: 16px; }
  .comment-form-grid { grid-template-columns: 1fr; }

  /* Sidebar: visible on mobile, stacked below content */
  .sidebar-column { order: 2; }
  .profile-card-widget { padding: 18px 14px; }
  .profile-avatar { width: 60px; height: 60px; }
  .profile-brand-name { font-size: 1.05rem; }
  .profile-brand-url { font-size: 0.78rem; }
  .profile-social-btn { padding: 9px 12px; font-size: 0.84rem; }

  /* Breadcrumbs compact */
  .breadcrumbs { font-size: 0.75rem; gap: 5px; }

  /* Pagination */
  .pagination { gap: 4px; }
  .page-link { min-width: 32px; height: 32px; padding: 0 8px; font-size: 0.8rem; }

  /* Footer: compact */
  .site-footer { padding: 36px 0 16px; }
  .footer-about h3 { font-size: 1rem; }
  .footer-links h4 { font-size: 0.95rem; }

  /* Modal: full width */
  .modal-overlay { padding: 60px 12px 12px; }
  .modal-search-box { padding: 16px; }

  /* Admin-style alerts on front-end */
  .form-control { padding: 10px 12px; }
}

/* ==========================================================================
   AD SLOT STYLES
   ========================================================================== */

.ad-slot {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-color);
}

.ad-slot a {
  display: block;
  line-height: 0;
}

.ad-slot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.ad-slot:hover img {
  transform: scale(1.01);
}

.ad-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* Header top banner */
.ad-header-top {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.ad-header-top .ad-slot, .ad-header_top {
  width: 100%;
  max-width: 728px;
  border-radius: var(--radius-md);
}

/* Sidebar ad */
.ad-sidebar-widget {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.ad-sidebar-widget .ad-slot, .ad-sidebar {
  width: 100%;
  max-width: 300px;
}

.ad-sidebar-widget .ad-slot img, .ad-sidebar img {
  border-radius: var(--radius-md);
}

/* In-feed ad (between article list) */
.ad-in-feed {
  margin: 28px 0;
  padding: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.ad-in-feed .ad-slot, .ad-in_feed {
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 728px;
}

/* Before footer ad */
.ad-before-footer {
  margin: 36px 0 24px 0;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.ad-before-footer .ad-slot, .ad-before_footer {
  width: 100%;
  max-width: 728px;
  border-radius: var(--radius-lg);
}

/* Article top/bottom ad */
.ad-article-slot {
  margin: 28px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.ad-article-slot .ad-slot, .ad-article_top, .ad-article_bottom {
  width: 100%;
  max-width: 728px;
  border-radius: var(--radius-lg);
}

@media (max-width: 767px) {
  .ad-slot img { border-radius: var(--radius-sm); }
  .ad-slot { border-radius: var(--radius-sm); }
  .ad-label { font-size: 0.6rem; padding: 2px 6px; }
}

/* In-article Baca Juga links */
.baca-juga-box a {
  color: var(--text-main);
  transition: var(--transition);
}

.baca-juga-box a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

/* In-article inline ads */
.ad-article_inline {
  margin: 28px auto;
  max-width: 728px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  justify-content: center;
  width: 100%;
}

.ad-article_inline .ad-slot {
  width: 100%;
  max-width: 728px;
}

/* Berita Selanjutnya link styling */
.selanjutnya-link {
  transition: var(--transition);
}

.selanjutnya-link:hover {
  text-decoration: underline !important;
  opacity: 0.9;
}

/* ==========================================================================
/* ==========================================================================
   SOCIAL SHARE BUTTONS (Sleek & Compact)
   ========================================================================== */
.article-share-top,
.article-share-bottom-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
  padding: 10px 14px;
  background: var(--bg-surface-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.article-share-bottom-box {
  margin: 28px 0;
  padding: 14px 18px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}

.share-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.share-top-label,
.share-bottom-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.share-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  font-family: inherit;
  line-height: 1;
}

.share-pill:hover {
  transform: translateY(-1px);
}

.share-pill-wa {
  background: #25D366;
  color: #ffffff !important;
}
.share-pill-wa:hover {
  background: #20ba5a;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.share-pill-fb {
  background: #1877F2;
  color: #ffffff !important;
}
.share-pill-fb:hover {
  background: #0d65d9;
  box-shadow: 0 3px 10px rgba(24, 119, 242, 0.3);
}

.share-pill-x {
  background: #0f1419;
  color: #ffffff !important;
}
.share-pill-x:hover {
  background: #000000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.share-pill-tg {
  background: #24A1DE;
  color: #ffffff !important;
}
.share-pill-tg:hover {
  background: #1d8bc0;
  box-shadow: 0 3px 10px rgba(36, 161, 222, 0.3);
}

.share-pill-copy {
  background: var(--bg-surface);
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
}
.share-pill-copy:hover {
  background: var(--bg-surface-hover);
  border-color: var(--primary-red);
  color: var(--primary-red) !important;
}
.share-pill-copy.copied {
  border-color: #10b981;
  color: #10b981 !important;
}

/* Toast Notification for Link Copied */
.share-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  background: #1e293b;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.84rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.share-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .article-share-top,
  .article-share-bottom-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
  }
  .share-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .share-btn-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .share-pill {
    flex: 1 1 auto;
    padding: 7px 10px;
    font-size: 0.74rem;
  }
}

