/* =========================================
   Kampung GUSDURian Theme - Main CSS
   ========================================= */

/* --- Variables --- */
:root {
  --green: #1e5631;
  --green-dark: #163d24;
  --green-light: #2d7a45;
  --accent: #9c3466; /* rgb(156, 52, 102) - the maroon/pink from old site */
  --text: #1a1a1a;
  --text-muted: #666;
  --text-light: #999;
  --border: #e0e0e0;
  --bg: #f8f7f4;
  --white: #ffffff;
  --font-heading: 'Inter', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-ui: 'Inter', 'Helvetica Neue', sans-serif;
  --max-width: 1320px;
  --gap: 24px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Update text color to match rgb(25, 26, 30) from screenshot */
:root {
  --text: #191a1e;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* --- Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 
 * Section label pattern:
 * - thick dark border-top on the wrapper (full width, above label)
 * - label text sits below that, with a thin light border-bottom spanning full width
 */
.section-label {
  font-family: var(--font-ui);
  font-size: 1.0625rem; /* 17px */
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 10px;
  margin-bottom: 0;
}

/* Wrapper: thick top border + thin bottom border */
.section-label-wrap {
  border-top: 2px solid var(--text);    /* thick dark line ABOVE */
  border-bottom: 1px solid var(--border); /* thin light line BELOW */
  margin-bottom: 20px;
}

.section-label a {
  color: inherit;
}

.section-label a:hover {
  opacity: 0.8;
}

.section-label .arrow {
  font-size: 1rem;
  font-style: normal;
}

.section-header { border: none; margin-bottom: 0; }

.cat-tag {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: transparent;
  padding: 0;
  display: inline-block;
}

.cat-tag:hover { color: var(--green-dark); }

.meta-info {
  font-family: var(--font-ui);
  font-size: 0.75rem; /* 12px matching screenshot */
  color: var(--text-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  line-height: 2; /* 12px × 2 ≈ 24px matches 32px line-height proportionally */
}

.meta-info .clock-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-light);
}

.meta-info .by { font-weight: 400; color: var(--text-light); }
.meta-info .author-name { color: var(--text); font-weight: 700; }
.meta-info .author-name:hover { color: var(--accent); }
.meta-info .sep { color: var(--border); margin: 0 2px; }

/* =========================================
   HEADER
   ========================================= */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 15px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: auto;
  width: 100%;
}

.site-logo .logo-text {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.logo-kampung {
  background: var(--green);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 4px 0 0 4px;
}

.logo-gusdurian {
  background: var(--white);
  color: var(--green);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border: 2px solid var(--green);
  border-left: none;
  border-radius: 0 4px 4px 0;
}

.logo-gusdurian span { color: var(--accent); }

/* Nav */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: visible; /* allow dropdown to escape */
}

.nav-menu {
  display: flex;
  align-items: stretch; /* stretch so li height fills the bar for reliable hover zone */
  gap: 0;
  overflow: visible;
}

.nav-menu li a {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  height: 100%;
  transition: color 0.15s;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: var(--accent);
}

.nav-menu li.current-menu-item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

.nav-menu li.highlight a {
  color: var(--green);
  font-weight: 700;
}

/* ---- Dropdown sub-menu ---- */

/* Top-level items must be position:relative so the absolute sub-menu anchors to them */
.nav-menu > li {
  position: relative;
  /* Reset: top-level <li> are flex items inside .nav-menu flex row — that's fine */
}

/* The sub-menu <ul> itself: hidden by default, absolutely positioned */
.nav-menu > li > .sub-menu {
  display: none !important;          /* hide until hover; !important beats any WP inline style */
  position: absolute !important;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--green);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 9999;
  padding: 6px 0;
  margin: 0;
  list-style: none;
  /* Sub-menu is a block container — NOT flex — so items stack vertically */
  flex-direction: column;
}

/* Show on hover / keyboard focus */
.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu {
  display: block !important;
}

/* Sub-menu items: stack as normal block elements */
.nav-menu > li > .sub-menu > li {
  position: static;
  display: block;
  width: 100%;
}

.nav-menu > li > .sub-menu > li > a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-menu > li > .sub-menu > li > a:hover {
  color: var(--green);
  background: var(--bg);
}

/* Remove the active underline pseudo-element inside sub-menus */
.nav-menu > li > .sub-menu > li.current-menu-item a::after {
  display: none;
}

/* Caret indicator on parent items */
.nav-menu > li.menu-item-has-children > a::after {
  content: ' \25BE';
  font-size: 0.65em;
  opacity: 0.55;
  vertical-align: middle;
  margin-left: 2px;
}

/* ---- Mobile sub-menu: flat list, no dropdown ---- */
.mobile-nav-menu .sub-menu {
  display: block !important;
  padding-left: 16px;
  list-style: none;
  margin: 0;
}

.mobile-nav-menu .sub-menu li {
  display: block;
}

.mobile-nav-menu .sub-menu li a {
  font-size: 0.8rem;
  padding: 8px 0;
  opacity: 0.8;
}

/* =========================================
   HOME PAGE
   ========================================= */

/* Hero / Featured Section */
.home-hero {
  padding: 28px 0 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 25% 1fr 25%;
  gap: 0;
  align-items: start;
}

/* Left column - Kata Alissa */
.kata-alissa-col {
  padding: 0 20px 24px 0;
  border-right: 1px solid var(--border);
}

.kata-alissa-col .section-label {
  margin-bottom: 16px;
}

.side-article {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.side-article:last-child { border-bottom: none; }

.side-article-thumb {
  margin-bottom: 8px;
  overflow: hidden;
}

.side-article-thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s;
}

.side-article:hover .side-article-thumb img { transform: scale(1.03); }

.side-article h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  line-height: 1.25; /* 25px */
  margin-bottom: 4px;
}

.side-article h3 a:hover { color: var(--green); }

/* Center - Featured article */
.featured-article {
  padding: 0 20px 24px;
}

.featured-article-col {
  text-align: center;
}

.featured-article-thumb {
  margin-bottom: 12px;
  overflow: hidden;
}

.featured-article-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.3s;
}

.featured-article:hover .featured-article-thumb img { transform: scale(1.02); }

.featured-article .article-author {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 6px;
  font-style: italic;
}

.featured-article .article-author a {
  color: var(--green);
  font-weight: 600;
  font-style: normal;
}

.featured-article h2 {
  font-size: 1.5rem; /* 24px */
  line-height: 1.333; /* 32px */
  margin-bottom: 8px;
  font-weight: 700;
}

.featured-article h2 a:hover { color: var(--green); }

.featured-article .excerpt {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Right column - Peristiwa */
.peristiwa-col {
  padding: 0 0 24px 20px;
  border-left: 1px solid var(--border);
}

.peristiwa-col .section-label {
  margin-bottom: 16px;
}

.peristiwa-article {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.peristiwa-article:last-child { border-bottom: none; }

.peristiwa-article-thumb {
  margin-bottom: 8px;
  overflow: hidden;
}

.peristiwa-article-thumb img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.3s;
}

.peristiwa-article:hover .peristiwa-article-thumb img { transform: scale(1.03); }

.peristiwa-article h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  line-height: 1.35; /* ~27px */
  margin-bottom: 4px;
}

.peristiwa-article h3 a:hover { color: var(--green); }

/* Opini Section */
.home-opini {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.home-opini .section-label { margin-bottom: 20px; }

.opini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.opini-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 0 0;
  border-right: 1px solid var(--border);
}

.opini-card:last-child {
  padding-right: 0;
  border-right: none;
}

.opini-card:not(:first-child) {
  padding-left: 20px;
}

.opini-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.opini-card-thumb {
  width: 72px;
  flex-shrink: 0;
  overflow: hidden;
}

.opini-card-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.opini-card-top h3 {
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  line-height: 1.333; /* 24px */
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opini-card-top h3 a:hover { color: var(--green); }

.opini-card .excerpt {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Sorot Section */
.home-sorot {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.home-sorot .section-label { margin-bottom: 16px; }

.sorot-grid {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 28px;
  justify-content: center; 
  align-items: center;
}

.sorot-main-thumb {
  overflow: hidden;
  flex-shrink: 0;
}

.sorot-main-thumb img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.3s;
}

.sorot-main:hover .sorot-main-thumb img { transform: scale(1.02); }

.sorot-main-body {
  padding-top: 4px;
}

.sorot-main-body .sub-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.sorot-main-body h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.sorot-main-body h2 a:hover { color: var(--green); }

.sorot-main-body .excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Latest Section */
.home-latest {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.home-latest .section-label { margin-bottom: 20px; }

.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.latest-card-thumb {
  margin-bottom: 10px;
  overflow: hidden;
}

.latest-card-thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s;
}

.latest-card:hover .latest-card-thumb img { transform: scale(1.04); }

.latest-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-card h3 a:hover { color: var(--green); }

/* Produk Digital */
.home-produk {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.home-produk .section-label { margin-bottom: 28px; }

.produk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.produk-item {
  padding: 20px 40px;
  border-right: 1px solid var(--border);
}

.produk-item:last-child {
  border-right: none;
}

.produk-icon {
  margin-bottom: 14px;
  color: var(--text);
  display: flex;
  justify-content: center;
  font-size: 40px;
}


.produk-grid a:hover .produk-icon {
  color: var(--green-light)
}

.produk-item h3 {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.produk-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Sastra Section */
.home-sastra {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.home-sastra .section-label { margin-bottom: 20px; }

.sastra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.sastra-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.sastra-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.sastra-main-thumb {
  overflow: hidden;
}

.sastra-main-thumb img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.3s;
}

.sastra-main:hover .sastra-main-thumb img { transform: scale(1.02); }

.sastra-main h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.sastra-main h2 a:hover { color: var(--green); }

.sastra-card-thumb {
  margin-bottom: 8px;
  overflow: hidden;
}

.sastra-card-thumb img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.sastra-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 5px;
}

.sastra-card h3 a:hover { color: var(--green); }

/* Sosok Section */
.home-sosok {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.home-sosok .section-label { margin-bottom: 20px; }

/* sosok grid: left (featured) ~55% | right (list) ~45% */
.sosok-grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 40px;
  align-items: start;
}

/* LEFT: featured sosok — image + body side by side */
.sosok-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.sosok-main-thumb {
  overflow: hidden;
}

.sosok-main-thumb img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.sosok-main-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sosok-cat-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-transform: uppercase;
}

.sosok-main h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0;
}

.sosok-main h2 a:hover { color: var(--green); }

.sosok-main .excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* RIGHT: list of side sosok items */
.sosok-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sosok-list-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.sosok-list-item:first-child { padding-top: 0; }
.sosok-list-item:last-child { border-bottom: none; padding-bottom: 0; }

.sosok-list-item-thumb {
  overflow: hidden;
  flex-shrink: 0;
}

.sosok-list-item-thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.sosok-list-item h3 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.sosok-list-item h3 a:hover { color: var(--green); }

/* =========================================
   CATEGORY PAGE
   ========================================= */
.archive-header {
  padding: 20px 0 16px;
  background: var(--white);
  border-bottom: 2px solid var(--border);
}

.archive-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.archive-title {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.archive-title strong {
  color: var(--text);
  font-size: 1.4rem;
  font-family: var(--font-heading);
  letter-spacing: 0;
  display: block;
  text-transform: none;
  margin-top: 2px;
}

.archive-breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.archive-breadcrumb a { color: var(--green); }
.archive-breadcrumb .sep { color: var(--border); }

.archive-main {
  padding: 28px 0 40px;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.archive-article {
  display: grid;
  grid-template-columns: 1fr 40%;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.archive-article:first-child {
  padding-top: 0;
}

.archive-article-body {
  order: 1;
}

.archive-article-thumb {
  order: 2;
  overflow: hidden;
}

.archive-article-thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.3s;
}

.archive-article:hover .archive-article-thumb img { transform: scale(1.03); }

.archive-article h2 {
  font-size: 1.60rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.archive-article h2 a:hover { color: var(--green); }

.archive-article .excerpt {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s;
}

.pagination a:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.pagination .current {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.pagination .dots {
  border: none;
  width: auto;
}

/* =========================================
   SINGLE POST
   ========================================= */
/* =========================================
   SINGLE / DETAIL PAGE — no sidebar
   ========================================= */
.single-main {
  padding: 40px 0 64px;
}

/* Article wrapper: centered column, readable max-width */
.single-article {
  max-width: 100%;
  margin: 0 auto;
}

/* Category label — centered */
.single-article-cat {
  text-align: center;
  margin-bottom: 14px;
}

/* Title — centered */
.single-article-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Divider line below title */
.single-article-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-top: 20px;
}

/* Date — centered */
.single-article-date {
  display: block;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 20px 0 32px;
}

/* Featured image — centered, constrained width */
.single-article-thumb {
  margin-bottom: 40px;
  overflow: hidden;
  text-align: center;
}

.single-article-thumb img {
  max-width: 100%;
  width: 430px;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: inline-block;
}

.single-article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.single-article-content p {
  margin-bottom: 1.4em;
}

.single-article-content h2 {
  font-size: 1.3rem;
  margin: 1.8em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.single-article-content h3 {
  font-size: 1.1rem;
  margin: 1.5em 0 0.6em;
}

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

.single-article-content em {
  font-style: italic;
}

.single-article-content blockquote {
  border-left: 3px solid var(--green);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: #f0f6f2;
  font-style: italic;
  color: var(--text-muted);
}

.single-article-content ul,
.single-article-content ol {
  margin-bottom: 1.4em;
  padding-left: 24px;
}

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

.single-article-content li { margin-bottom: 0.4em; }

.single-article-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-top: 32px;
}

.author-bio-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
}

.author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-bio-text h4 {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 2px;
}

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

/* Post Navigation */
.post-nav {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.post-nav-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.post-nav-item .nav-dir {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
}

.post-nav-item h4 {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-nav-item h4 a:hover { color: var(--green); }

/* Sidebar */
.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.sidebar-widget:last-child { border-bottom: none; }

.sidebar-widget .section-label { margin-bottom: 14px; }

.sidebar-post {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.sidebar-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar-post-thumb {
  width: 72px;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-post-thumb img {
  width: 72px;
  height: 54px;
  object-fit: cover;
}

.sidebar-post h4 {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 3px;
}

.sidebar-post h4 a:hover { color: var(--green); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: capitalize;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul li a:hover { color: var(--green); }

.footer-authors { display: flex; flex-direction: column; gap: 10px; }

.footer-author-item {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-author-item a:hover { color: var(--green); }

.footer-author-icons {
  display: inline-flex;
  gap: 4px;
}

.footer-author-icons a {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-author-icons a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.footer-logo-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: left;
}

.footer-social {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.15s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.footer-bottom {
  padding-top: 16px;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-light);
}

/* =========================================
   MOBILE MENU OVERLAY
   ========================================= */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-panel {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 280px;
  background: var(--white);
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  float: right;
  color: var(--text-muted);
  padding: 4px;
}

.mobile-nav-menu {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-menu li a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  padding: 12px 0;
  display: block;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

.mobile-nav-menu li a:hover { color: var(--green); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .home-hero-grid { grid-template-columns: 1fr 1fr; }
  .kata-alissa-col { display: none; }
  .opini-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .peristiwa-col { display: none; }
  .sorot-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .opini-grid { grid-template-columns: 1fr; }
  .sosok-grid { grid-template-columns: 1fr; }
  .archive-article { grid-template-columns: 1fr; }
  .archive-article-thumb { order: 1; }
  .archive-article-body { order: 2; }
  .nav-inner { overflow-x: auto; }
  .nav-menu { gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .single-article-title { font-size: 1.6rem; }
  .sosok-main { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .latest-grid { grid-template-columns: 1fr; }
  .produk-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sastra-grid { grid-template-columns: 1fr; }
  .sastra-side { grid-template-columns: 1fr; }
}

/* =========================================
   SEARCH PAGE
   ========================================= */
.search-header {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.search-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
}

.search-form input[type="search"] {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 8px 14px;
  border: 1px solid var(--border);
  width: 300px;
  max-width: 100%;
  outline: none;
}

.search-form input[type="search"]:focus {
  border-color: var(--green);
}

.search-form button {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  background: var(--green);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.search-form button:hover { background: var(--green-dark); }

/* No results */
.no-results {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
}

.no-results h2 { font-size: 1.2rem; margin-bottom: 8px; }
/* -----------------------------------------------
   Back to Top Button
   ----------------------------------------------- */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.15s ease;
  padding: 0;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--green-dark);
}

#back-to-top svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
