/* ==========================================================================
   GEKRAFS PORTAL BERITA (berita.php + detail-berita.php)
   Markup  : berita.php, detail-berita.php
   Gerak   : assets/js/gk-berita.js (GSAP ScrollTrigger + SplitText)
   Footer  : TIDAK disentuh. Footer tetap dikelola gk-footer.css/gk-footer.js.
   ========================================================================== */

body.page-berita,
body.page-detail-berita {
  --pb-navy: var(--brand-navy, #0c1e38);
  --pb-navy-dark: var(--brand-navy-dark, #071224);
  --pb-cyan: var(--brand-cyan, #169CCC);
  --pb-cyan-hover: var(--brand-cyan-hover, #1282ab);
  --pb-gold: var(--brand-gold, #FFC905);
  --pb-gold-text: #8a6600;
  --pb-ground: #f8fafc;
  --pb-surface: #ffffff;
  --pb-line: rgba(12, 30, 56, 0.12);
  --pb-line-strong: rgba(12, 30, 56, 0.2);
  --pb-muted: #475569;
  --pb-soft: #64748b;
  --pb-cyan-text: #0b7aa3;
  --pb-cyan-deep: #0b4a63;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pb-ground);
  color: var(--pb-navy);
  font-family: var(--font-display, 'Roboto Condensed'), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.page-berita > *:not(.gk-foot),
body.page-berita > *:not(.gk-foot) *,
body.page-detail-berita > *:not(.gk-foot),
body.page-detail-berita > *:not(.gk-foot) * {
  border-radius: 0;
}

body.page-berita > *:not(.gk-foot) img,
body.page-detail-berita > *:not(.gk-foot) img {
  max-width: 100%;
}

body.page-berita .pb-main,
body.page-detail-berita .pb-detail-main {
  flex: 1 0 auto;
}

body.page-berita > *:not(.gk-foot) a,
body.page-detail-berita > *:not(.gk-foot) a {
  text-underline-offset: 0.18em;
}

body.page-berita > *:not(.gk-foot) :focus-visible,
body.page-detail-berita > *:not(.gk-foot) :focus-visible {
  outline: 2px solid var(--pb-cyan) !important;
  outline-offset: 3px;
}

/* --- Anti-FOUC sebelum GSAP memasang state awal --------------------------- */
html.pb-pre .pb-hero-reveal,
html.pb-pre .pb-hero-fade,
html.pb-pre .pb-title,
html.pb-pre .pb-detail-title {
  visibility: hidden;
}

html.pb-pre .pb-media-mask {
  clip-path: inset(100% 0% 0% 0%);
}

/* --- Scroll progress hairline -------------------------------------------- */
.pb-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1100;
  pointer-events: none;
  background: rgba(12, 30, 56, 0.12);
}

.pb-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--pb-gold);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* --- Hero editorial ------------------------------------------------------ */
.pb-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 13vh, 9rem) 0 clamp(2.5rem, 5vh, 4rem);
  background: var(--pb-navy);
  color: #ffffff;
}

.pb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.4px) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 34%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 34%, #000 100%);
  pointer-events: none;
}

.pb-hero > .container {
  position: relative;
  z-index: 1;
}

.pb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 2.5rem clamp(2rem, 4vw, 4.5rem);
  align-items: end;
}

.pb-breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin-bottom: 1.6rem;
}

.pb-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: #c9d6e6;
}

.pb-breadcrumb a {
  color: #dbe5f1;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(219, 229, 241, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pb-breadcrumb a:hover,
.pb-breadcrumb a:focus-visible {
  color: var(--pb-gold);
  border-color: var(--pb-gold);
}

.pb-breadcrumb [aria-current="page"] {
  color: #ffffff;
}

.pb-crumb-sep {
  color: rgba(255, 255, 255, 0.45);
}

.pb-archive-count {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9fb3cc;
  font-variant-numeric: tabular-nums;
}

.pb-archive-count strong {
  color: #ffffff;
  font-weight: 800;
}

.pb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pb-gold);
}

.pb-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--pb-gold);
}

.pb-title {
  margin: 0 0 1.15rem;
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.pb-lead {
  max-width: 52ch;
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.55;
  color: #c9d6e6;
}

.pb-hero-aside {
  min-width: 0;
}

/* --- Form pencarian ------------------------------------------------------ */
.pb-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 48px;
  padding: 0.3rem;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.pb-search:focus-within {
  border-color: var(--pb-cyan);
  box-shadow: 0 0 0 1px var(--pb-cyan);
}

.pb-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 0.65rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pb-navy);
  font: inherit;
  font-size: 0.98rem;
}

.pb-search input[type="search"]::placeholder {
  color: #64748b;
  opacity: 1;
}

.pb-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.pb-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  min-height: 44px;
  color: var(--pb-navy);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pb-search-clear:hover,
.pb-search-clear:focus-visible {
  background: #eef6fa;
  color: var(--pb-cyan-deep);
}

.pb-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--pb-cyan);
  background: var(--pb-cyan);
  color: var(--pb-navy-dark);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pb-search-btn:hover,
.pb-search-btn:focus-visible {
  background: var(--pb-gold);
  border-color: var(--pb-gold);
  color: var(--pb-navy-dark);
}

.pb-search-btn .gk-ic {
  font-size: 1.05rem;
}

.pb-search-note {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #9fb3cc;
}

/* --- Filter bar sumber media -------------------------------------------- */
.pb-filter-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--pb-line);
}

.pb-filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.pb-chips {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.pb-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 40px;
  padding: 0.34rem 0.9rem;
  border: 1px solid var(--pb-line);
  background: #ffffff;
  color: var(--pb-navy);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pb-chip:hover,
.pb-chip:focus-visible {
  border-color: var(--pb-cyan);
  color: var(--pb-cyan-text);
}

.pb-chip.is-active {
  background: var(--pb-navy);
  border-color: var(--pb-navy);
  color: #ffffff;
}

.pb-chip.is-active:hover,
.pb-chip.is-active:focus-visible {
  background: var(--pb-navy-dark);
  border-color: var(--pb-navy-dark);
  color: #ffffff;
}

.pb-filter-count {
  flex: none;
  margin: 0;
  color: var(--pb-muted);
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pb-filter-count strong {
  color: var(--pb-navy);
  font-weight: 800;
}

/* --- Konten utama -------------------------------------------------------- */
.pb-main,
.pb-detail-main {
  padding: clamp(2rem, 5vh, 3.5rem) 0 clamp(3rem, 6vh, 5rem);
}

/* --- Banner status filter/pencarian ------------------------------------- */
.pb-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0 0 clamp(1.5rem, 4vh, 2.25rem);
  padding: 0.95rem 1.15rem;
  background: #eef6fa;
  border: 1px solid rgba(22, 156, 204, 0.3);
  color: var(--pb-navy);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pb-status-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  min-width: 0;
}

.pb-status-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.12rem 0.5rem;
  background: var(--pb-navy);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pb-status strong {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pb-status-count {
  color: var(--pb-cyan-deep);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pb-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: none;
  min-height: 44px;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--pb-navy);
  background: #ffffff;
  color: var(--pb-navy);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pb-reset:hover,
.pb-reset:focus-visible {
  background: var(--pb-navy);
  color: #ffffff;
}

/* --- Headline utama ------------------------------------------------------ */
.pb-headline {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  margin: 0 0 clamp(1.75rem, 4vh, 2.5rem);
  background: #ffffff;
  border: 1px solid var(--pb-line);
  overflow: hidden;
}

.pb-headline-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--pb-navy);
}

.pb-media-mask {
  position: relative;
  overflow: hidden;
  background: var(--pb-navy);
}

.pb-media-mask img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pb-headline-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 2.8vw, 2.5rem);
}

.pb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pb-cyan-text);
}

.pb-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.pb-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  color: var(--pb-muted);
  font-size: 0.84rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pb-dot {
  color: #94a3b8;
}

.pb-headline-title {
  margin: 0.65rem 0 0.75rem;
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--pb-navy);
  overflow-wrap: anywhere;
}

.pb-headline-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pb-headline-title a:hover,
.pb-headline-title a:focus-visible {
  color: var(--pb-cyan-text);
}

.pb-excerpt {
  margin: 0 0 1.15rem;
  color: var(--pb-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Tautan baca selengkapnya (underline sweep ala footer) -------------- */
.pb-read-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  min-height: 44px;
  color: var(--pb-cyan-text);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pb-read-more .pb-read-text {
  position: relative;
  display: inline-block;
}

.pb-read-more .pb-read-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.22rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pb-read-more:hover,
.pb-read-more:focus-visible {
  color: var(--pb-navy);
}

.pb-read-more:hover .pb-read-text::after,
.pb-read-more:focus-visible .pb-read-text::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.pb-read-more .gk-ic {
  font-size: 0.95rem;
}

html:not(.pb-motion) .pb-read-more .gk-ic {
  transition: transform 0.25s ease, color 0.25s ease;
}

html:not(.pb-motion) .pb-read-more:hover .gk-ic {
  color: var(--pb-cyan-text);
  transform: translateX(4px);
}

/* --- Heading section ---------------------------------------------------- */
.pb-section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.pb-section-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pb-navy);
}

.pb-section-rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--pb-line);
}

/* --- Grid kartu berita -------------------------------------------------- */
.pb-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--pb-line);
  overflow: hidden;
}

.pb-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--pb-navy);
}

.pb-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html:not(.pb-motion) .pb-card-media img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html:not(.pb-motion) .pb-card:hover .pb-card-media img {
  transform: scale(1.04);
}

html.pb-motion .pb-card-media img,
html.pb-motion .pb-headline-media img {
  transition: none;
}

.pb-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.25rem 1.3rem 1.15rem;
}

.pb-card-title {
  margin: 0.6rem 0 0.55rem;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--pb-navy);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pb-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pb-card-title a:hover,
.pb-card-title a:focus-visible {
  color: var(--pb-cyan-text);
}

.pb-card-excerpt {
  margin: 0 0 1rem;
  color: var(--pb-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pb-card .pb-read-more {
  margin-top: auto;
}

.pb-media-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.12rem 0.5rem;
  background: #eef6fa;
  border: 1px solid rgba(22, 156, 204, 0.25);
  color: var(--pb-cyan-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
}

.pb-media-chip--dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.pb-card time,
.pb-headline time,
.pb-side-item time,
.pb-detail-meta time {
  font-variant-numeric: tabular-nums;
}

/* --- Sidebar editorial --------------------------------------------------- */
.pb-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
}

.pb-side-card {
  background: #ffffff;
  border: 1px solid var(--pb-line);
  padding: 1.4rem 1.35rem 1.25rem;
}

.pb-side-item {
  display: grid;
  grid-template-columns: 2rem 84px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.82rem 0;
  border-bottom: 1px solid rgba(12, 30, 56, 0.08);
  text-decoration: none;
}

.pb-side-item:last-of-type {
  border-bottom: 0;
}

.pb-rank {
  align-self: start;
  padding-top: 0.1rem;
  color: var(--pb-cyan-text);
  font-size: 0.76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.pb-side-thumb {
  display: block;
  width: 84px;
  height: 62px;
  object-fit: cover;
  background: var(--pb-navy);
  border: 1px solid var(--pb-line);
}

html:not(.pb-motion) .pb-side-thumb {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html:not(.pb-motion) .pb-side-item:hover .pb-side-thumb {
  transform: scale(1.04);
}

html.pb-motion .pb-side-thumb {
  transition: none;
}

.pb-side-body {
  min-width: 0;
}

.pb-side-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--pb-navy);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.32;
  transition: color 0.2s ease;
}

.pb-side-item:hover .pb-side-title,
.pb-side-item:focus-visible .pb-side-title {
  color: var(--pb-cyan-text);
}

.pb-side-meta {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  margin-top: 0.25rem;
  color: var(--pb-soft);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.pb-side-meta > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-side-empty {
  margin: 0;
  padding: 1rem 0;
  color: var(--pb-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* --- Kartu kanal resmi -------------------------------------------------- */
.pb-channel-card {
  margin-top: 1.25rem;
  padding: 1.35rem;
  background: #f8fafc;
  border: 1px solid var(--pb-line);
}

.pb-channel-title {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pb-navy);
}

.pb-channel-text {
  margin: 0 0 0.65rem;
  color: var(--pb-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.pb-channel-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pb-channel-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 44px;
  border-bottom: 1px solid rgba(12, 30, 56, 0.1);
  color: var(--pb-navy);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pb-channel-links li:last-child a {
  border-bottom: 0;
}

.pb-channel-links a:hover,
.pb-channel-links a:focus-visible {
  color: var(--pb-cyan-text);
}

.pb-channel-links .gk-ic {
  font-size: 0.9rem;
  color: var(--pb-cyan-text);
}

/* --- Pagination --------------------------------------------------------- */
.pb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: clamp(2rem, 4vh, 2.75rem) 0 0;
  padding: 0;
  list-style: none;
}

.pb-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.65rem;
  border: 1px solid var(--pb-line);
  background: #ffffff;
  color: var(--pb-navy);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pb-page:hover,
.pb-page:focus-visible {
  border-color: var(--pb-cyan);
  color: var(--pb-cyan-text);
}

.pb-page.is-active {
  background: var(--pb-navy);
  border-color: var(--pb-navy);
  color: #ffffff;
}

.pb-page.is-active[aria-current="page"] {
  color: #ffffff;
}

.pb-page--ellipsis {
  border-color: transparent;
  background: transparent;
  color: var(--pb-soft);
  min-width: 28px;
  padding: 0 0.2rem;
}

.pb-page .gk-ic {
  font-size: 1rem;
}

/* --- Empty state -------------------------------------------------------- */
.pb-empty {
  padding: clamp(2rem, 5vw, 3.5rem);
  background: #ffffff;
  border: 1px solid var(--pb-line);
  text-align: center;
}

.pb-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  background: #eef6fa;
  border: 1px solid rgba(22, 156, 204, 0.25);
  color: var(--pb-cyan-text);
  font-size: 1.6rem;
}

.pb-empty h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 800;
  color: var(--pb-navy);
}

.pb-empty p {
  max-width: 46ch;
  margin: 0 auto 1.35rem;
  color: var(--pb-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.pb-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--pb-navy);
  background: var(--pb-navy);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pb-btn:hover,
.pb-btn:focus-visible {
  background: var(--pb-gold);
  border-color: var(--pb-gold);
  color: var(--pb-navy-dark);
}

.pb-btn--ghost {
  background: #ffffff;
  color: var(--pb-navy);
}

.pb-btn--ghost:hover,
.pb-btn--ghost:focus-visible {
  background: var(--pb-navy);
  border-color: var(--pb-navy);
  color: #ffffff;
}

/* --- Halaman detail berita ---------------------------------------------- */
.pb-detail-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 13vh, 9rem) 0 clamp(2.5rem, 5vh, 4rem);
  background: var(--pb-navy);
  color: #ffffff;
}

.pb-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.4px) 0 0 / 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
  pointer-events: none;
}

.pb-detail-hero > .container {
  position: relative;
  z-index: 1;
}

.pb-detail-hero .pb-breadcrumb {
  margin-bottom: 1.5rem;
}

.pb-detail-hero .pb-breadcrumb [aria-current="page"] {
  max-width: min(62ch, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  color: #c9d6e6;
  font-size: 0.86rem;
  font-weight: 600;
}

.pb-detail-meta .pb-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.pb-detail-meta .gk-ic {
  font-size: 0.95rem;
  color: var(--pb-gold);
}

.pb-detail-title {
  /* Selebar kartu artikel di col-lg-8: 2/3 lebar container dikurangi gutter. */
  max-width: calc(66.6667% - 0.5rem);
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.pb-article {
  padding: clamp(1.15rem, 2.6vw, 2.25rem);
  background: #ffffff;
  border: 1px solid var(--pb-line);
}

.pb-cover {
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

.pb-cover img {
  view-transition-name: berita-foto;
}

.pb-article-content {
  max-width: 66ch;
  margin: 0 auto;
  color: #334155;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.8;
  overflow-wrap: break-word;
}

.pb-article-content > *:first-child {
  margin-top: 0;
}

.pb-article-content p,
.pb-article-content ul,
.pb-article-content ol,
.pb-article-content blockquote,
.pb-article-content figure,
.pb-article-content pre {
  margin: 0 0 1.35rem;
}

.pb-article-content h2,
.pb-article-content h3,
.pb-article-content h4 {
  margin: 2rem 0 0.8rem;
  color: var(--pb-navy);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pb-article-content h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.pb-article-content h3 {
  font-size: clamp(1.18rem, 1.6vw, 1.35rem);
}

.pb-article-content h4 {
  font-size: 1.08rem;
}

.pb-article-content a {
  color: var(--pb-cyan-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.pb-article-content a:hover,
.pb-article-content a:focus-visible {
  color: var(--pb-navy);
}

.pb-article-content strong,
.pb-article-content b {
  color: var(--pb-navy);
  font-weight: 800;
}

.pb-article-content ul,
.pb-article-content ol {
  padding-left: 1.35rem;
}

.pb-article-content li {
  margin-bottom: 0.55rem;
}

.pb-article-content li::marker {
  color: var(--pb-cyan-text);
  font-weight: 700;
}

.pb-article-content blockquote {
  padding: 1rem 1.25rem;
  background: #f1f5f9;
  border-left: 4px solid var(--pb-gold);
  color: var(--pb-navy);
  font-size: 1.03em;
  line-height: 1.65;
}

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

.pb-article-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
}

.pb-article-content figure {
  margin-left: 0;
  margin-right: 0;
}

.pb-article-content figure img {
  margin: 0 auto;
}

.pb-article-content figcaption {
  margin-top: 0.5rem;
  color: var(--pb-soft);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.pb-article-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.92em;
  -webkit-overflow-scrolling: touch;
}

.pb-article-content th,
.pb-article-content td {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--pb-line);
  text-align: left;
  vertical-align: top;
}

.pb-article-content th {
  background: #f1f5f9;
  color: var(--pb-navy);
  font-weight: 800;
}

.pb-article-content pre {
  max-width: 100%;
  padding: 1rem;
  overflow-x: auto;
  background: var(--pb-navy-dark);
  color: #dbe5f1;
  font-size: 0.88em;
  line-height: 1.6;
}

.pb-article-content code {
  font-size: 0.92em;
}

/* --- Sumber berita ------------------------------------------------------- */
.pb-source-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  max-width: 66ch;
  margin: 1.75rem auto 0;
  padding: 0.9rem 1.1rem;
  background: #f8fafc;
  border: 1px solid var(--pb-line);
  color: var(--pb-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pb-source-card .gk-ic {
  color: var(--pb-cyan-text);
  font-size: 1rem;
}

.pb-source-label {
  font-weight: 700;
  color: var(--pb-navy);
}

.pb-source-link {
  color: var(--pb-navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.pb-source-link:hover,
.pb-source-link:focus-visible {
  color: var(--pb-cyan-text);
}

/* --- Bar bagikan --------------------------------------------------------- */
.pb-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  max-width: 66ch;
  margin: 1.75rem auto 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--pb-line);
}

.pb-share-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--pb-navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.pb-share-label .gk-ic {
  color: var(--pb-cyan-text);
}

.pb-share-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pb-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--pb-line-strong);
  background: #ffffff;
  color: var(--pb-navy);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pb-share-btn:hover,
.pb-share-btn:focus-visible {
  background: #f1f5f9;
  border-color: var(--pb-navy);
  color: var(--pb-navy);
}

.pb-share-btn .gk-ic {
  font-size: 1rem;
}

.pb-share-wa .gk-ic {
  color: #0f7a43;
}

.pb-share-fb .gk-ic {
  color: #1465c0;
}

.pb-share-x .gk-ic {
  color: var(--pb-navy);
}

.pb-copy[data-copied="true"],
.pb-copy.is-copied {
  background: var(--pb-navy);
  border-color: var(--pb-navy);
  color: #ffffff;
}

.pb-copy[data-copied="true"] .gk-ic,
.pb-copy.is-copied .gk-ic {
  color: var(--pb-gold);
}

.pb-article-foot {
  max-width: 66ch;
  margin: 1.75rem auto 0;
}

.pb-back-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--pb-navy);
  background: #ffffff;
  color: var(--pb-navy);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pb-back-portal:hover,
.pb-back-portal:focus-visible {
  background: var(--pb-navy);
  border-color: var(--pb-navy);
  color: #ffffff;
}

/* --- CTA sidebar detail -------------------------------------------------- */
.pb-cta-portal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 48px;
  margin-top: 1.15rem;
  padding: 0.6rem 0.9rem;
  background: var(--pb-navy);
  border: 1px solid var(--pb-navy);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pb-cta-portal:hover,
.pb-cta-portal:focus-visible {
  background: var(--pb-gold);
  border-color: var(--pb-gold);
  color: var(--pb-navy-dark);
}

.pb-cta-portal .gk-ic {
  color: var(--pb-gold);
}

.pb-cta-portal:hover .gk-ic,
.pb-cta-portal:focus-visible .gk-ic {
  color: var(--pb-navy-dark);
}

/* --- Navbar detail ------------------------------------------------------ */
body.page-detail-berita .navbar-custom .link-pdf a.pb-nav-back,
body.page-berita .navbar-custom .link-pdf a.pb-nav-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid var(--pb-navy);
  color: var(--pb-navy);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.page-berita .navbar-custom .link-pdf a.pb-nav-auth:hover,
body.page-berita .navbar-custom .link-pdf a.pb-nav-auth:focus-visible {
  background: var(--pb-navy);
  border-color: var(--pb-navy);
  color: #ffffff;
}

body.page-detail-berita .navbar-custom .link-pdf a.pb-nav-back {
  background: var(--pb-navy);
  border: 1px solid var(--pb-navy);
  color: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.page-detail-berita .navbar-custom .link-pdf a.pb-nav-back:hover,
body.page-detail-berita .navbar-custom .link-pdf a.pb-nav-back:focus-visible {
  background: #ffffff;
  border-color: var(--pb-navy);
  color: var(--pb-navy);
}

body.page-detail-berita .navbar-custom .link-pdf a.pb-nav-back .gk-ic {
  color: var(--pb-gold);
}

body.page-detail-berita .navbar-custom .link-pdf a.pb-nav-back:hover .gk-ic,
body.page-detail-berita .navbar-custom .link-pdf a.pb-nav-back:focus-visible .gk-ic {
  color: var(--pb-navy);
}

/* --- CSS hover hanya saat GSAP nonaktif -------------------------------- */
body.page-berita .pb-card,
body.page-berita .pb-headline,
body.page-berita .pb-side-item {
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

html:not(.pb-motion) body.page-berita .pb-card,
html:not(.pb-motion) body.page-berita .pb-headline {
  transition: border-color 0.25s ease, transform 0.25s ease;
}

html:not(.pb-motion) body.page-berita .pb-card:hover,
html:not(.pb-motion) body.page-berita .pb-headline:hover {
  border-color: rgba(22, 156, 204, 0.55);
  transform: translateY(-2px);
}

/* --- Responsif ---------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .pb-headline-body {
    padding: 1.6rem 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .pb-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pb-hero-aside {
    max-width: 620px;
  }

  .pb-headline {
    grid-template-columns: 1fr;
  }

  .pb-headline-media {
    aspect-ratio: 16 / 9;
  }

  .pb-sidebar {
    position: static;
    margin-top: 0.5rem;
  }

  .pb-detail-title {
    max-width: 100%;
  }

  .pb-filter-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .pb-chips {
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0.3rem;
  }

  .pb-filter-count {
    padding-left: 0.05rem;
  }

  .pb-chip {
    min-height: 44px;
  }
}

@media (max-width: 767.98px) {
  .pb-hero,
  .pb-detail-hero {
    padding-top: clamp(6.75rem, 16vh, 8.5rem);
  }

  .pb-breadcrumb-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .pb-archive-count {
    font-size: 0.78rem;
  }

  .pb-title {
    font-size: clamp(2.1rem, 10vw, 2.9rem);
  }

  .pb-search {
    flex-wrap: nowrap;
  }

  .pb-search input[type="search"] {
    font-size: 0.95rem;
  }

  .pb-search-btn {
    padding: 0 0.85rem;
  }

  .pb-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .pb-status-count {
    display: inline-block;
  }

  .pb-reset {
    width: 100%;
  }

  .pb-card-body {
    padding: 1.1rem 1.05rem 1rem;
  }

  .pb-card-title {
    font-size: 1.12rem;
  }

  .pb-side-card {
    padding: 1.2rem 1.05rem 1rem;
  }

  .pb-side-item {
    grid-template-columns: 1.7rem 76px minmax(0, 1fr);
    gap: 0.6rem;
  }

  .pb-side-thumb {
    width: 76px;
    height: 58px;
  }

  .pb-article {
    padding: 1rem 0.9rem 1.15rem;
  }

  .pb-article-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .pb-share-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pb-share-actions {
    width: 100%;
  }

  .pb-share-btn {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .pb-copy {
    flex-basis: 100%;
  }

  .pb-pagination {
    gap: 0.35rem;
  }

  .pb-page {
    min-width: 44px;
    padding: 0 0.5rem;
  }

  .pb-page--ellipsis {
    min-width: 22px;
    padding: 0;
  }
}

@media (max-width: 420px) {
  .pb-hero .container,
  .pb-detail-hero .container,
  .pb-filter-bar .container,
  .pb-main > .container,
  .pb-detail-main > .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .pb-search-btn {
    padding: 0 0.8rem;
  }

  .pb-search input[type="search"] {
    padding-left: 0.45rem;
  }

  .pb-side-item {
    grid-template-columns: 1.55rem 68px minmax(0, 1fr);
    gap: 0.5rem;
  }

  .pb-side-thumb {
    width: 68px;
    height: 52px;
  }

  .pb-side-meta {
    font-size: 0.7rem;
  }
}

/* --- Preferensi gerak dikurangi ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.page-berita > *:not(.gk-foot),
  body.page-berita > *:not(.gk-foot) *,
  body.page-berita > *:not(.gk-foot) *::before,
  body.page-berita > *:not(.gk-foot) *::after,
  body.page-detail-berita > *:not(.gk-foot),
  body.page-detail-berita > *:not(.gk-foot) *,
  body.page-detail-berita > *:not(.gk-foot) *::before,
  body.page-detail-berita > *:not(.gk-foot) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.pb-pre .pb-hero-reveal,
  html.pb-pre .pb-hero-fade,
  html.pb-pre .pb-title,
  html.pb-pre .pb-detail-title {
    visibility: visible !important;
  }

  html.pb-pre .pb-media-mask {
    clip-path: none !important;
  }

  .pb-progress {
    display: none;
  }
}
