/* Sempetin - Modern News & Lifestyle Portal Stylesheet */
:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* 1. Top Utility Bar */
.top-utility-bar {
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}
.top-social-links a:hover { opacity: 1; text-decoration: underline; }
.top-sep { opacity: 0.4; }
.top-admin-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.icon-inline { vertical-align: middle; }

/* 2. Site Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  gap: 16px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22d3ee, #14b8a6, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(37,99,235,0.2);
}
.logo-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
  display: block;
  line-height: 1;
}
.logo-accent, .logo-blue {
  color: #0284c7;
}
.logo-tagline, .logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
  font-weight: 500;
}

/* Main Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}
.main-nav a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}
.main-nav a:hover {
  color: #0284c7;
}
.main-nav a.active {
  color: #0284c7;
  font-weight: 700;
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #0284c7;
  border-radius: 2px;
}

/* Header Right Actions */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-form-pill {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 170px;
  padding: 6px 32px 6px 12px;
  font-size: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  outline: none;
  transition: all 0.2s;
}
.search-input:focus {
  width: 210px;
  background: #fff;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2,132,199,0.15);
}
.search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.btn-cms-shortcut {
  padding: 6px;
  border-radius: 9999px;
  color: #64748b;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}
.btn-cms-shortcut:hover {
  background: #f0f9ff;
  color: #0284c7;
}

/* Header Ad Wrap */
.header-ad-container {
  margin: 0 auto 0;
  padding: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ── Universal Ad Container (Adsterra & semua tipe) ── */
.custom-ad-container {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 8px 14px 10px;
  border-radius: 8px;
  text-align: center;
  /* Responsive: pastikan tidak overflow */
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Adsterra embed (html_code): iframe, script-injected, ins, dll */
.custom-ad-container iframe,
.custom-ad-container ins,
.custom-ad-container > div,
.custom-ad-container [id^="atm-"],
.custom-ad-container [id^="adf-"],
.custom-ad-container [data-aa] {
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Header-specific: leaderboard full-width */
.ad-placement-header_top {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  padding: 8px 0;
  overflow: hidden;
  /* Centering */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}
.ad-placement-header_top .ad-label {
  margin: 0 auto 4px;
  text-align: center;
}
.ad-placement-header_top .ad-banner-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  object-position: center;
  margin: 0 auto;
  display: block;
  border-radius: 0;
}
/* Header ad: Adsterra ins/iframe - centered */
.ad-placement-header_top ins,
.ad-placement-header_top iframe,
.ad-placement-header_top > div,
.ad-placement-header_top script + * {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

.ad-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 5px;
}
.ad-banner-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 6px;
  display: block;
}

/* Sidebar ad placements (sidebar_top, sidebar_bottom) */
.ad-placement-sidebar_top .custom-ad-container,
.ad-placement-sidebar_bottom .custom-ad-container,
.sidebar-widget .custom-ad-container {
  border-radius: 0;
  border: none;
  padding: 10px 12px 12px;
  background: #f8fafc;
  overflow: hidden;
}
.ad-placement-sidebar_top .ad-banner-img,
.ad-placement-sidebar_bottom .ad-banner-img,
.sidebar-widget .ad-banner-img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 6px;
}
/* Sidebar Adsterra: 300x250 tetap muat */
.ad-placement-sidebar_top iframe,
.ad-placement-sidebar_bottom iframe,
.sidebar-widget iframe {
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Feed / In-content ad */
.ad-placement-article_in_content .custom-ad-container,
.ad-placement-feed_top .custom-ad-container {
  overflow: hidden;
  max-width: 100%;
}
.ad-placement-article_in_content iframe,
.ad-placement-feed_top iframe {
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Wrapper applied directly by render_ad_slot around the container */
.sidebar-widget > .custom-ad-container {
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* ── Mobile: sembunyikan unit ukuran besar di layar kecil ── */
@media (max-width: 480px) {
  /* Sembunyikan leaderboard 728x90 di mobile kecil */
  .ad-placement-header_top iframe[width="728"],
  .ad-placement-header_top [style*="width:728"],
  .ad-placement-header_top [style*="width: 728"] {
    /*display: none !important;*/
  }
  /* Paksa semua ad container tidak overflow */
  .custom-ad-container {
    padding: 6px 8px 8px;
  }
  .custom-ad-container iframe,
  .custom-ad-container ins {
    max-width: 100vw !important;
    transform-origin: top left;
  }
}

/* 3. Hero Section (3-Column Grid) */
.homepage-main {
  padding: 24px 20px 40px;
}
.hero-section-grid {
  display: grid;
  grid-template-columns: 6fr 3fr 3fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 30px;
}

/* Col 1: Slider */
.hero-col-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  min-height: 420px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
}
.hero-slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.hero-slide-item.active {
  opacity: 1;
  pointer-events: auto;
}
.slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-overlay-gradient {
  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%);
}
.slide-badge-wrap {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}
.slide-cat-badge {
  background: #0284c7;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.slide-text-content {
  position: relative;
  z-index: 10;
  color: #fff;
}
.slide-text-content h2 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 8px;
  font-weight: 700;
}
.slide-text-content h2 a { color: #fff; }
.slide-text-content h2 a:hover { color: #bae6fd; }
.slide-excerpt {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.slide-meta-row {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #94a3b8;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.slider-btn:hover { background: rgba(0,0,0,0.8); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots-row {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
}
.slider-dot.active {
  width: 24px;
  background: #38bdf8;
}

/* Col 2: Side Highlights */
.hero-col-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.side-card-item {
  height: 134px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.side-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.side-card-item:hover .side-card-img { transform: scale(1.05); }
.side-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.3) 65%, transparent 100%);
}
.side-badge-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}
.side-card-content {
  position: relative;
  z-index: 5;
  color: #fff;
}
.side-card-content h3 {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-card-content h3 a { color: #fff; }
.side-card-content h3 a:hover { color: #bae6fd; }
.side-card-meta {
  font-size: 10px;
  color: #cbd5e1;
  display: flex;
  gap: 6px;
}

/* Tag Badges */
.tag-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}
.badge-pink { background: #db2777; }
.badge-purple { background: #9333ea; }
.badge-emerald { background: #059669; }
.badge-rose { background: #e11d48; }
.badge-blue { background: #2563eb; }
.badge-orange { background: #ea580c; }

/* Col 3: Popular Ranked News */
.hero-col-popular {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.popular-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0;
}
.popular-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-fire { font-size: 14px; }
.popular-title h3 {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.link-see-all {
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
}
.link-see-all:hover { text-decoration: underline; }
.popular-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
}
.popular-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-num {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #0284c7;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.popular-thumb {
  width: 48px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.popular-info {
  min-width: 0;
  flex: 1;
}
.popular-info h4 {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-info h4 a:hover { color: #0284c7; }
.popular-meta {
  font-size: 10px;
  color: var(--text-light);
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

/* Feed Ad Section */
.feed-ad-section {
  margin: 25px 0;
}

/* 4. Middle Section (Lifestyle 8 cols + Newsletter 4 cols) */
.section-middle-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 25px;
  align-items: flex-start;
  margin-bottom: 40px;
}
.category-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 18px;
}
.block-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.block-icon {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.pink-sparkle { background: #fce7f3; }
.blue-globe { background: #e0f2fe; }
.block-title-group h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lifestyle-card {
  display: flex;
  flex-direction: column;
}
.lifestyle-card .card-thumb-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 8px;
}
.lifestyle-card .card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.lifestyle-card:hover .card-thumb-wrap img { transform: scale(1.05); }
.lifestyle-card .card-thumb-wrap .tag-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
}
.lifestyle-card .card-body h3 {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.lifestyle-card .card-body h3 a:hover { color: #0284c7; }
.card-meta {
  font-size: 10px;
  color: var(--text-light);
  display: flex;
  gap: 6px;
}

/* Middle Sidebar: Newsletter */
.middle-col-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.newsletter-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 20px;
}
.nl-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.nl-icon { font-size: 16px; }
.nl-title-group h3 {
  font-size: 14px;
  font-weight: 700;
  color: #0369a1;
}
.newsletter-card p {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 12px;
}
.nl-form input {
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.nl-form button {
  width: 100%;
  padding: 8px 14px;
  background: #0284c7;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.nl-form button:hover { background: #0369a1; }

/* Editorial Picks Card */
.editorial-picks-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}
.ep-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.ep-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ep-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ep-thumb {
  width: 50px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.ep-cat {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
  display: block;
}
.ep-text h5 {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.ep-text h5 a:hover { color: #0284c7; }

/* 5. Bottom Section */
.section-bottom-grid {
  margin-bottom: 40px;
}

/* 6. Single Article Page — Wide Layout */
.article-wide-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin: 28px auto;
  align-items: flex-start;
}
.main-article-wide {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 32px 36px;
  min-width: 0;
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
}
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}
.sidebar-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.sidebar-section-icon { font-size: 14px; }
.sidebar-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.related-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.related-item:last-child { border-bottom: none; }
.related-item:hover { background: #f8fafc; }
.related-thumb {
  width: 64px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.related-item:hover .related-thumb img { transform: scale(1.05); }
.related-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.related-cat {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 3px;
}
.related-info h4 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}
.related-date {
  font-size: 10px;
  color: #94a3b8;
}
.sidebar-see-all {
  display: block;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #0284c7;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  transition: background 0.15s;
  text-decoration: none;
}
.sidebar-see-all:hover { background: #f0f9ff; }

/* Ad placeholder block */
.ad-placeholder-block {
  padding: 14px;
}
.ad-placeholder-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 8px;
}
.ad-placeholder-inner {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
  gap: 8px;
  padding: 20px;
}
.ad-placeholder-inner p { margin: 0; font-size: 11px; }
.ad-placeholder-inner span { font-size: 10px; color: #cbd5e1; }

/* Article footer meta */
.article-footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.article-cat-pill a {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s;
}
.article-cat-pill a:hover { background: #bae6fd; }
.article-views-badge {
  font-size: 11px;
  color: #94a3b8;
  margin-left: auto;
}

/* Article header & body */
.article-header {
  margin-bottom: 24px;
}
.article-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin: 10px 0;
  color: #0f172a;
}
.article-lead {
  font-size: 16px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 14px;
}
.article-lead:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}
.author-row {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.featured-img-wrap {
  margin-bottom: 24px;
}
.featured-img-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.featured-img-caption {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
  line-height: 1.45;
  font-style: italic;
  padding: 0 2px;
}
.article-body figcaption,
.article-body .image-caption {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  margin-bottom: 18px;
  line-height: 1.45;
  font-style: italic;
  text-align: center;
}
.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
}
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 22px; margin: 28px 0 12px; color: #0f172a; }
.article-body h3 { font-size: 19px; margin: 22px 0 10px; color: #0f172a; }
.article-end-ad { margin-top: 28px; }

/* Static Page */
.static-page-header {
  padding: 30px 0 10px;
}
/* When NO excerpt exists */
.static-page-header.static-page-header-no-excerpt {
  padding-bottom: 0;
}
.static-page-header.static-page-header-no-excerpt .article-title {
  margin-bottom: 0;
}
/* When ONLY the title exists (no excerpt, no content) */
.static-page-header.static-page-header-only {
  padding-bottom: 0;
}
.static-feat-img {
  margin-bottom: 28px;
}
.static-page-body {
  margin-bottom: 40px;
  max-width: 780px;
}

/* ══════════════════════════════════════════════════
   CURATED FEED SECTION
══════════════════════════════════════════════════ */
.curated-feed-section {
  background: #f8fafc;
  padding: 36px 0 60px;
  margin-top: 20px;
  border-top: 2px solid #e2e8f0;
}
.curated-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.curated-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #0284c7;
  display: block;
  margin-bottom: 6px;
}
.curated-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}
.curated-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}
.curated-layout-badge {
  font-size: 11px;
  color: #94a3b8;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 12px;
}

/* GRID LAYOUT (3 col) */
.feed-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* GRID LAYOUT (4 col) */
.feed-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.grid-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.grid-card-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f1f5f9;
}
.grid-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.grid-card:hover .grid-card-thumb img { transform: scale(1.05); }
.grid-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.grid-cat {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}
.grid-card-body h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grid-card-body h4 a { color: inherit; }
.grid-card-body h4 a:hover { color: #0284c7; }
.grid-card-body p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
  flex: 1;
}
.grid-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}
.grid-read-link {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
}
.grid-read-link:hover { text-decoration: underline; }

/* LIST LAYOUT */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.list-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.list-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); }
.list-card-thumb {
  flex-shrink: 0;
  display: block;
  width: 200px;
  height: 140px;
  overflow: hidden;
  background: #f1f5f9;
}
.list-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.list-card:hover .list-card-thumb img { transform: scale(1.05); }
.list-card-body {
  padding: 20px 20px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.list-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}
.list-card-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 8px;
}
.list-card-body h4 a { color: inherit; }
.list-card-body h4 a:hover { color: #0284c7; }
.list-card-body p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
}
.list-read-link {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
}
.list-read-link:hover { text-decoration: underline; }

/* FULLWIDTH LAYOUT */
.feed-fullwidth {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fw-card {
  display: flex;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.fw-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.08); }
.fw-card-thumb {
  flex-shrink: 0;
  display: block;
  width: 260px;
  height: 170px;
  overflow: hidden;
  background: #f1f5f9;
}
.fw-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.fw-card:hover .fw-card-thumb img { transform: scale(1.05); }
.fw-card-body {
  padding: 22px 22px 22px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fw-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}
.fw-card-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 10px;
}
.fw-card-body h3 a { color: inherit; }
.fw-card-body h3 a:hover { color: #0284c7; }
.fw-card-body p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fw-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #94a3b8;
}
.fw-read-btn {
  margin-left: auto;
  background: #0284c7;
  color: #fff;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.fw-read-btn:hover { background: #0369a1; }

/* MAGAZINE LAYOUT */
.feed-magazine-hero {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
}
.mag-hero-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}
.mag-hero-thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f1f5f9;
}
.mag-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.mag-hero-card:hover .mag-hero-thumb img { transform: scale(1.04); }
.mag-hero-body {
  padding: 22px;
}
.mag-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}
.mag-hero-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 10px;
}
.mag-hero-body h3 a { color: inherit; }
.mag-hero-body h3 a:hover { color: #0284c7; }
.mag-hero-body p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px;
}
.mag-read-btn {
  display: inline-block;
  color: #0284c7;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.mag-read-btn:hover { text-decoration: underline; }
.mag-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mag-side-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.mag-side-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.mag-side-thumb {
  flex-shrink: 0;
  display: block;
  width: 80px;
  height: 70px;
  overflow: hidden;
  background: #f1f5f9;
}
.mag-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mag-side-body {
  padding: 10px 10px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mag-side-body h5 {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-side-body h5 a { color: inherit; }
.mag-side-body h5 a:hover { color: #0284c7; }

/* Category Hero Header */
.category-hero-header {
  text-align: center;
  padding: 30px 0 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}
.category-meta-badge {
  font-size: 10px;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.1em;
}
.category-hero-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 6px 0;
  color: #0f172a;
}
.category-desc {
  font-size: 14px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}
.editorial-layout {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 30px;
}
.stories-grid .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.story-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  padding: 12px;
}
.story-card .card-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
  margin-bottom: 10px;
}
.story-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-card .meta {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
  display: block;
  margin-bottom: 4px;
}
.story-card h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}
.story-card h4 a:hover { color: #0284c7; }
.story-card p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 7. Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 0 25px;
  margin-top: 60px;
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #1e293b;
}
.brand-custom-logo {
  max-height: 44px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand-custom-logo-footer {
  max-height: 40px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.footer-logo .logo-title {
  color: #fff;
}
.footer-desc {
  font-size: 12px;
  line-height: 1.6;
  margin: 14px 0;
  color: #94a3b8;
}
.footer-socials {
  color: #cbd5e1;
}
.footer-socials a:hover { color: #38bdf8; }
.footer-col-nav h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-nav a:hover { color: #38bdf8; }
.footer-admin-link { color: #38bdf8 !important; font-weight: 600; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 11px;
}

/* ══════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════ */
.pagination-nav {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  user-select: none;
}
.page-btn:hover:not(.page-disabled):not(.page-current) {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}
.page-btn.page-current {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
  cursor: default;
}
.page-btn.page-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-btn.page-prev,
.page-btn.page-next {
  padding: 0 14px;
  gap: 4px;
}
.page-ellipsis {
  color: #94a3b8;
  font-size: 14px;
  padding: 0 4px;
  line-height: 36px;
}
.pagination-info {
  margin: 10px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

/* Category page extras */
.category-count-info {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
}
.story-card-meta {
  display: flex;
  gap: 6px;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 6px;
}
.empty-state-box {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}
.empty-back-link {
  display: inline-block;
  margin-top: 16px;
  color: #0284c7;
  font-weight: 600;
  font-size: 13px;
}
.empty-back-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════
   HAMBURGER / MOBILE NAV TOGGLE BUTTON
══════════════════════════════════════════════════ */
.nav-toggle-btn {
  display: none; /* hidden on desktop */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle-btn:hover {
  background: #f0f9ff;
  border-color: #0284c7;
}
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
/* Active (X) state */
.nav-toggle-btn.active .hamburger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle-btn.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle-btn.active .hamburger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay (backdrop) */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════════ */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
  .hero-section-grid {
    grid-template-columns: 1fr;
  }
  .hero-col-side {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero-col-side .side-card-item {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    height: 160px;
  }
  .section-middle-grid {
    grid-template-columns: 1fr;
  }
  .article-wide-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .article-layout, .editorial-layout {
    grid-template-columns: 1fr;
  }
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .feed-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .feed-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .feed-magazine-hero {
    grid-template-columns: 1fr;
  }
  .fw-card-thumb {
    width: 180px;
  }
  .list-card-thumb {
    width: 160px;
  }
  .main-nav ul {
    gap: 2px;
  }
  .main-nav a {
    padding: 6px 8px;
    font-size: 12px;
  }
  .search-input {
    width: 130px;
  }
  .search-input:focus {
    width: 170px;
  }
}

/* Mobile Navigation Drawer (max 768px) */
@media (max-width: 768px) {
  /* Show hamburger button */
  .nav-toggle-btn {
    display: flex;
  }

  /* Header layout: logo kiri, actions kanan dalam satu baris */
  .header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    padding: 12px 16px;
    gap: 10px;
  }

  /* Logo bisa mengecil */
  .brand-logo {
    flex: 1;
    min-width: 0;
  }
  .logo-title {
    font-size: 18px;
  }
  .logo-tagline {
    display: none;
  }

  /* Actions tetap di kanan */
  .header-right-actions {
    flex-shrink: 0;
    gap: 8px;
  }

  /* Search input sembunyikan teks, cukup ikon */
  .search-form-pill {
    position: relative;
  }
  .search-input {
    width: 0;
    padding: 6px 32px 6px 8px;
    opacity: 0;
    pointer-events: none;
    transition: width 0.3s, opacity 0.3s;
  }
  .search-form-pill:focus-within .search-input {
    width: 160px;
    opacity: 1;
    pointer-events: auto;
  }
  .search-btn {
    position: static;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s;
  }
  .search-btn:hover {
    background: #e0f2fe;
    color: #0284c7;
  }
  /* Override: form container adjust */
  .search-form-pill {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 4px;
  }

  /* ── Mobile Nav Drawer ── */
  .main-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 999;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.12);
    overflow-y: auto;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
  }
  .main-nav.mobile-open {
    left: 0;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    align-items: stretch;
  }
  .main-nav li {
    width: 100%;
  }
  .main-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.15s;
  }
  .main-nav a:hover {
    background: #f0f9ff;
    color: #0284c7;
    border-left-color: #0284c7;
  }
  .main-nav a.active {
    background: #e0f2fe;
    color: #0284c7;
    border-left-color: #0284c7;
    font-weight: 700;
  }
  .main-nav a.active::after {
    display: none;
  }

  /* Nav drawer header label */
  .main-nav::before {
    content: 'Menu';
    display: block;
    padding: 12px 24px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 8px;
  }

  /* Top utility bar compact */
  .top-bar-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  /* Grid adjustments */
  .cards-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stories-grid .grid {
    grid-template-columns: 1fr;
  }
  .news-stream-wrap {
    grid-template-columns: 1fr;
  }

  /* Article */
  .article-title {
    font-size: 24px;
  }
  .main-article-wide {
    padding: 20px 16px;
  }

  /* Hero section */
  .hero-col-slider {
    min-height: 320px;
  }
  .slider-wrapper {
    min-height: 320px;
  }
  .slide-text-content h2 {
    font-size: 18px;
  }
  .hero-col-popular {
    display: none;
  }
  .hero-col-side .side-card-item {
    height: 140px;
  }

  /* Ad container */
  .header-ad-container {
    margin-bottom: 10px;
  }

  /* ── Iklan di halaman artikel & halaman lain di mobile ── */
  /* Pastikan article top ad tetap tampil */
  .ad-wrap {
    display: block !important;
    width: 100%;
    padding-top: 10px !important;
    padding-bottom: 4px;
  }

  /* article-wide-layout jadi 1 kolom: sidebar iklan muncul di bawah */
  .article-wide-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .article-sidebar {
    display: block !important;
    width: 100%;
    position: static;
  }
  /* Sidebar placeholder (kotak kosong) disembunyikan di mobile */
  .sidebar-ad-sticky {
    display: none;
  }
  /* Tapi sidebar widget iklan yang ada konten tetap tampil */
  .sidebar-widget:not(:empty) {
    display: block;
  }

  /* In-content ad & bottom ad artikel tetap tampil */
  .article-end-ad,
  .article-end-ad .custom-ad-container {
    display: block !important;
    width: 100%;
  }

  /* Feed ad section */
  .feed-ad-section {
    display: block !important;
    width: 100%;
    overflow: hidden;
  }

  /* Semua custom-ad-container di mobile: full width, scroll tidak meluber */
  .custom-ad-container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }
  .custom-ad-container ins,
  .custom-ad-container iframe {
    max-width: 100% !important;
    width: auto !important;
    min-width: unset !important;
  }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
  .container {
    padding: 10px 14px;
  }
  .homepage-main {
    /*padding: 16px 0 32px;*/
    padding :16px 10px 32px 10px;;
  }
  .cards-grid-4 {
    grid-template-columns: 1fr;
  }
  .feed-grid-3, .feed-grid-4 {
    grid-template-columns: 1fr;
  }
  .list-card {
    flex-direction: column;
  }
  .list-card-thumb {
    width: 100%;
    height: 180px;
  }
  .fw-card {
    flex-direction: column;
  }
  .fw-card-thumb {
    width: 100%;
    height: 180px;
  }
  .main-article-wide {
    padding: 16px 14px;
  }
  .article-title {
    font-size: 20px;
  }
  .article-body {
    font-size: 15px;
  }
  .hero-col-side {
    flex-direction: column;
  }
  .hero-col-side .side-card-item {
    flex: none;
    width: 100%;
    height: 150px;
  }
  .curated-title {
    font-size: 20px;
  }
  .category-hero-header h1 {
    font-size: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .search-form-pill:focus-within .search-input {
    width: 130px;
  }
  .logo-title {
    /*font-size: 16px;*/
    font-size: 28px;
  }
}

/* Legacy fallback for very small screens */
@media (max-width: 360px) {
  .header-inner {
    padding: 10px 12px;
  }
  .logo-badge {
    width: 28px;
    height: 28px;
  }
}

/* ========================================================
   DYNAMIC CATEGORY BADGES & HOMEPAGE LAYOUT MODELS
   ======================================================== */

/* Dynamic Category Pill Badges */
.cat-pill-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.25;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.cat-pill-badge:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.cat-pill-badge.large {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 6px;
}

/* Category Block Headers */
.home-cat-section {
  margin-bottom: 36px;
}
.home-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}
.cat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-header-indicator {
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background-color: var(--primary);
  display: inline-block;
}
.cat-header-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-header-count {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 10px;
}
.cat-more-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s, color 0.15s;
}
.cat-more-link:hover {
  color: #0369a1;
  transform: translateX(3px);
}

/* ────────────────────────────────────────────────────────
   MODEL 2: HERO MAGAZINE (Headline Besar + Sidebar + Grid)
   ──────────────────────────────────────────────────────── */
.hero-mag-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}
.hero-mag-lead {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.hero-mag-lead img.lead-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-mag-lead:hover img.lead-bg-img {
  transform: scale(1.03);
}
.hero-mag-lead-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.96) 0%, rgba(15,23,42,0.5) 55%, transparent 100%);
}
.hero-mag-lead-content {
  position: relative;
  z-index: 10;
  padding: 32px;
  color: #fff;
}
.hero-mag-lead-content h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin: 12px 0 10px;
}
.hero-mag-lead-content h2 a {
  color: #fff;
}
.hero-mag-lead-content h2 a:hover {
  color: #38bdf8;
}
.hero-mag-lead-content p {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-mag-side-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-mag-side-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 14px;
  transition: all 0.2s;
}
.hero-mag-side-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.hero-mag-side-card .sm-thumb {
  width: 110px;
  height: 85px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-mag-side-card .sm-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-mag-side-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 4px;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-mag-side-card h4 a:hover {
  color: #0284c7;
}

/* ────────────────────────────────────────────────────────
   MODEL 3: GRID CARDS & INTERACTIVE FILTER TABS
   ──────────────────────────────────────────────────────── */
.home-filter-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.home-filter-nav span.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-right: 6px;
}
.tab-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.tab-filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.tab-filter-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
  box-shadow: 0 2px 6px rgba(2,132,199,0.25);
}
.tab-filter-btn .cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.home-card-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}
.home-card-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.home-card-item:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.home-card-thumb-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f1f5f9;
}
.home-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.home-card-item:hover .home-card-thumb-wrap img {
  transform: scale(1.05);
}
.home-card-thumb-wrap .card-badge-pos {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 5;
}
.home-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-card-body h3 a:hover {
  color: #0284c7;
}
.home-card-body p {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.home-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #94a3b8;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

/* ────────────────────────────────────────────────────────
   MODEL 4: NEWS STREAM / SURAT KABAR LIST
   ──────────────────────────────────────────────────────── */
.news-stream-wrap {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 28px;
  margin-bottom: 36px;
}
.news-stream-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-stream-card {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}
.news-stream-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}
.news-stream-thumb {
  width: 210px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}
.news-stream-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.news-stream-card:hover .news-stream-thumb img {
  transform: scale(1.05);
}
.news-stream-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-stream-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin: 6px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-stream-body h3 a:hover {
  color: #0284c7;
}
.news-stream-body p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-stream-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #94a3b8;
}

/* ────────────────────────────────────────────────────────
   RESPONSIVE ADAPTATIONS
   ──────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-mag-wrap {
    grid-template-columns: 1fr;
  }
  .news-stream-wrap {
    grid-template-columns: 1fr;
  }
  .home-card-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .home-card-feed {
    grid-template-columns: 1fr;
  }
  .news-stream-card {
    flex-direction: column;
  }
  .news-stream-thumb {
    width: 100%;
    height: 190px;
  }
}
