/* Portal Kota Madiun — responsive & UI polish */

:root {
  --landing-pad-x: clamp(16px, 3vw, 28px);
  --landing-section-y: clamp(48px, 6vw, 80px);
  --landing-radius: 16px;
  --landing-gap: clamp(16px, 2.5vw, 28px);
  --home-card-radius: 16px;
  --home-card-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  --home-card-shadow-hover: 0 16px 34px rgba(15, 23, 42, 0.12);
  --home-card-pad: 18px;
  --home-title-size: clamp(1.45rem, 2.8vw, 2rem);
  --home-lead-size: 0.98rem;
  --home-media-size: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

img,
svg,
video,
iframe,
rssapp-imageboard {
  max-width: 100%;
}

.imgs img,
.portfolio-inner-sl .imgs img,
.single-blog-inner .imgs img,
.single-services-dv .imgs .mn {
  max-width: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.btn,
.sm-btns,
.read-more {
  min-height: 44px;
}

.sec-title h1,
.sec-title h2,
.tag1 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.container {
  padding-left: var(--landing-pad-x);
  padding-right: var(--landing-pad-x);
}

/* Consistent vertical rhythm */
@media (max-width: 1199px) {
  .pt-120 {
    padding-top: 88px !important;
  }

  .pb-120 {
    padding-bottom: 88px !important;
  }

  .px-120 {
    padding-top: 88px !important;
    padding-bottom: 88px !important;
  }

  .mt-50,
  .mb-50 {
    margin-top: 36px !important;
    margin-bottom: 36px !important;
  }
}

@media (max-width: 767px) {
  .pt-120,
  .pb-120,
  .px-120 {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .mt-50,
  .mb-50 {
    margin-top: 28px !important;
    margin-bottom: 28px !important;
  }

  .tag1 {
    font-size: clamp(1.6rem, 7vw, 2rem) !important;
    line-height: 1.25 !important;
  }

  .sec-title h1,
  .sec-title.v2 h2,
  .similar-title h1 {
    font-size: clamp(1.35rem, 6vw, 1.85rem) !important;
    line-height: 1.3 !important;
  }
}

/* ---------- Header (index.html / header-style-1) ---------- */
/* Desktop: absolute di atas banner seperti demo index.html */
.header-style-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  max-width: min(360px, 42vw);
}

.brand-lockup .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #1a1a1a;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.brand-lockup .brand-text-top {
  display: block;
  font-weight: 600;
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  color: #06615E;
}

.brand-lockup .brand-text-bottom {
  display: block;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  color: #1a1a1a;
}

.navbar-brand.brand-lockup img,
.main-responsive-nav .logo .brand-lockup img {
  flex-shrink: 0;
}

@media (max-width: 1199px) {
  .top_nav_soc .left-content-top li {
    margin-right: 12px;
    padding-right: 12px;
  }

  .main-navbar .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-lockup {
    max-width: min(280px, 48vw);
  }
}

@media (max-width: 991px) {
  .header-style-1 {
    position: relative;
  }

  .top_nav_soc {
    display: none;
  }

  .main-responsive-nav .logo img,
  .navbar-brand img {
    max-height: 48px;
    width: auto;
  }

  .brand-lockup {
    max-width: calc(100vw - 100px);
    gap: 10px;
  }

  .brand-lockup .brand-text {
    font-size: inherit;
  }

  .brand-lockup .brand-text-top {
    font-size: 0.72rem;
  }

  .brand-lockup .brand-text-bottom {
    font-size: 0.88rem;
  }

  .mean-container a.meanmenu-reveal {
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
  }

  .mean-container .mean-nav ul li a {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .navbar-area.is-sticky {
    background: #fff;
  }
}

/* ---------- Section backgrounds (index-2 style) ---------- */
.home-layanan-maskot-wrap.two-section-for-bg {
  background-color: #ffffff;
  background-image:
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 50%, rgba(255, 255, 255, 0.9) 100%),
    url(../img/home2/two-bg-about.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
  /* Soft overlap banner, konten layanan publik lebih ke bawah */
  margin-top: clamp(-48px, -5vw, -28px);
  padding-top: clamp(72px, 10vw, 140px);
  z-index: 1;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.home-layanan-maskot-wrap.two-section-for-bg.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-layanan-maskot-wrap.two-section-for-bg {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.home-layanan-maskot-wrap.two-section-for-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(../img/home2/two-bg-about.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.home-layanan-maskot-wrap.two-section-for-bg::after {
  display: none;
}

.home-layanan-maskot-wrap .layanan-publik-sec {
  background: transparent !important;
  padding-top: clamp(12px, 2vw, 28px);
  padding-bottom: calc(var(--landing-section-y) * 0.45);
  position: relative;
  z-index: 1;
}

.home-layanan-maskot-wrap .maskot-cards-sec {
  background: transparent !important;
  padding-bottom: var(--landing-section-y) !important;
  position: relative;
  z-index: 1;
}

.jelajah-kota-sec {
  position: relative;
  background-color: #eef8f7;
  background-image:
    linear-gradient(180deg, rgba(238, 248, 247, 0.92) 0%, rgba(238, 248, 247, 0.88) 100%),
    url(../img/process-bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: visible;
  padding-top: clamp(56px, 7vw, 100px) !important;
  padding-bottom: clamp(64px, 8vw, 110px) !important;
}

.jelajah-kota-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(../img/choose-bg.png);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: min(520px, 55vw) auto;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.jelajah-kota-sec > .container {
  position: relative;
  z-index: 1;
}

/* Watermark 3 maskot — posisi acak di sekeliling section */
.jelajah-maskot-watermarks {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.jelajah-wm {
  position: absolute;
  width: clamp(120px, 16vw, 220px);
  height: auto;
  opacity: 0.11;
  filter: grayscale(0.15) saturate(0.85);
  user-select: none;
  -webkit-user-drag: none;
}

.jelajah-wm--rasa {
  top: 6%;
  left: -3%;
  width: clamp(130px, 17vw, 230px);
  transform: rotate(-18deg);
  opacity: 0.12;
}

.jelajah-wm--relo {
  top: 38%;
  right: -4%;
  width: clamp(110px, 14vw, 190px);
  transform: rotate(22deg);
  opacity: 0.1;
}

.jelajah-wm--madya {
  bottom: 2%;
  left: 18%;
  width: clamp(140px, 18vw, 250px);
  transform: rotate(8deg);
  opacity: 0.09;
}

@media (max-width: 991px) {
  .jelajah-wm--rasa {
    top: 4%;
    left: -8%;
    width: min(160px, 34vw);
  }

  .jelajah-wm--relo {
    top: 42%;
    right: -10%;
    width: min(140px, 30vw);
  }

  .jelajah-wm--madya {
    bottom: 0;
    left: 8%;
    width: min(170px, 36vw);
    opacity: 0.08;
  }
}

@media (max-width: 575px) {
  .jelajah-wm {
    opacity: 0.07;
  }

  .jelajah-wm--rasa {
    top: 2%;
    left: -12%;
  }

  .jelajah-wm--relo {
    right: -14%;
  }

  .jelajah-wm--madya {
    left: auto;
    right: 4%;
    bottom: -2%;
    transform: rotate(-12deg);
  }
}

@media (max-width: 991px) {
  .home-layanan-maskot-wrap.two-section-for-bg,
  .home-layanan-maskot-wrap.two-section-for-bg::before {
    background-size: cover;
    background-position: center center;
  }

  .home-layanan-maskot-wrap.two-section-for-bg {
    margin-top: -32px;
    padding-top: clamp(64px, 14vw, 100px);
  }

  .banner-blend {
    height: clamp(120px, 34vw, 200px);
  }

  .jelajah-kota-sec::before {
    opacity: 0.12;
    background-size: min(380px, 70vw) auto;
  }
}

@media (max-width: 575px) {
  .home-layanan-maskot-wrap.two-section-for-bg {
    background-position: center top;
    margin-top: -20px;
    padding-top: clamp(56px, 16vw, 88px);
  }

  .home-layanan-maskot-wrap.two-section-for-bg::before {
    background-position: center bottom;
  }
}

/* ---------- Banner (index.html) + maskot floating ---------- */
.banner-area-wrap {
  background-image: url(/image/banner.png);
  background-position: center top;
  background-size: cover;
  padding-top: clamp(160px, 18vw, 240px);
  padding-bottom: clamp(120px, 16vw, 200px);
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 2;
}

/* Matikan pseudo lama */
.banner-area-wrap::before {
  display: none !important;
  content: none !important;
}

.banner-area-wrap .container {
  position: relative;
  z-index: 7;
}

/* Sembunyikan frame/shape bawah yang sering terpotong garis putih */
.banner-area-wrap .banner-frame-one,
.banner-area-wrap .banner-frame-two,
.banner-area-wrap .banner-frame-three,
.banner-area-wrap .banner-frame-four,
.banner-area-wrap .shape-bottom-left,
.banner-area-wrap .shape-bottom-right {
  display: none !important;
}

/*
 * Blend soft hero → putih (tanpa gelombang putih yang terlihat patah)
 */
.banner-blend {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(160px, 28vw, 280px);
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 22%,
    rgba(255, 255, 255, 0.45) 48%,
    rgba(255, 255, 255, 0.82) 72%,
    rgba(255, 255, 255, 0.97) 88%,
    #ffffff 100%
  );
}

.banner-area-wrap .left-content-hero {
  max-width: 560px;
  z-index: 2;
}

.banner-area-wrap .left-content-hero h1 {
  font-size: clamp(1.55rem, 3.6vw, 3rem);
  line-height: 1.2;
}

.banner-area-wrap .left-content-hero p {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.55;
}

.banner-area-wrap .right-content-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Maskot hero: skala responsif, jangan pakai 570px tetap dari tema */
.right-content-hero .imgs.maskot-float {
  width: clamp(220px, 32vw, 400px) !important;
  height: auto !important;
  max-width: min(400px, 100%) !important;
  aspect-ratio: 520 / 610;
  border-radius: 0 !important;
  background: transparent !important;
  margin: 0 auto 0 auto !important;
  animation: maskot-float 3.2s ease-in-out infinite;
  will-change: transform;
}

.right-content-hero .imgs.maskot-float .inner {
  background: transparent !important;
  overflow: visible !important;
  border-radius: 0 !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

.right-content-hero .imgs.maskot-float img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.3));
  display: block;
}

.right-content-hero .imgs.maskot-float:after {
  display: none !important;
  content: none !important;
}

/* Hero logo Kota Madiun (Lambang) */
.right-content-hero .imgs.hero-logo-wrap {
  width: clamp(180px, 26vw, 320px) !important;
  height: auto !important;
  max-width: min(320px, 100%) !important;
  aspect-ratio: 1 / 1;
  border-radius: 0 !important;
  background: transparent !important;
  margin: 0 auto !important;
}

.right-content-hero .imgs.hero-logo-wrap .inner {
  background: transparent !important;
  overflow: visible !important;
  border-radius: 0 !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

.right-content-hero .imgs.hero-logo-wrap img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.22));
  display: block;
}

.right-content-hero .imgs.hero-logo-wrap:after {
  display: none !important;
  content: none !important;
}

@media (max-width: 991px) {
  .right-content-hero .imgs.hero-logo-wrap {
    width: clamp(140px, 34vw, 220px) !important;
    max-width: 220px !important;
  }
}

@media (max-width: 575px) {
  .right-content-hero .imgs.hero-logo-wrap {
    width: clamp(120px, 42vw, 170px) !important;
    max-width: 170px !important;
  }
}

@keyframes maskot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .right-content-hero .imgs.maskot-float {
    animation: none;
  }
}

@media (max-width: 1199px) {
  .right-content-hero .imgs.maskot-float {
    width: clamp(200px, 30vw, 340px) !important;
  }
}

@media (max-width: 991px) {
  .banner-area-wrap {
    padding-top: 120px;
    padding-bottom: 48px;
    text-align: center;
  }

  .banner-area-wrap .row {
    justify-content: center;
  }

  .banner-area-wrap .left-content-hero {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
  }

  .banner-area-wrap .left-content-hero h1 {
    font-size: clamp(1.45rem, 5vw, 2.2rem);
  }

  .banner-area-wrap .banner-frame-one,
  .banner-area-wrap .banner-frame-two,
  .banner-area-wrap .banner-frame-three,
  .banner-area-wrap .banner-frame-four,
  .banner-area-wrap .shape-top-left,
  .banner-area-wrap .shape-bottom-left,
  .banner-area-wrap .shape-bottom-right {
    display: none;
  }

  .right-content-hero {
    margin-top: 16px !important;
    justify-content: center;
  }

  .right-content-hero .imgs.maskot-float {
    width: clamp(150px, 38vw, 240px) !important;
    max-width: 240px !important;
    margin-inline: auto !important;
    animation-duration: 4s;
  }

  @keyframes maskot-float {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-8px);
    }
  }
}

@media (max-width: 575px) {
  .banner-area-wrap {
    padding-top: 108px;
    padding-bottom: 36px;
  }

  .banner-area-wrap .left-content-hero h5 {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .banner-area-wrap .left-content-hero .btn {
    width: auto;
    min-width: 160px;
    text-align: center;
  }

  .right-content-hero .imgs.maskot-float {
    width: clamp(130px, 48vw, 190px) !important;
    max-width: 190px !important;
  }

  .right-content-hero .imgs.maskot-float img {
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
  }
}

/* ---------- Maskot cards (gaya team v3 index-3) ---------- */
.maskot-cards-sec {
  padding-top: clamp(48px, 6vw, 88px) !important;
  padding-bottom: clamp(48px, 6vw, 88px) !important;
  background: #fff;
}

.maskot-cards-sec .sec-title h2.tag1 {
  font-size: var(--home-title-size) !important;
  line-height: 1.25 !important;
}

.maskot-seo-lead {
  max-width: 680px;
  margin: 12px auto 0;
  color: #555;
  font-size: var(--home-lead-size);
  line-height: 1.6;
}

.maskot-cards-sec,
.maskot-cards-sec .row,
.maskot-cards-sec [class*="col-"] {
  overflow: visible;
}

.maskot-team-card.team-member-inner.v3 {
  position: relative;
  height: 100%;
  overflow: visible;
  cursor: pointer;
}

.maskot-team-card .imgs {
  position: relative;
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-top: 16px;
  background: transparent;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.maskot-team-card .imgs img {
  width: 100%;
  height: clamp(200px, 28vw, 260px);
  object-fit: contain;
  object-position: center bottom;
  background: linear-gradient(180deg, #f3faf9 0%, #e8f4f3 100%);
  border-radius: 20px;
  display: block;
}

.maskot-team-card .socials_v3 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px !important;
}

.maskot-team-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  color: #06615E;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: 0.2s ease;
}

.maskot-team-link:hover {
  background: #06615E;
  color: #fff;
}

.maskot-team-card .cont .name h2 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin: 0 0 4px;
  line-height: 1.3;
}

.maskot-team-card .cont .name p {
  margin: 0;
  color: #555;
  font-size: 0.92rem;
}

/* Tooltip / popover maskot (seperti sebelumnya) */
.maskot-team-card .maskot-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 30;
  width: min(280px, 86vw);
  padding: 14px 16px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.maskot-team-card .maskot-popover::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
}

.maskot-team-card:hover .maskot-popover,
.maskot-team-card:focus-within .maskot-popover,
.maskot-team-card.is-open .maskot-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.maskot-popover-title {
  display: block;
  margin-bottom: 6px;
  color: #06615E;
  font-size: 0.95rem;
  line-height: 1.35;
}

.maskot-popover p {
  margin: 0 0 10px;
  color: #555;
  font-size: 0.86rem;
  line-height: 1.5;
}

.maskot-popover-link {
  display: inline-flex;
  font-weight: 700;
  font-size: 0.86rem;
  color: #10b1ab;
  text-decoration: none;
}

.maskot-popover-link:hover {
  color: #06615E;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .maskot-team-card .imgs img {
    height: 200px;
  }

  .maskot-team-card .maskot-popover {
    width: min(240px, 78vw);
    bottom: auto;
    top: calc(100% + 10px);
  }

  .maskot-team-card .maskot-popover::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #fff;
  }
}

@media (hover: none) {
  .maskot-team-card .socials_v3 {
    position: relative !important;
    bottom: auto !important;
    border-radius: 0 0 24px 24px;
    background: #eef6f5;
    margin-top: 8px;
  }

  .maskot-team-card .cont {
    margin-top: 0 !important;
    padding-top: 16px !important;
  }

  /* di touch: popover via tap (.is-open), bukan hover */
  .maskot-team-card:hover .maskot-popover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .maskot-team-card.is-open .maskot-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

/* ---------- Layanan Publik (search + unggulan) ---------- */
.layanan-publik-sec {
  padding: var(--landing-section-y) 0 calc(var(--landing-section-y) * 0.55);
  background: transparent;
}

.layanan-publik-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.15;
}

.layanan-publik-title span {
  color: #06615E;
}

.layanan-publik-lead {
  max-width: 640px;
  margin: 12px auto 0;
  color: #555;
  font-size: var(--home-lead-size);
  line-height: 1.6;
  padding: 0 8px;
}

.layanan-publik-sec .sec-title {
  margin-bottom: clamp(24px, 3.5vw, 40px) !important;
}

.layanan-publik-sec .sec-title h2.tag1 {
  font-size: clamp(1.85rem, 4.2vw, 3rem) !important;
  line-height: 1.15 !important;
  font-weight: 800;
}

.layanan-search-wrap {
  position: relative;
  max-width: 920px;
  margin: 0 auto 28px;
  z-index: 20;
  width: 100%;
  padding: 0 4px;
}

.layanan-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  width: 100%;
}

.layanan-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 0 52px 0 22px;
  background: #fff;
  box-shadow: var(--home-card-shadow);
  font-size: 1rem;
  color: #1a1a1a;
  outline: none;
}

.layanan-search-input:focus {
  box-shadow: var(--home-card-shadow-hover), 0 0 0 3px rgba(16, 177, 171, 0.18);
}

.layanan-search-clear {
  position: absolute;
  right: 76px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #e8f4f3;
  color: #06615E;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.layanan-search-btn {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: var(--home-card-radius);
  background: linear-gradient(90deg, #10b1ab -0.02%, #FBD826 100.06%);
  color: #fff;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(16, 177, 171, 0.28);
  cursor: pointer;
}

.layanan-search-panel {
  position: absolute;
  left: 0;
  right: 70px;
  top: calc(100% + 10px);
  background: #fff;
  border-radius: var(--home-card-radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  padding: 16px 16px 8px;
  max-height: min(420px, 70vh);
  overflow: auto;
}

.layanan-search-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.layanan-search-panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #1a1a1a;
}

.layanan-search-panel-head p {
  margin: 4px 0 0;
  color: #777;
  font-size: 0.88rem;
}

.layanan-search-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.layanan-search-group {
  margin-bottom: 14px;
}

.layanan-search-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.layanan-search-group-head strong {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #06615E;
}

.layanan-search-group-head a {
  font-size: 0.82rem;
  font-weight: 700;
  color: #10b1ab;
  text-decoration: none;
}

.layanan-search-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.layanan-search-item:hover,
.layanan-search-item:focus {
  background: rgba(16, 177, 171, 0.1);
}

.layanan-search-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(6, 97, 94, 0.1);
  color: #06615E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.layanan-search-item h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #1a1a1a;
}

.layanan-search-item p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #666;
}

.layanan-search-item time {
  font-size: 0.78rem;
  color: #888;
  white-space: nowrap;
}

.layanan-search-empty,
.layanan-search-loading {
  margin: 8px 0 16px;
  color: #777;
  text-align: center;
}

.layanan-populer {
  max-width: 920px;
  margin: 0 auto 36px;
  text-align: center;
}

.layanan-populer h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: #1a1a1a;
  font-weight: 700;
}

.layanan-populer-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.layanan-populer-chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid #d9e8e7;
  background: #fff;
  color: #06615E;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: 0.2s ease;
}

.layanan-populer-chips a:hover {
  border-color: #10b1ab;
  box-shadow: var(--home-card-shadow);
}

/* Layanan publik title + unggulan carousel */
.layanan-publik-sec .sec-title h2.tag1 {
  font-size: clamp(2rem, 4.2vw, 3rem) !important;
  line-height: 1.15 !important;
  font-weight: 800;
}

.layanan-populer {
  margin-bottom: 28px;
}

.layanan-unggulan {
  max-width: 1100px;
  margin: 0 auto;
}

.layanan-unggulan h3 {
  font-size: 1.15rem;
  margin-bottom: 0;
  color: #1a1a1a;
  font-weight: 700;
}

.layanan-unggulan-nav {
  display: inline-flex;
  gap: 8px;
}

.layanan-unggulan-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d9e8e7;
  background: #fff;
  color: #06615E;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.layanan-unggulan-nav button:hover {
  border-color: #10b1ab;
  color: #10b1ab;
}

.layanan-unggulan-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: #1a1a1a;
  padding: var(--home-card-pad) 14px;
  border-radius: var(--home-card-radius);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--home-card-shadow);
  margin: 8px 8px 16px;
  min-height: 168px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.layanan-unggulan-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-card-shadow-hover);
  color: #06615E;
}

.layanan-unggulan-item img {
  width: var(--home-media-size);
  height: var(--home-media-size);
  object-fit: contain;
}

.layanan-unggulan-item span {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.3;
}

/* Jenis Pelayanan — bg sama seperti Jelajah Kota; card gaya index-3 */
.layanan-kategori-sec.how-work-v3 {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 6vw, 88px) !important;
  padding-bottom: clamp(48px, 6vw, 88px) !important;
  margin-top: 0;
  background-color: #eef8f7 !important;
  background-image:
    linear-gradient(180deg, rgba(238, 248, 247, 0.92) 0%, rgba(238, 248, 247, 0.88) 100%),
    url(../img/process-bg.png) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
}

.layanan-kategori-sec.how-work-v3::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(../img/choose-bg.png);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: min(520px, 55vw) auto;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.layanan-kategori-sec > .container {
  position: relative;
  z-index: 1;
}

.layanan-kategori-sec .sec-title h2.tag1 {
  font-size: var(--home-title-size) !important;
  line-height: 1.25 !important;
}

.layanan-kategori-sec .how-work-inner-v3 {
  height: 100%;
  box-shadow: var(--home-card-shadow);
  transition: box-shadow 0.25s ease;
}

.layanan-kategori-sec .how-work-inner-v3:hover,
.layanan-kategori-sec .how-work-inner-v3:focus-visible {
  box-shadow: var(--home-card-shadow-hover);
}

.layanan-kategori-sec .how-work-inner-v3 .icon,
.layanan-kategori-sec .how-work-inner-v3:after,
.layanan-kategori-sec .how-work-inner-v3:before {
  pointer-events: none;
}

.layanan-kategori-sec .how-work-inner-v3 h2,
.layanan-kategori-sec .how-work-inner-v3 p,
.layanan-kategori-sec .how-work-inner-v3 .number,
.layanan-kategori-sec .how-work-inner-v3 img {
  pointer-events: none;
}

.layanan-kategori-sec .how-work-inner-v3 h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.3;
}

.layanan-kategori-sec .how-work-inner-v3 p {
  font-size: clamp(0.9rem, 1.7vw, 1rem);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Trigger button reset */
.layanan-kategori-sec button.how-work-inner-v3.jp-trigger {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  cursor: pointer;
  background: #fff;
  color: inherit;
  font: inherit;
}
.layanan-kategori-sec button.how-work-inner-v3.jp-trigger.is-open {
  outline: 2px solid #06615E;
  outline-offset: 2px;
  box-shadow: var(--home-card-shadow-hover);
}

/* Expand panels */
.jp-panel {
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(22px, 3vw, 36px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d9e8e7;
  box-shadow: 0 12px 40px rgba(6, 97, 94, 0.08);
  animation: jp-panel-in 0.35s ease;
}
.jp-panel[hidden] { display: none !important; }
@keyframes jp-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.jp-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.jp-eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #06615E;
}
.jp-panel-head h3 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: #1a1a1a;
  font-weight: 800;
}
.jp-lead {
  margin: 0;
  max-width: 58ch;
  color: #5a6766;
  font-size: 0.95rem;
  line-height: 1.55;
}
.jp-app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #06615E;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s ease;
}
.jp-app-link:hover {
  background: #044845;
  color: #fff !important;
}

/* Age chips */
.jp-age-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.jp-age-chip {
  border: 1px solid #cfe3e1;
  background: #fff;
  color: #06615E;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
  min-height: 42px;
}
.jp-age-chip:hover,
.jp-age-chip:focus-visible {
  border-color: #06615E;
  outline: none;
}
.jp-age-chip.is-active {
  background: #06615E;
  border-color: #06615E;
  color: #fff;
}

/* Roadmap siklus hidup (serpentine timeline) + glow usia + detail on click */
.jp-timeline-hint {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: #667574;
}

.jp-roadmap {
  --jp-cols: 5;
  --jp-gap-x: 22px;
  --jp-gap-y: 64px;
  --jp-line: #06615E;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--jp-cols), minmax(0, 1fr));
  gap: var(--jp-gap-y) var(--jp-gap-x);
  /* Ruang di atas supaya garis + nomor mengambang di atas kartu */
  padding: 40px 4px 12px;
}

.jp-snake-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.jp-snake-path {
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* Soft trail di belakang bar */
.jp-snake-path--glow {
  stroke: rgba(6, 97, 94, 0.22);
  stroke-width: 26;
}

/* Bar timeline tebal */
.jp-snake-path--main {
  stroke: var(--jp-line);
  stroke-width: 16;
}

.jp-snake-arrows {
  pointer-events: none;
}

/* Chevron putih di dalam bar */
.jp-snake-chevron {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jp-road-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 14px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid #d9e8e7;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease,
    background 0.3s ease;
  will-change: transform;
  overflow: visible;
}

.jp-road-card:hover,
.jp-road-card:focus-within {
  z-index: 4;
}

/* Nomor di atas kartu — putih di atas bar teal supaya terlihat lurus */
.jp-road-num {
  position: absolute;
  top: -38px;
  left: 50%;
  margin-left: -22px;
  transform: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #06615E;
  color: #06615E;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(6, 97, 94, 0.22);
  opacity: 1;
  pointer-events: none;
  transition: box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.jp-road-card[data-n="1"] { order: 1; }
.jp-road-card[data-n="2"] { order: 2; }
.jp-road-card[data-n="3"] { order: 3; }
.jp-road-card[data-n="4"] { order: 4; }
.jp-road-card[data-n="5"] { order: 5; }
.jp-road-card[data-n="6"] { order: 10; }
.jp-road-card[data-n="7"] { order: 9; }
.jp-road-card[data-n="8"] { order: 8; }
.jp-road-card[data-n="9"] { order: 7; }
.jp-road-card[data-n="10"] { order: 6; }
.jp-road-card[data-n="11"] { order: 11; }
.jp-road-card[data-n="12"] { order: 12; }
.jp-road-card[data-n="13"] { order: 13; }
.jp-road-card[data-n="14"] { order: 14; }
.jp-road-card[data-n="15"] { order: 15; }

.jp-road-card:hover,
.jp-road-card:focus-within {
  transform: translateY(-6px);
  border-color: #10b1ab;
  box-shadow:
    0 0 0 3px rgba(16, 177, 171, 0.18),
    0 18px 36px rgba(6, 97, 94, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f0faf9 100%);
  z-index: 4;
}

.jp-road-card:hover .jp-road-num,
.jp-road-card:focus-within .jp-road-num {
  box-shadow: 0 0 0 5px rgba(6, 97, 94, 0.18), 0 6px 16px rgba(6, 97, 94, 0.3);
}

.jp-road-card:hover .jp-road-icon,
.jp-road-card:focus-within .jp-road-icon {
  transform: scale(1.06);
  background: linear-gradient(145deg, #d8f3f1, #fff3b8);
}

.jp-road-card:hover .jp-road-cta,
.jp-road-card:focus-within .jp-road-cta {
  background: #06615E;
  color: #fff;
}

.jp-road-title {
  margin: 6px 0 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  color: #1a1a1a;
  min-height: 2.4em;
}

.jp-road-caption {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #5f7371;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2em;
}

.jp-road-icon {
  width: 68px;
  height: 68px;
  margin: 2px 0 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e6f4f3, #fff7d6);
  color: #06615E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: inset 0 0 0 1px rgba(6, 97, 94, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.jp-road-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(6, 97, 94, 0.1);
  color: #06615E;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: 0.25s ease;
}
.jp-road-cta:hover,
.jp-road-cta:focus-visible {
  background: #044845;
  color: #fff;
  outline: none;
}
.jp-road-cta .bx {
  transition: transform 0.25s ease;
}
.jp-road-card.is-open .jp-road-cta .bx {
  transform: rotate(180deg);
}
.jp-road-card.is-open .jp-road-cta {
  background: #06615E;
  color: #fff;
}

.jp-road-detail {
  width: 100%;
  text-align: left;
  padding-top: 8px;
  border-top: 1px dashed #d9e8e7;
  animation: jp-panel-in 0.28s ease;
}
.jp-road-detail[hidden] { display: none !important; }
.jp-road-detail ul {
  margin: 0 0 12px;
  padding-left: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #445554;
}
.jp-road-detail li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 1rem;
  list-style: none;
}
.jp-road-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06615E;
}
.jp-road-empty {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #667574;
}

.jp-siklus-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #06615E;
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: 0.2s ease;
}
.jp-siklus-modal-btn:hover,
.jp-siklus-modal-btn:focus-visible {
  background: #044845;
  outline: none;
}

/* Glow: Semua / usia cocok */
.jp-road-card.is-glow {
  border-color: #10b1ab;
  box-shadow:
    0 0 0 2px rgba(16, 177, 171, 0.2),
    0 12px 28px rgba(6, 97, 94, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbfa 100%);
}

.jp-road-card.is-muted {
  opacity: 0.5;
  filter: grayscale(0.2);
  box-shadow: none;
  border-color: #e8eeee;
}
.jp-road-card.is-muted .jp-road-num {
  background: #f3f6f6;
  color: #8a9b99;
  border-color: #b7c6c4;
  box-shadow: none;
}
.jp-road-card.is-muted:hover {
  opacity: 0.85;
  filter: none;
}

.jp-road-card.is-open {
  border-color: #06615E;
  transform: translateY(-4px);
}

.jp-siklus-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #06615E;
  text-decoration: none;
}
.jp-siklus-cta:hover { color: #044845; }

/* Modal layanan */
body.jp-modal-open { overflow: hidden; }
.jp-siklus-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.jp-siklus-modal[hidden] { display: none !important; }
.jp-siklus-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.jp-siklus-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  animation: jp-panel-in 0.28s ease;
}
.jp-siklus-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f6f6;
  color: #334;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.jp-siklus-modal__close:hover { background: #e7eeee; }
.jp-siklus-modal__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 48px 16px 22px;
  border-bottom: 1px solid #e8eeee;
}
.jp-siklus-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e6f4f3, #fff7d6);
  color: #06615E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.jp-siklus-modal__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(6, 97, 94, 0.1);
  color: #06615E;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.jp-siklus-modal__head h3 {
  margin: 6px 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a1a;
}
.jp-siklus-modal__head p {
  margin: 0;
  color: #667574;
  font-size: 0.9rem;
}
.jp-siklus-modal__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 22px;
}
.jp-siklus-modal__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: #667574;
}
.jp-siklus-app {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e2eceb;
  border-radius: 14px;
  background: #fafcfc;
  text-align: center;
}
.jp-siklus-app__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8eeee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #06615E;
  font-size: 1.5rem;
  overflow: hidden;
}
.jp-siklus-app__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.jp-siklus-app h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a1a1a;
}
.jp-siklus-app p {
  margin: 0;
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #556;
}
.jp-siklus-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #06615E;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none !important;
}
.jp-siklus-modal__btn:hover { background: #044845; }
.jp-siklus-modal__btn.is-disabled {
  background: #c5d4d2;
  cursor: default;
}
.jp-siklus-modal__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: #eef7f6;
  color: #355;
  font-size: 0.84rem;
  border-radius: 0 0 20px 20px;
}
.jp-siklus-modal__foot .bx { color: #06615E; font-size: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  .jp-road-card,
  .jp-road-num,
  .jp-road-icon {
    transition: none;
  }
  .jp-road-card:hover,
  .jp-road-card:focus-within {
    transform: none;
  }
}

@media (max-width: 1199px) {
  .jp-roadmap {
    --jp-cols: 3;
    --jp-gap-y: 40px;
  }
  /* 3-col snake: row even RTL */
  .jp-road-card[data-n] { order: unset; }
  .jp-road-card[data-n="1"] { order: 1; }
  .jp-road-card[data-n="2"] { order: 2; }
  .jp-road-card[data-n="3"] { order: 3; }
  .jp-road-card[data-n="4"] { order: 6; }
  .jp-road-card[data-n="5"] { order: 5; }
  .jp-road-card[data-n="6"] { order: 4; }
  .jp-road-card[data-n="7"] { order: 7; }
  .jp-road-card[data-n="8"] { order: 8; }
  .jp-road-card[data-n="9"] { order: 9; }
  .jp-road-card[data-n="10"] { order: 12; }
  .jp-road-card[data-n="11"] { order: 11; }
  .jp-road-card[data-n="12"] { order: 10; }
  .jp-road-card[data-n="13"] { order: 13; }
  .jp-road-card[data-n="14"] { order: 14; }
  .jp-road-card[data-n="15"] { order: 15; }
}

@media (max-width: 900px) {
  .jp-siklus-modal__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .jp-roadmap {
    --jp-cols: 2;
    --jp-gap-x: 14px;
    --jp-gap-y: 36px;
  }
  .jp-road-card[data-n] { order: unset; }
  .jp-road-card[data-n="1"] { order: 1; }
  .jp-road-card[data-n="2"] { order: 2; }
  .jp-road-card[data-n="3"] { order: 4; }
  .jp-road-card[data-n="4"] { order: 3; }
  .jp-road-card[data-n="5"] { order: 5; }
  .jp-road-card[data-n="6"] { order: 6; }
  .jp-road-card[data-n="7"] { order: 8; }
  .jp-road-card[data-n="8"] { order: 7; }
  .jp-road-card[data-n="9"] { order: 9; }
  .jp-road-card[data-n="10"] { order: 10; }
  .jp-road-card[data-n="11"] { order: 12; }
  .jp-road-card[data-n="12"] { order: 11; }
  .jp-road-card[data-n="13"] { order: 13; }
  .jp-road-card[data-n="14"] { order: 14; }
  .jp-road-card[data-n="15"] { order: 15; }

  .jp-road-caption {
    -webkit-line-clamp: 2;
    min-height: 2.2em;
    font-size: 0.72rem;
  }
  .jp-roadmap {
    --jp-gap-y: 52px;
    padding-top: 36px;
  }
  .jp-snake-path--main { stroke-width: 14; }
  .jp-snake-path--glow { stroke-width: 22; }
  .jp-snake-chevron { stroke-width: 2.2; }
  .jp-road-num {
    width: 40px;
    height: 40px;
    margin-left: -20px;
    top: -34px;
    font-size: 0.95rem;
  }
}

@media (max-width: 560px) {
  .jp-siklus-modal__body {
    grid-template-columns: 1fr;
  }
  .jp-siklus-modal__head {
    padding-right: 44px;
  }
}

@media (max-width: 480px) {
  .jp-roadmap {
    --jp-cols: 1;
    --jp-gap-y: 40px;
    padding-top: 32px;
  }
  .jp-road-card[data-n] { order: unset; }
  .jp-road-num {
    top: -30px;
  }
  .jp-road-caption {
    -webkit-line-clamp: 3;
    min-height: auto;
  }
}

/* Panel Manekin (Layanan Pemerintah — statis) */
.jp-manekin-feature {
  padding: clamp(12px, 2vw, 24px) 0 8px;
}

.jp-manekin-feature .left-content-ftr {
  max-width: 100%;
}

.jp-manekin-feature .sec-title.v2 h2.tag1 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem) !important;
  color: #1a1a1a;
}

.jp-manekin-feature .sec-title.v2 p {
  margin-top: 16px;
  color: #555;
  line-height: 1.65;
  font-size: 1rem;
}

.jp-manekin-feature .inner-bx-ftr {
  background: linear-gradient(90deg, rgba(6, 97, 94, 0.1) -0.02%, rgba(251, 216, 38, 0.12) 100.06%);
  border-radius: 28px;
  padding: 28px 32px;
  margin-top: 28px;
  max-width: 100%;
}

.jp-manekin-feature .inner-bx-ftr p {
  margin-bottom: 0;
}

.jp-manekin-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #06615E;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(6, 97, 94, 0.22);
  transition: 0.2s ease;
}

.jp-manekin-cta:hover {
  background: #044845;
  color: #fff !important;
  transform: translateY(-2px);
}

.jp-manekin-feature .right-img-ftr img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .jp-manekin-feature .inner-bx-ftr {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .jp-manekin-feature .right-img-ftr {
    text-align: center !important;
    margin-top: 8px;
  }
}

@media (max-width: 991px) {
  .layanan-kategori-sec.how-work-v3::before {
    opacity: 0.12;
    background-size: min(380px, 70vw) auto;
  }
}

@media (max-width: 575px) {
  .layanan-kategori-sec .how-work-inner-v3 {
    padding: 22px 18px 26px !important;
  }

  .layanan-kategori-sec .how-work-inner-v3 .d-sm-flex {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .layanan-kategori-sec .how-work-inner-v3 .flex-shrink-1 {
    padding-left: 0 !important;
  }

  .layanan-kategori-sec .how-work-inner-v3 .icon {
    width: 72px !important;
    height: 72px !important;
    line-height: 72px !important;
  }

  .jp-panel-head {
    flex-direction: column;
  }

  .jp-app-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .layanan-publik-sec {
    padding: 28px 0 32px;
  }

  .layanan-search-form {
    gap: 8px;
  }

  .layanan-search-input {
    height: 52px;
    padding: 0 48px 0 16px;
    font-size: 0.95rem;
  }

  .layanan-search-btn {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
    border-radius: 16px;
  }

  .layanan-search-clear {
    right: 66px;
  }

  .layanan-search-panel {
    right: 0;
    left: 0;
  }

  .layanan-search-item {
    grid-template-columns: 36px 1fr;
  }

  .layanan-search-item time {
    grid-column: 2;
  }

  .layanan-populer {
    margin-bottom: 28px;
  }

  .layanan-populer-chips {
    justify-content: center;
    gap: 8px;
  }

  .layanan-populer-chips a {
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  .layanan-unggulan-item {
    min-height: 150px;
  }
}

/* ---------- About ---------- */
.left-images-about img {
  max-width: 100%;
  height: auto;
}

.left-images-about .inner .img1 {
  max-height: min(420px, 55vw);
  width: 100%;
  object-fit: cover;
  border-radius: 15px;
}

@media (max-width: 767px) {
  .left-images-about .inner {
    text-align: center;
  }

  .right-content-about {
    text-align: left;
  }

  .right-content-about p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .right-content-about .btn {
    width: 100%;
  }
}

/* ---------- Jelajah slider ---------- */
.jelajah-kota-sec .similar-portfolio-sec {
  padding-bottom: 8px;
}

.jelajah-kota-sec .similar-title {
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.jelajah-kota-sec .similar-title h1 {
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  margin: 0;
  line-height: 1.25;
  color: #1a1a1a;
}

.jelajah-kota-sec .slider-btns-simi {
  display: inline-flex !important;
  gap: 10px;
}

.jelajah-kota-sec .slider-btns-simi .sm-btns {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, #10b1ab -0.02%, #fbd826 100.06%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jelajah-kota-sec .similar-slider-wrap {
  margin-top: clamp(28px, 4vw, 48px) !important;
  margin-bottom: 12px;
  overflow: visible;
  padding-bottom: 4px;
}

.jelajah-kota-sec .similar-slider-wrap .slick-list {
  overflow: hidden;
  margin: 0 -12px;
  padding: 4px 0 8px;
}

.jelajah-kota-sec .similar-slider-wrap .slick-track {
  display: flex !important;
  align-items: stretch;
}

.jelajah-kota-sec .similar-slider-wrap .single,
.jelajah-kota-sec .similar-slider-wrap .slick-slide {
  height: auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.jelajah-kota-sec .similar-slider-wrap .slick-slide > div {
  height: 100%;
}

.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--home-card-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl:hover {
  box-shadow: var(--home-card-shadow-hover);
  transform: translateY(-3px);
}

.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .go-hidden {
  z-index: 4;
}

.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .imgs {
  position: relative;
  z-index: 1;
  padding-top: 0;
  height: auto;
  aspect-ratio: 16 / 11;
  max-height: none;
  min-height: 200px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #e8f3f2;
  flex-shrink: 0;
}

.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .imgs img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none;
  border-radius: 0;
  transition: transform 0.35s ease;
}

.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl:hover .imgs img,
.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl:focus-within .imgs img {
  height: 100%;
  transform: scale(1.04);
  border-radius: 0;
}

.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .imgs img.img-fallback {
  object-fit: contain;
  object-position: center;
  padding: 28px 24px;
  background: #f3faf9;
}

.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .hidden-cont {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  min-height: 0;
  margin-top: 0;
  padding: 16px 18px 18px !important;
  border-radius: 0 0 18px 18px;
  background: #fff;
  z-index: 2;
  opacity: 1 !important;
  flex: 1;
  display: flex;
  align-items: center;
}

.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .hidden-cont > .d-flex {
  width: 100%;
  gap: 12px;
}

.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .hidden-cont .name {
  flex: 1;
  min-width: 0;
}

.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .hidden-cont h3 {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.35;
  margin: 0;
  padding-bottom: 0;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .hidden-cont .btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  line-height: 44px;
  font-size: 24px;
  flex-shrink: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .imgs {
    min-height: 180px;
    aspect-ratio: 16 / 12;
  }

  .jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .hidden-cont {
    padding: 14px 16px 16px !important;
  }
}

@media (max-width: 575px) {
  .jelajah-kota-sec .similar-title h1 {
    font-size: 1.35rem;
  }

  .jelajah-kota-sec .similar-slider-wrap .slick-list {
    margin: 0 -8px;
  }

  .jelajah-kota-sec .similar-slider-wrap .single,
  .jelajah-kota-sec .similar-slider-wrap .slick-slide {
    padding: 0 8px;
  }
}

/* keep legacy similar-* helpers for other pages */
.similar-title {
  gap: 12px;
  flex-wrap: wrap;
}

.similar-title h1 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  margin: 0;
}

.slider-btns-simi {
  display: inline-flex !important;
  gap: 8px;
}

.slider-btns-simi .sm-btns {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, #10b1ab -0.02%, #fbd826 100.06%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.similar-slider-wrap {
  overflow: hidden;
}

.similar-slider-wrap .slick-list,
.similar-slider-wrap .slick-track {
  overflow: hidden;
}

.similar-slider-wrap .single,
.similar-slider-wrap .slick-slide {
  height: auto;
}

.similar-slider-wrap .slick-slide {
  overflow: visible;
}

.similar-slider-wrap .portfolio-inner-sl {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.similar-slider-wrap .portfolio-inner-sl .go-hidden {
  z-index: 4;
}

.similar-slider-wrap .portfolio-inner-sl .imgs {
  position: relative;
  z-index: 2;
  padding-top: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 280px;
  overflow: hidden;
  border-radius: 16px;
  background: #eef6f5;
}

.similar-slider-wrap .portfolio-inner-sl .imgs img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none;
  transition: height 0.35s ease, border-radius 0.35s ease;
}

.similar-slider-wrap .portfolio-inner-sl .imgs img.img-fallback {
  object-fit: contain;
  padding: 20px;
}

.similar-slider-wrap .portfolio-inner-sl .hidden-cont {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 84px;
  padding: 16px 18px 18px;
  border-radius: 0 0 16px 16px;
  background: #f4f4f4;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.similar-slider-wrap .portfolio-inner-sl .hidden-cont h3 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
  padding-bottom: 0;
}

.similar-slider-wrap .portfolio-inner-sl .hidden-cont .btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  line-height: 44px;
  font-size: 24px;
}

@media (hover: hover) and (min-width: 992px) {
  .similar-slider-wrap .portfolio-inner-sl:hover .imgs,
  .similar-slider-wrap .portfolio-inner-sl:focus-within .imgs {
    z-index: 2;
    background: transparent;
  }

  .similar-slider-wrap .portfolio-inner-sl:hover .imgs img,
  .similar-slider-wrap .portfolio-inner-sl:focus-within .imgs img {
    height: calc(100% - 84px);
    border-radius: 16px 16px 36px 36px;
  }

  .similar-slider-wrap .portfolio-inner-sl:hover .hidden-cont,
  .similar-slider-wrap .portfolio-inner-sl:focus-within .hidden-cont {
    opacity: 1;
  }

  /* Jelajah: caption selalu tampil — jangan override hover shrink */
  .jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl:hover .imgs img,
  .jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl:focus-within .imgs img {
    height: 100%;
    border-radius: 0;
  }
}

@media (hover: none), (max-width: 991px) {
  .similar-slider-wrap .portfolio-inner-sl .imgs {
    background: transparent;
  }

  .similar-slider-wrap .portfolio-inner-sl .imgs img {
    height: calc(100% - 84px);
    border-radius: 16px 16px 36px 36px;
  }

  .similar-slider-wrap .portfolio-inner-sl .hidden-cont {
    opacity: 1;
  }

  .jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .imgs img {
    height: 100%;
    border-radius: 0;
  }
}

@media (max-width: 575px) {
  .similar-slider-wrap .portfolio-inner-sl .imgs {
    max-height: 220px;
  }

  .jelajah-kota-sec .similar-slider-wrap .portfolio-inner-sl .imgs {
    max-height: none;
  }
}

/* ---------- News cards ---------- */
.single-blog-inner.v3 .conts h2 {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  line-height: 1.35;
  padding-top: 10px;
}

.single-blog-inner.v3 .conts h2 a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.single-blog-inner.v3 .conts .author {
  flex-wrap: wrap;
  gap: 8px;
}

.single-blog-inner.v3 .imgs {
  padding-top: 62%;
}

.single-blog-inner.v3.smaller .imgs {
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .single-blog-inner.v3 {
    max-width: 100%;
  }

  .single-blog-inner.v3 .imgs {
    padding-top: 58%;
  }
}

@media (max-width: 767px) {
  .single-blog-inner.v3.smaller .d-sm-flex {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
  }

  .single-blog-inner.v3.smaller .imgs {
    width: 100% !important;
    padding-top: 56% !important;
  }

  .single-blog-inner.v3.smaller .conts {
    padding-left: 0 !important;
    padding-top: 12px !important;
  }

  .single-blog-inner.v3 .conts .meta li {
    padding-right: 12px;
  }

  .single-blog-inner.v3 .conts .author .read-more {
    font-size: 15px;
  }
}

/* ---------- Service cards ---------- */
.our-services-sec [class*="col-"] > a {
  display: block;
  height: 100%;
}

.single-services-dv {
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single-services-dv:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(6, 97, 94, 0.14);
}

.single-services-dv .cont p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

@media (max-width: 575px) {
  .single-services-dv .imgs {
    padding-bottom: 180px;
  }

  .single-services-dv .cont {
    padding: 18px 18px 22px;
  }
}

/* ---------- Pelayanan cards ---------- */
.how-work-inner-v3 {
  height: 100%;
}

.how-work-inner-v3 h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.3;
}

.how-work-inner-v3 p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.55;
}

@media (max-width: 575px) {
  .how-work-inner-v3 {
    padding: 22px 18px;
  }

  .how-work-inner-v3 .d-sm-flex {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

/* ---------- Map overlay ---------- */
.mapouter {
  display: block !important;
  width: 100%;
}

/* Fade dari background section kontak (#f8f9fa) ke gambar supaya tidak ada garis potong */
.mapouter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #f8f9fa 0%,
    rgba(248, 249, 250, 0.85) 25%,
    rgba(248, 249, 250, 0.45) 55%,
    rgba(248, 249, 250, 0) 100%
  );
}

.mapouter-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.mapouter-link:focus-visible {
  outline: 3px solid #06615E;
  outline-offset: -3px;
}

.map-cta {
  position: absolute;
  left: 48px;
  bottom: 48px;
  z-index: 10;
}

@media (max-width: 767px) {
  .mapouter {
    height: 240px !important;
  }

  .mapouter::before {
    height: 70px;
  }

  .map-cta {
    left: 16px;
    right: 16px;
    bottom: 20px;
  }

  .map-cta .btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
@media (max-width: 767px) {
  .newsletter-form .d-md-flex {
    gap: 16px;
  }

  .newsletter-form .left-content h2 {
    font-size: 1.4rem;
  }

  .newslttr-grp {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .newslttr-grp .form-control,
  .newslttr-grp .btn {
    width: 100%;
    border-radius: 10px;
  }

  .footers .ftr-widget h2 {
    font-size: 1.15rem;
  }
}

/* ---------- Madiun Today cards ---------- */
.mtd-today-section .mtd-today-cta {
  white-space: nowrap;
}

.mtd-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--home-card-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--home-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mtd-news-card:hover,
.mtd-news-card:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--home-card-shadow-hover);
}

.mtd-news-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.mtd-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.mtd-news-card:hover .mtd-news-thumb img {
  transform: scale(1.04);
}

.mtd-news-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: linear-gradient(90deg, #10b1ab 0%, #0f766e 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

.mtd-news-date {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.mtd-news-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mtd-news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mtd-news-author {
  color: #64748b;
  font-size: 0.82rem;
}

.mtd-news-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 700;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.mtd-news-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: #0f766e;
  font-size: 0.88rem;
  font-weight: 600;
}

.mtd-news-card:hover .mtd-news-more {
  gap: 8px;
}

.mtd-news-card.is-skeleton {
  pointer-events: none;
  box-shadow: none;
}

.mtd-news-card.is-skeleton .mtd-news-thumb {
  background: #e2e8f0;
}

@media (max-width: 767px) {
  .mtd-today-section .d-flex.align-items-end {
    align-items: flex-start !important;
  }

  .mtd-today-section .mtd-today-cta {
    width: 100%;
    text-align: center;
  }

  .mtd-news-body {
    padding: 14px;
  }

  .mtd-news-body h3 {
    font-size: 0.98rem;
  }
}

/* ---------- Berita Video cards ---------- */
.video-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--home-card-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--home-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-news-card:hover,
.video-news-card:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--home-card-shadow-hover);
}

.video-news-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.video-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.video-news-card:hover .video-news-thumb img {
  transform: scale(1.04);
}

.video-news-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.video-news-play i {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: #0f766e;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.video-news-card:hover .video-news-play i {
  transform: scale(1.08);
}

.video-news-date {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.video-news-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.video-news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.video-news-badge {
  display: inline-flex;
  align-items: center;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

.video-news-author {
  color: #64748b;
  font-size: 0.82rem;
}

.video-news-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 700;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-news-card.is-skeleton {
  pointer-events: none;
  box-shadow: none;
}

.video-news-card.is-skeleton .video-news-thumb {
  background: #e2e8f0;
}

@media (max-width: 767px) {
  .video-news-play i {
    width: 48px;
    height: 48px;
    font-size: 1.7rem;
  }

  .video-news-body {
    padding: 14px;
  }

  .video-news-body h3 {
    font-size: 0.98rem;
  }

  .video-news-section .d-flex.align-items-end,
  .mtd-today-section .d-flex.align-items-end {
    align-items: flex-start !important;
  }

  .video-news-section .video-news-cta,
  .mtd-today-section .mtd-today-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ---------- Blog section rhythm ---------- */
.blog-sec .sec-title.text-center {
  margin-bottom: 8px;
}

.blog-sec .left-content-faq_v2 .sec-title.v2 h2 {
  margin-bottom: 0;
}

.blog-sec .berita-pemerintahan-section {
  margin-top: clamp(40px, 5vw, 64px) !important;
  margin-bottom: 0;
  padding-bottom: clamp(12px, 2vw, 24px);
}

.blog-sec .mtd-today-section {
  margin-top: clamp(80px, 10vw, 120px) !important;
  padding-top: clamp(12px, 2vw, 24px);
}

.blog-sec .video-news-section {
  margin-top: clamp(80px, 10vw, 120px) !important;
  padding-top: clamp(12px, 2vw, 24px);
  padding-bottom: clamp(8px, 1.5vw, 16px);
}

@media (max-width: 767px) {
  .blog-sec .mtd-today-section,
  .blog-sec .video-news-section {
    margin-top: clamp(56px, 12vw, 80px) !important;
  }
}

@media (max-width: 991px) {
  .blog-sec .single-blog-inner .imgs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ---------- Fun fact ---------- */
.fun-fact-sec {
  margin-top: clamp(40px, 6vw, 80px) !important;
  padding-bottom: clamp(40px, 5vw, 60px) !important;
}

.singl-fact-count h2,
.singl-fact-count .counter {
  font-size: clamp(1.45rem, 3.6vw, 2.6rem) !important;
  line-height: 1.15 !important;
  word-break: break-word;
}

.singl-fact-count p {
  font-size: clamp(0.85rem, 2vw, 1rem);
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .singl-fact-count .d-flex {
    gap: 12px;
  }
}

/* ---------- Services grid ---------- */
.our-services-sec .single-services-dv {
  border-radius: var(--landing-radius);
  overflow: hidden;
}

.our-services-sec .single-services-dv .cont h2 {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.3;
}

.our-services-sec .single-services-dv .cont p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* ---------- Contact / widgets ---------- */
rssapp-imageboard {
  display: block;
  width: 100%;
  overflow: hidden;
}

/* GPR optimal: min 300px, best 500px, max 780px — height otomatis */
.gpr-sidebar-col {
  width: 100%;
  max-width: 500px;
  flex: 0 0 auto;
}

@media (min-width: 992px) {
  .gpr-sidebar-col {
    width: 500px;
    max-width: 500px;
  }

  .contact-help-col {
    flex: 1 1 0;
    min-width: 0;
  }
}

.gpr-widget-card .card-body {
  padding: 16px;
}

#gpr-kominfo-widget-container {
  display: block;
  width: 100%;
  min-width: 280px;
  max-width: 500px;
  height: auto !important;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.balai-map-card {
  overflow: hidden;
}

.balai-kota-map {
  width: 100%;
  min-height: 280px;
  height: 320px;
  background: #e2e8f0;
}

.balai-kota-map .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
}

@media (min-width: 768px) {
  .balai-kota-map {
    min-height: 360px;
    height: 100%;
  }

  .balai-map-card .card-body {
    min-height: 420px;
  }
}

.contact-us-pg {
  padding-left: var(--landing-pad-x) !important;
  padding-right: var(--landing-pad-x) !important;
}

.contact-us-pg .card {
  border-radius: 16px;
  height: 100%;
}

.contact-us-pg .card-body {
  padding: clamp(18px, 3vw, 28px);
}

.contact-us-pg .single-con-dts a {
  word-break: break-word;
}

@media (max-width: 991px) {
  .gpr-sidebar-col {
    max-width: min(500px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .balai-kota-map {
    height: 280px;
  }
}

/* ---------- Footer spacing ---------- */
.footers {
  overflow-x: hidden;
}

.footers .container {
  padding-left: var(--landing-pad-x);
  padding-right: var(--landing-pad-x);
}

/* ---------- Mobile quick action ---------- */
.mobile-quick-cta {
  display: none;
}

@media (max-width: 991px) {
  .mobile-quick-cta {
    display: flex;
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1040;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #10b1ab -0.02%, #fbd826 100.06%);
    color: #fff;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(6, 97, 94, 0.28);
    text-decoration: none;
    max-width: calc(100vw - 32px);
  }

  .mobile-quick-cta:hover,
  .mobile-quick-cta:focus {
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .video-news-card:hover,
  .mtd-news-card:hover,
  .single-services-dv:hover {
    transform: none;
  }
}
