@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

/* =========================================================================
   KABAR TAMBAKBERAS — Editorial / newsroom
   Pondok Pesantren Bahrul Ulum
========================================================================= */

:root {
  --pp-primary:    #005B2E;
  --pp-dark:       #003D1E;
  --pp-mid:        #007A3D;
  --pp-light:      #E8F5EE;
  --pp-gold:       #B8860B;
  --pp-gold-light: #D4A017;
  --pp-cream:      #FFFFFF;
  --text-dark:     #121A14;
  --text-muted:    #5A665E;
  --border:        #E3E7E4;
  --white:         #FFFFFF;
  --bg:            #F7F8F6;
  --surface:       #F7F8F6;
  --header-bg:     #F7F8F6;
  --search-bg:     #ecefed;
  --nav-bar:       #005B2E;
  --header-h: 0px;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --body:  'Source Sans 3', 'Segoe UI', sans-serif;
  --transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.3s ease;
  --radius: 2px;
  --shadow: none;
  --shadow-hover: none;
  --max: 1080px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html[data-theme="dark"] {
  --pp-primary:    #3D9B6A;
  --pp-dark:       #0B1F14;
  --pp-mid:        #2F8A58;
  --pp-light:      #1A2E22;
  --pp-gold:       #D4A017;
  --pp-gold-light: #E8C04A;
  --text-dark:     #E8EEE9;
  --text-muted:    #9AAB9F;
  --border:        #2A3A30;
  --white:         #FFFFFF;
  --bg:            #0E1410;
  --surface:       #0E1410;
  --header-bg:     #0E1410;
  --search-bg:     #1A2420;
  --nav-bar:       #0F3D24;
  color-scheme: dark;
}

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.65;
  min-height: 100%;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

body.has-app-shell {
  padding-bottom: calc(64px + var(--safe-bottom));
}

@media (min-width: 901px) {
  body.has-app-shell { padding-bottom: 0; }
}

body.nav-open {
  overflow: hidden;
}

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

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

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================= SITE HEADER ================= */
.site-header {
  background: var(--header-bg);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: none;
}

.masthead {
  background: transparent;
  border-bottom: none;
}

.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masthead-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  justify-self: end;
  min-width: 0;
}

.masthead-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: min(360px, 42vw);
  background: var(--search-bg);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.masthead-search:focus-within {
  background: var(--bg);
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 3px rgba(0, 91, 46, 0.12);
}

.masthead-search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.masthead-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--body);
  font-size: 0.92rem;
  color: var(--text-dark);
  min-width: 0;
  padding: 0;
}

.masthead-search input::placeholder { color: var(--text-muted); }
.masthead-search input:focus { outline: none; }

.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--search-bg);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--pp-primary);
  color: var(--pp-primary);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.masthead-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.masthead-date,
.admin-link {
  display: none !important;
}

.search-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--search-bg);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0;
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  background: var(--pp-primary);
  border-color: var(--pp-primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--pp-dark);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--pp-primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
  border-radius: 8px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: var(--pp-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-top: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-panel {
  border-top: 1px solid var(--border);
  background: var(--header-bg);
  padding: 0.85rem 1.25rem 1rem;
  animation: fade-up 0.25s ease both;
}

.search-panel[hidden] { display: none !important; }

.search-panel-form {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
}

.search-panel-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--search-bg);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  border: 1px solid transparent;
}

.search-panel-field:focus-within {
  background: var(--bg);
  border-color: var(--pp-primary);
}

.search-panel-field svg { color: var(--text-muted); flex-shrink: 0; }

.search-panel-field input,
.search-panel-form input[type="search"] {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text-dark);
  padding: 0;
}

.search-panel-field input:focus,
.search-panel-form input[type="search"]:focus {
  outline: none;
}

.search-submit {
  border: 0;
  background: var(--pp-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--body);
}

.search-submit:hover { background: var(--pp-dark); }

.search-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-dark);
  border-radius: 999px;
}

.drawer-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem 0.65rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.35rem;
}

.drawer-search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  font-family: var(--body);
  font-size: 0.92rem;
  background: var(--bg);
}

.drawer-search button {
  width: 42px;
  border: 1px solid var(--pp-primary);
  background: var(--pp-primary);
  color: var(--white);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-page-form {
  display: none;
}

/* ================= SEARCH PAGE ================= */
.search-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.search-hero {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.search-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pp-gold);
  margin-bottom: 0.45rem;
}

.search-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
  color: var(--text-dark);
}

.search-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.15rem;
}

.search-hero-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  max-width: 640px;
}

.search-hero-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--search-bg);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 1rem;
  min-height: 48px;
}

.search-hero-field:focus-within {
  background: var(--bg);
  border-color: var(--pp-primary);
  box-shadow: 0 0 0 3px rgba(0, 91, 46, 0.12);
}

.search-hero-field svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-hero-field input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text-dark);
  padding: 0.75rem 0;
  min-width: 0;
}

.search-hero-field input:focus {
  outline: none;
}

.search-clear {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
}

.search-clear:hover {
  background: var(--bg);
  color: var(--text-dark);
}

.search-hero-form > button {
  border: 0;
  background: var(--pp-primary);
  color: var(--white);
  font-weight: 700;
  font-family: var(--body);
  font-size: 0.9rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 48px;
}

.search-hero-form > button:hover {
  background: var(--pp-dark);
}

.search-suggest h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  color: var(--text-dark);
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-chips a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 999px;
}

.search-chips a:hover {
  border-color: var(--pp-primary);
  color: var(--pp-primary);
  background: var(--pp-light);
}

.search-empty {
  padding: 2rem 0;
  color: var(--text-muted);
}

.search-empty a {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--pp-primary);
  font-weight: 700;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .search-hero-form {
    grid-template-columns: 1fr;
  }
  .search-hero-form > button {
    width: 100%;
  }
}

.admin-link {
  background: transparent;
  color: var(--pp-primary) !important;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.admin-link:hover {
  background: var(--pp-primary);
  color: var(--white) !important;
  border-color: var(--pp-primary);
}

.site-nav {
  background: transparent;
  border-top: none;
  border-bottom: none;
  padding: 0 1.25rem;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0.1rem;
  padding: 0 0.65rem;
  overflow: visible;
  position: relative;
  background: var(--nav-bar);
  border-radius: 0 0 14px 14px;
}

.nav-inner > a,
.nav-more-btn {
  color: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  background: transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  font-family: var(--body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}

.nav-inner > a:hover,
.nav-inner > a.active,
.nav-more.is-active .nav-more-btn,
.nav-more-btn:hover,
.nav-more-btn[aria-expanded="true"] {
  color: var(--white);
  border-bottom-color: var(--pp-gold-light);
  background: rgba(0, 0, 0, 0.1);
}

.nav-more {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-more-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 30, 18, 0.14);
  border-radius: 0 0 8px 8px;
  padding: 0.4rem 0;
  z-index: 120;
}

.nav-more-menu[hidden] { display: none !important; }

.nav-more-menu a {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.nav-more-menu a:hover,
.nav-more-menu a.active {
  background: var(--pp-light);
  color: var(--pp-primary);
  border-left-color: var(--pp-primary);
}

/* Drawer + backdrop (mobile) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 14, 0.45);
  z-index: 210;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-backdrop[hidden] {
  display: none !important;
}

body.nav-open .nav-backdrop,
body.search-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(88vw, 340px);
  height: 100%;
  background: var(--bg);
  z-index: 220;
  transform: translateX(-105%);
  transition: transform 0.28s ease, visibility 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  padding-bottom: var(--safe-bottom);
  pointer-events: none;
  visibility: hidden;
}

body.nav-open .site-drawer {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.1rem 1rem;
  border-bottom: 1px solid var(--border);
}

.drawer-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.drawer-brand strong {
  display: block;
  font-family: var(--serif);
  color: var(--pp-primary);
  font-size: 1.05rem;
  line-height: 1.2;
}

.drawer-brand span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-dark);
}

.drawer-nav {
  overflow-y: auto;
  padding: 0.5rem 0 1.5rem;
  display: flex;
  flex-direction: column;
}

.drawer-nav a {
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-left: 3px solid transparent;
}

.drawer-nav a.active,
.drawer-nav a:hover {
  background: var(--pp-light);
  color: var(--pp-primary);
  border-left-color: var(--pp-primary);
}

.drawer-label {
  margin: 1rem 1.25rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .masthead-inner {
    grid-template-columns: auto 1fr auto;
  }
  .masthead-tools .masthead-search { display: none; }
  .masthead-tools {
    display: none;
  }
  .masthead-actions {
    display: flex;
  }
}

@media (min-width: 901px) {
  .site-drawer,
  .nav-backdrop { display: none !important; }
}

/* Legacy alias */
.header-top { display: none; }

/* ================= MUKTAMAR STRIP ================= */
.muk-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.muk-strip-brand {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--pp-primary);
}

.muk-strip-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 12rem;
}

.muk-strip-cta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pp-dark);
  border-bottom: 1px solid var(--pp-gold);
}

.muk-strip:hover .muk-strip-cta {
  color: var(--pp-primary);
  border-bottom-color: var(--pp-primary);
}

/* ================= HOME LAYOUT ================= */
.home-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

.container, .article-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.lead-story {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  padding: 1.35rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  animation: fade-up 0.45s ease both;
}

.lead-media {
  display: block;
  overflow: hidden;
  background: var(--pp-light);
  align-self: start;
}

.lead-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.lead-media:hover img { transform: scale(1.025); }

.hero-no-img,
.card-no-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--pp-light), #d7e8dc);
}

.lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.25rem 0;
}

.lead-labels {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.lead-flag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--pp-dark);
  padding: 0.18rem 0.45rem;
}

.lead-kicker,
.hero-kicker {
  color: var(--pp-gold);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lead-title,
.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 0.7rem;
  letter-spacing: -0.015em;
}

.lead-title a:hover,
.hero-title a:hover { color: var(--pp-primary); }

.lead-dek,
.hero-summary {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lead-byline,
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.lead-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.share-bar--home {
  margin-left: 0;
}

.share-bar--home .share-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border-color: var(--border);
}

.share-bar--home .share-btn:hover {
  background: var(--pp-light);
}

.card-meta--share {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.share-mini {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.share-mini:hover,
.feature-card:hover .share-mini {
  opacity: 1;
  color: var(--pp-primary);
  background: var(--pp-light);
}

.share-mini.is-copied {
  color: var(--pp-primary);
  opacity: 1;
}

.lead-byline span:first-child,
.meta-author {
  color: var(--pp-primary);
  font-weight: 700;
}

.home-latest,
.page-section {
  margin: 0;
}

.page-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
}

.page-hero {
  background: transparent;
  border: none;
  border-radius: 0;
  max-width: none;
  margin: 0 0 1.15rem;
  padding: 0 0 0.85rem;
  text-align: left;
  box-shadow: none;
  outline: none;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: var(--text-dark);
  text-shadow: none;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-hero p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.legal-page .legal-body {
  max-width: 42rem;
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-page .legal-body p {
  margin: 0 0 1rem;
}

.legal-page .legal-body a {
  color: var(--pp-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.contact-list strong {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-list span {
  color: var(--text-dark);
}

@media (max-width: 560px) {
  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.75rem 0 1.25rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--text-dark);
  text-shadow: none;
  padding: 0;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  background: var(--pp-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pp-primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.1rem;
}

.section-more::after {
  content: "→";
  font-weight: 700;
  transition: transform 0.2s ease;
}

.section-more:hover {
  text-decoration: none;
  color: var(--pp-dark);
}

.section-more:hover::after {
  transform: translateX(3px);
}

html[data-theme="dark"] .section-more:hover {
  color: var(--pp-gold-light);
}

.section-line { display: none; }

.section-note {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.home-popular,
.home-latest {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.home-popular {
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
}

.home-latest {
  padding-bottom: 2.75rem;
}

.popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.popular-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}

.popular-rank {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pp-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  padding-top: 0.1rem;
}

.popular-body {
  min-width: 0;
}

.popular-title {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.1rem 0 0.35rem;
  letter-spacing: -0.01em;
}

.popular-title a:hover {
  color: var(--pp-primary);
}

.popular-thumb {
  display: block;
  width: 96px;
  overflow: hidden;
  background: var(--pp-light);
  flex-shrink: 0;
}

.popular-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

@media (max-width: 600px) {
  .popular-item {
    grid-template-columns: 2rem 1fr;
  }
  .popular-thumb {
    display: none;
  }
  .popular-rank {
    font-size: 1.15rem;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
  margin-bottom: 0.5rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  animation: fade-up 0.45s ease both;
}

.feature-media {
  display: block;
  overflow: hidden;
  background: var(--pp-light);
  margin-bottom: 0.75rem;
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-card:hover .feature-media img { transform: scale(1.03); }

.feature-title {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.32;
  margin: 0.2rem 0 0.4rem;
  letter-spacing: -0.01em;
}

.feature-title a:hover { color: var(--pp-primary); }

.feature-dek {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.55rem;
}

.story-list {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.story-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  animation: fade-up 0.4s ease both;
}

.story-thumb {
  display: block;
  overflow: hidden;
  background: var(--pp-light);
  align-self: start;
}

.story-thumb img,
.story-thumb .card-no-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-title {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.15rem 0 0.4rem;
}

.story-title a:hover { color: var(--pp-primary); }

/* Keep older card grid for kategori */
.berita-grid {
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.25rem;
}

.card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  display: block;
  background: var(--pp-light);
  margin-bottom: 0.75rem;
}

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

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

.card-kat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 0 0.25rem;
  color: var(--pp-primary);
}

.card-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

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

.card-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0;
  margin-bottom: 0.55rem;
  flex-grow: 1;
  line-height: 1.5;
}

.card-meta {
  padding: 0;
  border-top: none;
  display: flex;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  background: transparent;
}

.empty {
  text-align: left;
  color: var(--text-muted);
  padding: 2rem 0;
  font-size: 0.95rem;
}

.empty a { color: var(--pp-primary); font-weight: 700; }

.pagination {
  display: flex;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 1.5rem 0 1rem;
  flex-wrap: wrap;
}

.pagination a, .pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
}

.pagination a:hover,
.pagination .current {
  background: var(--pp-primary);
  color: var(--white);
  border-color: var(--pp-primary);
}

.site-footer {
  background: transparent;
  color: var(--white);
  padding: 0 1.25rem calc(1rem + var(--safe-bottom));
  text-align: left;
  border-top: none;
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--nav-bar);
  border-radius: 14px 14px 0 0;
  padding: 2rem 1.35rem 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
  gap: 1.75rem 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.footer-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28rem;
}

.footer-links,
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a,
.footer-link-btn,
.footer-contact-list a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-links a:hover,
.footer-link-btn:hover,
.footer-contact-list a:hover {
  color: var(--pp-gold-light);
}

.footer-contact-list li {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-top: 1.1rem;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  line-height: 1.45;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--pp-gold-light);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 1.1rem;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    padding: 1.5rem 1.1rem 1.1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================= APP TAB BAR + PWA ================= */
/* Mobile-first: tabbar tampil di HP; disembunyikan di desktop */
.app-tabbar {
  display: grid;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.15rem;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 0.35rem 0.4rem calc(0.35rem + var(--safe-bottom));
  box-shadow: 0 -6px 20px rgba(0, 30, 18, 0.06);
}

.app-tabbar .tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 48px;
}

.app-tabbar .tab svg { display: block; }
.app-tabbar .tab.is-active,
.app-tabbar .tab:hover { color: var(--pp-primary); }

.pwa-install {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(72px + var(--safe-bottom));
  z-index: 260;
  background: var(--pp-dark);
  color: var(--white);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 30px rgba(0, 30, 18, 0.28);
}

.pwa-install[hidden] { display: none !important; }

.pwa-install-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pwa-install-copy strong {
  font-size: 0.88rem;
}

.pwa-install-copy span {
  font-size: 0.75rem;
  opacity: 0.75;
}

.pwa-install-btn {
  border: 0;
  background: var(--pp-gold);
  color: var(--pp-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}

.pwa-install-dismiss {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}

@media (max-width: 900px) {
  .lead-story {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding-top: 1rem;
  }
  .lead-dek { -webkit-line-clamp: 3; }
  .feature-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .story-row { grid-template-columns: 96px 1fr; gap: 0.75rem; }
  .berita-grid { grid-template-columns: 1fr; }
  .muk-strip-meta { flex: 1 1 100%; order: 3; }
  .site-footer {
    padding-bottom: calc(4.75rem + var(--safe-bottom));
  }
}

@media (min-width: 901px) {
  .app-tabbar { display: none !important; }
  body.has-app-shell { padding-bottom: 0; }
  .pwa-install {
    left: auto;
    right: 1.25rem;
    bottom: 1.25rem;
    width: min(380px, calc(100vw - 2.5rem));
  }
}

/* ================= ARTIKEL DETAIL ================= */
.breadcrumb {
  max-width: 760px;
  margin: 1.25rem auto 0;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--pp-primary); }
.breadcrumb a:hover { color: var(--pp-dark); text-decoration: underline; }

.article-wrap {
  max-width: 760px;
  padding: 1.75rem 1.5rem 3.5rem;
  background: transparent;
  border-radius: 0;
  margin: 0 auto;
  box-shadow: none;
  border-top: none;
}

.back-link {
  color: var(--pp-primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid transparent;
}

.back-link:hover {
  background: transparent;
  color: var(--pp-dark);
  border-bottom-color: var(--pp-primary);
}

.art-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--pp-primary);
}

.art-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.22;
  color: var(--text-dark);
  margin-bottom: 0.9rem;
  letter-spacing: -0.015em;
}

.art-author {
  font-weight: 700;
  color: var(--pp-primary);
  font-size: 0.9rem;
}

.art-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  background: transparent;
  border-radius: 0;
  margin-bottom: 1.5rem;
  border-left: none;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
  margin-left: auto;
}

.share-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.share-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--search-bg);
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.share-btn:hover {
  border-color: var(--pp-primary);
  color: var(--pp-primary);
  background: var(--pp-light);
  transform: translateY(-1px);
}

.share-btn--lg {
  width: auto;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
}

.share-btn[hidden] { display: none !important; }

.share-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 2rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--search-bg);
  position: relative;
}

.share-panel-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.share-panel-copy strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text-dark);
}

.share-panel-copy span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.share-toast {
  position: absolute;
  right: 0.75rem;
  top: -0.65rem;
  background: var(--pp-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

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

.share-bar .share-toast {
  right: 0;
  top: calc(100% + 0.35rem);
}

@media (max-width: 640px) {
  .art-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .share-bar {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .share-panel {
    align-items: flex-start;
  }
  .share-btn--lg span {
    display: none;
  }
  .share-btn--lg {
    width: 40px;
    padding: 0;
  }
}

.art-hero-img {
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: none;
}

.art-summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--pp-primary);
}

.art-hero-img img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.art-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}

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

.art-body h2, .art-body h3 {
  font-family: var(--serif);
  color: var(--pp-primary);
  margin: 2rem 0 0.75rem;
}

.art-body img {
  border-radius: 10px;
  margin: 1.25rem auto;
  box-shadow: var(--shadow);
}

.art-body blockquote {
  border-left: 4px solid var(--pp-gold);
  background: var(--pp-light);
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.galeri-grid img {
  border-radius: 10px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.galeri-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.author-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--pp-light);
  border-radius: 12px;
  border-left: 4px solid var(--pp-primary);
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,60,30,0.06);
}

.author-avatar {
  width: 50px; height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pp-primary), var(--pp-mid));
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
}

.author-name { font-weight: 700; color: var(--pp-primary); margin-bottom: 0.25rem; }
.author-name a {
  color: inherit;
  text-decoration: none;
}
.author-name a:hover { text-decoration: underline; text-underline-offset: 2px; }
.author-bio  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.author-more {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pp-primary);
  text-decoration: none;
}
.author-more:hover { text-decoration: underline; text-underline-offset: 2px; }

.art-author a,
a.author-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}
.art-author a:hover,
a.author-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contrib-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  margin: 0 0 1.5rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--border);
}

.contrib-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pp-primary), var(--pp-mid));
  color: var(--white);
  font-size: 1.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  object-fit: cover;
}

.contrib-avatar--img {
  background: var(--pp-light);
  border: 1px solid var(--border);
}

.contrib-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contrib-copy h1 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contrib-bio {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 40rem;
}

.contrib-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .contrib-hero {
    gap: 0.9rem;
  }
  .contrib-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    font-size: 1.35rem;
  }
}

.terkait-section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.terkait-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--pp-primary);
  margin-bottom: 0.4rem;
}

.terkait-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--pp-gold);
  margin-top: 0.3rem;
  border-radius: 2px;
}

.terkait-grid { display: grid; gap: 0.75rem; margin-top: 1rem; }

.terkait-card {
  padding: 0.9rem 1.1rem;
  background: var(--pp-light);
  border-radius: 10px;
  border-left: 3px solid var(--pp-gold);
  transition: var(--transition);
}

.terkait-card:hover {
  background: #d4edda;
  transform: translateX(4px);
}

.t-title a { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; line-height: 1.5; }
.t-title a:hover { color: var(--pp-primary); }
.t-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .berita-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}

@media (max-width: 768px) {
  .berita-grid { grid-template-columns: 1fr; }
  .article-wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
  #backToTop { bottom: calc(84px + var(--safe-bottom)); }
}

/* ================= ADMIN HEADER ================= */
.admin-header {
  background: linear-gradient(135deg, var(--pp-dark), var(--pp-primary));
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,60,30,0.25);
  border-bottom: 3px solid var(--pp-gold);
}

.admin-logo {
  font-family: var(--serif);
  color: var(--pp-gold-light);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-logo span {
  font-family: var(--body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--pp-gold);
  color: var(--pp-dark);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
}

.admin-nav { display: flex; align-items: center; gap: 1.25rem; }

.admin-nav a {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
}

.admin-nav a:hover { color: var(--pp-gold-light); }

.logout { color: #ff9090 !important; }
.logout:hover { color: #ffbcbc !important; }

/* ================= ADMIN CONTAINER ================= */
.admin-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--pp-gold);
}

/* ================= GREETING ================= */
.page-title,
.greeting h1 {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--pp-primary);
  margin-bottom: 0.4rem;
}

.greeting p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.75rem; }

/* ================= STATS ================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-box {
  background: var(--pp-light);
  padding: 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--pp-primary);
  box-shadow: 0 4px 12px rgba(0,60,30,0.06);
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-top-color: var(--pp-gold);
}

.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--pp-primary); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ================= TABLE ================= */
.table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.table-head h2 { font-family: var(--serif); color: var(--pp-primary); }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,60,30,0.06);
  border: 1px solid var(--border);
}

th, td { padding: 1rem 1.25rem; text-align: left; }

th {
  background: var(--pp-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

td { border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--pp-light); }

/* ================= BADGES ================= */
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-pub   { background: #d1fae5; color: #065f46; }
.badge-draft { background: #fef9c3; color: #854d0e; }

/* ================= ACTIONS ================= */
.acts { display: flex; gap: 0.4rem; }

.act-link {
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition);
}

.act-edit  { background: var(--pp-light); color: var(--pp-primary); }
.act-edit:hover  { background: #c3e6cb; }
.act-view  { background: #f3f4f6; color: #4b5563; }
.act-view:hover  { background: #e5e7eb; }
.act-del   { background: #fee2e2; color: #b91c1c; }
.act-del:hover   { background: #fecaca; }

/* ================= FORM ELEMENTS ================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.25rem; }
.form-group:last-child { margin-bottom: 0; }

input[type="text"], input[type="password"], input[type="url"],
select, textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fdfdfd;
  transition: var(--transition);
  margin-bottom: 1.25rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pp-primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 91, 46, 0.1);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--pp-primary);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="color"] {
  width: 100%;
  height: 44px;
  margin-bottom: 1.25rem;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  background: var(--white);
}

/* ================= BUTTONS ================= */
.btn, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  background: var(--pp-primary);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--body);
  font-size: 0.88rem;
}

.btn:hover, .btn-primary:hover {
  background: var(--pp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,60,30,0.25);
  color: var(--pp-gold-light);
}

.btn-save { background: var(--pp-dark); color: var(--white); }
.btn-save:hover { background: var(--pp-primary); color: var(--pp-gold-light); }

.btn-pub {
  background: linear-gradient(135deg, var(--pp-gold), #a87200);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.88rem;
  transition: var(--transition);
}

.btn-pub:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(200, 150, 12, 0.35);
}

.btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ================= ADMIN FORM CARD ================= */
.form-card,
.card.admin-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,60,30,0.06);
  border: 1px solid var(--border);
  border-top: 3px solid var(--pp-primary);
}

.form-card .card-title,
.card.admin-card .card-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pp-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pp-light);
}

/* ================= IMG PREVIEW ================= */
.img-preview {
  width: 100%;
  aspect-ratio: 16/10;
  border: 2px dashed var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--pp-light);
  transition: var(--transition);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.img-preview:hover { border-color: var(--pp-primary); background: #c8e6c9; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ================= GALERI ADMIN ================= */
.galeri-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

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

.galeri-del {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(185, 28, 28, 0.85);
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.galeri-del input { display: none; }
.galeri-del:hover { background: #b91c1c; }

/* ================= ALERTS ================= */
.alert, .alert-ok, .alert-err, .success, .error {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid;
}

.alert-ok, .success {
  background: #e8f5ee;
  border-color: #a8d5b8;
  color: var(--pp-primary);
}

.alert-err, .error {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: var(--pp-light);
  border-radius: 14px;
  border: 1px dashed var(--border);
}

.empty-state a { color: var(--pp-primary); font-weight: 700; }

/* ================= LOGIN BOX ================= */
.box {
  background: var(--white);
  max-width: 400px;
  margin: 4rem auto;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 60, 30, 0.2);
  border: 1px solid var(--border);
  border-top: 5px solid var(--pp-primary);
  border-bottom: 5px solid var(--pp-gold);
}

.box-logo {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--pp-primary);
  text-align: center;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.box-sub {
  text-align: center;
  color: var(--pp-gold);
  font-weight: 700;
  margin-bottom: 1.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.back { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; }
.back a { color: var(--text-muted); }
.back a:hover { color: var(--pp-primary); }

/* ================= QUILL EDITOR ================= */
#editor {
  border-radius: 0 0 10px 10px;
  min-height: 280px;
  margin-bottom: 1.25rem;
}

/* ================= BACK TO TOP ================= */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--pp-gold);
  color: var(--pp-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(200, 150, 12, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  border: none;
}

#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--pp-primary); color: var(--pp-gold-light); transform: translateY(-3px); }
