/* ==========================================================================
   TAMPILAN "RAME": judul pill, panel bulat, band berjalan, tombol pill.
   Dimuat setelah style.css; warna utama tetap maroon.
   ========================================================================== */
:root {
  --mr: #7a1424;
  --mr2: #5e0f1b;
  --ac: #ffba50;
  --ink: #14090c;
  --panel: #f8f1f2;
  --s: #ffffff;
  --s2: #f3e9eb;
  --bd: #e9dde0;
  --tx: #14090c;
  --fh: "Outfit", "DM Sans", system-ui, sans-serif;
  --r: 36px;
}

/* buang dekorasi lama */
.noise,
.cursor,
.cursor-dot {
  display: none !important;
}
body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: auto !important;
}
body.has-cursor a,
body.has-cursor button {
  cursor: pointer !important;
}
body {
  background: #fff;
  color: #4a3d42;
}
[hidden] {
  display: none !important;
}

/* ---------- menu ---------- */
.main_menu_bg,
.menu-scroll .main_menu_bg {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  box-shadow: none !important;
  border-bottom: 0;
}
.navbar-default .navbar-nav > li > a {
  font-family: var(--fh);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  color: #6b5a60;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: var(--mr);
  background: transparent;
}
.navbar-default .navbar-nav > li > a:after {
  display: none !important;
}

/* gelembung hitam yang berpindah ke menu aktif / yang diklik */
.navbar-nav {
  position: relative;
}
.nav-bubble {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  will-change: transform, width;
  transition:
    transform 0.42s cubic-bezier(0.65, 0, 0.25, 1),
    width 0.42s cubic-bezier(0.65, 0, 0.25, 1),
    height 0.25s ease,
    opacity 0.2s ease;
}
.nav-bubble.on {
  opacity: 1;
}
.navbar-default .navbar-nav > li > a {
  position: relative;
  z-index: 1;
  padding: 10px 20px !important;
  margin-top: 9px;
  line-height: 1.2;
  border-radius: 999px;
  border: 0 !important;
  outline: 0;
  box-shadow: none;
  transition: color 0.3s ease 0.08s;
}
/* buang garis bawah bawaan template yang tampak seperti pil outline kosong */
.main_menu_bg .navbar-default .navbar-nav > li > a,
.main_menu_bg .navbar-default .navbar-nav > li > a:hover,
.main_menu_bg .navbar-default .navbar-nav > li > a:focus,
.main_menu_bg .navbar-default .navbar-nav > .active > a,
.main_menu_bg .navbar-default .navbar-nav > .active > a:hover,
.main_menu_bg .navbar-default .navbar-nav > .active > a:focus {
  border: 0 !important;
  outline: 0;
  box-shadow: none;
}
/* selama berpindah: hanya tujuan yang putih, menu aktif lama kembali abu-abu */
.navbar-nav.is-navigating > li.active > a:not(.is-target) {
  color: #6b5a60 !important;
}
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.active > a:hover,
.navbar-default .navbar-nav > li.active > a:focus,
.navbar-default .navbar-nav > li > a.is-target {
  color: #fff !important;
  background: transparent;
}
@media (max-width: 767px) {
  .navbar-default .navbar-nav > li > a {
    margin-top: 4px;
    display: inline-block;
  }
  .navbar-default .navbar-nav > li {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-bubble {
    transition: none;
  }
}
.brand {
  font-family: var(--fh);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- tombol ---------- */
.btn,
.btn-primary,
.btn-ghost {
  font-family: var(--fh);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  border-radius: 999px;
  padding: 14px 28px;
  box-shadow: 0 6px 0 rgba(20, 9, 12, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--mr);
  border-color: var(--mr);
  color: #fff !important;
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(20, 9, 12, 0.12);
}
.btn-ghost {
  background: var(--mr);
  border-color: var(--mr);
  color: #fff !important;
}
.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--mr2);
  border-color: var(--mr2);
  transform: translateY(2px);
}
.btn-arrow i {
  font-style: normal;
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.15s ease;
}
.btn-arrow:hover i {
  transform: translateX(4px);
}

/* ---------- hero: tampilan awal (teks di tengah) ---------- */
.home .main_home h1 {
  font-family: var(--fh);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 24px;
}
.home .main_home h1 em {
  font-style: normal;
  color: var(--mr);
}
.home .main_home p {
  margin-left: auto;
  margin-right: auto;
}
.home .main_home .hero-btns,
.home .main_home .hero-stats {
  justify-content: center;
}
.home .main_home .btn-primary {
  background: var(--ac);
  border-color: var(--ac);
  color: #06091a !important;
}
.home .main_home .btn-primary:hover {
  background: #ffd28a;
  border-color: #ffd28a;
  color: #0d1130 !important;
}

/* band berjalan */
.marquee {
  background: var(--ac);
  border: 0;
  padding: 15px 0;
  margin: 28px 0;
  transform: rotate(-0.6deg);
  width: 102%;
  margin-left: -1%;
}
.marquee span {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.marquee .d {
  color: var(--ink);
}

/* ---------- panel section ---------- */
section.sec,
section.sec.alt {
  background: var(--panel) !important;
  border-radius: var(--r);
  margin: 28px clamp(12px, 2.4vw, 36px);
  padding: 64px 0 !important;
  border: 0;
}
section#kontak.sec {
  background: none !important;
  margin-top: 28px;
  padding: 0 !important;
}
.head_title {
  margin-bottom: 40px;
  text-align: left;
}
.head_title h3 {
  font-family: var(--fh);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--ink);
  margin: 0;
}
.head_title h3 span {
  color: var(--mr);
}
.head_title .separator {
  display: none;
}
.subh {
  font-family: var(--fh);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  color: var(--ink);
  text-transform: none;
}

/* tentang */
#tentang p {
  color: #4a3d42;
}
.ketum-frame {
  border-radius: 32px;
}

/* kartu dan tab: putih di atas panel */
.service .nav-tabs > li > a,
.btabs > li > a,
.ptabs > li > a {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 999px;
  font-family: var(--fh);
  font-weight: 600;
  color: var(--ink);
}
.service .service_tabe_menu {
  gap: 10px;
}
.service .nav-tabs > li > a {
  border-radius: 24px;
}
.service .nav-tabs > li.active > a,
.service .nav-tabs > li.active > a:hover,
.service .nav-tabs > li.active > a:focus,
.service .nav-tabs > li > a:hover,
.btabs > li.active > a,
.btabs > li.active > a:hover,
.btabs > li > a:hover {
  background: var(--mr);
  border-color: var(--mr);
  color: #fff;
}
.pcat h3,
.team h3,
.service h3 {
  font-family: var(--fh);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
}
.plist .pitem,
.pitem {
  background: transparent;
}
.pitem > summary {
  font-family: var(--fh);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
}
.bcard {
  background: #fff;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
}
.bcard h3,
.bcard h4 {
  font-family: var(--fh);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}
.bimg {
  border-radius: 22px;
}
.pg,
.pm,
.person {
  background: #fff;
  border-radius: 28px;
}
.nh {
  background: #fff;
  border-radius: 22px;
}

/* ---------- CTA kontak ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: left;
  background: var(--mr);
  color: #fff;
  border: 0;
  border-radius: var(--r);
  padding: clamp(36px, 6vw, 72px);
  box-shadow: none;
}
.cta::before,
.cta::after {
  display: none;
}
.cta h2 {
  position: relative;
  z-index: 2;
  max-width: 9.5em;
  margin: 0 0 18px;
  font-family: var(--fh);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: none;
  color: #fff;
}
.cta h2 em {
  font-style: normal;
  color: var(--ac);
}
.cta .cta-lead {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
}
.cta .hero-btns {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  margin: 0;
}
.cta .btn-primary {
  background: var(--ac);
  border-color: var(--ac);
  color: var(--ink) !important;
}
.cta .btn-primary:hover {
  background: #ffd28a;
  border-color: #ffd28a;
  color: var(--ink) !important;
}
.cta .btn-ghost {
  background: var(--ink);
  border-color: var(--ink);
}
.cta .btn-ghost:hover {
  background: #000;
  border-color: #000;
}
.cta-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: flex-start;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.86);
}
.cta-info i {
  color: var(--ac);
}
.cta-img {
  position: absolute;
  right: clamp(8px, 2.5vw, 48px);
  top: 50%;
  width: clamp(220px, 34vw, 460px);
  height: auto;
  transform: translateY(-50%) rotate(-4deg);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.28));
  pointer-events: none;
  user-select: none;
}

/* ---------- ilustrasi Program Kerja ---------- */
/* gambar di kiri; judul + tab bidang bergeser ke kanan; isi program tetap selebar penuh */
.service > .container {
  display: grid;
  grid-template-columns: clamp(190px, 22vw, 300px) minmax(0, 1fr);
  column-gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.service > .container::before,
.service > .container::after {
  display: none;
}
.service-img {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  height: auto;
  transform: rotate(-4deg);
  filter: drop-shadow(0 14px 18px rgba(80, 10, 25, 0.22));
  pointer-events: none;
  user-select: none;
}
.service .head_title {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}
.service .service_tabe_menu {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-bottom: 0;
}
.service .tab-content {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 44px;
}
/* template (vendor.css) memaksa tab aktif saat fokus/hover jadi 250x180px: kembalikan ukuran pil */
.service .nav-tabs > li.active > a,
.service .nav-tabs > li.active > a:hover,
.service .nav-tabs > li.active > a:focus,
.service .nav-tabs > li > a:focus {
  width: auto !important;
  height: auto !important;
}
@media (max-width: 767px) {
  .service > .container {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-img {
    grid-column: 1;
    grid-row: 1;
    width: 120px;
    margin: 0 0 4px -4px;
  }
  .service .head_title,
  .service .service_tabe_menu,
  .service .tab-content {
    grid-column: 1;
  }
  .service .head_title {
    grid-row: 2;
  }
  .service .service_tabe_menu {
    grid-row: 3;
  }
  .service .tab-content {
    grid-row: 4;
  }
}

/* ---------- footer ---------- */
.footer_widget,
.footer_widget .video_overlay {
  background: none;
}
.footer_title h4 {
  font-family: var(--fh);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}
.footer_title .separator {
  display: none;
}
.footer .flowus a {
  border-radius: 50%;
}

/* ---------- responsif ---------- */
@media (max-width: 991px) {
  .navbar-default .navbar-nav > li > a[href="layanan.html"] {
    display: inline-block;
  }
}
@media (max-width: 767px) {
  :root {
    --r: 28px;
  }
  /* tab bisa digeser ke samping: pill rapi, tidak melingkar */
  .service .service_tabe_menu > li {
    flex: 0 0 auto !important;
  }
  .service .nav-tabs > li > a {
    white-space: nowrap;
    padding: 11px 20px !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .cta-img {
    top: auto;
    bottom: -8px;
    right: -14px;
    width: 150px;
    transform: rotate(-4deg);
    opacity: 0.95;
  }
  .cta h2 {
    max-width: 8em;
  }
  section.sec,
  section.sec.alt {
    padding: 44px 0 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee {
    transform: none;
  }
}

/* tab bidang: pill selebar isinya, boleh turun baris */
.service .service_tabe_menu > li,
.btabs > li {
  flex: 0 1 auto !important;
  width: auto !important;
}
.service .nav-tabs > li > a {
  border-radius: 999px;
  min-height: 0 !important;
  padding: 12px 22px !important;
  flex-direction: row;
  font-size: 0.95rem;
}
.service .nav-tabs > li > a i {
  display: none;
}

/* judul kartu */
.pitem h4,
.pitem > summary h4,
.pg h4,
.bhead h3,
.mph b {
  font-family: var(--fh);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pitem > summary h4 {
  font-size: 1.25rem;
}
.pg .av,
.mph .av {
  background: var(--mr) !important;
  color: #fff !important;
  font-family: var(--fh);
  font-weight: 800;
}
.pg:nth-child(even) .av {
  background: var(--ac) !important;
  color: var(--ink) !important;
}
.mph {
  background: #fff;
  border-radius: 24px;
}
/* gambar berita kosong: gradasi maroon */
.bimg:not(.has) {
  background: linear-gradient(135deg, var(--mr2), var(--mr)) !important;
}

/* ---------- CTA kontak di layar kecil/tablet: teks mengalir di sekitar gambar ----------
   Gambar dibuat "float" di kanan atas; baris teks yang sejajar dengan gambar otomatis lebih pendek,
   baris di bawahnya otomatis melebar penuh. Jadi teks tidak pernah menumpuk di gambar,
   di lebar layar berapa pun. */
@media (max-width: 991px) {
  .cta {
    display: flow-root; /* kartu ikut melebar menampung gambar */
  }
  .cta .cta-img {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    float: right;
    width: clamp(120px, 31vw, 250px);
    margin: -6px -10px 10px 14px;
    transform: rotate(-4deg);
    opacity: 1;
  }
  .cta h2 {
    max-width: none;
  }
  .cta .cta-lead {
    max-width: none;
  }
}
@media (max-width: 480px) {
  .cta h2 {
    font-size: clamp(1.5rem, 6.6vw, 2rem);
  }
  .cta .cta-img {
    width: 100px;
    margin: -4px -8px 8px 8px;
  }
}

/* ikon TikTok (font ikon bawaan versi lama tidak punya) */
.fa-tiktok:before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.6 6.7a5.4 5.4 0 0 1-3.3-3.1A5.6 5.6 0 0 1 16 2h-3.4v13.4a2.9 2.9 0 1 1-2-2.8V9.1a6.3 6.3 0 1 0 5.4 6.3V9a8.8 8.8 0 0 0 5.1 1.6V7.2a5.5 5.5 0 0 1-1.5-.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.6 6.7a5.4 5.4 0 0 1-3.3-3.1A5.6 5.6 0 0 1 16 2h-3.4v13.4a2.9 2.9 0 1 1-2-2.8V9.1a6.3 6.3 0 1 0 5.4 6.3V9a8.8 8.8 0 0 0 5.1 1.6V7.2a5.5 5.5 0 0 1-1.5-.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Pencarian & filter (Program Kerja, Berita) ---------- */
.stool {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  max-width: 760px;
  margin: 0 auto 26px;
}
.sbox {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
}
.sbox > .fa-search {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mr);
  pointer-events: none;
}
.sbox input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 46px;
  font: 500 0.98rem var(--fb);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 999px;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sbox input::-webkit-search-cancel-button {
  display: none;
}
.sbox input:focus {
  border-color: var(--mr);
  box-shadow: 0 0 0 3px rgba(122, 20, 36, 0.14);
}
.sclear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--mr);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.sclear:hover,
.sclear:focus-visible {
  background: var(--panel);
}
.sclear[hidden] {
  display: none;
}
.ssel {
  flex: 0 0 auto;
  height: 50px;
  padding: 0 40px 0 20px;
  font: 600 0.95rem var(--fb);
  color: var(--ink);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a1424' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 18px center;
  border: 1px solid var(--bd);
  border-radius: 999px;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.ssel:focus {
  border-color: var(--mr);
  box-shadow: 0 0 0 3px rgba(122, 20, 36, 0.14);
}
.scount {
  flex: 1 0 100%;
  margin: 0;
  min-height: 1.3em;
  font-size: 0.88rem;
  color: var(--mut);
  text-align: center;
}
mark {
  padding: 0 2px;
  color: inherit;
  background: rgba(255, 186, 80, 0.55);
  border-radius: 3px;
}
.schips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.schip {
  padding: 8px 16px;
  font: 600 0.88rem var(--fh);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.schip span {
  margin-left: 4px;
  opacity: 0.6;
}
.schip:hover,
.schip.on {
  color: #fff;
  background: var(--mr);
  border-color: var(--mr);
}
.sgroup {
  margin: 0 0 34px;
}
.sgroup h3 {
  margin: 0 0 12px;
  font: 800 1.35rem var(--fh);
  letter-spacing: -0.02em;
  color: var(--mr);
}
.sempty {
  max-width: 460px;
  margin: 10px auto 0;
  padding: 34px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--bd);
  border-radius: 24px;
}
.sempty b {
  display: block;
  font: 700 1.2rem var(--fh);
  color: var(--ink);
}
.sempty p {
  margin: 8px 0 18px;
  color: var(--soft);
}
.nres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}
.nres .sempty {
  grid-column: 1 / -1;
}
.bres {
  margin: 0;
}
.bres .bimg.has,
.bres .bimg {
  height: 170px;
}
.bres .bbody {
  padding: 16px 18px 20px;
}
.bres h4 {
  margin: 6px 0;
  font-size: 1.08rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bres p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#news-more {
  margin-bottom: 8px;
}
@media (max-width: 560px) {
  .ssel {
    flex: 1 1 100%;
  }
  .sgroup h3 {
    font-size: 1.15rem;
  }
}

/* Program Kerja: bar pencarian dan hasil ikut grid ilustrasi (baris: judul, cari, tab, isi) */
.service-img {
  grid-row: 1 / span 3;
}
.service .stool {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: none;
  margin: 18px 0 14px;
}
.service .stool .scount {
  text-align: left;
}
.service .service_tabe_menu {
  grid-row: 3;
}
.service .tab-content,
.service #pk-results {
  grid-column: 1 / -1;
  grid-row: 4;
  margin-top: 30px;
}
.service #pk-results[hidden] {
  display: none;
}
@media (max-width: 767px) {
  .service-img {
    grid-row: 1;
  }
  .service .head_title {
    grid-row: 2;
  }
  .service .stool {
    grid-column: 1;
    grid-row: 3;
  }
  .service .service_tabe_menu {
    grid-row: 4;
  }
  .service .tab-content,
  .service #pk-results {
    grid-row: 5;
  }
}
