/* =====================================================================
   MAIN.CSS — Design System Yayasan Amal Islami
   Editorial Premium Islamic Modern
   ===================================================================== */

/* ============ DESIGN TOKENS ============ */
:root {
  --green-deepest: #082e23;
  --green-deep:    #0d4f3c;
  --green-mid:     #1a6e54;
  --green-soft:    #d4ebde;
  --green-veil:    #ecf6f0;

  --gold:       #c8a046;
  --gold-deep:  #a07f2e;
  --gold-soft:  #e8d29a;
  --gold-veil:  #f5edd4;

  --cream:       #faf6ec;
  --cream-deep:  #f0e9d6;
  --paper:       #fffdf7;

  --ink:        #1a1f2e;
  --ink-soft:   #3b4154;
  --muted:      #6b7280;
  --hairline:   #e5dfd0;

  --error:   #b91c1c;
  --success: #15803d;
  --warning: #b45309;
  --info:    #1d4ed8;

  --shadow-sm:   0 2px 8px rgba(13, 79, 60, 0.06);
  --shadow-md:   0 12px 32px rgba(13, 79, 60, 0.10);
  --shadow-lg:   0 24px 64px rgba(8, 46, 35, 0.18);
  --shadow-gold: 0 16px 48px rgba(200, 160, 70, 0.20);

  --rad-sm: 6px;
  --rad-md: 14px;
  --rad-lg: 24px;
  --rad-xl: 36px;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-arabic:  'Amiri', serif;

  --container-w: 1320px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ============ TYPOGRAPHY ============ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.display em, .accent-em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-deep);
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  unicode-bidi: embed;
}

/* ============ CONTAINER ============ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ============ TOP STRIP ============ */
.topstrip {
  background: var(--green-deepest);
  color: var(--cream);
  font-size: 0.78rem;
  padding: 8px 0;
  letter-spacing: 0.02em;
}
.topstrip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topstrip-left { display: flex; gap: 22px; flex-wrap: wrap; opacity: 0.85; }
.topstrip-left span::before {
  content: "✦";
  color: var(--gold);
  margin-right: 8px;
  font-size: 0.7rem;
}
.topstrip-right a {
  color: var(--gold-soft);
  font-weight: 500;
}
.topstrip-right a:hover { color: var(--gold); }
@media (max-width: 640px) {
  .topstrip { font-size: 0.72rem; padding: 6px 0; }
  .topstrip-left { gap: 14px; }
  .topstrip-left span:nth-child(n+3) { display: none; }
}

/* ============ HEADER / NAV ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
@media (min-width: 1024px) { .nav { height: 84px; gap: 32px; } }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  padding: 4px;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { line-height: 1.1; }
.brand-text .yname {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--green-deep);
}
.brand-text .ysub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
@media (min-width: 1024px) {
  .brand-logo { width: 48px; height: 48px; }
  .brand-text .yname { font-size: 1.18rem; }
  .brand-text .ysub { font-size: 0.7rem; }
}

.nav-menu {
  display: none;
  gap: 28px;
  align-items: center;
}
@media (min-width: 1024px) { .nav-menu { display: flex; } }

.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--green-deep); }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: "›";
  margin-left: 6px;
  display: inline-block;
  transform: rotate(90deg);
  font-size: 0.85rem;
  opacity: 0.5;
  transition: transform 0.3s;
}
.nav-dropdown:hover > a::after { transform: rotate(-90deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 280px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--rad-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--rad-sm);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--green-veil); }
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu .dd-icon {
  width: 36px; height: 36px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}
.nav-dropdown-menu .dd-icon img { width: 100%; height: 100%; object-fit: contain; }
.nav-dropdown-menu .dd-text { flex-grow: 1; }
.nav-dropdown-menu .dd-text .ttl { font-weight: 600; color: var(--ink); display: block; }
.nav-dropdown-menu .dd-text .sub {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
  display: block;
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--green-deep);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }
.nav-cta:hover {
  background: var(--green-deepest);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.nav-cta .arr { transition: transform 0.25s; }
.nav-cta:hover .arr { transform: translateX(3px); }

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 110;
  position: relative;
}
@media (min-width: 1024px) { .nav-burger { display: none; } }
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 105;
  padding: 110px 28px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green-deepest);
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  display: block;
}
.mobile-menu .submenu {
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  margin-left: 0;
  margin-top: 4px;
  margin-bottom: 16px;
}
.mobile-menu .submenu a {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 10px 0;
  border-bottom: none;
}
.mobile-menu .mobile-cta {
  margin-top: 32px;
  background: var(--green-deep);
  color: var(--cream);
  border-radius: var(--rad-md);
  padding: 18px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-bottom: none;
}

body.menu-open { overflow: hidden; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s;
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-deep);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--green-deepest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: transparent;
  color: var(--green-deep);
  border: 1.5px solid var(--green-deep);
}
.btn-secondary:hover {
  background: var(--green-deep);
  color: var(--cream);
}
.btn-gold {
  background: var(--gold);
  color: var(--green-deepest);
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(250, 246, 236, 0.3);
}
.btn-outline-light:hover {
  border-color: var(--cream);
  background: rgba(250, 246, 236, 0.08);
}
.btn-lg { padding: 18px 30px; font-size: 0.95rem; }
.btn-sm { padding: 10px 18px; font-size: 0.84rem; gap: 8px; }
.btn .arr { transition: transform 0.3s; }
.btn:hover .arr { transform: translateX(4px); }

/* ============ SECTION COMMON ============ */
.section { padding: 80px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 100px 0; } }
@media (min-width: 1024px) { .section { padding: 120px 0; } }

.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-green {
  background: var(--green-deepest);
  color: var(--cream);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
@media (min-width: 768px) { .section-head { margin-bottom: 64px; } }
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 18px;
  color: var(--green-deepest);
}
.section-head h2 em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 300;
}
.section-green .section-head h2 { color: var(--cream); }
.section-green .section-head h2 em { color: var(--gold-soft); }
/* Fix invisible text di section dengan dark background */
.programs .section-head h2,
.jadwal .section-head h2 { color: var(--cream); }
.programs .section-head h2 em,
.jadwal .section-head h2 em { color: var(--gold-soft); }
.programs .section-head p,
.jadwal .section-head p { color: rgba(250, 246, 236, 0.78); }
.section-head p {
  font-size: 1.02rem;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.65;
}
.section-green .section-head p { color: rgba(250, 246, 236, 0.75); }

/* ============ PAGE HERO (banner halaman dalam) ============ */
.page-hero {
  background: var(--cream);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(200, 160, 70, 0.10), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(13, 79, 60, 0.06), transparent 50%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; max-width: 820px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--green-deepest);
  margin: 18px 0 24px;
}
.page-hero h1 em { font-style: italic; color: var(--gold-deep); font-weight: 300; }
.page-hero p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 620px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--green-deep); }
.breadcrumb span { color: var(--gold-deep); }

/* ============ FOOTER ============ */
.footer {
  background: var(--green-deepest);
  color: var(--cream);
  padding: 64px 0 28px;
  position: relative;
}
@media (min-width: 768px) { .footer { padding: 80px 0 32px; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 56px; }
}

.footer-brand .yname {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.footer-brand .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-soft);
  margin-bottom: 24px;
}
.footer-brand p {
  font-size: 0.92rem;
  color: rgba(250, 246, 236, 0.65);
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(200, 160, 70, 0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft);
  transition: all 0.25s;
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--green-deepest);
  border-color: var(--gold);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--cream);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(250, 246, 236, 0.65);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold-soft); }

.footer-contact-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: rgba(250, 246, 236, 0.75);
  line-height: 1.5;
}
.footer-contact-item .icon { color: var(--gold); margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(200, 160, 70, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(250, 246, 236, 0.5);
}

/* ============ FORM ELEMENTS ============ */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-group label .req { color: var(--error); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1.5px solid var(--hairline);
  border-radius: var(--rad-md);
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(13, 79, 60, 0.1);
}
.form-control:disabled {
  background: var(--cream);
  color: var(--muted);
  cursor: not-allowed;
}
textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.5; }
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231a1f2e' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-help {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}
.form-error {
  font-size: 0.82rem;
  color: var(--error);
  margin-top: 6px;
  font-weight: 500;
}
.form-control.error { border-color: var(--error); }

.form-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ============ ALERT ============ */
.alert {
  padding: 16px 20px;
  border-radius: var(--rad-md);
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.alert-success { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }
.fade-up-d5 { animation-delay: 0.5s; }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* WA Floating */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ============ SHARED COMPONENTS (used by both public and admin) ============ */

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  min-width: 40px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--rad-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.15s;
  text-decoration: none;
}
.page-btn:hover {
  background: var(--cream);
  border-color: var(--gold-soft);
}
.page-btn.active {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--cream);
}

/* BADGES (status, kategori, dsb) */
.badge-info,
.badge-success,
.badge-warning,
.badge-error,
.badge-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-success { background: #ecfdf5; color: #15803d; border: 1px solid #bbf7d0; }
.badge-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-status  { background: #ecfdf5; color: #15803d; border: 1px solid #bbf7d0; }

/* CHECKBOX LABEL */
.checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* FILTER CHIPS */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-chip {
  display: inline-block;
  padding: 8px 16px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.15s;
  text-decoration: none;
}
.filter-chip:hover {
  border-color: var(--gold);
  color: var(--green-deep);
}
.filter-chip.active {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--cream);
}

/* SPINNER (untuk loading state pada form submit) */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spinner-rotate 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes spinner-rotate { to { transform: rotate(360deg); } }

/* NEWS EMPTY */
.news-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--cream);
  border-radius: var(--rad-md);
}
.news-empty h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--green-deepest);
  margin-bottom: 8px;
}

/* CODE INLINE */
code {
  background: rgba(200, 160, 70, 0.15);
  color: var(--green-deepest);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.88em;
}
