:root {
  --brand: #00A2E9;
  --brand-2: #0288D1;
  --text: #0F172A;
  --muted: #64748B;
  --footer-bg: #f5f7fb;
  --footer-border: #e5e7eb;
  --footer-text: #495469;
  --footer-heading: #0F172A;
}

html,
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.logo-type {
  font-weight: 700;
  letter-spacing: .2px;
}

/* Jika punya file font Aonic Medium, aktifkan: */
/*
@font-face {
  font-family: "Aonic";
  src: url("/assets/fonts/Aonic-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
.logo-type { font-family: "Aonic", "Poppins", sans-serif; font-weight: 500; }
*/

/* Spacing & alignment navbar */
.navbar {
  min-height: 64px;
}

.navbar .navbar-brand {
  padding-block: .5rem;
}

/* Hover underline + active yang solid */
.nav-animated .nav-link {
  position: relative;
  padding: .5rem .9rem;
  color: var(--bs-body-color);
}

.nav-animated .nav-link::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .35rem;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-animated .nav-link:hover {
  color: var(--brand);
}

.nav-animated .nav-link:hover::after {
  transform: scaleX(1);
}

.nav-animated .nav-link.active {
  color: var(--brand);
  font-weight: 600;
}

.nav-animated .nav-link.active::after {
  transform: scaleX(1);
}

/* Icon button untuk theme toggle */
.btn-icon {
  --size: 40px;
  width: var(--size);
  height: var(--size);
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-body-bg);
}

.btn-icon:hover {
  background: rgba(0, 0, 0, .03);
}

[data-bs-theme="dark"] .btn-icon:hover {
  background: rgba(255, 255, 255, .06);
}

/* Offcanvas width biar nyaman */
@media (max-width: 991.98px) {
  .offcanvas-end {
    width: min(85vw, 360px);
  }
}

/* Pastikan tombol CTA kelihatan sebagai grup */
.btn {
  border-radius: .75rem;
}


.hero-carousel .carousel-caption {
  max-width: 520px;
}

.hero-carousel img {
  object-fit: cover;
  aspect-ratio: 16/6;
}

.card-service {
  border: 1px solid var(--bs-border-color);
  text-decoration: none;
  border-radius: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card-service:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .08);
}

.card-service .bi {
  color: var(--brand);
}

.step-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: .75rem;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.benefit {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .75rem;
  border: 1px dashed var(--bs-border-color);
  border-radius: .75rem;
}

.benefit i {
  font-size: 1.5rem;
  color: var(--brand);
}

.cta-gradient {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Dark mode tuning (Bootstrap 5.3 pakai data-bs-theme) */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card-service {
  border-color: rgba(255, 255, 255, .15);
}

[data-bs-theme="dark"] .benefit {
  border-color: rgba(255, 255, 255, .2);
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* Tabs ala Shopee (warna brand SaldoKuy) */
.topup-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  color: var(--bs-secondary-color);
}

.topup-tabs .nav-link.active {
  color: var(--brand);
  font-weight: 600;
}

.topup-tabs .nav-link i {
  font-size: 1.1rem;
}

/* Grid pilihan produk */
.option-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .option-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.option-card {
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  padding: 1rem;
  background: var(--bs-body-bg);
  cursor: pointer;
  transition: .15s ease;
}

.option-card:hover {
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .06);
}

.option-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(0, 162, 233, .15);
}

.option-card .opt-main {
  font-weight: 700;
  font-size: 1.05rem;
}

.option-card .opt-sub {
  font-size: .85rem;
  color: var(--bs-secondary-color);
}

/* Kartu list game (lebih tinggi) */
.option-grid-game .option-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
}

.option-grid-game .option-card img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: .5rem;
  background: #f8f9fa;
}

/* === Produk band (ala panel promo) === */
.produk-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: clamp(2rem, 4vw + 1rem, 4rem);
  position: relative;
  isolation: isolate;
}

.produk-band-inner {
  max-width: 980px;
  margin: 0 auto;
  transform: skewY(0);
  /* keep text straight */
}

.produk-logo {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .12));
}

/* Garis dekor miring */
.produk-deco {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 10px;
  background: rgba(255, 255, 255, .85);
  display: block;
  z-index: 0;
}

.produk-deco-top {
  top: 10px;
  transform: rotate(-6deg);
  opacity: .6;
}

.produk-deco-bottom {
  bottom: 10px;
  transform: rotate(-6deg);
  opacity: .6;
}

/* Copy lebar dan keterbacaan */
.produk-copy {
  max-width: 980px;
  margin-inline: auto;
  line-height: 1.7;
}

/* Dark mode: tetap kontras */
[data-bs-theme="dark"] .produk-band {
  background: linear-gradient(135deg, #0096d6, #0272a8);
}

[data-bs-theme="dark"] .produk-deco {
  background: rgba(255, 255, 255, .65);
}

/* ====== Layanan Populer - kartu gradien ala "ruangguru" ====== */
.svc-card {
  --radius: 18px;
  --pad-x: 1.125rem;
  --pad-y: 1.125rem;
  position: relative;
  display: block;
  text-decoration: none;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius);
  padding: var(--pad-y) var(--pad-x);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .65) 40%, transparent 70%),
    var(--svc-tile, #fff);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  color: var(--bs-body-color);
}

.svc-card::after {
  /* glow dekoratif di pojok kanan bawah */
  content: "";
  position: absolute;
  right: -28%;
  bottom: -32%;
  width: 180px;
  height: 180px;
  background: var(--svc-grad, linear-gradient(135deg, #00A2E9, #3BC9FF));
  filter: blur(36px);
  opacity: .28;
  transform: rotate(15deg);
  pointer-events: none;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
  border-color: rgba(0, 162, 233, .35);
}

.svc-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: var(--svc-grad, linear-gradient(135deg, #00A2E9, #3BC9FF));
  box-shadow: 0 10px 18px rgba(0, 0, 0, .12);
  margin-bottom: .5rem;
}

.svc-title {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
}

.svc-sub {
  color: var(--bs-secondary-color);
  margin-top: .125rem;
}

.svc-cta {
  display: inline-block;
  margin-top: .6rem;
  font-weight: 600;
  font-size: .875rem;
  padding: .375rem .75rem;
  border-radius: 999px;
  background: #fff;
  color: #0F172A;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* Variasi warna per-kategori */
.svc-pulsa {
  --svc-grad: linear-gradient(135deg, #00A2E9, #3BC9FF);
  --svc-tile: linear-gradient(180deg, rgba(0, 162, 233, .08), #ffffff);
}

.svc-data {
  --svc-grad: linear-gradient(135deg, #7C4DFF, #B388FF);
  --svc-tile: linear-gradient(180deg, rgba(124, 77, 255, .08), #ffffff);
}

.svc-pln {
  --svc-grad: linear-gradient(135deg, #00C853, #6EE7B7);
  --svc-tile: linear-gradient(180deg, rgba(0, 200, 83, .08), #ffffff);
}

.svc-pdam {
  --svc-grad: linear-gradient(135deg, #00B0FF, #40C4FF);
  --svc-tile: linear-gradient(180deg, rgba(0, 176, 255, .08), #ffffff);
}

.svc-telkom {
  --svc-grad: linear-gradient(135deg, #FF7043, #FFA270);
  --svc-tile: linear-gradient(180deg, rgba(255, 112, 67, .08), #ffffff);
}

.svc-emoney {
  --svc-grad: linear-gradient(135deg, #FFCA28, #FFD95B);
  --svc-tile: linear-gradient(180deg, rgba(255, 202, 40, .10), #ffffff);
}

.svc-game {
  --svc-grad: linear-gradient(135deg, #EC4899, #F59E0B);
  --svc-tile: linear-gradient(180deg, rgba(236, 72, 153, .08), #ffffff);
}

.svc-lainnya {
  --svc-grad: linear-gradient(135deg, #94A3B8, #CBD5E1);
  --svc-tile: linear-gradient(180deg, rgba(148, 163, 184, .08), #ffffff);
}

/* Dark mode tuning */
[data-bs-theme="dark"] .svc-card {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .03);
}

[data-bs-theme="dark"] .svc-cta {
  background: rgba(255, 255, 255, .92);
  color: #0F172A;
}

/* ===== Testimoni (kartu ala Ruangguru) ===== */
.brand-chip {
  background: #e9ecef;
  color: #6b7280;
  border-radius: 10px;
  padding: .35rem .75rem;
  font-weight: 600;
  font-size: .875rem;
}

/* kartu */
.t-card {
  position: relative;
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(135deg, #f4faff, #eef2ff);
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

[data-bs-theme="dark"] .t-card {
  background: rgba(255, 255, 255, .04);
}

/* badge di atas */
.t-badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: #fff;
  color: #0F172A;
  border-radius: 12px;
  padding: .35rem .6rem;
  font-weight: 600;
  font-size: .8rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  gap: .4rem;
}

[data-bs-theme="dark"] .t-badge {
  background: #f8fafc;
}

/* media */
.t-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.t-media::before {
  content: "";
  display: block;
  aspect-ratio: 4/3;
  /* jaga rasio */
}

.t-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t-play {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .9);
  color: #00A2E9;
  border: 0;
  box-shadow: 0 8px 24px rgba(0, 162, 233, .35);
}

.t-play i {
  font-size: 1.8rem;
  line-height: 1;
}

/* quote bubble */
.t-quote {
  position: relative;
  margin-top: .25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  padding: .75rem .9rem .7rem 2.2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
}

.t-quote-ic {
  position: absolute;
  left: .6rem;
  top: .55rem;
  font-size: 1.3rem;
  color: #00A2E9;
  opacity: .9;
}

.t-quote-text {
  font-size: .95rem;
  font-weight: 600;
}

.t-author {
  margin-top: .25rem;
  font-size: .85rem;
}

/* CTA chip bawah */
.t-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.t-chip {
  padding: .4rem .7rem;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #00A2E9, #3BC9FF);
  color: #fff;
  font-size: .8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Benefit (Kenapa pilih SaldoKuy?) ===== */
#benefit .bf-intro {
  padding-right: .25rem;
}

#benefit .bf-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: .35rem;
}

#benefit .bf-bullets i {
  color: var(--brand);
  margin-right: .35rem;
}

/* kartu */
.bf-card {
  --r: 18px;
  position: relative;
  border: 1px dashed var(--bs-border-color);
  border-radius: var(--r);
  padding: 1rem .95rem 1rem 1rem;
  background:
    radial-gradient(120% 100% at 110% -10%, rgba(0, 162, 233, .08), transparent 60%),
    var(--bs-body-bg);
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas:
    "icon title"
    "icon sub";
  column-gap: .75rem;
  row-gap: .15rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
  border-color: rgba(0, 162, 233, .35);
}

.bf-card::after {
  /* aksen glow lembut */
  content: "";
  position: absolute;
  right: -26%;
  bottom: -28%;
  width: 160px;
  height: 160px;
  filter: blur(28px);
  background: var(--bf-grad, linear-gradient(135deg, #00A2E9, #3BC9FF));
  opacity: .25;
  pointer-events: none;
  border-radius: 50%;
}

/* ikon kapsul */
.bf-icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--bf-grad, linear-gradient(135deg, #00A2E9, #3BC9FF));
  box-shadow: 0 10px 18px rgba(0, 0, 0, .12);
}

.bf-icon i {
  font-size: 1.25rem;
  line-height: 1;
}

.bf-title {
  grid-area: title;
  font-weight: 700;
}

.bf-sub {
  grid-area: sub;
  color: var(--bs-secondary-color);
}

/* varian gradien biar tiap kartu beda tone tapi masih satu keluarga brand */
.bf-1 {
  --bf-grad: linear-gradient(135deg, #00A2E9, #3BC9FF);
}

.bf-2 {
  --bf-grad: linear-gradient(135deg, #7C4DFF, #B388FF);
}

.bf-3 {
  --bf-grad: linear-gradient(135deg, #00C853, #6EE7B7);
}

.bf-4 {
  --bf-grad: linear-gradient(135deg, #FF7043, #FFA270);
}

.bf-5 {
  --bf-grad: linear-gradient(135deg, #FFCA28, #FFD95B);
}

.bf-6 {
  --bf-grad: linear-gradient(135deg, #EC4899, #F59E0B);
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Dark mode tweak */
[data-bs-theme="dark"] .bf-card {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
}

/* Footer abu */
/* ===== Footer wrapper ===== */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  /* aman untuk perangkat bertakik (iOS) */
  padding-bottom: max(env(safe-area-inset-bottom), 0px);
}

/* ===== Spacing global (lebih lega) ===== */
.site-footer .container {
  /* 24–40px dinamis tergantung viewport */
  padding-block: clamp(24px, 3vw, 40px);
}

/* ===== Tipografi & warna ===== */
.site-footer h6 {
  color: var(--footer-heading);
  font-weight: 700;
  margin-bottom: .6rem;
}

.site-footer p,
.site-footer li,
.site-footer small,
.site-footer a {
  color: var(--footer-text);
}

.site-footer a:hover {
  color: #00A2E9;
}

/* List lebih rapi */
.site-footer .list-unstyled li+li {
  margin-top: .35rem;
}

/* Baris kontak pakai ikon sejajar */
.site-footer .contact li {
  display: flex;
  gap: .5rem;
  align-items: baseline;
}

/* ===== Baris Legal (Privasi / S&K) ===== */
.site-footer .footer-legal {
  margin-top: clamp(14px, 2vw, 22px);
  padding-top: 14px;
  border-top: 1px solid var(--footer-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer .footer-legal .links {
  display: flex;
  gap: 18px;
}

/* ===== Responsif ===== */
@media (max-width: 575.98px) {
  .site-footer .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
}

/* (opsional) jarak antar kolom bila memakai .row.gy-4 */
.site-footer .row.gy-4>[class*="col"] {
  margin-bottom: .25rem;
}

[data-bs-theme="dark"] {
  --footer-bg: #0f172a;
  --footer-border: rgba(255, 255, 255, .12);
  --footer-text: #cbd5e1;
  --footer-heading: #e2e8f0;
}
/* ===== News slider (carousel-style) ===== */
.news-slider{ position:relative; border-radius:1rem; overflow:hidden; }
.news-track{
  display:grid; gap:1rem;
  grid-auto-flow: column;
  grid-auto-columns: 100%;     /* 1 kartu di mobile */
  overflow-x:auto; scroll-snap-type: x mandatory;
  scrollbar-width:none;        /* Firefox */
}
.news-track::-webkit-scrollbar{ display:none; }

@media (min-width: 768px){ .news-track{ grid-auto-columns: 50%; } }   /* 2 kartu tablet */
@media (min-width: 1200px){ .news-track{ grid-auto-columns: 33.333%; } } /* 3 kartu desktop */

.news-card{
  scroll-snap-align: start;
  background: var(--bs-body-bg);
  border:1px solid var(--bs-border-color);
  border-radius:1rem; overflow:hidden;
  display:flex; flex-direction:column; min-height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-card:hover{ transform: translateY(-2px); box-shadow:0 .75rem 1.5rem rgba(0,0,0,.07); }

.news-img{ width:100%; height:180px; object-fit:cover; }
@media (min-width: 992px){ .news-img{ height:200px; } }

.news-body{ padding:1rem; }
.news-title{ font-size:1.05rem; line-height:1.35; margin:0 0 .25rem 0; }
.news-excerpt{ color: var(--bs-secondary-color); margin:0; }

/* arrows */
.news-btn{
  position:absolute; top:45%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:.75rem;
  border:1px solid var(--bs-border-color); background:var(--bs-body-bg);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 .25rem .75rem rgba(0,0,0,.06);
}
.news-btn:hover{ background:rgba(0,0,0,.03); }
.news-btn.prev{ left:.75rem; }
.news-btn.next{ right:.75rem; }

/* dark-mode fine tuning */
[data-bs-theme="dark"] .news-card{ border-color:rgba(255,255,255,.12); }
[data-bs-theme="dark"] .news-btn{ background:#0b1220; border-color:rgba(255,255,255,.12); }
/* === NEWS SLIDER SPACING UPGRADE === */

/* Jarak antar kartu + ruang di kiri/kanan track */
.news-track{
  gap: 1.25rem;                    /* jarak antar card */
  padding: .5rem .75rem;           /* ruang dari tepi container */
  scroll-padding-inline: .75rem;   /* snap-nya ikut padding -> card 1 tidak nempel */
}

@media (min-width: 768px){
  .news-track{
    gap: 1.25rem;
    padding: .75rem 1rem;
    scroll-padding-inline: 1rem;
  }
}
@media (min-width: 1200px){
  .news-track{
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    scroll-padding-inline: 1.25rem;
  }
}

/* Sedikit ruang vertikal biar tidak terkesan “padat” */
.news-card{ margin-block: .125rem; }

/* (Opsional) bikin tombol navigasi sedikit mundur karena ada padding baru */
.news-btn.prev{ left: .25rem; }
.news-btn.next{ right: .25rem; }
/* Dropdown tone */
.navbar .dropdown-menu{
  border-radius: .75rem;
  border-color: var(--bs-border-color);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.08);
}

.navbar .dropdown-item{
  padding: .55rem .9rem;
}
.navbar .dropdown-item:active{
  background: rgba(0,162,233,.09);
  color: var(--brand);
}

/* Warna aktif pada toggle mengikuti brand */
.navbar .nav-link.active,
.navbar .dropdown-toggle.active{
  color: var(--brand);
  font-weight: 600;
}
/* sembunyikan caret default bootstrap pada toggle dropdown */
.navbar .dropdown-toggle::after{ display:none; }

/* ikon caret custom */
.dropdown-caret{ transition: transform .2s ease; pointer-events:none; }
.dropdown.show .dropdown-caret{ transform: rotate(180deg); }

/* pastikan underline nav-animated tidak menimpa caret ikon */
.nav-animated .dropdown-toggle { padding-right: .25rem; }
/* Dropdown tone */
.navbar .dropdown-menu{
  border-radius: .75rem;
  border-color: var(--bs-border-color);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.08);
}
.navbar .dropdown-item{ padding:.55rem .9rem; }
.navbar .dropdown-item:active{
  background: rgba(0,162,233,.09);
  color: var(--brand);
}
/* Warna aktif pada toggle mengikuti brand */
.navbar .nav-link.active,
.navbar .dropdown-toggle.active{
  color: var(--brand);
  font-weight: 600;
}
/* ===== Hero/FAQ search controls ===== */
.sub-hero .input-group { --hero-border: rgba(255,255,255,.55); }

.sub-hero .input-group-text{
  background: rgba(255,255,255,.08);
  color:#fff;
  border-color: var(--hero-border);
}
.sub-hero .form-control{
  color:#fff;
  background: rgba(255,255,255,.08);
  border-color: var(--hero-border);
}
.sub-hero .form-control::placeholder{ color: rgba(255,255,255,.85); }

/* Tombol "X" lebih jelas (outline + hover + focus ring) */
.sub-hero #btnClear{
  min-width: 44px;                    /* target sentuh nyaman */
  border: 1px solid rgba(255,255,255,.8);
  color:#fff;
  background: rgba(255,255,255,.12);
  border-radius: 0 .75rem .75rem 0;   /* menyatu dengan input */
  backdrop-filter: blur(2px);
}
.sub-hero #btnClear:hover{ background: rgba(255,255,255,.2); }
.sub-hero #btnClear:active{ transform: scale(.98); }
.sub-hero #btnClear:focus-visible{
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ===== Tombol Buka/Tutup Semua – kontras tinggi ===== */
.sub-hero .btn-hero-primary,
.sub-hero .btn-hero-secondary{
  border-radius: 999px;
  padding: .55rem 1rem;
  font-weight: 600;
}

/* Buka Semua = putih solid (kontras tinggi di biru) */
.btn-hero-primary{
  --c:#0c8ad6;                 /* tone brand */
  background:#fff;
  color:var(--c);
  border:1px solid #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.btn-hero-primary:hover{ background:#f8fafc; }
.btn-hero-primary:focus-visible{ outline:3px solid #fff; outline-offset:2px; }

/* Tutup Semua = outline putih transparan */
.btn-hero-secondary{
  color:#fff;
  border:1px solid rgba(255,255,255,.85);
  background: transparent;
}
.btn-hero-secondary:hover{ background: rgba(255,255,255,.12); }
.btn-hero-secondary:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
/* Chips kategori */
.chip{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.45rem .9rem; border:1px solid var(--bs-border-color);
  border-radius:999px; text-decoration:none; color:var(--bs-body-color);
  background:var(--bs-body-bg); transition:.15s ease;
}
.chip:hover{ background:rgba(0,0,0,.03); }

/* Grid 4 kartu */
.article-grid{
  display:grid; gap:1rem;
  grid-template-columns: 1fr;
}
@media (min-width:768px){ .article-grid{ grid-template-columns: repeat(2,1fr); } }
@media (min-width:1200px){ .article-grid{ grid-template-columns: repeat(4,1fr); } }

.article-card{
  background: var(--bs-body-bg);
  border:1px solid var(--bs-border-color);
  border-radius:1rem; overflow:hidden; display:flex; flex-direction:column;
  transition: box-shadow .2s ease, transform .2s ease; height:100%;
}
.article-card:hover{ transform: translateY(-2px); box-shadow:0 .75rem 1.5rem rgba(0,0,0,.07); }

.article-img{ width:100%; height:180px; object-fit:cover; }
@media (min-width:992px){ .article-img{ height:200px; } }

.article-body{ padding:1rem; }
.article-kat{
  display:inline-block; font-weight:600; font-size:.8rem;
  padding:.25rem .6rem; border-radius:999px;
  background:rgba(0,162,233,.1); color:#008ecc; text-decoration:none; margin-bottom:.35rem;
}
.article-title{ font-size:1.05rem; margin:.15rem 0 .3rem; line-height:1.35; }
.article-title a{ color:inherit; text-decoration:none; }
.article-title a:hover{ color:var(--brand); }
.article-excerpt{ color: var(--bs-secondary-color); margin:0; }

/* Dark tweaks */
[data-bs-theme="dark"] .chip:hover{ background:rgba(255,255,255,.06); }
[data-bs-theme="dark"] .article-card{ border-color:rgba(255,255,255,.12); }
