:root {
  --sc-primary: #8b151b;
  --sc-primary-dark: #7f1d1d;
  --sc-primary-darker: #450a0a;
  --sc-primary-light: #dc2626;
  --sc-primary-soft: #fef2f2;
  --sc-primary-border: #fecaca;
  --sc-primary-2: #b91c1c;
  --sc-gold: #d97706;
  --sc-gold-light: #fef3c7;
  --sc-bg: #fbf8f8;
  --sc-sidebar-w: 264px;
}

* { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--sc-bg);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: .925rem;
}

/* ===== Sidebar ===== */
.sc-sidebar {
  width: var(--sc-sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sc-primary) 0%, #5c0d12 100%);
  color: #fecaca;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1040;
  overflow-y: auto;
  transition: transform .25s ease;
}
.sc-sidebar .brand {
  display: flex; align-items: center; gap: .65rem;
  padding: 1.1rem 1.25rem;
  color: #fff; text-decoration: none;
}
.sc-sidebar .brand .logo {
  width: 38px;
  height: 48px;
  aspect-ratio: 575 / 730;
  object-fit: contain;
  flex-shrink: 0;
  background: none;
}
.sc-sidebar .brand h1 { font-size: 1rem; font-weight: 700; margin: 0; letter-spacing: .3px; }
.sc-sidebar .brand small { font-size: .68rem; color: #fca5a5; display: block; }
.sc-sidebar .nav-section {
  font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: #f87171; padding: 1rem 1.25rem .35rem;
}
.sc-sidebar .nav-link {
  color: #fecaca; padding: .55rem 1.25rem; display: flex; align-items: center; gap: .7rem;
  font-size: .875rem; border-left: 3px solid transparent;
}
.sc-sidebar .nav-link i { font-size: 1rem; width: 20px; text-align: center; }
.sc-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.sc-sidebar .nav-link.active {
  color: #fff; background: rgba(201,162,39,.15);
  border-left-color: var(--sc-gold);
}
.sc-sidebar .nav-link.active i { color: var(--sc-gold); }

/* ===== Main ===== */
.sc-main { margin-left: var(--sc-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.sc-topbar {
  background: #fff; border-bottom: 1px solid #e6eaf2;
  padding: .6rem 1.5rem; position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; gap: 1rem;
}
.sc-content { padding: 1.5rem; flex: 1; }
.sc-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(69, 10, 10,.5); z-index: 1035;
}

@media (max-width: 991.98px) {
  .sc-sidebar { transform: translateX(-100%); }
  body.sidebar-open .sc-sidebar { transform: translateX(0); }
  body.sidebar-open .sc-backdrop { display: block; }
  .sc-main { margin-left: 0; }
  .sc-content { padding: 1rem; }
}

/* ===== Cards & KPI ===== */
.card { border: none; border-radius: 14px; box-shadow: 0 1px 3px rgba(139, 21, 27,.07); }
.card-header { background: transparent; border-bottom: 1px solid #eef1f6; font-weight: 600; padding: .9rem 1.25rem; }
.kpi-card { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; }
.kpi-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
}
.kpi-value { font-size: 1.3rem; font-weight: 700; color: var(--sc-primary); line-height: 1.15; }
.kpi-label { font-size: .74rem; color: #74809a; text-transform: uppercase; letter-spacing: .4px; }
.bg-soft-primary { background: #fee2e2; color: var(--sc-primary-2); }
.bg-soft-gold { background: #faf3dc; color: #9c7c14; }
.bg-soft-success { background: #e3f5eb; color: #157347; }
.bg-soft-danger { background: #fde8e8; color: #b02a37; }
.bg-soft-info { background: #e2f2f8; color: #087990; }

/* ===== Tables ===== */
.table { font-size: .875rem; }
.table thead th {
  background: #f6f8fc; color: #51607d; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid #e6eaf2;
  white-space: nowrap;
}
.table-hover tbody tr:hover { background: #f8faff; }
div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  background: var(--sc-primary); border-color: var(--sc-primary); color: #fff !important;
}
div.dt-container select.dt-input, div.dt-container input.dt-input { border-radius: 8px; }

/* ===== Buttons & forms ===== */
.pub-page .btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.pub-page .btn:hover { transform: translateY(-2px); }
.pub-page .btn-lg { padding: .72rem 1.5rem; font-size: .95rem; }

.btn-primary {
  background: linear-gradient(135deg, #c41e26 0%, #8b151b 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: 0 6px 16px rgba(139, 21, 27, .22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #dc2626 0%, #9f1a20 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(139, 21, 27, .32);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(253, 224, 71, .35);
  color: #fff;
  box-shadow: 0 6px 18px rgba(217, 119, 6, .28);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-color: rgba(253, 224, 71, .5);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 119, 6, .4);
}

.btn-outline-primary {
  background: #fff;
  border: 1.5px solid #8b151b;
  color: #8b151b;
  box-shadow: 0 2px 8px rgba(139, 21, 27, .06);
}
.btn-outline-primary:hover {
  background: #8b151b;
  border-color: #8b151b;
  color: #fff;
  box-shadow: 0 8px 18px rgba(139, 21, 27, .22);
}

.btn-outline-light {
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: #8b151b;
}
.form-control, .form-select { border-radius: 9px; border-color: #dde3ee; }
.form-control:focus, .form-select:focus { border-color: var(--sc-primary-2); box-shadow: 0 0 0 .2rem rgba(185, 28, 28,.12); }
.form-label { font-weight: 600; color: #3a4763; font-size: .84rem; }
.required::after { content: " *"; color: #dc3545; }

.page-title { font-size: 1.25rem; font-weight: 700; color: var(--sc-primary); margin: 0; }
.breadcrumb { font-size: .8rem; margin: 0; }

.badge { font-weight: 600; letter-spacing: .2px; }

/* ===== Public portal ===== */
.pub-page {
  background: #fff;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

/* ===== Header ===== */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 1040;
}

.pub-navbar {
  background: #450a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: .28rem 0;
  min-height: 58px;
}

.pub-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
}

.pub-navbar .navbar-brand img {
  max-height: none;
}

.pub-logo-emblem {
  width: 32px;
  height: 40px;
  aspect-ratio: 575 / 730;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.28));
}

.pub-footer .pub-logo-emblem {
  width: 28px;
  height: 36px;
}

.pub-brand:hover .pub-logo-emblem {
  transform: scale(1.08) rotate(2deg);
}

.pub-brand-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .3px;
  color: #fff;
  display: block;
}

.pub-brand-title span.text-gold {
  background: linear-gradient(135deg, #fde047 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pub-brand-sub {
  font-size: .58rem;
  color: #fca5a5;
  font-weight: 600;
  letter-spacing: .35px;
  display: block;
  text-transform: uppercase;
}

.pub-navbar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-weight: 600;
  font-size: .82rem;
  color: #f4c9c9 !important;
  padding: .32rem .75rem !important;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.pub-navbar .nav-link i {
  font-size: .92rem;
  line-height: 1;
  opacity: .88;
  transition: color .2s ease, opacity .2s ease;
}

.pub-navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.pub-navbar .nav-link:hover i {
  opacity: 1;
}

.pub-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}

.pub-navbar .nav-link.active i {
  color: var(--sc-gold);
  opacity: 1;
}

.pub-nav-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.pub-lang {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  padding: .12rem;
}

.pub-lang a {
  color: #f4c9c9;
  text-decoration: none;
  font-size: .68rem;
  font-weight: 700;
  padding: .18rem .42rem;
  border-radius: 999px;
}

.pub-lang a.active {
  background: #fff;
  color: #450a0a;
}

.pub-btn-mitra-reg {
  border: 1.5px solid rgba(253, 224, 71, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fde68a !important;
  font-weight: 700;
  font-size: .78rem;
  padding: .32rem .9rem;
  border-radius: 999px;
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.pub-btn-mitra-reg:hover {
  background: #fff;
  border-color: #fff;
  color: #8b151b !important;
}

.pub-btn-login-main {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: .78rem;
  padding: .34rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.4);
  box-shadow: 0 3px 12px rgba(217, 119, 6, 0.35);
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.pub-btn-login-main:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45);
  color: #fff !important;
}

@media (max-width: 991.98px) {
  .pub-navbar .navbar-collapse {
    background: #380508;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
    margin-top: .75rem;
  }
  .pub-nav-actions {
    flex-wrap: wrap;
    margin-top: .85rem;
  }
}

/* Hero */
.pub-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 4.75rem 0 7.5rem;
  background-color: #1c0808;
  background-image:
    linear-gradient(90deg, rgba(16, 5, 6, .82) 0%, rgba(16, 5, 6, .48) 46%, rgba(16, 5, 6, .12) 78%),
    linear-gradient(180deg, rgba(16, 5, 6, .18) 0%, rgba(16, 5, 6, .08) 40%, rgba(16, 5, 6, .72) 100%),
    url('/assets/images/hero-bg-mukomuko.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

.pub-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 280px at 18% 22%, rgba(217, 119, 6, .18), transparent 70%),
    linear-gradient(90deg, rgba(12, 4, 5, .35) 0%, transparent 55%);
}

.pub-hero-copy,
.pub-hero-content {
  max-width: 720px;
  animation: pubFadeUp .7s ease both;
}

.pub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px);
  color: #fff8e1;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2px;
  margin-bottom: 1.4rem;
}

.pub-hero h1 {
  font-weight: 800;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .45);
}

.pub-hero .lead {
  color: rgba(255, 255, 255, .92);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.pub-hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 2.1rem;
}

.pub-hero-actions .btn,
.btn-hero-ghost {
  border-radius: 14px;
  font-weight: 600;
  padding: .8rem 1.55rem;
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, .2);
  border-color: #fff;
  color: #fff;
}

.pub-hero-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, .35);
}

.pub-hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
}

.pub-hero-trust {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-top: 2.1rem;
}

.pub-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: #fff;
  font-weight: 600;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}

.pub-hero-trust i {
  color: #fde68a;
}

@media (max-width: 991.98px) {
  .pub-hero {
    padding: 3.25rem 0 6.5rem;
    background-image:
      linear-gradient(180deg, rgba(16, 5, 6, .58) 0%, rgba(16, 5, 6, .46) 50%, rgba(16, 5, 6, .8) 100%),
      url('/assets/images/hero-bg-mukomuko.jpg');
  }
}

.pub-hero-panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .25);
  animation: pubFadeUp .7s .15s ease both;
}

.pub-hero-panel-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: #c3d1e6;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}

.pub-hero-panel-head i {
  color: var(--sc-gold);
  font-size: 1.1rem;
}

.pub-hero-panel-stat {
  background: rgba(255, 255, 255, .06);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.pub-hero-panel-stat small {
  display: block;
  color: #fca5a5;
  font-size: .78rem;
  margin-bottom: .25rem;
}

.pub-hero-panel-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.pub-hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.pub-hero-panel-grid > div {
  background: rgba(255, 255, 255, .05);
  border-radius: 12px;
  padding: .85rem .65rem;
  text-align: center;
}

.pub-hero-panel-grid .num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sc-gold-light);
  line-height: 1.2;
}

.pub-hero-panel-grid .lbl {
  display: block;
  font-size: .68rem;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-top: .15rem;
}

/* Stats bar */
.pub-stats-wrap {
  margin-top: -3.75rem;
  position: relative;
  z-index: 2;
  padding-bottom: .5rem;
}

.pub-stats-card {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(69, 10, 10, .12);
  border: 1px solid rgba(255, 255, 255, .7);
  overflow: hidden;
  animation: pubFadeUp .7s .1s ease both;
}

.pub-stat {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-align: left;
  padding: 1.35rem 1.15rem;
  height: 100%;
  position: relative;
}

.pub-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #eef1f6;
}

.pub-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  line-height: 1;
  flex-shrink: 0;
}

.pub-stat-icon-gold { color: var(--sc-gold); }
.pub-stat-icon-primary { color: var(--sc-primary); }
.pub-stat-icon-success { color: #157347; }
.pub-stat-icon-info { color: #0d6efd; }

.pub-stat-copy {
  min-width: 0;
}

.pub-stat .value {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  color: var(--sc-primary);
  line-height: 1.2;
}

.pub-stat .label {
  font-size: .72rem;
  color: #74809a;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  margin-top: .15rem;
}

/* Sections */
.pub-section {
  padding: 4.5rem 0;
}

.pub-section-alt {
  background: linear-gradient(180deg, #fdf8f8 0%, #fbf8f8 100%);
}

.pub-section-header h2,
.pub-section-header h3 {
  color: var(--sc-primary);
  font-weight: 800;
  letter-spacing: -.02em;
}

.pub-section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: .5rem;
}

.pub-section-header h3 {
  font-size: 1.45rem;
  margin-bottom: 0;
}

.pub-section-header p {
  color: #6b7a94;
  max-width: 560px;
  margin: .75rem auto 0;
  line-height: 1.65;
}

.pub-section-header:not(.text-center) p {
  margin-left: 0;
  margin-right: 0;
}

.pub-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--sc-gold);
  margin-bottom: .5rem;
}

/* Program cards */
.pub-program-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.35rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.pub-program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(139, 21, 27, .12);
  border-color: #d5deed;
}

.pub-program-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .85rem;
}

.pub-field-tag {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 999px;
  line-height: 1.35;
  background: #fee2e2;
  color: var(--sc-primary-2);
}

.pub-priority-tag {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 999px;
  line-height: 1.35;
  white-space: nowrap;
}

.pub-priority-tag.priority-urgent { background: #fde8e8; color: #b02a37; }
.pub-priority-tag.priority-high { background: #fff3cd; color: #997404; }
.pub-priority-tag.priority-medium { background: #e2f2f8; color: #087990; }
.pub-priority-tag.priority-low { background: #eef1f6; color: #51607d; }

/* Samakan ukuran label status dengan tag bidang/prioritas */
.pub-program-card-top .badge,
.pub-detail-hero .badge {
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 999px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.pub-detail-hero .pub-hero-badge {
  font-size: .72rem;
  padding: .3rem .65rem;
  margin-bottom: 0;
  line-height: 1.35;
}

.pub-detail-hero .pub-priority-tag {
  font-size: .72rem;
  padding: .3rem .65rem;
}

.pub-program-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sc-primary);
  line-height: 1.4;
  margin-bottom: .65rem;
}

.pub-program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
  color: #74809a;
  margin-bottom: 1rem;
}

.pub-program-meta span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.pub-program-funding {
  background: #fdf8f8;
  border-radius: 12px;
  padding: .85rem;
  margin-bottom: 1rem;
}

.pub-progress {
  height: 8px;
  border-radius: 999px;
  background: #e3e8f2;
  overflow: hidden;
}

.pub-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #157347, #20c997);
  transition: width .6s ease;
}

.pub-program-card .btn {
  border-radius: 10px;
  font-weight: 600;
}

/* Features */
.pub-features {
  padding: 4rem 0 1.5rem;
}

.pub-section-programs {
  padding-top: 3rem;
}

.pub-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pub-feature-card {
  position: relative;
  background: #fff;
  border: 1px solid #efe7e4;
  border-radius: 22px;
  padding: 1.75rem 1.5rem 1.6rem;
  height: 100%;
  text-align: left;
  transition: transform .22s ease, box-shadow .22s ease;
}

.pub-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(139, 21, 27, .08);
}

.pub-feature-step {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #e4cfc6;
}

.pub-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 0 1.15rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff7ee, #fde8e4);
  color: var(--sc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: inset 0 0 0 1px rgba(139, 21, 27, .06);
}

@media (max-width: 767.98px) {
  .pub-feature-grid { grid-template-columns: 1fr; }
}

.pub-feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: .5rem;
}

.pub-feature-card p {
  font-size: .88rem;
  color: #6b7a94;
  margin: 0;
  line-height: 1.65;
}

/* Field breakdown */
.pub-field-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-field-item {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  border: 1px solid #e8ecf4;
}

.pub-field-bar {
  height: 6px;
  border-radius: 999px;
  background: #edf0f7;
  overflow: hidden;
}

.pub-field-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sc-primary-2), var(--sc-primary));
  transition: width .6s ease;
}

/* Partners */
.pub-partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .85rem;
}

/* Mitra section (home) */
.pub-partners-section {
  background: linear-gradient(180deg, #fff 0%, #fdf8f8 100%);
}

.pub-mitra-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem 1.5rem;
  justify-items: center;
  align-items: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pub-mitra-logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sc-primary);
  font-size: 1.85rem;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, color .2s ease;
}

.pub-mitra-logo-tile:hover {
  color: var(--sc-gold);
  transform: translateY(-3px) scale(1.08);
}

@media (max-width: 991.98px) {
  .pub-mitra-logo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 575.98px) {
  .pub-mitra-logo-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .pub-mitra-logo-tile { font-size: 1.6rem; }
}

.pub-partners-count-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 999px;
  padding: .5rem 1.15rem;
  box-shadow: 0 4px 16px rgba(139, 21, 27, .06);
}

.pub-partners-count-badge i {
  color: var(--sc-gold);
  font-size: 1.1rem;
}

.pub-partners-count-badge strong {
  font-size: 1.15rem;
  color: var(--sc-primary);
}

.pub-partners-count-badge span {
  font-size: .78rem;
  color: #74809a;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.pub-field-list-wide {
  max-width: 720px;
  margin: 0 auto;
}

.pub-mitra-card {
  background: #fff;
  border: 1px solid #efe7e4;
  border-radius: 20px;
  padding: 1.25rem 1.3rem 1.1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .95rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pub-mitra-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.pub-mitra-card-link:hover .pub-mitra-card {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(139, 21, 27, .1);
  border-color: #d5deed;
}

.pub-mitra-card-link:hover .pub-mitra-detail-link {
  color: var(--sc-primary);
}

.pub-mitra-card-head {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.pub-mitra-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fdf2e9;
  color: #8b151b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.pub-mitra-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  background: #fbf7f5;
  border-radius: 14px;
  padding: .8rem .9rem;
}

.pub-mitra-metrics small {
  display: block;
  font-size: .68rem;
  color: #8a7b76;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: .15rem;
}

.pub-mitra-metrics strong {
  display: block;
  font-size: .92rem;
  color: var(--sc-primary);
}

.pub-mitra-title h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--sc-primary);
  line-height: 1.35;
  margin: 0 0 .2rem;
}

.pub-mitra-type {
  font-size: .72rem;
  color: #74809a;
  font-weight: 600;
}

.pub-mitra-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
}

.pub-mitra-meta li {
  font-size: .82rem;
  color: #6b7a94;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem 0;
}

.pub-mitra-meta i {
  color: var(--sc-primary-2);
  width: 16px;
}

.pub-mitra-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding-top: .85rem;
  border-top: 1px solid #eef1f6;
}

.pub-mitra-stat {
  font-size: .75rem;
  font-weight: 600;
  color: #51607d;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.pub-mitra-amount {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 700;
  color: #157347;
}

.pub-mitra-card-foot {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: .65rem;
}

.pub-mitra-detail-link {
  font-size: .8rem;
  font-weight: 700;
  color: #8b151b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: 100%;
  padding: .55rem .75rem;
  border-radius: 10px;
  border: 1px solid #efe7e4;
  background: #fbf7f5;
  text-decoration: none;
  transition: color .2s ease, gap .2s ease, background .2s ease, border-color .2s ease;
}

.pub-mitra-detail-link:hover {
  color: var(--sc-primary);
  background: #fff;
  border-color: #d5deed;
  gap: .5rem;
}

.pub-mitra-filter {
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
}

.pub-mitra-filter .form-label {
  font-size: .75rem;
  margin-bottom: .25rem;
}

.pub-mitra-filter .form-control,
.pub-mitra-filter .form-select {
  font-size: .84rem;
  padding: .45rem .7rem;
}

.pub-pagination-wrap {
  margin-top: 2rem;
}

.pub-pagination .page-link {
  border-radius: 10px;
  margin: 0 .15rem;
  color: var(--sc-primary);
  font-weight: 600;
  font-size: .85rem;
  border-color: #e8ecf4;
  min-width: 38px;
  text-align: center;
}

.pub-pagination .page-item.active .page-link {
  background: var(--sc-primary);
  border-color: var(--sc-primary);
}

.pub-pagination .page-link:hover {
  background: #fdf8f8;
  color: var(--sc-primary);
}

.pub-partners-cta h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.pub-partner-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: .9rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--sc-primary);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pub-partner-card:hover {
  border-color: #d5deed;
  box-shadow: 0 6px 20px rgba(139, 21, 27, .06);
}

.pub-partner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #faf3dc;
  color: #9c7c14;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pub-field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .pub-field-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .pub-field-grid { grid-template-columns: 1fr; }
}

.pub-field-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #fff;
  border: 1px solid #efe7e4;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pub-field-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(139, 21, 27, .08);
  color: inherit;
}

.pub-field-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fdf2e9;
  color: #8b151b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pub-field-copy {
  min-width: 0;
  flex: 1;
}

.pub-field-copy strong {
  display: block;
  font-size: .92rem;
  color: var(--sc-primary);
  line-height: 1.3;
}

.pub-field-copy small {
  display: block;
  color: #8a7b76;
  margin: .15rem 0 .45rem;
}

.pub-field-track {
  display: block;
  height: 5px;
  background: #f1e7e2;
  border-radius: 999px;
  overflow: hidden;
}

.pub-field-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b91c1c, #d97706);
}

/* CTA banner */
.pub-cta {
  padding: 0 0 4.5rem;
}

.pub-cta-inner {
  background:
    linear-gradient(135deg, rgba(91, 14, 18, .88) 0%, rgba(69, 10, 10, .82) 100%),
    url('/assets/images/hero-bg-mukomuko.jpg') center/cover;
  border-radius: 28px;
  padding: 2.75rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pub-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(201, 162, 39, .2), transparent);
  pointer-events: none;
}

.pub-cta-inner h3 {
  font-weight: 800;
  font-size: 1.45rem;
  margin-bottom: .5rem;
  position: relative;
}

.pub-cta-inner p {
  color: #fecaca;
  position: relative;
}

.pub-cta-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  position: relative;
}

.pub-cta-actions .btn {
  border-radius: 12px;
  font-weight: 600;
}

/* Footer */
.pub-footer {
  background: #5c0d12;
  color: #fca5a5;
  padding: 1rem 0;
  font-size: .78rem;
}

.pub-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pub-footer-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.pub-footer-title {
  display: block;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
}

.pub-footer-sub {
  display: block;
  color: rgba(255, 255, 255, .55);
  font-size: .68rem;
  line-height: 1.3;
}

.pub-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  text-align: right;
  font-size: .72rem;
  color: rgba(252, 165, 165, .85);
}

@media (max-width: 767.98px) {
  .pub-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pub-footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}

/* Legacy aliases */
.program-card { transition: transform .15s ease, box-shadow .15s ease; height: 100%; }
.program-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(139, 21, 27,.12); }
.progress { border-radius: 20px; background: #edf0f7; }

@keyframes pubFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
  .pub-hero { padding: 4rem 0 5rem; }
  .pub-stat:not(:last-child)::after { display: none; }
  .pub-stat { border-bottom: 1px solid #eef1f6; }
  .pub-stats-wrap .row > .col-6:nth-child(odd) .pub-stat::after { display: none; }
  .auth-shell,
  .auth-shell-wide { grid-template-columns: 1fr; }
  .auth-brand-panel { padding: 2rem 1.5rem; }
  .auth-brand-panel h2 { font-size: 1.4rem; }
  .auth-feature-list,
  .auth-steps,
  .auth-note { display: none; }
  .pub-detail-sidebar { position: static; }
}

@media (max-width: 575.98px) {
  .pub-hero-actions .btn-lg,
  .pub-cta-actions .btn-lg {
    width: 100%;
  }
  .pub-cta-inner { text-align: center; justify-content: center; }
  .pub-cta-actions { width: 100%; justify-content: center; }
}


/* ===== Page header (katalog, detail) ===== */
.pub-page-header {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 1.35rem 0 1.55rem;
  background: linear-gradient(135deg, #8b151b 0%, #5c0d12 55%, #380508 100%);
}

.pub-page-header-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(500px 250px at 90% 0%, rgba(201, 162, 39, .2), transparent),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.pub-page-header h1 {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -.02em;
  margin-bottom: .2rem;
}

.pub-page-header .lead {
  color: #fecaca;
  max-width: 620px;
  font-size: .92rem;
}

.pub-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, .4);
  margin-bottom: .25rem;
}

.pub-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
}

.pub-breadcrumb .breadcrumb-item a:hover {
  color: #fff;
}

.pub-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, .9);
}

.pub-header-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: .85rem 1.15rem;
}

.pub-header-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.pub-header-stat span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fca5a5;
}

.pub-section-compact {
  padding-top: 2.5rem;
}

.pub-catalog-section {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.pub-catalog-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}

.pub-catalog-stat {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: .65rem .85rem;
}

.pub-catalog-stat i {
  font-size: 1.25rem;
  color: #fde68a;
  flex-shrink: 0;
}

.pub-catalog-stat:nth-child(2) i { color: #fbbf24; }
.pub-catalog-stat:nth-child(3) i { color: #86efac; }

.pub-catalog-stat strong {
  display: block;
  color: #fff;
  font-size: clamp(.82rem, 1.4vw, .98rem);
  font-weight: 800;
  line-height: 1.2;
}

.pub-catalog-stat small {
  display: block;
  color: rgba(255, 255, 255, .6);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 600;
  margin-top: .1rem;
}

@media (max-width: 991.98px) {
  .pub-catalog-stats { grid-template-columns: 1fr; }
}

.pub-filter-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(139, 21, 27, .06);
}

.pub-catalog-filter {
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
}

.pub-catalog-filter .form-label {
  font-size: .75rem;
  margin-bottom: .25rem;
}

.pub-catalog-filter .form-control,
.pub-catalog-filter .form-select {
  font-size: .84rem;
  padding: .45rem .7rem;
}

.pub-catalog-filter .row.g-2.mt-2 {
  margin-top: .65rem !important;
  padding-top: .65rem !important;
}

.pub-catalog-grid .pub-catalog-card {
  border-radius: 14px;
}

.pub-catalog-grid .pub-catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(139, 21, 27, .1);
}

.pub-catalog-grid .pub-program-img-box {
  aspect-ratio: 16 / 10;
}

.pub-catalog-grid .pub-img-badge-field,
.pub-catalog-grid .pub-img-badge-priority {
  top: 8px;
  font-size: .62rem;
  padding: .22rem .55rem;
}

.pub-catalog-grid .pub-img-badge-field { left: 8px; }
.pub-catalog-grid .pub-img-badge-priority { right: 8px; }

.pub-catalog-grid .pub-program-body {
  padding: .85rem .9rem .95rem;
}

.pub-catalog-grid .pub-program-body h3 {
  font-size: .86rem;
  margin-bottom: .35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-catalog-grid .pub-program-meta {
  font-size: .72rem;
  gap: .35rem;
  margin-bottom: .5rem;
}

.pub-catalog-grid .pub-program-funding .small {
  font-size: .7rem !important;
}

.pub-catalog-grid .pub-progress {
  height: 5px;
}

.pub-catalog-detail-btn {
  font-size: .78rem;
  padding: .38rem .75rem;
}

.pub-filter-card .form-label {
  font-size: .82rem;
  font-weight: 600;
  color: #51607d;
}

.pub-filter-btn {
  border-radius: 10px;
  font-weight: 600;
  padding: .6rem 1rem;
}

.pub-program-desc {
  font-size: .86rem;
  color: #6b7a94;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.pub-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #fdf8f8;
  border: 1px dashed #d5deed;
  border-radius: 18px;
}

.pub-empty-state i {
  font-size: 2.5rem;
  color: #b0bdd4;
  margin-bottom: 1rem;
}

.pub-empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sc-primary);
}

.pub-cta-compact {
  padding-top: 0;
}

.pub-detail-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  overflow: hidden;
}

.pub-detail-card .card-body {
  padding: 1.5rem;
}

.pub-detail-sidebar {
  position: sticky;
  top: 5.5rem;
}

.pub-funding-box {
  background: linear-gradient(180deg, #fdf8f8 0%, #fff 100%);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1rem;
}

.pub-meta-table th {
  width: 42%;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #74809a;
  background: #fdf8f8;
  border-bottom: 1px solid #eef1f6;
  padding: .75rem 1rem;
}

.pub-meta-table td {
  font-size: .88rem;
  font-weight: 600;
  color: var(--sc-primary);
  border-bottom: 1px solid #eef1f6;
  padding: .75rem 1rem;
}

/* Program detail page */
.pub-detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(135deg, #8b151b 0%, #5c0d12 55%, #380508 100%);
}

.pub-detail-hero h1 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.pub-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: #fecaca;
  font-size: .9rem;
}

.pub-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.pub-detail-meta i {
  color: var(--sc-gold);
}

.pub-detail-hero-stat {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.pub-detail-hero-stat small {
  display: block;
  color: #fca5a5;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .25rem;
}

.pub-detail-hero-stat strong {
  font-size: 1.45rem;
  font-weight: 800;
}

.pub-detail-hero-pct {
  display: block;
  margin-top: .5rem;
  font-size: .82rem;
  color: #fca5a5;
}

.pub-detail-section {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.pub-detail-section-head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}

.pub-detail-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fee2e2, #f0f4fc);
  color: var(--sc-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.pub-detail-section-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin: 0;
}

.pub-detail-section-body p {
  color: #51607d;
  line-height: 1.75;
  margin: 0;
}

.pub-detail-mini-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  padding: 1.25rem;
}

.pub-detail-mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: .85rem;
}

.pub-detail-mini-card h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: .5rem;
}

.pub-detail-mini-card p {
  font-size: .86rem;
  color: #6b7a94;
  line-height: 1.65;
  margin: 0;
}

.pub-detail-funding-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 12px 32px rgba(139, 21, 27, .08);
}

.pub-detail-funding-card > h2 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #74809a;
  text-align: center;
  margin-bottom: 1.25rem;
}

.pub-funding-ring-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pub-funding-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#157347 calc(var(--pct) * 1%), #e3e8f2 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pub-funding-ring-inner {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #eef1f6;
}

.pub-funding-ring-inner strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sc-primary);
  line-height: 1;
}

.pub-funding-ring-inner small {
  font-size: .62rem;
  color: #74809a;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-top: .15rem;
}

.pub-funding-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}

.pub-funding-stat {
  background: #fdf8f8;
  border-radius: 12px;
  padding: .75rem .85rem;
}

.pub-funding-stat span {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #74809a;
  margin-bottom: .15rem;
}

.pub-funding-stat strong {
  font-size: .88rem;
  word-break: break-word;
}

.pub-progress-lg {
  height: 10px;
}

.pub-progress-realized {
  height: 6px;
  background: #e8ecf4;
}

.pub-progress-realized .pub-progress-bar {
  background: linear-gradient(90deg, var(--sc-primary-2), var(--sc-primary));
}

.pub-detail-info-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.25rem;
}

.pub-detail-info-card h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: 1rem;
}

.pub-detail-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-detail-info-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid #eef1f6;
}

.pub-detail-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pub-detail-info-list i {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fbf8f8;
  color: var(--sc-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}

.pub-detail-info-list small {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #74809a;
  margin-bottom: .1rem;
}

.pub-detail-info-list strong {
  font-size: .88rem;
  color: var(--sc-primary);
  font-weight: 600;
}

.pub-related-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e8ecf4;
}

/* Detail v2 enhancements */
.pub-detail-hero-v2 {
  padding-bottom: 2.5rem;
}

.pub-detail-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.pub-detail-kpi {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: .85rem 1rem;
}

.pub-detail-kpi span {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .45px;
  color: #fca5a5;
  margin-bottom: .15rem;
}

.pub-detail-kpi strong {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.pub-detail-tabs {
  background: #fbf8f8;
  border-radius: 14px;
  padding: .35rem;
  gap: .35rem;
}

.pub-detail-tabs .nav-link {
  border-radius: 10px;
  font-weight: 600;
  font-size: .88rem;
  color: #51607d;
  padding: .55rem 1rem;
  display: inline-flex;
  align-items: center;
}

.pub-detail-tabs .nav-link.active {
  background: #fff;
  color: var(--sc-primary);
  box-shadow: 0 2px 8px rgba(139, 21, 27, .08);
}

.pub-tab-badge {
  background: var(--sc-gold);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .1rem .45rem;
  margin-left: .35rem;
}

.pub-detail-section-sub {
  font-size: .82rem;
  color: #74809a;
  margin: 0;
}

.pub-doc-intro {
  background: linear-gradient(135deg, #fdf8f8 0%, #fff 100%);
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
}

.pub-doc-intro h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sc-primary);
  margin-bottom: .35rem;
}

.pub-doc-intro p {
  color: #74809a;
  font-size: .88rem;
  margin-bottom: 1rem;
}

.pub-doc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}

.pub-doc-stats span {
  font-size: .82rem;
  color: #51607d;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.pub-doc-stats i {
  color: var(--sc-primary-2);
}

.pub-doc-block {
  margin-bottom: 1.75rem;
}

.pub-doc-block > h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.pub-commit-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.pub-commit-item {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: 1rem 1.15rem;
}

.pub-commit-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .5rem;
}

.pub-commit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.pub-timeline {
  position: relative;
  padding-left: 1.25rem;
}

.pub-timeline::before {
  content: "";
  position: absolute;
  left: .35rem;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--sc-primary-2), #e3e8f2);
  border-radius: 2px;
}

.pub-timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.pub-timeline-item:last-child {
  padding-bottom: 0;
}

.pub-timeline-dot {
  position: absolute;
  left: -1.05rem;
  top: .85rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sc-primary-2);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, .15);
}

.pub-timeline-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-left: .5rem;
}

.pub-timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .65rem;
}

.pub-timeline-amount {
  font-weight: 800;
  color: #157347;
  white-space: nowrap;
}

.pub-timeline-card p {
  font-size: .88rem;
  color: #51607d;
  line-height: 1.6;
}

.pub-activity-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  height: 100%;
}

.pub-activity-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .85rem;
}

.pub-activity-head h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin: 0 0 .2rem;
}

.pub-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  margin-bottom: .85rem;
}

.pub-activity-grid > div {
  background: #fdf8f8;
  border-radius: 10px;
  padding: .65rem .75rem;
}

.pub-activity-grid small {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .35px;
  color: #74809a;
  margin-bottom: .1rem;
}

.pub-activity-grid strong {
  font-size: .84rem;
  color: var(--sc-primary);
}

.pub-activity-benefit {
  font-size: .86rem;
  color: #51607d;
  line-height: 1.6;
}

.pub-file-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.pub-file-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pub-file-item:hover {
  border-color: #c5d0e3;
  box-shadow: 0 4px 16px rgba(139, 21, 27, .06);
}

.pub-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fee2e2;
  color: var(--sc-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pub-file-info {
  flex: 1;
  min-width: 0;
}

.pub-file-info strong {
  display: block;
  font-size: .88rem;
  color: var(--sc-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pub-file-info span {
  font-size: .75rem;
  color: #74809a;
}

.pub-file-dl {
  color: var(--sc-primary-2);
  font-size: 1.1rem;
}

.pub-funding-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}

.pub-funding-ring-realized {
  background: conic-gradient(var(--sc-primary-2) calc(var(--pct) * 1%), #e3e8f2 0) !important;
}

.pub-detail-doc-summary .pub-doc-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.pub-doc-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid #eef1f6;
  font-size: .84rem;
}

.pub-doc-summary-list li:last-child {
  border-bottom: none;
}

.pub-doc-summary-list span {
  color: #74809a;
}

.pub-doc-summary-list strong {
  color: var(--sc-primary);
}

@media (max-width: 767.98px) {
  .pub-activity-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-detail-kpi-row { grid-template-columns: 1fr 1fr; }
  .pub-funding-dual { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .pub-detail-tabs .nav-link { font-size: .78rem; padding: .5rem .65rem; }
  .pub-detail-tabs .nav-link i { display: none; }
}

/* ===== Auth pages (login, daftar) ===== */
.auth-page {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  background: #fbf8f8;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-shell-wide {
  grid-template-columns: minmax(280px, 380px) 1fr;
}

.auth-brand-panel {
  background:
    radial-gradient(600px 400px at 20% 0%, rgba(201, 162, 39, .18), transparent),
    linear-gradient(180deg, var(--sc-primary) 0%, #380508 100%);
  color: #fff;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.auth-brand-content {
  position: relative;
  max-width: 420px;
}

.auth-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.auth-brand-link strong {
  display: block;
  font-size: 1.05rem;
}

.auth-brand-link small {
  display: block;
  font-size: .68rem;
  color: #fca5a5;
}

.auth-brand-panel h2 {
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: .85rem;
}

.auth-brand-panel > .auth-brand-content > p {
  color: #fecaca;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem 0;
  color: #c3d1e6;
  font-size: .92rem;
}

.auth-feature-list i {
  color: var(--sc-gold);
}

.auth-steps {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: #c3d1e6;
}

.auth-step span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(201, 162, 39, .2);
  color: var(--sc-gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  flex-shrink: 0;
}

.auth-note {
  font-size: .85rem;
  color: #fca5a5;
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
}

.auth-back-link {
  color: #c3d1e6;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
}

.auth-back-link:hover {
  color: #fff;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-form-panel-scroll {
  align-items: flex-start;
  padding: 2rem 2.5rem;
}

.auth-form-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e8ecf4;
  box-shadow: 0 16px 40px rgba(139, 21, 27, .08);
  padding: 2rem;
}

.auth-form-card-wide {
  max-width: 720px;
}

.auth-form-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-form-logo {
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.auth-form-header h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--sc-primary);
  margin-bottom: .35rem;
}

.auth-form-header p {
  color: #74809a;
  font-size: .9rem;
  margin: 0;
}

.auth-form-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eef1f6;
}

.auth-form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.auth-form-section h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: 1rem;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap i {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa8be;
  pointer-events: none;
}

.auth-input-wrap .form-control {
  padding-left: 2.35rem;
}

.auth-login-demo-trigger {
  text-align: center;
  margin: 1.25rem 0 0;
}

.auth-login-demo-trigger a {
  color: var(--sc-primary-2);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-login-demo-trigger a:hover {
  color: var(--sc-primary);
  text-decoration: underline;
}

.auth-demo-modal .modal-header {
  border-bottom: 1px solid #eef1f6;
}

.auth-demo-modal .modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sc-primary);
}

.auth-demo-modal-password {
  color: #55627a;
  font-size: .85rem;
  margin-bottom: .85rem;
}

.auth-demo-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-demo-modal-list li + li {
  margin-top: .4rem;
}

.auth-demo-modal-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  border: 1px solid #e4eaf3;
  border-radius: 10px;
  background: #f8fafc;
  padding: .55rem .75rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.auth-demo-modal-item:hover,
.auth-demo-modal-item:focus-visible {
  border-color: #c5d3ea;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(139, 21, 27, .06);
  outline: none;
}

.auth-demo-modal-role {
  font-weight: 600;
  color: var(--sc-primary);
  font-size: .82rem;
}

.auth-demo-modal-email {
  color: #667085;
  font-size: .78rem;
  word-break: break-all;
}

.auth-demo-modal-note {
  color: #8a94a8;
  font-size: .78rem;
  margin: .85rem 0 0;
}

.auth-submit-btn {
  border-radius: 12px;
  font-weight: 600;
  padding: .75rem 1rem;
  margin-top: .5rem;
}

.auth-form-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef1f6;
  font-size: .9rem;
}

.auth-form-footer a {
  color: var(--sc-primary-2);
  font-weight: 600;
  text-decoration: none;
}

.auth-form-footer a:hover {
  color: var(--sc-primary);
}

/* ===== Register wizard ===== */
.auth-wizard-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(700px 350px at 50% 0%, rgba(201, 162, 39, .12), transparent),
    linear-gradient(180deg, #eef2f8 0%, #fbf8f8 100%);
}

.auth-wizard-container {
  width: 100%;
  max-width: 640px;
}

.auth-wizard-container-sm {
  max-width: 480px;
}

.auth-wizard-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(139, 21, 27, .1);
  overflow: hidden;
}

.auth-wizard-top {
  text-align: center;
  padding: 2rem 2rem 1.25rem;
}

.auth-wizard-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--sc-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

.auth-brand-logo {
  width: 41px;
  height: 52px;
  aspect-ratio: 575 / 730;
  object-fit: contain;
  flex-shrink: 0;
}

.auth-wizard-top h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--sc-primary);
  margin-bottom: .35rem;
}

.auth-wizard-top p {
  color: #74809a;
  font-size: .9rem;
  margin: 0;
}

.auth-wizard-progress {
  height: 4px;
  background: #eef1f6;
  margin: 0 2rem;
  border-radius: 999px;
  overflow: hidden;
}

.auth-wizard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--sc-gold), #e6c65a);
  border-radius: 999px;
  transition: width .35s ease;
}

.auth-wizard-steps {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: 1.25rem 2rem 0;
}

.auth-wizard-step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
  opacity: .45;
  transition: opacity .25s ease;
}

.auth-wizard-step-item.active,
.auth-wizard-step-item.done {
  opacity: 1;
}

.auth-wizard-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef1f6;
  color: #74809a;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, color .25s ease;
}

.auth-wizard-step-item.active .auth-wizard-step-num {
  background: var(--sc-primary-2);
  color: #fff;
  box-shadow: 0 4px 12px rgba(185, 28, 28, .25);
}

.auth-wizard-step-item.done .auth-wizard-step-num {
  background: #e3f5eb;
  color: #157347;
}

.auth-wizard-step-label {
  font-size: .68rem;
  font-weight: 600;
  color: #74809a;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.2;
}

.auth-wizard-step-item.active .auth-wizard-step-label {
  color: var(--sc-primary);
}

.auth-wizard-form {
  padding: 1.5rem 2rem 2rem;
}

.auth-wizard-pane {
  display: none;
  animation: wizardFadeIn .3s ease;
}

.auth-wizard-pane.active,
.auth-wizard-pane:not([hidden]) {
  display: block;
}

.auth-wizard-pane[hidden] {
  display: none !important;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.auth-wizard-pane-head {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef1f6;
}

.auth-wizard-pane-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fee2e2, #f0f4fc);
  color: var(--sc-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.auth-wizard-pane-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin: 0 0 .2rem;
}

.auth-wizard-pane-head p {
  font-size: .84rem;
  color: #74809a;
  margin: 0;
  line-height: 1.5;
}

.auth-wizard-note {
  font-size: .82rem;
  color: #74809a;
  background: #fdf8f8;
  border-radius: 10px;
  padding: .75rem 1rem;
}

.auth-wizard-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef1f6;
}

.auth-wizard-prev {
  border-radius: 10px;
  font-weight: 600;
}

.auth-wizard-step-text {
  flex: 1;
  text-align: center;
  font-size: .78rem;
  color: #74809a;
  font-weight: 500;
}

.auth-wizard-next,
.auth-wizard-submit {
  border-radius: 10px;
  font-weight: 600;
  margin-left: auto;
  min-width: 120px;
}

.auth-wizard-footer {
  text-align: center;
  padding: 1rem 2rem 1.75rem;
  border-top: 1px solid #eef1f6;
  background: #fafbfd;
}

.auth-wizard-footer p {
  font-size: .88rem;
  margin-bottom: .5rem;
  color: #51607d;
}

.auth-wizard-footer a {
  color: var(--sc-primary-2);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .auth-wizard-top,
  .auth-wizard-form,
  .auth-wizard-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .auth-wizard-progress { margin: 0 1.25rem; }
  .auth-wizard-steps { padding: 1rem 1.25rem 0; }
  .auth-wizard-step-label { font-size: .62rem; }
  .auth-wizard-actions { flex-wrap: wrap; }
  .auth-wizard-next,
  .auth-wizard-submit { width: 100%; margin-left: 0; order: 3; }
  .auth-wizard-prev { order: 2; flex: 1; }
  .auth-wizard-step-text { order: 1; width: 100%; margin-bottom: .25rem; }
}

/* Flowcart / How It Works page */
.pub-flow-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: .35rem .15rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(139, 21, 27, .05);
}

.pub-flow-pipeline-item {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.pub-flow-pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 96px;
  padding: .85rem .5rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #fdf8f8 0%, #fff 100%);
  border: 1px solid #e8ecf4;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pub-flow-pipeline-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 21, 27, .08);
}

.pub-flow-pipeline-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--sc-primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .45rem;
}

.pub-flow-pipeline-icon {
  font-size: 1.25rem;
  color: var(--sc-gold);
  margin-bottom: .35rem;
}

.pub-flow-pipeline-label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--sc-primary);
  line-height: 1.35;
}

.pub-flow-pipeline-arrow {
  color: #b8c5d9;
  font-size: .85rem;
  padding: 0 .1rem;
}

.pub-flow-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 6px 24px rgba(139, 21, 27, .04);
}

.pub-flow-card-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #eef1f6;
}

.pub-flow-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pub-flow-card-primary .pub-flow-card-icon {
  background: linear-gradient(135deg, #fee2e2, #d4e2f8);
  color: var(--sc-primary);
}

.pub-flow-card-info .pub-flow-card-icon {
  background: linear-gradient(135deg, #e7f3ff, #d4ebff);
  color: #0d6efd;
}

.pub-flow-card-gold .pub-flow-card-icon {
  background: linear-gradient(135deg, #fdf6e3, #f5e6b8);
  color: #9a7b0a;
}

.pub-flow-card-success .pub-flow-card-icon {
  background: linear-gradient(135deg, #e8f7ef, #ccebd9);
  color: #157347;
}

.pub-flow-card-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: .25rem;
}

.pub-flow-card-head p {
  font-size: .84rem;
  color: #6b7a94;
  margin: 0;
  line-height: 1.55;
}

.pub-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-flow-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 0;
  position: relative;
}

.pub-flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: calc(100% - 2px);
  width: 2px;
  height: calc(.65rem + 2px);
  background: #e2e8f2;
}

.pub-flow-step-marker {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--sc-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.pub-flow-card-info .pub-flow-step-marker { background: #0d6efd; }
.pub-flow-card-gold .pub-flow-step-marker { background: var(--sc-gold); color: #1a1a1a; }
.pub-flow-card-success .pub-flow-step-marker { background: #157347; }

.pub-flow-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f4f7fb;
  color: var(--sc-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}

.pub-flow-step-text {
  font-size: .88rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.45;
}

.pub-flow-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  padding: 1.15rem 1rem;
  height: 100%;
}

.pub-flow-legend-item span:last-child {
  font-size: .82rem;
  color: #6b7a94;
  line-height: 1.5;
}

.pub-flow-faq .accordion-item {
  border: 1px solid #e8ecf4;
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: .65rem;
  background: #fff;
}

.pub-flow-faq .accordion-button {
  font-weight: 600;
  font-size: .92rem;
  color: var(--sc-primary);
  background: #fff;
  box-shadow: none;
  padding: 1rem 1.15rem;
}

.pub-flow-faq .accordion-button:not(.collapsed) {
  background: #fdf8f8;
  color: var(--sc-primary);
}

.pub-flow-faq .accordion-body {
  font-size: .88rem;
  color: #5a677d;
  line-height: 1.65;
  padding: 0 1.15rem 1.15rem;
}

@media (max-width: 991.98px) {
  .pub-flow-pipeline {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .pub-flow-pipeline-item {
    flex-direction: column;
    align-items: stretch;
  }

  .pub-flow-pipeline-step {
    width: 100%;
    flex-direction: row;
    text-align: left;
    gap: .85rem;
    padding: .85rem 1rem;
  }

  .pub-flow-pipeline-num { margin-bottom: 0; }
  .pub-flow-pipeline-icon { margin-bottom: 0; }
  .pub-flow-pipeline-label { flex: 1; font-size: .82rem; }

  .pub-flow-pipeline-arrow {
    display: flex;
    justify-content: center;
    padding: .15rem 0;
    transform: rotate(90deg);
  }
}

/* Alur — timeline penjelasan */
.pub-alur-phase-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 24px rgba(139, 21, 27, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}

.pub-alur-phase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(139, 21, 27, .1);
  border-color: #f1dede;
  color: inherit;
}

.pub-alur-phase-card-num {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--sc-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-alur-phase-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #fee2e2, #fdf6e3);
  color: var(--sc-primary);
  margin-bottom: .9rem;
}

.pub-alur-phase-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: .45rem;
}

.pub-alur-phase-card p {
  font-size: .85rem;
  color: #5a677d;
  line-height: 1.6;
  margin-bottom: .85rem;
}

.pub-alur-phase-card-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--sc-gold);
}

.pub-alur-timeline {
  max-width: 760px;
  margin: 0 auto;
}

.pub-snake {
  display: grid;
  gap: 0;
  align-items: stretch;
}

.pub-snake-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  padding: 1.15rem 1rem 1rem;
  box-shadow: 0 8px 22px rgba(139, 21, 27, .05);
  scroll-margin-top: 96px;
  min-height: 100%;
}

.pub-snake-num {
  position: absolute;
  top: -10px;
  left: -8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--sc-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #f4f0f0;
}

.pub-snake-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: .65rem;
  background: #f4f7fb;
  color: var(--sc-primary);
}

.pub-snake-card h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin: 0 0 .4rem;
  line-height: 1.3;
}

.pub-snake-card .pub-alur-who {
  margin-bottom: .55rem;
}

.pub-snake-card p {
  font-size: .78rem;
  color: #5a677d;
  line-height: 1.55;
  margin: 0;
}

.pub-snake-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sc-gold);
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}

.pub-snake-arrow::before {
  content: '';
  position: absolute;
  background: #e2c48a;
  z-index: -1;
}

.pub-snake-arrow.is-right::before,
.pub-snake-arrow.is-left::before {
  height: 2px;
  left: 10%;
  right: 10%;
  top: 50%;
}

.pub-snake-arrow.is-down::before {
  width: 2px;
  top: 8%;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 992px) {
  .pub-snake {
    grid-template-columns: 1fr 44px 1fr 44px 1fr;
    grid-template-rows: auto 40px auto 40px auto;
    grid-template-areas:
      "n1 a1 n2 a2 n3"
      ".  .  .  .  a3"
      "n6 a5 n5 a4 n4"
      "a6 .  .  .  ."
      "n7 a7 n8 .  .";
    column-gap: .6rem;
    row-gap: .85rem;
    padding: .75rem .25rem 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .pub-snake {
    grid-template-columns: 1fr 36px 1fr;
    grid-template-rows: auto 32px auto 32px auto 32px auto;
    grid-template-areas:
      "n1 a1 n2"
      ".  .  a2"
      "n4 a3 n3"
      "a4 .  ."
      "n5 a5 n6"
      ".  .  a6"
      "n8 a7 n7";
    column-gap: .4rem;
    row-gap: .7rem;
    padding-top: .5rem;
  }

  .pub-snake-a2 i { transform: rotate(90deg); }
  .pub-snake-a3 i { transform: rotate(90deg); }
  .pub-snake-a4 i { transform: rotate(90deg); }
  .pub-snake-a5 i { transform: rotate(180deg); }
  .pub-snake-a7 i { transform: rotate(180deg); }

  .pub-snake-a2::before,
  .pub-snake-a4::before,
  .pub-snake-a6::before {
    width: 2px;
    height: auto;
    top: 8%;
    bottom: 8%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .pub-snake-a3::before,
  .pub-snake-a5::before,
  .pub-snake-a7::before {
    height: 2px;
    width: auto;
    left: 10%;
    right: 10%;
    top: 50%;
    bottom: auto;
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .pub-snake {
    grid-template-columns: 1fr;
    grid-template-areas:
      "n1" "a1" "n2" "a2" "n3" "a3" "n4" "a4"
      "n5" "a5" "n6" "a6" "n7" "a7" "n8";
    row-gap: .35rem;
  }

  .pub-snake-arrow.is-right i,
  .pub-snake-arrow.is-left i {
    transform: rotate(90deg);
  }

  .pub-snake-arrow {
    padding: .15rem 0;
  }

  .pub-snake-card { padding: 1.2rem 1.15rem 1.05rem; }
  .pub-snake-card h4 { font-size: 1rem; }
  .pub-snake-card p { font-size: .86rem; }
}

.pub-snake-n1 { grid-area: n1; }
.pub-snake-n2 { grid-area: n2; }
.pub-snake-n3 { grid-area: n3; }
.pub-snake-n4 { grid-area: n4; }
.pub-snake-n5 { grid-area: n5; }
.pub-snake-n6 { grid-area: n6; }
.pub-snake-n7 { grid-area: n7; }
.pub-snake-n8 { grid-area: n8; }
.pub-snake-a1 { grid-area: a1; }
.pub-snake-a2 { grid-area: a2; }
.pub-snake-a3 { grid-area: a3; }
.pub-snake-a4 { grid-area: a4; }
.pub-snake-a5 { grid-area: a5; }
.pub-snake-a6 { grid-area: a6; }
.pub-snake-a7 { grid-area: a7; }

.pub-alur-phase {
  scroll-margin-top: 96px;
}

.pub-alur-phase + .pub-alur-phase {
  margin-top: 1.75rem;
}

.pub-alur-phase-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
  padding-left: 4px;
}

.pub-alur-phase-badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .7rem;
  border-radius: 999px;
  background: var(--sc-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  flex-shrink: 0;
}

.pub-alur-phase-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin: 0;
}

.pub-alur-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: stretch;
}

.pub-alur-step + .pub-alur-step {
  margin-top: 0;
}

.pub-alur-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pub-alur-num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--sc-primary);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px #f8f4f4;
  z-index: 1;
}

.pub-alur-line {
  flex: 1;
  width: 2px;
  min-height: 1.25rem;
  background: linear-gradient(180deg, #d4a0a3, #e8ecf4);
  margin: 4px 0 0;
}

.pub-alur-line.is-phase-end {
  background: linear-gradient(180deg, #d4a0a3, transparent);
  min-height: 2rem;
}

.pub-alur-body {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.05rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(139, 21, 27, .04);
}

.pub-alur-step.is-last .pub-alur-body {
  margin-bottom: 0;
}

.pub-alur-body-top {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-bottom: .65rem;
}

.pub-alur-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  background: #f4f7fb;
  color: var(--sc-primary);
}

.pub-alur-tone-opd { border-left: 3px solid var(--sc-primary); }
.pub-alur-tone-opd .pub-alur-icon { background: #fee2e2; color: var(--sc-primary); }
.pub-alur-tone-opd .pub-alur-who { background: #fee2e2; color: var(--sc-primary); }

.pub-alur-tone-bap { border-left: 3px solid #157347; }
.pub-alur-tone-bap .pub-alur-icon { background: #e8f7ef; color: #157347; }
.pub-alur-tone-bap .pub-alur-who { background: #e8f7ef; color: #157347; }

.pub-alur-tone-mitra { border-left: 3px solid var(--sc-gold); }
.pub-alur-tone-mitra .pub-alur-icon { background: #fdf6e3; color: #9a7b0a; }
.pub-alur-tone-mitra .pub-alur-who { background: #fdf6e3; color: #9a7b0a; }

.pub-alur-tone-mix { border-left: 3px solid #6b4c9a; }
.pub-alur-tone-mix .pub-alur-icon { background: #f3eef9; color: #6b4c9a; }
.pub-alur-tone-mix .pub-alur-who { background: #f3eef9; color: #6b4c9a; }

.pub-alur-tone-pub { border-left: 3px solid #0d6efd; }
.pub-alur-tone-pub .pub-alur-icon { background: #e7f3ff; color: #0d6efd; }
.pub-alur-tone-pub .pub-alur-who { background: #e7f3ff; color: #0d6efd; }

.pub-alur-body h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin: 0 0 .35rem;
}

.pub-alur-who {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  padding: .18rem .55rem;
  border-radius: 999px;
  line-height: 1.3;
}

.pub-alur-body p {
  font-size: .88rem;
  color: #4a5568;
  line-height: 1.65;
  margin: 0;
}

.pub-alur-tabs {
  gap: .45rem;
  flex-wrap: wrap;
}

.pub-alur-tabs .nav-link {
  border-radius: 999px;
  border: 1px solid #e8ecf4;
  background: #fff;
  color: #4a5568;
  font-size: .82rem;
  font-weight: 600;
  padding: .5rem 1rem;
}

.pub-alur-tabs .nav-link i {
  margin-right: .35rem;
}

.pub-alur-tabs .nav-link.active {
  background: var(--sc-primary);
  border-color: var(--sc-primary);
  color: #fff;
}

.pub-alur-role-card {
  max-width: 720px;
  margin: 0 auto;
}

/* Alur per Peran — panel grid */
.pub-role-panel {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 28px rgba(139, 21, 27, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.pub-role-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(139, 21, 27, .1);
}

.pub-role-panel-head {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem 1rem;
  color: #fff;
}

.pub-role-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, .18);
  flex-shrink: 0;
}

.pub-role-panel-head h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .25rem;
  color: #fff;
}

.pub-role-panel-head p {
  font-size: .78rem;
  margin: 0;
  opacity: .88;
  line-height: 1.5;
}

.pub-role-panel-public .pub-role-panel-head {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.pub-role-panel-opd .pub-role-panel-head {
  background: linear-gradient(135deg, #b91c1c 0%, #8b151b 100%);
}

.pub-role-panel-mitra .pub-role-panel-head {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.pub-role-panel-bapperida .pub-role-panel-head {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}

.pub-role-steps {
  list-style: none;
  margin: 0;
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-role-step {
  display: grid;
  grid-template-columns: 26px 32px 1fr;
  align-items: center;
  gap: .65rem;
  padding: .55rem 0;
  position: relative;
}

.pub-role-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 12px;
  top: calc(100% - 2px);
  width: 2px;
  height: calc(.55rem + 2px);
  background: #e8ecf4;
}

.pub-role-panel-public .pub-role-step-num { background: #2563eb; }
.pub-role-panel-opd .pub-role-step-num { background: var(--sc-primary); }
.pub-role-panel-mitra .pub-role-step-num { background: var(--sc-gold); color: #1a1a1a; }
.pub-role-panel-bapperida .pub-role-step-num { background: #157347; }

.pub-role-panel-public .pub-role-step-icon { color: #2563eb; background: #eff6ff; }
.pub-role-panel-opd .pub-role-step-icon { color: var(--sc-primary); background: #fef2f2; }
.pub-role-panel-mitra .pub-role-step-icon { color: #b45309; background: #fffbeb; }
.pub-role-panel-bapperida .pub-role-step-icon { color: #157347; background: #ecfdf5; }

.pub-role-step-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.pub-role-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.pub-role-step-text {
  font-size: .84rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.45;
}

@media (max-width: 575.98px) {
  .pub-alur-step {
    grid-template-columns: 32px 1fr;
    gap: .7rem;
  }

  .pub-alur-num {
    width: 28px;
    height: 28px;
    font-size: .75rem;
  }

  .pub-role-step {
    grid-template-columns: 24px 28px 1fr;
    gap: .5rem;
  }

  .pub-role-step-text { font-size: .8rem; }
}

/* ===== Enhanced Program Cards & Visual Images ===== */
.pub-program-card {
  background: #fff;
  border: 1px solid #f1dede;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 4px 16px rgba(139, 21, 27, .04);
}

.pub-program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(139, 21, 27, .12);
  border-color: #fca5a5;
}

.pub-program-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #fdf2f2;
  overflow: hidden;
}

.pub-program-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pub-program-card:hover .pub-program-img {
  transform: scale(1.07);
}

.pub-img-badge-field {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(69, 10, 10, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .32rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: .2px;
}

.pub-img-badge-priority {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: .72rem;
  font-weight: 700;
  padding: .32rem .75rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pub-program-body {
  padding: 1.05rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pub-program-body h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--sc-primary);
  line-height: 1.35;
  margin-bottom: .5rem;
}

.pub-program-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.pub-program-body h3 a:hover {
  color: #dc2626;
}

/* List View Card */
.pub-program-list-card {
  display: flex;
  background: #fff;
  border: 1px solid #f1dede;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 4px 16px rgba(139, 21, 27, .04);
}

.pub-program-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(139, 21, 27, .1);
  border-color: #fca5a5;
}

.pub-program-list-img-box {
  width: 280px;
  min-width: 280px;
  position: relative;
  background: #fdf2f2;
  overflow: hidden;
}

.pub-program-list-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (max-width: 767.98px) {
  .pub-program-list-card {
    flex-direction: column;
  }
  .pub-program-list-img-box {
    width: 100%;
    min-width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* Quick Filter Pills */
.pub-filter-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .55rem;
  margin-bottom: 1.25rem;
}

.pub-filter-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem .7rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fecaca;
  color: #7f1d1d;
  text-decoration: none;
  transition: all .2s ease;
}

@media (max-width: 991.98px) {
  .pub-filter-pills { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .pub-filter-pills { grid-template-columns: 1fr; }
}

.pub-filter-pill:hover,
.pub-filter-pill.active {
  background: linear-gradient(135deg, #991b1b, #b91c1c);
  color: #fff;
  border-color: #991b1b;
  box-shadow: 0 4px 12px rgba(153, 27, 27, .25);
}

/* Catalog Detail Page Modern Styles */
.pub-detail-hero-v3 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #450a0a 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
}

.pub-detail-hero-v3 h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.pub-detail-cover-card {
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(139, 21, 27, .08);
  margin-bottom: 2rem;
}

.pub-detail-cover-img-box {
  position: relative;
  width: 100%;
  max-height: 440px;
  background: #fdf2f2;
  overflow: hidden;
}

.pub-detail-cover-img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.pub-funding-visual-box {
  background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
  border: 1px solid #fecaca;
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.pub-funding-meter {
  height: 14px;
  border-radius: 999px;
  background: #fee2e2;
  overflow: hidden;
  position: relative;
}

.pub-funding-meter-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b91c1c 0%, #d97706 70%, #16a34a 100%);
  transition: width .8s cubic-bezier(0.16, 1, 0.3, 1);
}

.pub-detail-tab-btn {
  font-weight: 600;
  font-size: .9rem;
  border-radius: 12px;
  padding: .65rem 1.15rem;
  color: #7f1d1d;
  transition: all .2s ease;
}

.pub-detail-tab-btn.active {
  background: linear-gradient(135deg, #991b1b, #b91c1c) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(153, 27, 27, .25);
}

/* Sidebar Call-to-Action Card */
.pub-sidebar-cta-card {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  color: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 16px 40px rgba(127, 29, 29, .25);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.pub-sidebar-cta-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.25);
  pointer-events: none;
}

.pub-whatsapp-btn {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: .75rem 1.25rem;
  transition: all .2s ease;
}

.pub-whatsapp-btn:hover {
  background: #1eb855;
  border-color: #1eb855;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
}

/* Related program mini card */
.pub-related-card {
  display: flex;
  gap: .85rem;
  align-items: center;
  padding: .75rem;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
  margin-bottom: .75rem;
}

.pub-related-card:hover {
  transform: translateY(-2px);
  border-color: #dc2626;
  box-shadow: 0 8px 20px rgba(153, 27, 27, .08);
  color: inherit;
}

.pub-related-thumb {
  width: 76px;
  height: 60px;
  min-width: 76px;
  border-radius: 10px;
  overflow: hidden;
  background: #fdf2f2;
}

.pub-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Informasi / Berita ===== */
.pub-info-section,
.pub-info-home-section {
  padding-top: 2.5rem;
}

.pub-info-filter {
  margin-bottom: 0;
}

.pub-info-card {
  height: 100%;
}

.pub-info-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.pub-info-card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(139, 21, 27, .12);
  border-color: #d5deed;
  color: inherit;
}

.pub-info-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f3f5fa;
  overflow: hidden;
}

.pub-info-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.pub-info-card-link:hover .pub-info-card-media img {
  transform: scale(1.04);
}

.pub-info-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #c5cde0;
  background: linear-gradient(135deg, #f8f9fc, #eef2f8);
}

.pub-info-category {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 999px;
  line-height: 1.35;
  background: #fee2e2;
  color: var(--sc-primary-2);
}

.pub-info-card-media .pub-info-category {
  position: absolute;
  left: .85rem;
  top: .85rem;
  z-index: 1;
}

.pub-info-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pub-info-card-body time {
  font-size: .78rem;
  color: #7b879d;
  margin-bottom: .45rem;
}

.pub-info-card-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--sc-primary);
  line-height: 1.45;
  margin-bottom: .55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-info-card-body p {
  font-size: .88rem;
  color: #5c6b82;
  line-height: 1.6;
  margin-bottom: .85rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-info-readmore {
  font-size: .82rem;
  font-weight: 600;
  color: var(--sc-primary-2);
}

/* Info detail hero */
.pub-info-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 2.5rem 0 3rem;
}

.pub-info-hero-pengumuman {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 55%, #450a0a 100%);
}

.pub-info-hero-berita {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #172554 100%);
}

.pub-info-hero-edukasi {
  background: linear-gradient(135deg, #065f46 0%, #059669 55%, #064e3b 100%);
}

.pub-info-hero-deco {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(8rem, 18vw, 14rem);
  opacity: .07;
  pointer-events: none;
  line-height: 1;
}

.pub-info-hero h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.pub-info-hero-lead {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, .78);
  line-height: 1.65;
  max-width: 42rem;
}

.pub-info-hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
}

.pub-info-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.pub-info-hero-stat {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: .75rem .85rem;
}

.pub-info-hero-stat small {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: rgba(255, 255, 255, .65);
  margin-bottom: .2rem;
}

.pub-info-hero-stat strong {
  display: block;
  font-size: .92rem;
  color: #fff;
  line-height: 1.35;
}

.pub-info-detail-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.pub-info-cover-card {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e8ecf4;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.pub-info-cover-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.pub-info-article {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 20px;
  padding: 1.85rem 2rem;
}

.pub-info-detail-content {
  font-size: 1.02rem;
  color: #374151;
  line-height: 1.9;
}

.pub-info-detail-content p {
  margin-bottom: 1rem;
}

.pub-info-detail-content p:last-child {
  margin-bottom: 0;
}

.pub-info-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.pub-info-list li {
  margin-bottom: .55rem;
  line-height: 1.75;
}

.pub-info-steps {
  margin: .5rem 0 1.5rem;
}

.pub-info-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.pub-info-step-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
  scroll-margin-top: 90px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pub-info-step-list > li:hover {
  border-color: #d5deed;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.pub-info-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #991b1b, #b91c1c);
  flex-shrink: 0;
}

.pub-info-theme-edukasi .pub-info-step-num {
  background: linear-gradient(135deg, #059669, #10b981);
}

.pub-info-theme-berita .pub-info-step-num {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

.pub-info-theme-edukasi .pub-info-toc a span {
  background: #d1fae5;
  color: #047857;
}

.pub-info-theme-berita .pub-info-toc a span {
  background: #dbeafe;
  color: #1d4ed8;
}

.pub-info-step-body {
  font-size: 1rem;
  color: #334155;
  line-height: 1.8;
  padding-top: .15rem;
}

.pub-info-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
}

.pub-info-share-label {
  font-size: .85rem;
  font-weight: 600;
  color: #64748b;
  margin-right: .25rem;
}

.pub-info-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.pub-info-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
  color: #1e293b;
}

.pub-info-share-wa:hover { background: #dcfce7; border-color: #86efac; color: #15803d; }
.pub-info-share-fb:hover { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.pub-info-share-x:hover { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }
.pub-info-share-copy:hover { background: #fef3c7; border-color: #fcd34d; color: #92400e; }

.pub-info-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

.pub-info-nav-link {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.15rem;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pub-info-nav-link:hover {
  border-color: #d5deed;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  color: inherit;
}

.pub-info-nav-link small {
  font-size: .75rem;
  color: #64748b;
  font-weight: 600;
}

.pub-info-nav-link strong {
  font-size: .92rem;
  color: var(--sc-primary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-info-nav-next {
  text-align: right;
}

.pub-info-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.pub-info-sidebar-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
}

.pub-info-sidebar-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: 1rem;
}

.pub-info-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}

.pub-info-toc a {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .55rem .65rem;
  border-radius: 10px;
  text-decoration: none;
  color: #475569;
  font-size: .88rem;
  line-height: 1.45;
  transition: background .15s ease, color .15s ease;
}

.pub-info-toc a:hover {
  background: #f8fafc;
  color: var(--sc-primary-2);
}

.pub-info-toc a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 8px;
  background: #fee2e2;
  color: var(--sc-primary-2);
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pub-info-sidebar-cta {
  background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
  border-color: #fecaca;
  text-align: center;
}

.pub-info-sidebar-cta-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto .75rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--sc-primary-2);
  background: #fff;
  border: 1px solid #fecaca;
}

.pub-info-sidebar-cta h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sc-primary);
  margin-bottom: .45rem;
}

.pub-info-sidebar-cta p {
  font-size: .85rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.pub-info-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .65rem;
}

.pub-info-meta-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding-bottom: .65rem;
  border-bottom: 1px dashed #e8ecf4;
  font-size: .85rem;
}

.pub-info-meta-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pub-info-meta-list span {
  color: #94a3b8;
}

.pub-info-meta-list strong {
  color: #334155;
  text-align: right;
  font-weight: 600;
}

.pub-info-related {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .pub-info-sidebar {
    position: static;
  }

  .pub-info-nav {
    grid-template-columns: 1fr;
  }

  .pub-info-nav-next {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .pub-info-hero {
    padding: 2rem 0 2.5rem;
  }

  .pub-info-hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .pub-info-article {
    padding: 1.25rem;
  }

  .pub-info-step-list > li {
    grid-template-columns: 1fr;
    gap: .65rem;
  }
}

/* ===== Print ===== */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
