/*
Theme Name: BeritaKini
Theme URI: https://example.com/beritakini
Author: Agus
Description: Tema portal berita mobile-first. Homepage dengan berita utama, grid berita terbaru dan seksi per kategori, halaman detail dengan reading progress bar dan tombol share, serta arsip kategori dengan filter urutan dan pagination. Sidebar berisi berita trending dan slot iklan.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beritakini
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, sticky-post
*/

/* ----- RESET & GLOBAL ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #f5f7fa;
  color: #1a2639;
  line-height: 1.5;
  padding-bottom: 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ----- WORDPRESS CORE ----- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  top: 8px;
  left: 8px;
  z-index: 200;
  background: #ffffff;
  color: #1e4b8a;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.alignleft {
  float: left;
  margin: 4px 18px 12px 0;
}

.alignright {
  float: right;
  margin: 4px 0 12px 18px;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.wp-caption-text,
.wp-element-caption {
  font-size: 0.72rem;
  color: #8a9bb0;
  font-style: italic;
  margin-top: 8px;
}

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

/* ----- HEADER STICKY ----- */
.header {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e9edf4;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #0b2b5c, #1e4b8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.logo span {
  background: #d32f2f;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.custom-logo-link {
  flex-shrink: 0;
}

.custom-logo-link img {
  max-height: 40px;
  width: auto;
  border-radius: 0;
}

.header-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  padding: 4px 0;
}

.header-categories::-webkit-scrollbar {
  display: none;
}

.category-chip {
  background: #f5f8fe;
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.82rem;
  color: #2c3e5c;
  border: 1px solid #e4eaf2;
  transition: all 0.15s;
  flex-shrink: 0;
}

.category-chip.active {
  background: #d32f2f;
  color: white;
  border-color: #d32f2f;
  box-shadow: 0 6px 12px -6px rgba(211, 47, 47, 0.4);
}

.category-chip:not(.active):hover {
  background: #edf2fc;
  border-color: #b6cae2;
}

/* ----- MENU CHIP + SUB-MENU ----- */
.chip-menu {
  display: flex;
  gap: 8px;
  list-style: none;
}

.chip-item {
  flex-shrink: 0;
}

.category-chip.has-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-right: 6px;
}

.chip-toggle,
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-toggle {
  width: 22px;
  height: 22px;
  font-size: 0.62rem;
}

.chip-toggle i,
.submenu-toggle i {
  transition: transform 0.15s;
}

.chip-item.is-open > .category-chip .chip-toggle i,
.submenu-item.is-open > .submenu-row .submenu-toggle i {
  transform: rotate(180deg);
}

.chip-menu .sub-menu {
  display: none;
  list-style: none;
}

.chip-menu li.is-open > .sub-menu {
  display: block;
}

/* Panel dropdown level 2: position fixed (diposisikan JS) agar tidak terpotong scroll chip */
.sub-menu--panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  min-width: 220px;
  max-width: calc(100vw - 24px);
  max-height: 70vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  box-shadow: 0 16px 32px -12px rgba(11, 26, 46, 0.25);
  padding: 6px;
  white-space: normal;
}

.submenu-row {
  display: flex;
  align-items: center;
  border-radius: 10px;
  transition: background 0.1s;
}

.submenu-row:hover {
  background: #f5f8fe;
}

.submenu-link {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e5c;
}

.submenu-link.active {
  color: #d32f2f;
}

.submenu-toggle {
  width: 32px;
  height: 32px;
  font-size: 0.65rem;
  color: #7b8da3;
}

.submenu-toggle:hover {
  color: #1e4b8a;
}

/* Level 3+: accordion di dalam panel */
.sub-menu--nested {
  margin: 2px 0 4px 14px;
  padding-left: 6px;
  border-left: 2px solid #f0f4fa;
}

.sub-menu--nested .submenu-link {
  font-weight: 500;
  font-size: 0.82rem;
  padding: 8px 10px;
}

.header-icons {
  display: flex;
  gap: 16px;
  color: #2c3e5c;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ----- SEARCH BAR ----- */
.search-section {
  margin: 18px 0 10px;
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 60px;
  padding: 6px 8px 6px 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f2;
  transition: box-shadow 0.2s;
}

.search-box:focus-within {
  box-shadow: 0 8px 18px rgba(30, 75, 138, 0.1);
  border-color: #b6cae2;
}

.search-box i {
  color: #7f8fa4;
  font-size: 1.1rem;
}

.search-box input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-size: 1rem;
  background: transparent;
  color: #1a2639;
}

.search-box input::placeholder {
  color: #9aa9bb;
  font-weight: 400;
}

.search-box button {
  background: #1e4b8a;
  border: none;
  color: white;
  padding: 12px 22px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.search-box button:hover {
  background: #0f2e55;
}

/* ----- THUMBNAIL PLACEHOLDER (post tanpa featured image) ----- */
.thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9eff8, #dbe5f2);
  color: #b6c6dc;
  font-size: 2rem;
}

/* ----- HERO ----- */
.hero-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.12);
  margin-bottom: 24px;
  transition: transform 0.2s;
}

.hero-media {
  display: block;
  position: relative;
  height: 200px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-content {
  padding: 20px 18px 22px;
}

.badge {
  display: inline-block;
  background: #d32f2f;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: #0b1a2e;
  margin-bottom: 10px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #62748c;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-meta i {
  font-size: 0.75rem;
  margin-right: 4px;
}

.hero-desc {
  color: #3a4b62;
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----- SECTION TITLE ----- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0 12px;
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #0b1a2e;
}

.section-header a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e4b8a;
}

.section-header a i {
  font-size: 0.7rem;
}

/* ===== LAYOUT UTAMA ===== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.content-area {
  min-width: 0;
}

.sidebar-area {
  min-width: 0;
}

/* ----- BREADCRUMB ----- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #7b8da3;
  margin: 20px 0 14px;
  flex-wrap: wrap;
}

.page-header .breadcrumb {
  margin: 0 0 10px;
}

.breadcrumb a {
  color: #1e4b8a;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb i {
  font-size: 0.6rem;
  color: #b6c2d3;
}

/* ----- PAGE HEADER (Arsip) ----- */
.page-header {
  margin: 20px 0 16px;
}

.page-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.page-title-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1e4b8a, #0b2b5c);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 8px 16px -6px rgba(30, 75, 138, 0.4);
}

.page-title-text {
  min-width: 0;
}

.page-title-text h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0b1a2e;
  line-height: 1.2;
}

.page-title-text p {
  font-size: 0.85rem;
  color: #7b8da3;
  font-weight: 500;
  margin-top: 2px;
}

/* ----- FILTER BAR ----- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
  border-radius: 16px;
  padding: 10px 14px;
  border: 1px solid #edf2f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-info {
  font-size: 0.82rem;
  color: #62748c;
  font-weight: 500;
}

.filter-info strong {
  color: #0b1a2e;
  font-weight: 700;
}

.filter-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #62748c;
  font-weight: 600;
}

.filter-sort select {
  border: 1px solid #e2e8f2;
  background: #f8fafd;
  border-radius: 30px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2c3e5c;
  outline: none;
  cursor: pointer;
}

/* ----- ARTICLE (single & page) ----- */
.article-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #edf2f9;
  margin-bottom: 24px;
}

.article-header {
  padding: 22px 20px 0;
}

.article-badge {
  display: inline-block;
  background: #d32f2f;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: #0b1a2e;
  margin-bottom: 14px;
}

.article-subtitle {
  font-size: 1rem;
  color: #54687e;
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f4fa;
  font-size: 0.78rem;
  color: #62748c;
  font-weight: 500;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta-item i {
  color: #9aa9bb;
  font-size: 0.75rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0b1a2e;
}

.article-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e4b8a, #0b2b5c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.article-image {
  margin: 18px 20px 0;
  border-radius: 18px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.article-caption {
  padding: 10px 20px 0;
  font-size: 0.72rem;
  color: #8a9bb0;
  font-style: italic;
  line-height: 1.4;
}

.article-image .article-caption {
  padding: 10px 0 0;
}

.article-body {
  padding: 22px 20px 26px;
  font-size: 1rem;
  line-height: 1.75;
  color: #2c3e5c;
}

.article-body::after {
  content: "";
  display: table;
  clear: both;
}

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

.article-body a {
  color: #1e4b8a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b1a2e;
  margin: 24px 0 12px;
  letter-spacing: -0.3px;
}

.article-body h3,
.article-body h4 {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0b1a2e;
  margin: 20px 0 10px;
}

.article-body blockquote {
  border-left: 4px solid #d32f2f;
  background: #fdf5f5;
  padding: 14px 18px;
  margin: 22px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #4a2b2b;
  font-weight: 500;
}

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

.article-body ul,
.article-body ol {
  margin: 0 0 18px 20px;
}

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

.article-body figure {
  margin: 22px 0;
}

.article-body img {
  border-radius: 14px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.article-body th,
.article-body td {
  border: 1px solid #e2e8f2;
  padding: 8px 10px;
  text-align: left;
}

.article-body iframe {
  max-width: 100%;
}

.page-links {
  margin-top: 8px;
  font-weight: 600;
}

/* ----- SHARE & TAGS ----- */
.article-footer {
  padding: 18px 20px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f4fa;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: #f0f4fc;
  color: #2c3e5c;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.15s;
}

.tag:hover {
  background: #1e4b8a;
  color: white;
}

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

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4fc;
  color: #2c3e5c;
  font-size: 0.9rem;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.share-btn:hover {
  background: #1e4b8a;
  color: white;
  transform: translateY(-2px);
}

.share-btn.facebook:hover { background: #1877f2; }
.share-btn.twitter:hover { background: #0f1419; }
.share-btn.whatsapp:hover { background: #25d366; }
.share-btn.copy:hover,
.share-btn.copy.copied { background: #d32f2f; color: white; }

/* ----- GRID BERITA (2 kolom) ----- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.news-grid--archive {
  margin-bottom: 24px;
}

.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
  border: 1px solid #edf2f9;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.news-thumb {
  display: block;
  height: 120px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.news-content {
  padding: 12px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-category {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #d32f2f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.news-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0b1a2e;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-title a:hover,
.hero-title a:hover,
.trending-item:hover .trending-title {
  color: #1e4b8a;
}

.news-excerpt {
  display: none;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.65rem;
  color: #7b8da3;
  font-weight: 500;
  padding-top: 8px;
}

.news-footer i {
  margin-right: 3px;
}

.no-results {
  background: white;
  border-radius: 20px;
  border: 1px solid #edf2f9;
  padding: 32px 20px;
  text-align: center;
  color: #62748c;
}

.no-results h2 {
  font-size: 1.15rem;
  color: #0b1a2e;
  margin-bottom: 6px;
}

/* ----- PAGINATION ----- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  background: white;
  color: #2c3e5c;
  border: 1px solid #e2e8f2;
  padding: 0 10px;
  transition: all 0.15s;
}

.pagination a:hover {
  background: #edf2fc;
  border-color: #b6cae2;
}

.pagination .active,
.pagination .current {
  background: #1e4b8a;
  color: white;
  border-color: #1e4b8a;
  box-shadow: 0 6px 12px -6px rgba(30, 75, 138, 0.5);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ----- SIDEBAR: TRENDING ----- */
.sidebar-trending {
  background: white;
  border-radius: 24px;
  padding: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
  border: 1px solid #edf2f9;
  margin-bottom: 20px;
}

.sidebar-trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
  border-bottom: 1px solid #f0f4fa;
}

.sidebar-trending-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b1a2e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-trending-header a {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e4b8a;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f4fa;
  transition: background 0.1s;
}

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

.trending-item:hover {
  background: #f9fcff;
}

.trending-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: #cfdbe9;
  min-width: 24px;
  text-align: center;
  line-height: 1.2;
}

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

.trending-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0b1a2e;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-meta {
  font-size: 0.65rem;
  color: #7b8da3;
}

/* ----- SLOT IKLAN (full width sidebar, rasio 1:1) ----- */
.ad-slots {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ad-slot {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px dashed #c5d3e8;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8a9bb0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  position: relative;
}

.ad-slot::before {
  content: "AD";
  position: absolute;
  top: 12px;
  left: 12px;
  background: #eef3fa;
  color: #8a9bb0;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.ad-slot i {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #c5d3e8;
}

.ad-slot p {
  font-size: 0.8rem;
  color: #8a9bb0;
  text-transform: none;
  font-weight: 500;
}

/* Slot iklan yang sudah diisi widget */
.ad-slot--filled {
  display: block;
  aspect-ratio: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: inherit;
}

.ad-slot--filled::before {
  display: none;
}

.ad-slot--filled img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

/* ----- FOOTER ----- */
.footer {
  margin-top: 32px;
  padding: 24px 0 16px;
  border-top: 1px solid #e2e8f2;
  text-align: center;
  color: #62748c;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-links a {
  font-weight: 500;
  color: #2c3e5c;
}

.footer-links a:hover {
  color: #d32f2f;
}

.footer-note {
  margin-top: 8px;
  font-size: 0.7rem;
  color: #8a9bb0;
}

/* ----- PROGRESS READING BAR ----- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #d32f2f, #1e4b8a);
  width: 0%;
  z-index: 100;
  transition: width 0.1s;
}

/* ----- ADMIN BAR OFFSET ----- */
body.admin-bar .header,
body.admin-bar .progress-bar {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .header,
  body.admin-bar .progress-bar {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .header {
    top: 0;
  }
}

/* ----- MEDIA QUERIES ----- */
@media (min-width: 600px) {
  .container {
    padding: 0 24px;
  }

  .logo {
    font-size: 1.8rem;
  }

  .hero-media {
    height: 260px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .page-title-text h1 {
    font-size: 1.9rem;
  }

  .article-title {
    font-size: 1.85rem;
  }

  .article-header {
    padding: 26px 26px 0;
  }

  .article-image {
    margin: 22px 26px 0;
  }

  .article-caption {
    padding: 10px 26px 0;
  }

  .article-body {
    padding: 24px 26px 30px;
    font-size: 1.02rem;
  }

  .article-footer {
    padding: 18px 26px 24px;
  }

  .news-grid {
    gap: 18px;
  }

  .news-thumb {
    height: 150px;
  }

  .news-title {
    font-size: 1rem;
  }

  .news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
    color: #54687e;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .news-footer {
    font-size: 0.7rem;
  }
}

@media (min-width: 900px) {
  .hero-card {
    display: flex;
    align-items: stretch;
  }

  .hero-media {
    flex: 0 0 45%;
    width: 45%;
    height: auto;
    min-height: 280px;
  }

  .hero-media img,
  .hero-media .thumb-placeholder {
    position: absolute;
    inset: 0;
  }

  .hero-content {
    width: 55%;
    padding: 28px 28px 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 2rem;
  }

  .main-layout {
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .page-title-text h1 {
    font-size: 2.1rem;
  }

  .article-title {
    font-size: 2rem;
  }

  .news-thumb {
    height: 170px;
  }

  .news-title {
    font-size: 1.05rem;
  }

  .trending-title {
    font-size: 0.92rem;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .article-title {
    font-size: 2.15rem;
  }

  .news-grid {
    gap: 20px;
  }

  .news-thumb {
    height: 180px;
  }

  .news-title {
    font-size: 1.1rem;
  }

  .trending-title {
    font-size: 0.95rem;
  }
}
