/* ============================================================
   SIPELOT — DPMPTSP Kabupaten Malang
   CSS Stylesheet
   Version : 2.0
   Author  : DPMPTSP Kab. Malang
   ============================================================ */

/* ── 1. CSS VARIABLES (Design Tokens) ── */
:root {
  /* Warna utama */
  --blue:      #1D4ED8;
  --blue2:     #1E40AF;
  --blue-lt:   #EFF6FF;
  --blue-mid:  #BFDBFE;

  --red:       #DC2626;
  --red2:      #B91C1C;
  --red-lt:    #FEF2F2;
  --red-mid:   #FECACA;

  --gold:      #F59E0B;
  --gold2:     #D97706;
  --green:     #059669;
  --purple:    #7C3AED;

  /* Background */
  --bg:        #F0F4FF;
  --bg2:       #FFFFFF;
  --bg3:       #E8EEFF;

  /* Teks */
  --text-dark:  #0F172A;
  --text-body:  #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;

  /* Border & Shadow */
  --border:     #E2E8F0;
  --border2:    #CBD5E1;
  --shadow:     0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 12px rgba(15,23,42,0.10);
  --shadow-lg:  0 10px 24px rgba(15,23,42,0.12);

  /* Radius */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Spacing */
  --container: 1100px;
  --gap:       24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ── 3. TOP BAR ── */
.topbar {
  background: #1E3A8A;
  padding: 7px var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.topbar a:hover {
  color: #fff;
}

.tb-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

/* ── 4. HEADER ── */
.header {
  background: #fff;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13,43,110,0.35);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text .app-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.logo-text .app-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* Navigasi */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-weight: 500;
  user-select: none;
  text-decoration: none;
  display: inline-block;
}

.nav-item:hover {
  background: var(--blue-lt);
  color: var(--blue);
}

.nav-item.active {
  background: var(--blue-lt);
  color: var(--blue);
  font-weight: 600;
}

.nav-item.skm {
  color: var(--red);
  font-weight: 600;
}

.nav-item.skm:hover {
  background: var(--red-lt);
}

/* CTA Buttons Header */
.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Tombol umum */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--blue);
  color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue-lt);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(29,78,216,0.3);
}

.btn-primary:hover {
  background: var(--blue2);
  box-shadow: 0 4px 12px rgba(29,78,216,0.4);
  transform: translateY(-1px);
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}

.btn-red:hover {
  background: var(--red2);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 1.5px solid var(--border2);
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.15s;
}

.hamburger:hover {
  background: var(--bg);
  border-color: var(--border2);
}

/* Menu mobile (dikontrol oleh JS) */
.nav-mobile {
  display: none;
  position: absolute;
  top: 66px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15,23,42,0.1);
  z-index: 199;
  padding: 8px 16px 14px;
  flex-direction: column;
  gap: 2px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-item {
  padding: 10px 14px;
  font-size: 14px;
}

/* ── 5. ANNOUNCE BAR ── */
.announce {
  background: #FFF7ED;
  border-bottom: 1px solid #FED7AA;
  padding: 9px var(--gap);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.announce-badge {
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.announce-text {
  color: #7C2D12;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.announce-text strong {
  color: #9A3412;
}

.announce-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: announceMarquee 22s linear infinite;
}

.announce-track:hover {
  animation-play-state: paused;
}

@keyframes announceMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .announce-track {
    animation: none;
    padding-left: 0;
  }
}

.announce-close {
  color: #CBD5E1;
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}

.announce-close:hover {
  color: var(--text-muted);
}

/* ── 6. HERO / CAROUSEL ── */
.hero {
  background: #1E3A8A;
  position: relative;
  overflow: hidden;
}

.hero-deco {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(220,38,38,0.13);
  pointer-events: none;
}

.hero-deco2 {
  position: absolute;
  bottom: -100px;
  left: 18%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.hero-deco3 {
  position: absolute;
  top: 30%;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(245,158,11,0.07);
  pointer-events: none;
}

.slides-wrap {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  padding: 56px 32px 62px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.92);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.4px;
}

.slide h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 14px;
  color: #fff;
}

.slide h1 .hl-red    { color: #FCA5A5; }
.slide h1 .hl-yellow { color: #FDE68A; }
.slide h1 .hl-cyan   { color: #BAE6FD; }

.slide > div > p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 440px;
}

.slide-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tombol carousel */
.btn-white {
  background: #fff;
  color: var(--blue);
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
}

.btn-white:hover {
  background: #F0F9FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.btn-white-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
}

.btn-white-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.75);
}

/* Visual card kanan slide */
.slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 290px;
  backdrop-filter: blur(10px);
}

.visual-card-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.visual-card-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.vc-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.vc-stat-item {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.vc-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.vc-stat-lbl {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* Carousel controls */
.carousel-ctrl {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px var(--gap);
}

.c-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}

.c-dot.on {
  background: #fff;
  width: 26px;
  border-radius: 4px;
}

.car-arrow {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  transition: all 0.15s;
  user-select: none;
  flex-shrink: 0;
}

.car-arrow:hover {
  background: rgba(255,255,255,0.25);
}

/* ── 8. STATS BAND ── */
.stats-band {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
}

.stat-blk {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-blk:last-child {
  border-right: none;
}

.stat-blk:nth-child(1) .stat-num { color: var(--blue); }
.stat-blk:nth-child(2) .stat-num { color: var(--green); }
.stat-blk:nth-child(3) .stat-num { color: var(--gold2); }
.stat-blk:nth-child(4) .stat-num { color: var(--red); }

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── 9. MAIN CONTENT ── */
.main {
  background: var(--bg);
  padding: 28px var(--gap);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sec-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 9px;
}

.sec-title-bar {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--blue);
  flex-shrink: 0;
}

.sec-title-bar.red  { background: var(--red); }
.sec-title-bar.gold { background: var(--gold); }

.sec-link {
  font-size: 12px;
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
  transition: color 0.15s;
}

.sec-link:hover {
  color: var(--blue2);
}

/* ── 10. SERVICE CARDS ── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.svc-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px 48px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.svc-card:hover {
  border-color: var(--blue-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.svc-card.featured {
  border-color: #BFDBFE;
  border-top: 3px solid var(--red);
}

.svc-card.featured::after {
  content: 'Unggulan';
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--red-lt);
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid var(--red-mid);
}

.svc-ic {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
  flex-shrink: 0;
}

.ic-b  { background: #DBEAFE; color: var(--blue); }
.ic-b2 { background: #EDE9FE; color: #5B21B6; }
.ic-r  { background: #FEE2E2; color: var(--red); }
.ic-g  { background: #D1FAE5; color: var(--green); }
.ic-a  { background: #FEF3C7; color: #92400E; }
.ic-p  { background: #F3E8FF; color: #6D28D9; }

.svc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 5px;
}

.svc-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.svc-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}

.badge-green  { background: #D1FAE5; color: #065F46; }
.badge-blue   { background: #DBEAFE; color: #1E40AF; }
.badge-amber  { background: #FEF3C7; color: #92400E; }
.badge-red    { background: #FEE2E2; color: #991B1B; }

.svc-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-faint);
  transition: all 0.2s;
}

.svc-card:hover .svc-arrow {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ── 11. TWO COL GRID ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

/* ── 12. QUICKLINK CARDS (Tracking · Payment PBG · SKM) ── */
.quicklink-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.quicklink-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 0;
}

.quicklink-card:hover {
  border-color: var(--blue-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ql-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.ql-blue { background: #DBEAFE; color: var(--blue); border-color: var(--blue-mid); }
.ql-gold { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.ql-red  { background: #FEE2E2; color: var(--red);  border-color: var(--red-mid); }

.ql-body {
  flex: 1;
  min-width: 0;
}

.ql-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.ql-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.ql-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: all 0.2s;
}

.quicklink-card:hover .ql-arrow {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ── 14. PENGUMUMAN ── */
.announce-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.ann-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow);
}

.ann-item:hover {
  border-color: var(--blue-mid);
  transform: translateX(3px);
}

.ann-date {
  font-size: 10px;
  color: var(--text-faint);
  flex-shrink: 0;
  min-width: 76px;
  padding-top: 2px;
  font-weight: 600;
}

.ann-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
  line-height: 1.4;
}

.ann-content p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.55;
}

.ann-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 6px;
}

/* ── 15. FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.faq-item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-q {
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  gap: 12px;
  user-select: none;
  transition: background 0.15s;
}

.faq-q:hover {
  background: var(--blue-lt);
}

.faq-chevron {
  color: var(--text-faint);
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a.open {
  max-height: 240px;
}

.faq-a-inner {
  padding: 0 16px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* ── 17. FOOTER ── */
.footer {
  background: #1E3A8A;
  border-top: 4px solid var(--red);
  padding: 36px var(--gap) 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  max-width: var(--container);
  margin: 0 auto 28px;
}

.footer-brand .logo-mark {
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.footer-brand .app-name {
  color: #fff;
}

.footer-brand .app-sub {
  color: rgba(255,255,255,0.55);
}

.footer-brand p {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 300px;
  margin-top: 14px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
  letter-spacing: 0.8px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul li a {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.bsre {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bsre-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── 18. RESPONSIVE — TABLET (≤ 900px) ── */
@media (max-width: 900px) {
  .slide {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 36px 24px 56px;
  }

  .slide-visual {
    display: none;
  }

  .slide h1 {
    font-size: 26px;
  }

  .slide > div > p {
    max-width: 100%;
  }

  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .quicklink-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

/* ── 19. RESPONSIVE — MOBILE (≤ 640px) ── */
@media (max-width: 640px) {
  :root {
    --gap: 16px;
  }

  /* Sembunyikan elemen desktop */
  .topbar,
  .stats-band {
    display: none;
  }

  /* Header mobile */
  .header {
    height: 58px;
    padding: 0 16px;
  }

  .logo-text .app-sub {
    display: none;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-cta .btn-outline {
    display: none;
  }

  /* Hero mobile */
  .slide {
    padding: 32px 16px 54px;
  }

  .slide h1 {
    font-size: 22px;
  }

  .slide > div > p {
    font-size: 13px;
  }

  .btn-white,
  .btn-white-outline {
    padding: 9px 16px;
    font-size: 12px;
  }

  /* Main */
  .main {
    padding: 20px 16px;
  }

  /* Services — 1 kolom di HP */
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc-card.featured::after {
    display: none;
  }

  /* Akses cepat — 1 kolom di HP */
  .quicklink-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Announce */
  .announce {
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ── 20. RESPONSIVE — LAYAR LEBAR (≥ 1280px) ── */
@media (min-width: 1280px) {
  :root {
    --gap: 32px;
    --container: 1200px;
  }

  .slide {
    grid-template-columns: 1fr 360px;
    gap: 60px;
    padding: 68px 32px 72px;
  }

  .slide h1 {
    font-size: 40px;
  }

  .svc-grid {
    gap: 16px;
  }

  .stat-num {
    font-size: 26px;
  }

  .stat-lbl {
    font-size: 12px;
  }
}

/* ── 21. RESPONSIF LEBAR SANGAT BESAR (≥ 1600px) ── */
@media (min-width: 1600px) {
  :root {
    --container: 1320px;
  }

  .slide h1 {
    font-size: 44px;
  }

  .slide > div > p {
    font-size: 15px;
    max-width: 520px;
  }
}

/* ── 22. SERVICE CARD CAROUSEL — MOBILE ONLY ── */

/* Wrapper carousel layanan (aktif di HP saja) */
.svc-carousel-wrap {
  position: relative;
  margin-bottom: 28px;
}

/* Track kartu — default: grid biasa (desktop) */
.svc-grid {
  /* sudah didefinisi di atas sebagai grid 3 kolom */
}

/* Dot indikator carousel layanan — tersembunyi di desktop */
.svc-dots {
  display: none;
}

/* ── Override khusus HP ≤ 640px ── */
@media (max-width: 640px) {

  /* Ubah grid menjadi flex horizontal scroll-snap */
  .svc-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    /* Sembunyikan scrollbar tapi tetap bisa di-scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Reset margin-bottom karena dots yang handle spacing */
    margin-bottom: 14px;
    /* Extend ke tepi layar agar peek efek terlihat */
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .svc-grid::-webkit-scrollbar {
    display: none;
  }

  /* Setiap card jadi slide dengan lebar tetap */
  .svc-card {
    flex: 0 0 78vw;
    max-width: 300px;
    scroll-snap-align: start;
    /* Pastikan padding bawah cukup untuk arrow */
    padding-bottom: 48px;
  }

  /* Card terakhir dapat padding kanan agar terlihat "ada lagi" */
  .svc-card:last-child {
    margin-right: 16px;
  }

  /* Tampilkan dots indikator */
  .svc-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
  }

  .svc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border2);
    transition: all 0.25s;
    cursor: pointer;
    flex-shrink: 0;
  }

  .svc-dot.on {
    background: var(--blue);
    width: 20px;
    border-radius: 3px;
  }

  /* Label hint swipe — tampil singkat lalu fade */
  .svc-swipe-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-faint);
    justify-content: flex-end;
    margin-bottom: 8px;
    animation: fadeHint 3s ease 1s forwards;
  }

  @keyframes fadeHint {
    0%   { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
  }

  /* Sembunyikan badge featured di HP (sudah ada badge di card) */
  .svc-card.featured::after {
    display: none;
  }
}

/* ── 23. INTEGRASI SISTEM ── */
.integ-section {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 40px var(--gap);
}

.integ-inner {
  max-width: var(--container);
  margin: 0 auto;
}

/* OSS strip — nasional, paling atas */
.integ-oss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--blue-lt);
  border: 1.5px solid var(--blue-mid);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.integ-oss-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.integ-oss-badge {
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.integ-oss-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue2);
}

.integ-oss-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.integ-oss-link {
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.integ-oss-link:hover {
  background: var(--blue2);
}

/* Divider dengan label tengah */
.integ-divider {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.integ-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.integ-divider-label {
  position: relative;
  background: #fff;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.4px;
}

/* Grid OPD */
.integ-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.integ-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: all 0.15s;
  cursor: default;
}

.integ-card:hover {
  border-color: var(--blue-mid);
  background: var(--blue-lt);
}

.integ-card-more {
  border-style: dashed;
  cursor: default;
}

.integ-card-more:hover {
  background: var(--bg);
  border-color: var(--border);
}

.integ-ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

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

.integ-dinas {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.integ-kab {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.integ-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-lt);
  border: 1px solid var(--blue-mid);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Responsive tablet */
@media (max-width: 900px) {
  .integ-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive mobile */
@media (max-width: 640px) {
  .integ-section {
    padding: 28px 16px;
  }

  .integ-oss {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .integ-oss-link {
    width: 100%;
    justify-content: center;
  }

  .integ-grid {
    grid-template-columns: 1fr;
  }

  .integ-oss-name {
    font-size: 13px;
  }
}
