/* ===== GLOBAL & LAYOUT ===== */
html {
  scrollbar-gutter: stable; /* Menjaga space scrollbar tetap ada walaupun overflow hidden */
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #fbfcfb;
  color: #0b1220;
  line-height: 1.6;
}
body.modal-open {
  overflow: hidden;
}
.container {
  padding: 0;
  min-height: 67vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bagian {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bagian.kalender {
  gap: 0;
  height: 45vh;
  min-height: 210px;
  justify-content: end;
  padding: 10px 0;
}
/* Agenda V5: statis, tinggi ngikutin isi — lebar disamain kayak banner */
.bagian.kalender.agenda-mode {
  height: auto;
  min-height: unset;
  width: calc(100% - 40px);
  max-width: 1200px;
  /* margin: 0 auto; */
  margin: 72px auto 0;
  padding: 0;
  box-sizing: border-box;
}
.bagian.jurnal {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  z-index: 2;
}

/* ===== Background gradasi ala Perkstack (pk-bg + 4 blob ijo blur) ===== */
.pk-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.pk-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  -webkit-filter: blur(64px);
  will-change: transform;
}
.pk-blob-1 {
  width: 600px;
  height: 600px;
  left: -160px;
  top: 38%;
  background: radial-gradient(circle at 35% 35%, rgb(82, 224, 166), rgb(6, 163, 90) 58%, rgba(0, 0, 0, 0) 72%);
  opacity: 0.16;
}
.pk-blob-2 {
  width: 540px;
  height: 540px;
  right: -160px;
  top: 58%;
  background: radial-gradient(circle at 60% 40%, rgb(143, 240, 203), rgb(16, 185, 129) 55%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.13;
}
.pk-blob-3 {
  width: 520px;
  height: 520px;
  left: 22%;
  top: auto;
  bottom: -180px;
  background: radial-gradient(circle, rgb(199, 247, 226), rgb(111, 227, 187) 52%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.10;
}
.pk-blob-4 {
  width: 380px;
  height: 380px;
  right: 12%;
  top: auto;
  bottom: -120px;
  background: radial-gradient(circle at 45% 55%, rgb(167, 243, 208), rgb(52, 211, 153) 50%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.08;
}
/* konten di atas blob */
.container,
.main-footer {
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .pk-blob-1 { width: 340px; height: 340px; left: -140px; top: 45%; }
  .pk-blob-2 { width: 320px; height: 320px; right: -140px; top: 65%; }
  .pk-blob-3 { left: -60px; top: auto; bottom: -120px; width: 320px; height: 320px; }
  .pk-blob-4 { display: none; }
}
@media (prefers-color-scheme: dark) {
  .pk-bg { opacity: 0.25; }
}


/* ===== HEADER PILL — floating putih ala Perkstack, cuma branding ===== */
.header {
  position: sticky;
  z-index: 100;
  top: 0;
}
.header-inner {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  max-width: 1200px;
  margin: auto;
  width: calc(100vw - 40px);
}
.header-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid #e2eae6;
  border-radius: 10px;
  padding: 10px 20px 10px 14px;
  box-shadow: rgba(10, 10, 10, 0.04) 0px 1px 2px 0px, rgba(10, 10, 10, 0.04) 0px 4px 12px 0px, rgba(10, 10, 10, 0.08) 0px 16px 40px -12px;
}
.brand-logo-sm {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #06a35a;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.header h1 {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  font-family: "Fraunces", serif;
  white-space: nowrap;
}
.header p {
  margin: 0;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .header {
    padding: 8px 12px 0;
  }
  .header-pill {
    gap: 10px;
    padding: 8px 18px 8px 12px;
  }
  .brand-logo-sm {
    width: 28px;
    height: 28px;
  }
  .header h1 {
    font-size: 16px;
  }
  .header p {
    font-size: 11px;
  }
}

/* ===== BANNER SLIDER DYNAMIC ===== */
.bagian.banner-slider {
  position: relative;
  width: calc(100% - 40px);
  margin: 0 auto;
  aspect-ratio: 4 / 1; /* Rasio 1/4 Landscape pas banget Win */
  overflow: hidden;
  max-width: 1200px;
  border-radius: 10px;
  border: 1px solid #e2eae6;
  touch-action: pan-y; /* Biarkan scroll vertikal, tangkap swipe horizontal */
  user-select: none;
  -webkit-user-select: none;
}
.bagian.banner-slider:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  margin: auto;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out; /* Kecepatan transisi fade */
  z-index: 1;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Tombol panah navigasi — muncul saat hover banner */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    background 0.2s ease,
    transform 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.slider-arrow.prev {
  left: 16px;
}
.slider-arrow.next {
  right: 16px;
}
.bagian.banner-slider:hover .slider-arrow,
.bagian.banner-slider:focus-within .slider-arrow {
  opacity: 1;
}
.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.08);
}
.slider-arrow:active {
  transform: translateY(-50%) scale(0.94);
}
/* Sembunyikan panah di perangkat sentuh (tanpa hover), ganti pakai swipe */
@media (hover: none) {
  .slider-arrow {
    display: none;
  }
}

/* ===== JURNAL / BERITA ===== */
h2 {
  font-family: "Fraunces", serif;
  padding-right: 4px;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 6px;
}
h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  /* padding: 10px 0 0 4px; */
  padding: 10px 0 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.jurnal-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #06a35a;
  margin-bottom: 20px;
}
/* Judul seksi beranda — tarik dikit biar gak kegedean */
.jurnal-header h3 {
  font-size: 18px;
}
.jurnal-count {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}
/* Layout V6: featured + grid card BERDIRI SENDIRI (tidak satu grid) */
.jurnal-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* BLOK ATAS — grid mandiri: kiri hero 1:1, kanan stack 2 secondary */
.news-featured {
  display: grid;
  /* grid-template-columns: 1.15fr 1fr; */
  grid-template-columns: 2.5fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.news-secondary-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 0;
  min-width: 0;
}
/* BLOK BAWAH — grid card murni, tidak ngaruh ke featured */
.news-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
}
.jurnal-empty {
  color: #94a3b8;
  text-align: center;
  padding: 40px 0;
  font-size: 12px;
}

/* Share Utilities Jurnal */
.news-time {
  display: flex;
  align-items: center;
  gap: 5px;
  /* font-size: 10px; */
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
  flex-wrap: wrap;
}
.news-reltime {
  font-weight: 600;
  color: #06a35a;
}
.news-dot {
  opacity: 0.5;
}
.news-date {
  color: #94a3b8;
}
.news-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  background: #06a35a;
  color: #fff;
  width: fit-content;
  line-height: 1.6;
}

/* Jurnal Hero Card */
.news-hero {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid #e2eae6;
}
.news-hero:hover {
  transform: translateY(-3px);
  box-shadow: rgba(10, 10, 10, 0.04) 0px 1px 2px 0px, rgba(10, 10, 10, 0.04) 0px 4px 12px 0px, rgba(10, 10, 10, 0.08) 0px 16px 40px -12px;
}
.news-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.news-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 30, 18, 0.82) 0%,
    rgba(10, 30, 18, 0.45) 30%,
    rgba(10, 30, 18, 0.2) 60%,
    rgba(10, 30, 18, 0.05) 100%
  );
  z-index: 1;
}
.news-hero-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-hero-title {
  font-family: "Fraunces", serif;
  font-size: 25px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-hero-excerpt {
  /* font-size: 12px; */
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-hero .news-time {
  color: rgba(255, 255, 255, 0.55);
}
.news-hero .news-reltime {
  color: #5ee9b5;
}
.news-hero .news-dot {
  color: rgba(255, 255, 255, 0.35);
}
.news-hero .news-date {
  color: rgba(255, 255, 255, 0.5);
}

/* Jurnal Secondary Card */
.news-secondary {
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #e2eae6;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.news-secondary:hover {
  transform: translateY(-2px);
  box-shadow: rgba(10, 10, 10, 0.04) 0px 1px 2px 0px, rgba(10, 10, 10, 0.04) 0px 4px 12px 0px, rgba(10, 10, 10, 0.08) 0px 16px 40px -12px;
}
.news-secondary-img {
  flex: 0 0 auto;
  /* height: 140px; */
  height: 200px;
  position: relative;
  overflow: hidden;
}
.news-secondary-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 50% 25%;
}
.news-secondary-img .news-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
}
.news-secondary-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.news-secondary-title {
  font-family: "Fraunces", serif;
  /* font-size: 15px; */
  font-size: 16px;
  font-weight: 700;
  color: #0b1220;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-secondary-excerpt {
  /* font-size: 11px; */
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* V6: secondary di dalam .news-secondary-stack — tidak perlu placement nth-child lagi */

/* Jurnal Standard Card */
.news-card {
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #e2eae6;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: rgba(10, 10, 10, 0.04) 0px 1px 2px 0px, rgba(10, 10, 10, 0.04) 0px 4px 12px 0px, rgba(10, 10, 10, 0.08) 0px 16px 40px -12px;
}
.news-card-img {
  flex: 0 0 250px;
  position: relative;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 50% 0%;
}
.news-card-img .news-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 10px;
  padding: 2px 7px;
}
.news-card-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 4px;
}
.news-card-title {
  font-family: "Fraunces", serif;
  /* font-size: 14px; */
  font-size: 16px;
  font-weight: 700;
  color: #0b1220;
  line-height: 1.35;
  margin: 0 0 5px;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-excerpt {
  /* font-size: 10px; */
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== PAGINATION & BUTTONS ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
  background: #fff;
  color: #000;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid #e2eae6;
}
.page-btn:hover {
  background: #e7f6ee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.page-btn.active {
  background: #06a35a;
  color: #fff;
  cursor: default;
}
.copy-btn {
  border: none;
  background: #e7f6ee;
  cursor: pointer;
  color: #06a35a;
  margin-left: 0;
  font-size: 11px;
  border-radius: 99px;
  width: 30px;
  height: 30px;
}

/* ===== KALENDER CARD ===== */
#scroller {
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  contain: paint;
}
.snap-scroller {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  background: transparent;
  margin-bottom: 0;
  padding: 10px;
  gap: 10px;
  padding-bottom: 1px;
}
.snap-scroller::-webkit-scrollbar {
  display: none;
}
.card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  width: clamp(200px, 70vw, 260px);
  height: auto;
  display: grid;
  border-radius: 10px;
  background: #1d1d1d;
  color: #234;
  text-decoration: none;
  user-select: none;
  padding: 0;
  will-change: transform;
  transform: translateZ(0);
}
.card .thumb {
  width: 100%;
  height: 100%;
  background: #eef2f7;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  display: none;
}
.card .meta {
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  line-height: 1;
  margin: 0;
}
.card .title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.card .date {
  font-size: 12px;
  opacity: 0.6;
  color: #fff;
}
.card.right {
  max-height: 86vh;
}
.kaldik {
  z-index: 2;
  padding: 20px 0;
  position: relative;
}
.kaldik h3 {
  max-width: 500px;
}
.bg-kaldik {
  position: absolute;
  z-index: 0;
  right: 0;
  line-height: 0;
  bottom: 0;
}
.bg-kaldik img {
  height: 40vh;
}
.kaldik-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== MODAL ===== */
.modal-backdrop,
.modal {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
}
.modal-backdrop {
  background: rgba(16, 42, 35, 0.45);
}
.modal {
  display: grid;
  place-items: center;
  z-index: 1001;
  background: rgba(16, 42, 35, 0.45);
}
.modal.open,
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal .modal-panel {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: calc(100vw - 36px);
  height: calc(100vh - 36px);
  border-radius: 8px;
  padding: 0;
  max-width: 720px;
}
.modal-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #d7d7d7;
  background: #fbfbfb;
}
.modal-title {
  font-weight: 600;
  font-size: 14px;
}
.modal-body {
  padding: 32px;
  overflow-x: hidden;
  font-size: 12px;
  overflow-y: auto;
}
.modal-body img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 10px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.modal-close {
  border: none;
  background: #e7f6ee;
  border-radius: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.modal-close-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #e7f6ee;
  border: none;
  color: #0b1220;
  font-size: 18px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}
.modal-close-btn:hover {
  background: #d3eddd;
}
.modal-body .meta {
  align-items: center;
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
.catatan-body {
  line-height: 1.4;
  font-weight: 300;
  grid-column: 2;
}
.catatan-body ul,
.catatan-body ol {
  padding-left: 20px;
  margin: 6px 0;
}
.catatan-body b {
  font-weight: 600;
}
.catatan-body i {
  font-style: italic;
}
.catatan-body u {
  text-decoration: underline;
}
.catatan-body s {
  text-decoration: line-through;
}
.catatan-body blockquote {
  border-left: 3px solid #06a35a;
  margin: 6px 0;
  padding-left: 10px;
  color: #555;
  font-style: italic;
}
.catatan-body a {
  color: #06a35a;
  text-decoration: underline;
}
.catatan-body h1 {
  font-size: 1.4em;
  font-weight: inherit;
  font-style: inherit;
  text-decoration: inherit;
  margin: 0 0 6px;
  line-height: 1.2;
}

.catatan-body figure.catatan-figure {
  margin: 16px 0;
  text-align: center;
}
.catatan-body figure.catatan-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
}
.catatan-body figure.catatan-figure figcaption {
  font-size: 0.85em;
  opacity: 0.65;
  margin-top: 8px;
  font-style: italic;
  text-align: center;
}

/* === Video catatan (player custom Plyr, ImageKit) === */
.catatan-body figure.catatan-video {
  margin: 18px 0;
}
.catatan-body figure.catatan-video video,
.catatan-body .plyr {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
/* tema Plyr ngikut aksen situs */
.catatan-body .plyr {
  --plyr-color-main: #06a35a;
  --plyr-video-control-color-hover: #fff;
  --plyr-control-icon-size: 18px;
  --plyr-control-radius: 6px
}
.catatan-body .plyr__progress input[type="range"] {
  cursor: pointer;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f6ee;
  color: #06a35a;
  width: fit-content;
}

/* ===== FOOTER ===== */
.main-footer {
  margin-top: 20px;
  background: #0b1220;
  color: #fbfcfb;
  border-top: 1px solid rgba(251, 252, 251, 0.15);
  font-family: "Inter", sans-serif;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.footer-col h4 {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  color: rgba(251, 252, 251, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  position: relative;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background: #06a35a;
  border-radius: 1px;
}
.footer-logo-title {
  display: grid;
  gap: 10px;
  margin-bottom: 15px;
  color: #fbfcfb;
}
.footer-logo-title i {
  font-size: 22px;
}
.footer-logo-title h4 {
  margin-bottom: 0;
}
.footer-logo-title h4::after {
  display: none;
}
.footer-desc {
  font-size: 14px;
  color: rgba(251, 252, 251, 0.6);
  line-height: 1.6;
  margin: 0;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul a {
  color: rgba(251, 252, 251, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.footer-col ul a i {
  font-size: 10px;
  transition: transform 0.2s;
}
.footer-col ul a:hover {
  color: #fbfcfb;
  padding-left: 5px;
}
.footer-col ul a:hover i {
  transform: translateX(3px);
}
.footer-col p {
  font-size: 14px;
  color: rgba(251, 252, 251, 0.7);
  margin: 0 0 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-col p i {
  color: #5ee9b5;
  margin-top: 4px;
  width: 16px;
  text-align: center;
}

/* Bagian Bawah */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  border-top: 1px solid rgba(251, 252, 251, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .socials {
  display: flex;
  gap: 14px;
}
.footer-bottom .socials a {
  color: rgba(251, 252, 251, 0.7);
  font-size: 20px;
  transition: all 0.2s ease;
  display: inline-block;
}
.footer-bottom .socials a:hover {
  color: #fbfcfb;
  transform: translateY(-3px);
}
.footer-bottom .copy {
  margin: 0;
  font-size: 12px;
  color: rgba(251, 252, 251, 0.5);
  font-style: normal;
}

/* ===== RESPONSIVE: TABLET (max-width: 720px) ===== */
@media (max-width: 720px) {
  /* Banner slider */
  .slider-dots {
    bottom: 10px;
    padding: 4px 8px;
  }
  .dot {
    width: 6px;
    height: 6px;
  }
  .bagian.banner-slider {
    aspect-ratio: 2/1;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .slider-arrow.prev {
    left: 8px;
  }
  .slider-arrow.next {
    right: 8px;
  }

  /* V6 tablet: featured tetap mandiri 2 kolom, grid card jadi 2 kolom */
  .news-featured {
    grid-template-columns: 1fr 1fr;
  }
  .news-hero {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }
  .news-hero-title {
    font-size: clamp(19px, 3.5vw, 25px);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-secondary-img {
    height: 160px;
  }
  .news-secondary-body {
    padding: 14px 16px;
  }

  /* Kalender */
  .bg-kaldik img {
    height: 40vh;
  }
  .kaldik h3 {
    max-width: 250px;
  }
  .bagian.kalender {
    height: 40vh;
  }

  /* Footer */
  .footer-container {
    padding: 40px 20px;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-bottom: 30px;
  }
}

/* ===== RESPONSIVE: MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
  /* V6 mobile: featured 1 kolom (hero 1:1 di atas, stack di bawah), grid card 1 kolom */
  .news-featured {
    grid-template-columns: 1fr;
  }
  .news-secondary-stack {
    grid-template-rows: auto;
    grid-template-columns: 1fr;
  }
  .news-hero {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-secondary {
    flex-direction: row;
  }
  .news-secondary-img {
    flex: 0 0 125px;
    height: auto;
  }
  .news-secondary-img .news-badge {
    top: 6px;
    left: 6px;
    font-size: 10px;
    padding: 2px 7px;
  }
  .news-secondary-body {
    padding: 12px 14px;
  }
  .news-secondary-title {
    font-size: 14px;
    color: #0b1220;
    -webkit-line-clamp: 3;
    line-clamp: 2;
  }
  .news-secondary-excerpt {
    font-size: 10px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .news-card {
    flex-direction: row;
  }
  .news-card-img {
    flex: 0 0 125px;
  }

  /* Kalender */
  .bg-kaldik img {
    height: 30vh;
  }
  .kaldik h3 {
    max-width: 100px;
  }
  .bagian.kalender {
    height: 30vh;
    min-height: 210px;
  }

  /* Modal full-screen */
  .modal .modal-panel {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 0;
  }
  .modal-body {
    padding-bottom: 64px;
  }

  /* Artikel responsive */
  .artikel-isi {
    grid-template-columns: 1fr;
  }
  .artikel-actions,
  .artikel-deskripsi,
  .catatan-body,
  .toc,
  .artikel-isi p {
    grid-column: auto;
    grid-row: auto;
  }
  .artikel-actions {
    position: relative;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }


}

/* =============================================
   DARK MODE
   ============================================= */
@media (prefers-color-scheme: dark) {
  html,
  body {
    background: #181d25 !important;
    color: #eff4f8 !important;
  }
  body {
    color-scheme: dark;
  }
  a {
    color: #88e6ae;
  }
  a:hover {
    color: #a5f3c4;
  }
  .container {
    background: transparent !important;
  }
  .header-pill {
    background: rgba(34, 40, 48, 0.85) !important;
    border: 1px solid #3c424b !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  }
  .brand-logo-sm {
    color: #22de8c !important;
  }
  .header h1 {
    color: #eff4f8 !important;
  }
  .header p {
    color: #97a1aa !important;
  }

  .bagian.banner-slider {
    border: 1px solid #3c424b;
  }

  /* Jurnal Dark Mode */
  .jurnal-header {
    border-bottom-color: #22de8c;
  }
  .jurnal-count {
    color: #97a1aa;
  }
  .agenda-head {
    border-bottom-color: #22de8c;
  }
  .agenda-head span,
  .agenda-list-head,
  .agenda-card-date {
    color: #97a1aa;
  }
  .agenda-list,
  .agenda-card {
    background: #222830 !important;
    border-color: #3c424b !important;
  }
  .agenda-card-title {
    color: #eff4f8;
  }
  .agenda-when {
    color: #4ade80;
  }
  .news-hero {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    border: #3c424b;
  }
  .news-secondary {
    background: #222830 !important;
    border-color: #3c424b !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
  }
  .news-secondary-title {
    color: #eff4f8 !important;
  }
  .news-secondary-excerpt {
    color: #97a1aa !important;
  }
  .news-card {
    background: #222830 !important;
    border-color: #3c424b !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4) !important;
  }
  .news-card-title {
    color: #eff4f8 !important;
  }
  .news-card-excerpt {
    color: #97a1aa !important;
  }
  .news-time {
    color: #97a1aa;
  }
  .news-reltime {
    color: #22de8c !important;
  }
  .news-date {
    color: #97a1aa !important;
  }
  .copy-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid #3c424b !important;
    color: #eff4f8 !important;
  }

  /* Artikel Dark Mode */
  .back-link {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
  }
  .back-link:hover {
    background: rgba(255, 255, 255, 0.25) !important;
  }
  .artikel-tanggal {
    color: rgba(255, 255, 255, 0.75) !important;
  }
  .artikel-deskripsi {
    color: #cbd5e1 !important;
  }
  .toc {
    background: #222830 !important;
    border-color: #3c424b !important;
  }
  .toc .toc-title {
    color: #eff4f8 !important;
  }
  .toc .toc-title i {
    color: #97a1aa !important;
  }
  .toc .toc-list a {
    color: #d3d9e1 !important;
  }
  .artikel-link {
    color: #38bdf8 !important;
  }
  .artikel-actions {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
  }
  .share-copy {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
  }
  .share-copy:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #e2e8f0 !important;
  }

  /* Kalender & Scroller Dark Mode */
  .snap-scroller {
    background: transparent !important;
  }
  .card {
    background: #222830 !important;
    color: #eff4f8 !important;
    border: 0px solid rgba(255, 255, 255, 0.1) !important;
  }
  .card .thumb {
    background: #2d323b !important;
  }
  .card .meta {
    color: #97a1aa !important;
  }
  .card .title {
    color: #eff4f8 !important;
  }
  .card .date {
    color: #97a1aa !important;
  }

  /* Modal Dark Mode */
  .modal-backdrop,
  .modal {
    background: rgba(0, 0, 0, 0.55) !important;
  }
  .modal .modal-panel {
    background: #222830 !important;
    color: #eff4f8 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65) !important;
    border: 1px solid #3c424b;
  }
  .modal-header {
    background: #2d323b !important;
    border-bottom: 1px solid #3c424b !important;
    color: #eff4f8 !important;
  }
  .modal-title {
    color: #eff4f8 !important;
  }
  .modal-body {
    color: #d3d9e1 !important;
  }
  .modal-body .meta {
    color: #97a1aa !important;
  }
  .modal-close {
    background: #2d323b !important;
    color: #eff4f8 !important;
    border: 1px solid #3c424b !important;
  }
  .modal-close-btn {
    background: #2d323b !important;
    color: #eff4f8 !important;
  }
  .modal-close-btn:hover {
    background: #3c424b !important;
  }
  .catatan-body {
    color: #d3d9e1 !important;
  }
  .catatan-body blockquote {
    border-left: 3px solid #22de8c !important;
    color: #97a1aa !important;
  }
  .catatan-body a {
    color: #88e6ae !important;
    text-decoration-color: rgba(136, 230, 174, 0.65);
  }
  .catatan-body h1 {
    color: #d3d9e1 !important;
  }

  /* Footer & Pagination Dark Mode */
  footer,
  .footer-simple {
    background: #222830 !important;
    border-top: 1px solid #3c424b !important;
    color: #97a1aa !important;
  }
  .footer-simple .socials a {
    color: #d3d9e1 !important;
  }
  .footer-simple .socials a:hover {
    color: #88e6ae !important;
  }
  .footer-simple .copy {
    color: #97a1aa !important;
  }
  .btn.primary {
    background: #22de8c !important;
    color: #001d0d !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
  }
  .btn.primary:hover {
    background: #1aa353 !important;
  }
  .btn.secondary {
    background: transparent !important;
    color: #eff4f8 !important;
    border: 1px solid #3c424b !important;
  }
  .page-btn {
    background: none;
    color: #eff4f8;
    border: 1px solid #3c424b;
  }
  .page-btn:hover {
    background: #123923;
    color: #fff;
  }

  /* Scrollbar Dark Mode */
  *::-webkit-scrollbar {
    height: 10px;
    width: 10px;
  }
  *::-webkit-scrollbar-track {
    background: #222830;
  }
  *::-webkit-scrollbar-thumb {
    background: #3c424b;
    border-radius: 5px;
  }
  *::-webkit-scrollbar-thumb:hover {
    background: #545d66;
  }

  /* Footer Dark Mode */
  .main-footer {
    background: #181d25 !important;
    color: #eff4f8 !important;
    border-top-color: #06a35a !important;
  }
  .footer-col h4 {
    color: #a7f3d0 !important;
  }
  .footer-col h4::after {
    background: #06a35a !important;
  }
  .footer-logo-title {
    color: #5ee9b5 !important;
  }
  .footer-desc {
    color: #97a1aa !important;
  }
  .footer-col ul a {
    color: #d3d9e1 !important;
  }
  .footer-col ul a:hover {
    color: #5ee9b5 !important;
  }
  .footer-col p {
    color: #d3d9e1 !important;
  }
  .footer-col p i {
    color: #5ee9b5 !important;
  }
  .footer-bottom {
    border-top-color: rgba(52, 211, 153, 0.15) !important;
  }
  .footer-bottom .socials a {
    color: #a7f3d0 !important;
  }
  .footer-bottom .socials a:hover {
    color: #5ee9b5 !important;
  }
  .footer-bottom .copy {
    color: #97a1aa !important;
  }
  @media (max-width: 480px) {
    .modal .modal-panel {
      background: #222830 !important;
      border-radius: 0 !important;
    }
  }
}

/* ===== AGENDA MADRASAH V5: sorotan + panel berikutnya ===== */
.agenda-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #06a35a;
  margin-bottom: 14px;
}
.agenda-head h3 {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: center;
}
.agenda-head h3 i {
  color: #06a35a;
}
.agenda-head span {
  font-size: 11px;
  color: #64748b;
}
.agenda-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}
.agenda-feat {
  border-radius: 10px;
  background: #06a35a;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  text-decoration: none;
  min-width: 0;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.agenda-feat:hover {
  transform: translateY(-2px);
  box-shadow: rgba(10, 10, 10, 0.04) 0px 1px 2px 0px, rgba(10, 10, 10, 0.04) 0px 4px 12px 0px, rgba(10, 10, 10, 0.08) 0px 16px 40px -12px;
}
.agenda-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  width: fit-content;
  line-height: 1.6;
}
.agenda-kicker.live {
  background: #ef4444;
}
.agenda-feat-title {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.agenda-feat-date {
  font-size: 12px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 8px;
}
.agenda-feat-cta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.agenda-list {
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2eae6;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.agenda-list-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 2px 4px 0;
}
.agenda-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.agenda-card {
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2eae6;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.agenda-card:hover {
  transform: translateY(-2px);
  box-shadow: rgba(10, 10, 10, 0.04) 0px 1px 2px 0px, rgba(10, 10, 10, 0.04) 0px 4px 12px 0px, rgba(10, 10, 10, 0.08) 0px 16px 40px -12px;
}
.agenda-when {
  font-size: 10px;
  font-weight: 700;
  color: #06a35a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.agenda-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agenda-card-date {
  font-size: 11px;
  color: #64748b;
  margin-top: auto;
  padding-top: 4px;
}
@media (max-width: 720px) {
  .agenda-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Portal berita v2: .news & .slide sekarang <a> ===== */
a.news,
a.slide {
  text-decoration: none;
}

/* ===== Halaman artikel berita (/berita/...) ===== */
.header-artikel {
  position: relative;
  width: 100%;
  /* border-radius: 10px; */
  overflow: hidden;
  /* aspect-ratio: 16 / 5; */
  aspect-ratio: 2 / 1;
  min-height: 300px;
}
.header-artikel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.overlay-header-title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 960px;
  margin-inline: auto;
  padding: 20px;
}
.overlay-header-title .back-link {
  align-self: flex-start;
  margin-bottom: 8px;
}
.back-link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.back-link:hover {
  background: rgba(255, 255, 255, 0.25);
}
.overlay-header-title .artikel-title {
  font-family: "Fraunces", serif;
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.3;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.artikel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.artikel-meta .news-badge {
  margin: 0;
}
.artikel-tanggal {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  margin: 0;
}
.artikel-img {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 150%;
  object-fit: cover;
  object-position: top;
  display: block;
  will-change: transform;
}
/* header artikel clickable - lightbox */
.header-artikel[data-lightbox] {
  cursor: zoom-in;
}
.header-artikel[data-lightbox]:focus-visible {
  outline: 3px solid #06a35a;
  outline-offset: -3px;
}
.overlay-header-title {
  pointer-events: none;
}
.overlay-header-title a,
.overlay-header-title button {
  pointer-events: auto;
}
.header-artikel[data-lightbox]::before {
  content: "⤢";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
.header-artikel[data-lightbox]:hover::before {
  opacity: 1;
}
/* lightbox galeri (ala IG: X kanan atas, counter di gambar, caption, filmstrip) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 12, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 16px 170px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2000;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-stage {
  position: relative;
  width: min(92vw, 900px);
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  transform: scale(0.96);
  transition: transform 0.25s ease;
  display: block;
}
/* pengaman: [hidden] harus selalu menang lawan display di atas (bug Sep 2026:
   gambar lama numpang di atas slide video karena hidden kalah specificity) */
.lightbox-stage img[hidden] {
  display: none !important;
}
.lightbox-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-frame img {
  max-width: 100%;
  max-height: calc(100vh - 60px - 180px);
}

/* === Slide video di lightbox (campur foto, ala IG) === */
/* Catatan: video render = clone tanpa id, jadi selektor pakai class/struktur, bukan #id */
.lightbox-frame video,
.lightbox-frame .plyr {
  width: min(92vw, 900px);
  max-width: 100%;
  max-height: calc(100vh - 60px - 180px);
  border-radius: 5px;
  overflow: hidden;
  background: #000;
}
/* template asli selalu sembunyi (cuma acuan clone) */
.lightbox-frame video#lightbox-video {
  display: none;
}
.lightbox-frame .plyr {
  --plyr-color-main: #06a35a;
  --plyr-control-icon-size: 18px;
  --plyr-control-radius: 6px
}
/* sentuhan di kontrol player milik Plyr: browser jangan ikut campur (no back/forward) */
.lightbox-frame .plyr__controls,
.catatan-body .plyr__controls {
  touch-action: pan-y;
}
/* badge play di strip thumbnail video */
.lightbox-thumb {
  position: relative;
}
.lightbox-thumb-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.lightbox.open .lightbox-stage img {
  transform: scale(1);
}
/* === Zoom gambar (klik 2x / tap 2x) === */
/* WAJIB specificity >= `.lightbox.open .lightbox-stage img` (0,3,1),
   makanya selector ini (0,4,1) biar zoom-nya benar-benar kepakai */
.lightbox.open .lightbox-stage img.is-zoomed {
  transform: scale(2);
  transition: transform 0.22s ease;
  cursor: zoom-out;
  /* gambar tidak boleh bikin halaman bisa di-scroll saat diperbesar */
  touch-action: none;
}
.lightbox-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  line-height: 1.4;
}
.lightbox-counter[hidden] {
  display: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
  display: grid;
  place-items: center;
  z-index: 2;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-nav.prev {
  left: 8px;
}
.lightbox-nav.next {
  right: 8px;
}
.lightbox-nav[hidden] {
  display: none;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
  z-index: 2;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lightbox-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}
.lightbox-bottom .lightbox-strip {
  pointer-events: auto;
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-align: center;
  max-width: min(92vw, 900px);
  margin: 0;
  min-height: 1.4em;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.lightbox-strip {
  display: flex;
  gap: 8px;
  max-width: min(92vw, 900px);
  width: auto;
  margin: 0 auto;
  overflow-x: auto;
  padding: 4px 2px 8px;
  justify-content: flex-start;
  scrollbar-width: thin;
}
.lightbox-strip[hidden] {
  display: none;
}
.lightbox-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}
.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.lightbox-thumb.active {
  border-color: #22de8c;
  opacity: 1;
}
.artikel-isi {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
/* Kalau ada TOC: lebarkan + tambah kolom kanan 260px (kelas dari server, anti :has) */
.artikel-isi.has-toc {
  max-width: 1080px;
  grid-template-columns: auto minmax(0, 1fr) 260px;
}
.artikel-isi > p,
.artikel-deskripsi,
.catatan-body {
  grid-column: 2;
  margin: 0;
  min-width: 0;
}
/* Di layout has-toc, konten tetap di kolom tengah */
.artikel-isi.has-toc > p,
.artikel-isi.has-toc .artikel-deskripsi,
.artikel-isi.has-toc .catatan-body {
  grid-column: 2;
}
.artikel-deskripsi {
  color: #334155;
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
  border-bottom: 1px dashed rgba(100, 100, 100, 0.6);
  padding-bottom: 20px;
}
.artikel-link {
  color: #06a35a;
  font-weight: 600;
  margin: 0;
  border: 2px solid #06a35a;
  padding: 8px 10px;
  border-radius: 5px;
  text-decoration: none;
}
.artikel-link:hover {
  background: #06a35a;
  color: #fff;
}
.artikel-actions {
  grid-row: span 2;
  margin-top: 4px;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.share-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.share-facebook {
  background: #1877f2;
}
.share-whatsapp {
  background: #25d366;
}
.share-threads {
  background: #000;
}
.share-x {
  background: #000;
}
.share-email {
  background: #ea4335;
}
.share-copy {
  background: #e2e8f0;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.share-copy:hover {
  background: #cbd5e1;
  color: #1e293b;
}
.share-copy.copied {
  background: #22de8c;
  color: #fff;
  border-color: #22de8c;
}

/* ===== TOC navigasi heading berita (/berita/...) ===== */
/* Desktop: sidebar kanan sticky (kolom 3). Mobile: collapsible di atas konten. */
.artikel-isi.has-toc .artikel-actions {
  grid-row: span 3;
}
.toc {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: start;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: #f1f5f9;
  border: 1px solid #64748b;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 4px 0 0;
  min-width: 0;
}
.toc .toc-title {
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0b1220;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.toc .toc-title::-webkit-details-marker {
  display: none;
}
.toc .toc-title::after {
  content: "";
  display: none;
}
.toc .toc-title i {
  color: #64748b;
}
.toc .toc-list {
  margin: 10px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc .toc-list a {
  color: #0b1220;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.toc .toc-list a:hover {
  text-decoration: underline;
}
.catatan-body h1[id^="toc-"] {
  scroll-margin-top: 90px;
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.toc) {
    scroll-behavior: smooth;
  }
}
/* <=900px: 1 kolom; TOC pindah ke atas konten, mode collapsible ketutup default (JS) */
@media (max-width: 900px) {
  .artikel-isi.has-toc {
    max-width: 720px;
    grid-template-columns: 1fr;
  }
  .artikel-isi.has-toc > p,
  .artikel-isi.has-toc .artikel-deskripsi,
  .artikel-isi.has-toc .catatan-body,
  .artikel-isi.has-toc .toc {
    grid-column: auto;
    grid-row: auto;
  }
  .artikel-isi.has-toc .artikel-actions {
    grid-row: auto;
    position: relative;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .artikel-isi.has-toc .toc {
    order: -1;
    position: static;
    max-height: none;
  }
  .toc .toc-title {
    cursor: pointer;
    user-select: none;
  }
  .toc .toc-title::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    margin-left: auto;
    color: #64748b;
    display: inline-block;
    transition: transform 0.2s;
  }
  .toc[open] .toc-title::after {
    transform: rotate(180deg);
  }
}

/* ===== Subpage (/kurikulum, /kelas, /nilai): sembunyikan agenda & header jurnal ===== */
body[data-subpage] .bagian.kalender {
  display: none;
}
body[data-subpage] .jurnal-header {
  display: none;
}
body[data-subpage] .bagian.jurnal {
  display: contents;
}
