@import url("https://fonts.googleapis.com/css2?family=Karma:wght@300;400;500;600;700&family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap");

:root {
  --fontXL: 4rem;
  --fontL: 2rem;
  --fontB: 1.5rem;
  --fontMM: 1.2rem;
  --fontM: 1rem;
  --fontS: 0.85rem;
  --primary-color: #133e87;
  --secondary-color: #608bc1;
  --third-color: #cbdceb;
  --light-color: #f3f3e0;
  --white-color: #ffffff;
  --primary-transparent: #133e8782;
  --accent-color: #608bc1;
  --gradient-primary: linear-gradient(135deg, #133e87 0%, #608bc1 100%);
  --gradient-secondary: linear-gradient(135deg, #608bc1 0%, #cbdceb 100%);
  --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
}


html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent 60% !important;
  box-sizing: border-box;
}
.layanan-page * {
  box-sizing: border-box;
  font-family: "Playfair Display SC";
  scroll-behavior: smooth;
  scroll-margin-top: 5rem;
}

.layanan-page body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  background: transparent !important;
}

/* Reset list styles across Layanan page (headers, nav, and anywhere) */
.layanan-page ul,
.layanan-page ol {
  list-style: none !important;
  margin: 0;
  padding-left: 0;
}

/* Header Section */
.layanan-page .header {
  background: url("../IMG/Layanan.jpeg") center center / cover no-repeat fixed;
  position: relative;
  min-height: 100vh;
  width: 100vw;

  /* 🪄 Make image clearly visible */
  filter: brightness(1) contrast(1.1); /* boost clarity */

  /* Layout */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.layanan-page .header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(19, 62, 135, 0.85) 0%,
    rgba(96, 139, 193, 0.75) 50%,
    rgba(19, 62, 135, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  padding: 20px 50px;
  z-index: 3;
  animation: overlayPulse 25s ease-in-out infinite alternate;
}
.header-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 40px;
  align-items: center;
  justify-items: stretch;
  padding: 30px 0 30px 0;
  min-height: 70vh;
}
.header-top {
  width: 100%;
}

.header-title {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  width: fit-content;
}

.header-title .desa-name {
  font-size: 1em;
  font-weight: bold;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 3;
}

.header-title .kabupaten-name {
  font-size: 0.8em;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  opacity: 0.95;
  position: relative;
  z-index: 3;
}

.layanan-page .header-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Match the hero buttons on index.html */
.layanan-page .header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  min-width: 160px;
  font-family: "Playfair Display SC", serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: var(--white-color);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.layanan-page .header-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transition: left 0.45s;
}
.layanan-page .header-btn:hover::before {
  left: 100%;
}

/* active button becomes the primary filled style */
.layanan-page .header-btn.active,
.layanan-page .header-btn.primary {
  background: var(--white-color);
  color: var(--primary-color);
  border-color: var(--white-color);
}

.layanan-page .header-btn.secondary {
  background: transparent;
  color: var(--white-color);
  border-color: rgba(255, 255, 255, 0.9);
}

.layanan-page .header-btn:hover,
.layanan-page .header-btn.active:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.layanan-page .header-scroll {
  position: absolute;
  bottom: 2rem;

  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.layanan-page .header-scroll i {
  font-size: 2rem;
  color: var(--white-color);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-5px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}
.layanan-page .header-top {
  padding: 16px 0 0 0;
}
.layanan-page .header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}
.layanan-page .header-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1.6px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.13);
  object-fit: cover;
  backdrop-filter: blur(1px);
}
.layanan-page .header-title {
  line-height: 1.1;
}

/* Ensure the brand title stays stacked and slightly bigger on Layanan header */
.layanan-page .header-top .header-brand .header-title {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 16px;
}
.layanan-page .header-top .header-brand .header-title .desa-name {
  font-size: 1.05rem;
}
.layanan-page .header-top .header-brand .header-title .kabupaten-name {
  font-size: 0.9rem;
}

.layanan-page .main-title-1 h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  font-weight: 700;
  margin-top: 50vh;
  margin-bottom: 0rem;
}
.layanan-page .header-buttons {
  width: auto;
  height: auto;
  margin-top: 1.5rem;
}
.layanan-page .hero-tagline {
  font-weight: 500;
  max-width: 90%;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 1.2rem;
  padding: 0.5em 1.5em;
  box-shadow: 0 1px 6px rgba(19, 62, 135, 0.07);
  backdrop-filter: blur(2px);
  letter-spacing: 0.03em;
  margin-top: 30px;
  font-size: 1.08em;
  color: var(--white-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  background: rgba(255, 255, 255, 0.16);
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
}

.layanan-page .scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1200;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Sticky nav and header shrink behaviour */
.nav-wrapper {
  position: relative;
  z-index: 1100;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.nav-wrapper.sticky {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.nav-wrapper.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.layanan-page .header.small {
  padding: 8px 0;
  min-height: 60px;
}
.layanan-page .main-title {
  position: relative; /* allow header shrink without fixed overlay issues */
  top: 0;
  margin-top: 0;
}

/* When header shrinks, reduce logo/title sizes */
.layanan-page .header.small .header-logo {
  width: 56px;
  height: 56px;
}
.layanan-page .header.small .header-title .desa-name {
  font-size: 0.95rem;
}
.layanan-page .header.small .header-title .kabupaten-name {
  font-size: 0.75rem;
}

/* Ensure main content moves up when nav becomes sticky (avoid large gap) */
.layanan-page .main-content {
  margin-top: 0;
}
.layanan-page .scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Facilities pane collapsed behavior for screens narrower than ultra-desktop */
@media (max-width: 1919px) {
  .facilities-pane .facility-grid {
    max-height: 340px; /* show a few cards, then collapse */
    overflow: hidden;
    position: relative;
    transition: max-height 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
  }

  /* subtle fade at the bottom to indicate more content */
  .facilities-pane .facility-grid::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.95) 100%
    );
  }

  .facilities-pane.expanded .facility-grid {
    max-height: 2000px; /* large enough to show all */
  }

  .facilities-toggle-btn {
    display: inline-block;
    width: calc(100% - 32px);
    margin: 12px 16px 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .facilities-toggle-btn:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-light);
  }
}
.layanan-page .scroll-arrow span {
  display: block;
  width: 24px;
  height: 24px;
  border-bottom: 3px solid var(--white-color);
  border-right: 3px solid var(--white-color);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s infinite;
  will-change: transform, opacity;
}
.layanan-page .scroll-arrow span:nth-child(2) {
  animation-delay: 0.6s;
}
.layanan-page .scroll-arrow span:nth-child(3) {
  animation-delay: 0.6s;
}
.layanan-page .scroll-text {
  color: var(--white-color);
  font-size: 0.9em;
  font-weight: 500;
  margin: 0;
  opacity: 0.9;
}

@keyframes scrollBounce {
  0% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.78;
  }
  35% {
    transform: rotate(45deg) translateY(-12px);
    opacity: 1;
  }
  60% {
    transform: rotate(45deg) translateY(-6px);
    opacity: 0.92;
  }
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.78;
  }
}

/* Focus + active styles for accessibility */
.layanan-page .scroll-indicator:focus,
.layanan-page .scroll-indicator:focus-visible {
  outline: none;
  box-shadow: 0 8px 24px rgba(19, 62, 135, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%) translateY(-4px) scale(1.02);
}

.layanan-page .scroll-indicator:active {
  transform: translateX(-50%) translateY(-2px) scale(0.98);
}

/* Small ripple for click feedback */
.scroll-indicator .ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -50%) scale(0);
  left: 50%;
  top: 50%;
  pointer-events: none;
  transition: transform 260ms ease-out, opacity 260ms ease-out;
  opacity: 0;
}

/* responsive rules consolidated to bottom of file */

/* Floating Back to Top Button */
.layanan-page .back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 999;
}
.layanan-page .back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}
.layanan-page .back-to-top:focus {
  outline: 3px solid rgba(255, 255, 255, 0.18);
}

/* Navbar removed from this file */
/* Main Content */
.layanan-page .main-content {
  background: var(--light-color);
  width: 100vw;
}

.layanan-page .main-title-1 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: transparent; /* removed glass background */
  color: #dfe9ff;
  padding: 24px 8px;
  margin-top: 10vh;
  border-radius: 20px;
  border: none;
  box-shadow: none;
  max-width: 900px;
  max-height: 300px;
}

.layanan-page .main-title-1 h1 {
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-weight: 300;
  margin: 0;
  line-height: 1.05;
  letter-spacing: 3px;
  position: relative;
  z-index: 4;

  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f0f8ff 25%,
    #e6f3ff 50%,
    #ffffff 75%,
    #f0f8ff 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.layanan-page .main-title-1 h1 span {
  font-weight: 500;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff;
}
.layanan-page .content-section {
  display: none;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.layanan-page .content-section.active {
  display: block;
}

/* Desktop / Default */
.layanan-page .section-header {
  text-align: center !important;
  margin-bottom: 1rem !important;
  margin-top: -14vh !important; /* your original */
  position: relative !important;
  z-index: 5 !important;
}

/* Prevent covering nav-wrapper on screens below 1024px */
@media screen and (max-width: 1024px) {
  .layanan-page .section-header {
    margin-top: -6vh !important;
  }
}

/* Tablets */
@media screen and (max-width: 768px) {
  .layanan-page .section-header {
    margin-top: -2vh !important;
  }
}

/* Phones (No overlap allowed) */
@media screen and (max-width: 480px) {
  .layanan-page .section-header {
    margin-top: 2vh !important;   /* safely under navbar */
  }
}

/* Tiny Phones */
@media screen and (max-width: 360px) {
  .layanan-page .section-header {
    margin-top: 3vh !important;   /* even safer */
  }
}


.layanan-page .section-title {
  font-size: var(--fontL);
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.layanan-page .section-title i {
  color: var(--accent-color);
}

.layanan-page .section-description {
  font-size: var(--fontMM);
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0 auto;
}

/* Products Grid */
.layanan-page .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.layanan-page .product-card {
  background: var(--white-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  position: relative;
}

.layanan-page .product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.layanan-page .product-card.featured {
  border: 3px solid var(--accent-color);
}

.layanan-page .product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-color);
  color: var(--white-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.layanan-page .product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.layanan-page .product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.layanan-page .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.layanan-page .product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 62, 135, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.layanan-page .product-overlay i {
  color: var(--white-color);
  font-size: 2rem;
}

.layanan-page .product-card:hover .product-image img {
  transform: scale(1.1);
}

.layanan-page .product-card:hover .product-overlay {
  opacity: 1;
}

.layanan-page .product-content {
  padding: 1.5rem;
}

.layanan-page .product-title {
  font-size: var(--fontB);
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.layanan-page .product-description {
  color: var(--secondary-color);
  font-size: var(--fontM);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.layanan-page .product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Facilities Grid */
.layanan-page .facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
  width: 100%;
}

.layanan-page .facility-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(250, 250, 250, 0.98)
  );
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(14, 40, 85, 0.08);
  transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.36s ease, filter 0.36s ease;
  position: relative;
  will-change: transform, box-shadow;
}

.layanan-page .facility-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 20px 50px rgba(14, 40, 85, 0.14);
  filter: saturate(1.02) contrast(1.02);
}

.layanan-page .facility-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.layanan-page .facility-image {
  position: relative;
  height: 220px;
  border-radius: 10%;
  overflow: hidden;
}

.layanan-page .facility-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), filter 0.4s ease;
  transform-origin: center center;
}

.layanan-page .facility-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 62, 135, 0.22) 0%,
    rgba(19, 62, 135, 0.42) 60%,
    rgba(19, 62, 135, 0.65) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.36s ease;
  transform: translateY(6px);
}

.layanan-page .facility-overlay i {
  color: var(--white-color);
  font-size: 2.2rem;
  transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.28s ease;
}

.layanan-page .facility-card:hover .facility-image img {
  transform: scale(1.08) translateZ(0);
}

.layanan-page .facility-card:hover .facility-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Animated icon pop on hover */
.layanan-page .facility-card:hover .facility-overlay i {
  transform: scale(1.18) translateY(-6px);
  opacity: 1;
}

.layanan-page .facility-content {
  padding: 1.25rem 1.4rem;
}

.layanan-page .facility-title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.layanan-page .facility-description {
  font-size: 0.95rem;
  color: var(--secondary-color);
}

/* Entrance animation helpers for facility cards */
.layanan-page .facility-card.hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.995);
  transition: opacity 560ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 560ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.layanan-page .facility-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Subtle inner glow on hover for more depth */
.layanan-page .facility-card::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  bottom: 8px;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 -6px 24px rgba(96, 139, 193, 0.03);
  transition: box-shadow 0.36s ease;
}
.layanan-page .facility-card:hover::after {
  box-shadow: inset 0 -14px 44px rgba(96, 139, 193, 0.06);
}
/* ======= Layanan Features Section ======= */
.layanan-features {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #133e87 0%, #608bc1 100%);
  border-radius: 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  margin-top: 5vh;
}
.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(
    rgba(214, 227, 243, 0.95) 0%,
    180deg,
    rgba(0, 102, 255, 106) 100%
  );
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  padding: 20px 20px;
  max-width: 300px;
  margin: 0 auto;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.person-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  margin-bottom: 20px;
}
.feature-card {
  flex: 1;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 80px 5px;
  text-align: center;
  color: #ffffff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.feature-icon {
  font-size: 2.2rem;
  color: #dfe9ff;
  display: inline-flex;
  align-items: center;
  margin-bottom: 2vh;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
.layanan-page .feature-card .layanan-feature-number {
  position: absolute;
  top: 18px;
  left: 50%;
  /* center and scale from center without affecting layout */
  transform: translateX(-50%) scale(0.78);
  transform-origin: center center;
  box-sizing: border-box;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; /* reserve max size to avoid reflow */
  height: 72px;
  background: rgba(255, 215, 0, 0.06);
  border-radius: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease,
    border-radius 180ms ease;
  z-index: 40; /* sit above card content */
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.feature-text {
  font-size: 1.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ✨ Glow animation */
@keyframes pulseGlow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 1);
  }
}

.layanan-page .feature-card:hover .layanan-feature-number {
  animation: pulseGlow 1.5s infinite;
  /* keep centered while scaling */
  transform: translateX(-50%) scale(1);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.layanan-page .feature-card .layanan-feature-number:active,
.layanan-page .feature-card .layanan-feature-number:focus {
  transform: translateX(-50%) scale(0.96) !important;
  outline: none;
}

.footer-column a, .footer-bottom p{ 
  font-family: 'Karma', serif !important;
}
/* 📱 Responsive */
@media (max-width: 768px) {
  .layanan-features {
    flex-direction: column;
    gap: 1.5rem;
    padding: 40px 15px;
  }
}

/* Decorative Section */
.layanan-page .hiasan {
  --bubble-left: 38%;
  --bubble-bottom: -19%;
  --bubble-size: 120px;
  --snack-size: 100px;
  position: relative;
  background-color: orange; /* fallback if gradient not shown */
  width: 100vw;
  min-height: 300px;
  overflow: visible;
  margin-bottom: -60px;
  z-index: 50;
}

/* background gradient sunset */
.sunset-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0b1b2a 0%,
    #2b3c6b 10%,
    #ff9e6a 55%,
    #ff6b3c 70%,
    #30142a 100%
  );
  z-index: 1;
  overflow: hidden;
}

/* Stars */
.sunset-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  background: rgb(255, 255, 255);
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
  box-shadow: 50px 80px white, 120px 200px white, 300px 150px white,
    400px 50px white, 600px 180px white, 700px 120px white, 850px 220px white,
    950px 90px white, 1100px 160px white, 1250px 70px white;

  /* repeat with many values for more stars */
  z-index: 2;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.sunset-bg::before {
  animation: twinkle 2s infinite ease-in-out alternate;
}

/* sun */
.sun {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #fff6d4 0%,
    #ffd57a 25%,
    #ff9e5b 55%,
    rgba(255, 140, 60, 0.4) 80%
  );
  box-shadow: 0 0 80px 30px rgba(255, 140, 60, 0.25);
  z-index: 2;
}

/* cloud layers */
.clouds {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.cloud {
  position: absolute;
  background: #fff;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(240, 240, 240, 0.9)
  );
  border-radius: 50px;
  height: 60px;
  width: 180px;
  filter: blur(0.6px);
  opacity: 0.9;
  animation: moveClouds 50s linear infinite;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  width: 50%;
  height: 50%;
  border-radius: 50%;
}
.cloud::before {
  top: -20px;
  left: 10px;
}
.cloud::after {
  top: -15px;
  right: 15px;
}

/* animations */
@keyframes moveClouds {
  0% {
    transform: translateX(-200px);
  }
  100% {
    transform: translateX(100vw);
  }
}

.cloud.fast {
  animation-duration: 25s;
  opacity: 1;
}
.cloud.slow {
  animation-duration: 70s;
  opacity: 0.8;
}

.layanan-page .hiasan img {
  pointer-events: none;
  user-select: none;
  transition: transform 0.3s ease;
  animation: moveClouds 20s, shipShake 3s ease-in-out infinite;
}

/* Ship shake keyframes */
@keyframes shipShake {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-2px) rotate(-1deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(2px) rotate(1deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}
.layanan-page .hiasan-ship {
  position: absolute;
  left: 42%;
  top: 90px;
  width: 200px;
  z-index: 50;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
  animation: floatShip 6s ease-in-out infinite;
}

.layanan-page .hiasan-kue {
  position: absolute;
  /* Center the snack over bubble2 using variables */
  left: var(--bubble-left);
  transform: translateX(-50%);
  /* position the snack slightly above the bubble */
  bottom: calc(var(--bubble-bottom) + 8px);
  width: var(--snack-size);
  z-index: 70; /* ensure the kue sits above bubbles */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  animation: floatKue 6s ease-in-out infinite;
}

.layanan-page .hiasan-bubble2 {
  position: absolute;
  left: var(--bubble-left);
  transform: translateX(-50%);
  bottom: var(--bubble-bottom);
  width: var(--bubble-size);
  z-index: 10; /* keep bubble behind the kue */
  opacity: 0.95;
  animation: floatBubble2 6s ease-in-out infinite;
}
/* Wave Container */
.layanan-page .cta-waves {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 130px;
  overflow: hidden;
  line-height: 0;
  opacity: 1;
  transition: opacity 0.8s ease-out;
  transform: translateZ(0);
  will-change: opacity;
  z-index: 5;
}

.layanan-page .cta-waves.hide {
  opacity: 0;
}

/* Individual Wave Layers */
.layanan-page .cta-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(0); /* Hardware acceleration */
  will-change: transform;
}

.layanan-page .cta-wave svg {
  position: relative;
  display: block;
  width: 200%; /* exact 2x for seamless -50% loop */
  height: 120px; /* Match container height */
  border: none;
  outline: none;
  backface-visibility: hidden;
  transform: translateZ(0); /* Hardware acceleration */
  will-change: transform;
}

/* Wave Layer 1 - Front layer (darkest, fastest) */
.layanan-page .wave-layer-1 {
  z-index: 30;
}
.layanan-page .wave-layer-2 {
  z-index: 20;
}
.layanan-page .wave-layer-3 {
  z-index: 10;
}
.layanan-page .wave-layer-1 svg {
  color: #0a2a5c;
  animation: waveMove1 8s linear infinite;
  width: 200vw; /* Double the viewport width for smooth looping */
  min-width: 200%;
  max-width: none;
  display: block;
  border: none;
  outline: none;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
  margin-left: -1px; /* Prevent visible seams */
}

.layanan-page .wave-layer-2 svg {
  color: #133e87;
  animation: waveMove2 16s linear infinite reverse;
  width: 200vw;
  min-width: 200%;
  max-width: none;
  display: block;
  border: none;
  outline: none;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
  margin-left: -1px;
}

.layanan-page .wave-layer-3 svg {
  color: #608bc1;
  animation: waveMove3 24s linear infinite;
  width: 200vw;
  min-width: 200%;
  max-width: none;
  display: block;
  border: none;
  outline: none;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
  margin-left: -1px;
}

@keyframes waveMove1 {
  0% {
    transform: translateX(0) translateZ(0);
  }
  100% {
    transform: translateX(-50%) translateZ(0);
  }
}
@keyframes waveMove2 {
  0% {
    transform: translateX(0) translateZ(0);
  }
  100% {
    transform: translateX(-50%) translateZ(0);
  }
}
@keyframes waveMove3 {
  0% {
    transform: translateX(0) translateZ(0);
  }
  100% {
    transform: translateX(-50%) translateZ(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .layanan-page .wave-layer-1 svg,
  .layanan-page .wave-layer-2 svg,
  .layanan-page .wave-layer-3 svg {
    animation: none;
    transform: translateX(66%) translateZ(0); /* Static position showing partial wave */
  }

  .layanan-page .cta-waves {
    animation: none;
  }
}
/* === Unified Bold Title Component (Layanan/UMKM pages) === */
.header-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  margin: 6px 0 14px;
  font-family: "Playfair Display", serif;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--primary-color);
  background: linear-gradient(#ffffffcc, #ffffffcc) padding-box,
    linear-gradient(135deg, var(--secondary-color), var(--primary-color))
      border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.header-title::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    #fff 0%,
    #fff 25%,
    var(--secondary-color) 26%,
    var(--primary-color) 100%
  );
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.25);
}
.header-title::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--third-color),
    var(--secondary-color)
  );
  background-size: 200% 100%;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
}

.section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(#ffffffcc, #ffffffcc) padding-box,
    linear-gradient(135deg, var(--secondary-color), var(--third-color))
      border-box;
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.1);
}
.section-title::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    #fff 0%,
    #fff 25%,
    var(--secondary-color) 26%,
    var(--third-color) 100%
  );
}
.section-title::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--third-color),
    var(--secondary-color)
  );
}

@media (prefers-reduced-motion: reduce) {
  .header-title::after {
    animation: none;
  }
}

/* Force remove ::before for Layanan/UMKM page titles */
h2.section-title::before,
.layanan-page .section-title::before,
.header-title::before,
.layanan-page .header-title::before {
  content: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* ==========================
   📱 Mobile Bottom Navigation
   ========================== */

/* Hide on desktop */
@media (min-width: 901px) {
}

/* 📱 Mobile-specific adjustments (max-width: 480px) */
@media (max-width: 480px) {
  /* Stack header overlay and create a 3rem gap so main-title sits below header-top */
  .layanan-page .header-overlay {
    display: grid !important;
    grid-template-rows: auto auto 1fr !important; /* header-top, header-buttons/brand, rest */
    row-gap: 3rem !important; /* user requested 3rem gap */
    padding: 10px 14px !important;
  }

  .layanan-page .header-brand {
    gap: 6px !important;
  }

  .layanan-page .header-logo {
    width: 48px !important;
    height: 48px !important;
  }

  .layanan-page .header-title {
    padding: 6px 10px !important;
  }

  .layanan-page .header-top .header-brand .header-title .desa-name {
    font-size: 0.9rem !important;
  }

  .layanan-page .header-top .header-brand .header-title .kabupaten-name {
    font-size: 0.75rem !important;
  }

  /* Nudge main-title slightly right and ensure it's lower under the header-top */
  .layanan-page .main-title-1 {
    transform: translateX(6%) !important;
    margin-top: 0 !important;
    height: auto !important;
    min-height: fit-content !important;
    font-size: 1.1rem !important;
    line-height: 1.45 !important;
    padding: 18px 18px !important;
    max-width: calc(100% - 40px) !important;
    text-align: center !important;
    background: transparent !important; /* removed glass background on mobile */
    /* remove backdrop blur that created the glass effect */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Ensure the hero H1 wraps and doesn't overlap the header; slightly reduce on phones */
  .layanan-page .main-title-1 h1 {
    font-size: clamp(1.8rem, 8vw, 3rem) !important;
    line-height: 1.05 !important;
    margin-top: 0 !important;
    letter-spacing: 1px !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  .layanan-page .main-title-1 h1 {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
      0 0 30px rgba(255, 255, 255, 0.3) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .layanan-page .header {
    position: relative !important;
  }

  .layanan-page .header-overlay {
    z-index: 1 !important;
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
    row-gap: 3rem !important; /* create 3rem vertical gap between header rows */
  }

  .layanan-page .header-content {
    z-index: 2 !important;
    position: relative !important;
    margin-top: -10vh !important;
  }

  .layanan-page .hero-tagline {
    font-size: 0.9rem !important;
    padding: 8px 16px !important;
    margin-top: 20px !important;
    max-width: 95% !important;
  }

  .layanan-page .header-buttons {
    gap: 0.5rem !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .layanan-page .header-btn {
    padding: 8px 16px !important;
    min-width: 140px !important;
    font-size: 0.9rem !important;
    width: 100% !important;
    max-width: 200px !important;
  }

  .layanan-page .content-section {
    padding: 1.5rem 0.8rem !important;
  }

  .layanan-page .section-title {
    font-size: 1.3rem !important;
    padding: 6px 12px !important;
  }

  .layanan-page .section-description {
    font-size: 0.9rem !important;
    padding: 0 10px !important;
  }

  .layanan-page .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
  }

  .layanan-page .product-card {
    margin: 0 auto !important;
    max-width: 300px !important;
  }

  .layanan-page .product-image {
    height: 180px !important;
  }

  .layanan-page .product-content {
    padding: 1rem !important;
  }

  .layanan-page .product-title {
    font-size: 1.1rem !important;
  }

  .layanan-page .product-description {
    font-size: 0.9rem !important;
  }

  .layanan-page .facilities-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .layanan-page .facility-card {
    margin: 0 auto !important;
    max-width: 300px !important;
  }

  .layanan-page .facility-image {
    height: 160px !important;
  }

  .layanan-page .facility-content {
    padding: 1rem !important;
  }

  .layanan-page .facility-title {
    font-size: 1.1rem !important;
  }

  .layanan-page .facility-description {
    font-size: 0.9rem !important;
  }

  .layanan-page .hiasan {
    min-height: 200px !important;
    margin-bottom: -40px !important;
  }

  .layanan-page .hiasan-ship {
    width: 120px !important;
    top: 70px !important;
    left: 38% !important;
  }

  .layanan-page .sun {
    width: 80px !important;
    height: 80px !important;
    bottom: 8% !important;
  }

  .layanan-page .cloud {
    height: 40px !important;
    width: 120px !important;
  }



  .layanan-page .scroll-indicator {
    bottom: 20px !important;
  }

  .layanan-page .scroll-arrow span {
    width: 18px !important;
    height: 18px !important;
  }

  .layanan-page .scroll-text {
    font-size: 0.8rem !important;
  }

  .layanan-page .back-to-top {
    width: 40px !important;
    height: 40px !important;
    right: 12px !important;
    bottom: 12px !important;
    border-radius: 8px !important;
  }
  /* Header content layout for very small screens */
  .header-content {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 20px 0 !important;
  }

  /* Ensure text doesn't overflow on very small screens */
  .layanan-page .main-title-1 h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Adjust font sizes for better readability */
  .layanan-page body {
    font-size: 14px;
  }

  /* Improve touch targets */
  .layanan-page .header-btn,
  .layanan-page .product-card,
  .layanan-page .facility-card {
    min-height: 44px; /* Minimum touch target size */
  }
}

/* Additional ultra-small screen adjustments (max-width: 360px) */
@media (max-width: 360px) {
  .layanan-page .main-title-1 h1 {
    font-size: 1.6rem !important;
  }

  .layanan-page .header-btn {
    min-width: 120px !important;
    font-size: 0.85rem !important;
  }

  .layanan-page .products-grid,
  .layanan-page .facilities-grid {
    grid-template-columns: 1fr !important;
  }

  .layanan-page .product-card,
  .layanan-page .facility-card {
    max-width: 260px !important;
  }
}

/* 📱 Responsive adjustments for phones (max 600px) */
@media (max-width: 768px) {
  /* Make sure main content sits above the decorative background */
  .layanan-page .main-content {
    position: relative !important;
    z-index: 20 !important;
    margin-top: 0 !important;
    padding-bottom: 120px !important; /* Add space before footer */
  }

   /* Make the wave container visible and properly placed */


  /* Ensure decoration section doesn’t hide it */
  .layanan-page .hiasan {
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
    margin-bottom: 0 !important;
  }

  /* Footer spacing to prevent overlap */
  .layanan-page footer,
  .layanan-page .footer-container {
    position: relative !important;
    z-index: 10 !important;
  }
  .layanan-page .header-overlay {
    padding: 12px 14px;
  }
  .layanan-page .header-brand {
    gap: 6px;
  }
  .layanan-page .header-logo {
    width: 56px;
    height: 56px;
  }
  .layanan-page .header-title {
    padding: 8px 12px;
  }
  .layanan-page .header-top .header-brand .header-title .desa-name {
    font-size: 0.95rem;
  }
  .layanan-page .header-top .header-brand .header-title .kabupaten-name {
    font-size: 0.8rem;
  }

  .layanan-page .content-section {
    padding: 2rem 1rem;
  }
  .layanan-page .section-title {
    font-size: 1.2rem;
  }
  .layanan-page .section-description {
    font-size: 0.95rem;
  }

  .layanan-page .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.7rem;
  }
  .layanan-page .product-image {
    height: 140px;
  }
  .layanan-page .facilities-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.7rem;
  }

  .layanan-page .header-btn {
    padding: 8px 10px;
    min-width: 100px;
    font-size: 0.95rem;
  }
  .layanan-page .cta-waves {
    z-index: 5;
    margin-top: -600px;
    padding: auto;
  }
@media (max-width: 534px){
    .layanan-page .cta-waves {
    margin-top: -660px;
  }


}

@media (max-width: 520px){
    .layanan-page .cta-waves {
      z-index: 6;
    margin-top: -500px;
  }


}

@media (max-width: 480px){
    .layanan-page .cta-waves {
    margin-top: -580px;
  }


}

@media (max-width: 470px){
    .layanan-page .cta-waves {
    margin-top: -600px;
  }


}

@media (max-width: 360px){
    .layanan-page .cta-waves {
    margin-top: -640px;
  }


}

}
  .layanan-page .footer-container{
    margin: 5vh;
  }
/* 💻 Responsive adjustments for tablets (max 992px) */
@media (max-width: 992px) {
  .layanan-page .header-overlay {
    padding: 16px 20px;
  }
  .layanan-page .header-brand {
    gap: 8px;
  }
  .layanan-page .header-logo {
    width: 64px;
    height: 64px;
  }
  .layanan-page .header-title {
    padding: 10px 14px;
  }
  .layanan-page .header-top .header-brand .header-title .desa-name {
    font-size: 1rem;
  }
  .layanan-page .header-top .header-brand .header-title .kabupaten-name {
    font-size: 0.85rem;
  }

  .layanan-page .main-title-1 {
    align-items: center;
    text-align: center;
    max-width: 90%;
    margin-top: 5vh;
    padding: 18px 20px;
  }
  .layanan-page .content-section {
    padding: 3rem 1.25rem;
  }
  .layanan-page .section-title {
    font-size: 1.6rem;
  }
  .layanan-page .section-description {
    font-size: 1rem;
  }

  .layanan-page .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }
  .layanan-page .product-image {
    height: 220px;
  }
  .layanan-page .facilities-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }
  .layanan-page .header-btn {
    padding: 10px 18px;
    min-width: 140px;
  }
.layanan-page .cta-waves {
    z-index: 5;
  }
  /* Hiasan size for tablet */
  .layanan-page .hiasan {
    --bubble-left: 42%;
    --bubble-bottom: -14%;
    --bubble-size: 110px;
    --snack-size: 90px;
  }
}
/* Desktop enhancements: make images wider and more prominent on large screens */
@media (min-width: 1200px) and (min-width: 1920px) and (max-width: 2560px) {
  .main {
    max-width: 2200px;
    grid-template-columns: 1.8fr 1fr;
    gap: 48px;
    padding: 48px 80px;
  }

  .slideshow-container {
    max-width: 1400px;
    padding: 32px 0 48px 0;
  }

  .slide-img {
    height: 880px;
    max-width: 1320px;
    object-fit: cover;
    border-radius: 20px;
  }

  .zoom-img {
    max-width: 94vw;
    max-height: 94vh;
  }

  .slide-wrapper {
    min-height: 760px;
  }

  .product-image,
  .facility-image {
    height: 520px;
  }
}

  .layanan-page .main-title-1 .h1 .hero-tagline .header-buttons{
    margin-top: 30vh;
    
  }
  .slideshow-container {
    max-width: 980px;
    padding: 28px 0 36px 0;
  }
  .slide-img {
    width: 100%;
    height: 480px;
    max-width: 900px;
    object-fit: cover;
    border-radius: 18px;
  }

  .product-image {
    height: 360px;
  }
  .product-image img {
    height: 100%;
    object-fit: cover;
  }

  .facility-image {
    height: 320px;
  }
  .facility-image img {
    height: 100%;
    object-fit: cover;
  }

  /* Make overall content, cards and fonts larger but flexible using clamp */
  .layanan-page {
    --scale-factor: 5.08;
    font-size: clamp(1rem, 1rem + 0.4vw, 1.05rem);
  }

  .layanan-page .product-title,
  .layanan-page .facility-title,
  .layanan-page .section-title,
  .layanan-page .feature-title {
    font-size: clamp(1.1rem, 1.1rem + 0.8vw, 1.5rem);
  }

  /* Hiasan adjustments for desktop to occupy more space and reduce gaps */
  .layanan-page .hiasan {
    --bubble-left: 48%;
    --bubble-bottom: -8%;
    --bubble-size: 160px;
    --snack-size: 140px;
  }
}

/* Large desktop: further scale for very wide screens (>=1600px) */
@media (min-width: 1600px) {
  .slideshow-container {
    max-width: 1200px;
    padding: 36px 0 52px 0;
  }

  .slide-img {
    height: 640px;
    max-width: 1150px;
    border-radius: 20px;
  }

  .product-image,
  .facility-image {
    height: 520px;
  }

  .products-grid,
  .facilities-grid {
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }

  /* Increase typographic scale but keep flexible */
  .layanan-page {
    font-size: clamp(1.05rem, 1rem + 1vw, 1.15rem);
  }

  .layanan-page .main-title-1 h1 {
    font-size: clamp(3.6rem, 2.8rem + 2.5vw, 5rem);
    margin-top: 36vh;
  }

  /* Hiasan fills more area on large desktops */
  .layanan-page .hiasan {
    --bubble-left: 50%;
    --bubble-bottom: -4%;
    --bubble-size: 220px;
    --snack-size: 180px;
  }

  /* Reduce large empty gaps by increasing container widths */
  .layanan-page .main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 48px;
  }
}


