/* ==========================================================================
   PPTQ Jamal Yusuf Al-Haddad - Official Style
   Design: Warm Orange & Cream Modern Islamic Mobile-First Design System
   Palet: --orange #E85E05; --orange-dark #C44E00; --orange-soft #FDF0E6;
          --white #FFFFFF; --cream #FAF9F5; --ink #1F1E1D; --muted #6B6560
   ========================================================================== */

:root {
  /* Colors */
  --orange: #E85E05;
  --orange-dark: #C44E00;
  --orange-soft: #FDF0E6;
  --white: #FFFFFF;
  --cream: #FAF9F5;
  --ink: #1F1E1D;
  --muted: #6B6560;
  --border: rgba(31, 30, 29, 0.08);
  --border-light: rgba(31, 30, 29, 0.05);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(31, 30, 29, 0.04);
  --shadow-md: 0 8px 24px rgba(232, 94, 5, 0.1);
  --shadow-lg: 0 16px 40px rgba(31, 30, 29, 0.07);
  --shadow-sticky: 0 -4px 20px rgba(31, 30, 29, 0.08);

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', serif;

  /* Spacing & Sizes */
  --touch-target: 48px;
  --container-max: 1140px;
  --bottom-bar-height: 76px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles (Mobile-First 360px+)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  /* 16px min */
  overflow-x: hidden;
  padding-bottom: var(--bottom-bar-height);
  /* Prevent sticky bottom bar from covering content on mobile */
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Touch active feedback (Khusus Tombol/Link Interaktif, BUKAN Elemen Kontainer/Body) */
button:active,
.btn:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

/* Arabic Text Typography */
.arabic-text {
  font-family: var(--font-arabic);
  direction: rtl;
  unicode-bidi: embed;
  line-height: 1.8;
  font-size: 1.25rem;
  color: var(--orange-dark);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.section {
  padding: 4rem 0;
  position: relative;
}

.section-bg-white {
  background-color: var(--white);
}

.section-bg-cream {
  background-color: var(--cream);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--orange);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Buttons & Interactive Elements (Min 48x48px Touch Area)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch-target);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.btn-primary {
  background-color: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232, 94, 5, 0.3);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--orange-dark);
  border: 1.5px solid var(--orange);
}

.btn-soft {
  background-color: var(--orange-soft);
  color: var(--orange-dark);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

@media (hover: hover) {
  .btn-primary:hover {
    background-color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(232, 94, 5, 0.4);
  }

  .btn-secondary:hover {
    background-color: var(--orange-soft);
    transform: translateY(-2px);
  }

  .btn-whatsapp:hover {
    background-color: #20b858;
    transform: translateY(-2px);
  }
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.35s ease;
  padding: 10px 0;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.site-header .brand-name {
  color: var(--ink);
  transition: color 0.3s ease;
}

.site-header.scrolled .brand-name {
  color: var(--ink);
}

.site-header .desktop-nav-links a {
  color: var(--ink);
  transition: color 0.2s ease;
}

.site-header.scrolled .desktop-nav-links a {
  color: var(--ink);
}

.site-header .desktop-nav-links a:hover {
  color: var(--orange);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--touch-target);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: clamp(0.92rem, 3.2vw, 1.05rem);
  font-weight: 800;
  line-height: 1.15;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Desktop Menu (Hidden on mobile) */
.desktop-nav {
  display: none;
}

/* Hamburger Button (Mobile) */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  border-radius: var(--radius-sm);
  background-color: var(--orange-soft);
  color: var(--orange-dark);
  padding: 10px;
  z-index: 1002;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Fullscreen Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 24px 40px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.35s;
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--touch-target);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  background-color: var(--orange-soft);
  color: var(--orange-dark);
}

.mobile-drawer-footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Hero Section: Putih Vibe & Efek Media Menyatu Alami
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 84px;
  padding-bottom: 2.75rem;
  background:
    radial-gradient(circle at 90% 12%, rgba(232, 94, 5, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 88%, rgba(253, 240, 230, 0.7) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #FAF8F5 100%);
  color: var(--ink);
}

@media (min-width: 992px) {
  .hero {
    min-height: 84svh;
    display: flex;
    align-items: center;
    padding-top: 125px;
    padding-bottom: 4rem;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Hero Photo Landing Petals (Efek Kelopak Jatuh, Riak Air & Tenggelam Menghilang)
   -------------------------------------------------------------------------- */
.photo-petals-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 2; /* Berada tepat di atas gambar hero */
  border-radius: 16px;
}

.petal-sink-item {
  position: absolute;
  top: -24px;
  width: 18px;
  height: 24px;
  will-change: transform, opacity;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.petal-leaf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 215, 170, 0.92) 45%, rgba(232, 94, 5, 0.8) 100%);
  border-radius: 50% 0 50% 50%;
  will-change: transform, opacity, filter;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Riak Gelombang Air (Water Ripple Ring) */
.water-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  margin-left: -18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4), inset 0 0 6px rgba(253, 186, 116, 0.3);
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
  will-change: transform, opacity;
  animation-iteration-count: infinite;
}

/* Riak air menyebar saat kelopak menyentuh permukaan air */
@keyframes rippleWave {
  0%, 46% {
    opacity: 0;
    transform: scale(0.2);
    border-color: rgba(255, 255, 255, 0.9);
  }
  48% {
    opacity: 0.95;
    transform: scale(0.35);
  }
  58% {
    opacity: 0.55;
    transform: scale(1.6);
    border-color: rgba(254, 215, 170, 0.65);
  }
  68% {
    opacity: 0;
    transform: scale(2.8);
    border-color: rgba(232, 94, 5, 0.2);
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
  }
}

/* Petal 1: Melayang dari kiri -> Menyentuh air -> Tenggelam ke bawah */
.petal-sink-item.ps1 {
  left: 20%;
  animation: sinkTrajectory1 8.5s infinite 0.5s;
}
.petal-sink-item.ps1 .petal-leaf {
  animation: sinkLeaf1 8.5s infinite 0.5s;
}
.petal-sink-item.ps1 .water-ripple {
  animation: rippleWave 8.5s infinite 0.5s;
}

@keyframes sinkTrajectory1 {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  12% {
    opacity: 1;
  }
  48% {
    transform: translate3d(18px, 140px, 0);
  }
  54% {
    transform: translate3d(20px, 142px, 0);
  }
  74% {
    transform: translate3d(20px, 142px, 0);
  }
  92% {
    transform: translate3d(22px, 156px, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
}

@keyframes sinkLeaf1 {
  0% {
    opacity: 0;
    transform: rotate(15deg) rotateY(0deg) scale(0.9);
  }
  15% {
    opacity: 0.9;
  }
  48% {
    transform: rotate(65deg) rotateY(180deg) scale(1.08);
  }
  52% {
    /* Mendarat di air */
    transform: rotate(60deg) rotateY(180deg) scale(1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    opacity: 0.98;
  }
  72% {
    /* Mengapung tenang */
    transform: rotate(62deg) rotateY(180deg) scale(1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    opacity: 0.98;
  }
  86% {
    /* Tenggelam masuk ke bawah permukaan air: miring, mengecil, blur terbiaskan air */
    transform: rotateX(55deg) rotate(70deg) scale(0.65) translateY(8px);
    filter: blur(2.5px) brightness(0.85);
    opacity: 0.35;
  }
  94% {
    /* Hilang sepenuhnya di kedalaman air */
    transform: rotateX(72deg) rotate(75deg) scale(0.38) translateY(16px);
    filter: blur(4.5px) brightness(0.7);
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: rotate(15deg) scale(0.9);
  }
}

/* Petal 2: Melayang dari kanan -> Menyentuh air -> Tenggelam */
.petal-sink-item.ps2 {
  left: 55%;
  width: 20px;
  height: 27px;
  animation: sinkTrajectory2 9.5s infinite 2.6s;
}
.petal-sink-item.ps2 .petal-leaf {
  animation: sinkLeaf2 9.5s infinite 2.6s;
}
.petal-sink-item.ps2 .water-ripple {
  animation: rippleWave 9.5s infinite 2.6s;
}

@keyframes sinkTrajectory2 {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  12% {
    opacity: 1;
  }
  46% {
    transform: translate3d(-25px, 190px, 0);
  }
  52% {
    transform: translate3d(-23px, 192px, 0);
  }
  74% {
    transform: translate3d(-23px, 192px, 0);
  }
  92% {
    transform: translate3d(-21px, 206px, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
}

@keyframes sinkLeaf2 {
  0% {
    opacity: 0;
    transform: rotate(-25deg) rotateY(0deg);
  }
  15% {
    opacity: 0.95;
  }
  46% {
    transform: rotate(105deg) rotateY(180deg) scale(1.08);
  }
  52% {
    transform: rotate(100deg) rotateY(180deg) scale(1);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
    opacity: 0.98;
  }
  72% {
    transform: rotate(98deg) rotateY(180deg) scale(1);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
    opacity: 0.98;
  }
  86% {
    /* Tenggelam ke dalam air */
    transform: rotateX(50deg) rotate(115deg) scale(0.65) translateY(8px);
    filter: blur(2.5px) brightness(0.85);
    opacity: 0.35;
  }
  94% {
    /* Lenyap di kedalaman */
    transform: rotateX(70deg) rotate(120deg) scale(0.38) translateY(16px);
    filter: blur(4.5px) brightness(0.7);
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: rotate(-25deg);
  }
}

/* Petal 3: Melayang dari kanan atas -> Menyentuh air -> Tenggelam */
.petal-sink-item.ps3 {
  left: 72%;
  width: 14px;
  height: 19px;
  animation: sinkTrajectory3 8s infinite 5s;
}
.petal-sink-item.ps3 .petal-leaf {
  animation: sinkLeaf3 8s infinite 5s;
}
.petal-sink-item.ps3 .water-ripple {
  animation: rippleWave 8s infinite 5s;
}

@keyframes sinkTrajectory3 {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  12% {
    opacity: 1;
  }
  45% {
    transform: translate3d(-45px, 95px, 0);
  }
  50% {
    transform: translate3d(-43px, 97px, 0);
  }
  74% {
    transform: translate3d(-43px, 97px, 0);
  }
  92% {
    transform: translate3d(-41px, 110px, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
}

@keyframes sinkLeaf3 {
  0% {
    opacity: 0;
    transform: rotate(40deg);
  }
  15% {
    opacity: 0.9;
  }
  45% {
    transform: rotate(135deg) rotateY(180deg) scale(1.06);
  }
  50% {
    transform: rotate(130deg) rotateY(180deg) scale(1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    opacity: 0.98;
  }
  72% {
    transform: rotate(132deg) scale(1);
    opacity: 0.98;
  }
  86% {
    transform: rotateX(55deg) rotate(145deg) scale(0.65) translateY(8px);
    filter: blur(2.5px) brightness(0.85);
    opacity: 0.35;
  }
  94% {
    transform: rotateX(72deg) rotate(150deg) scale(0.38) translateY(16px);
    filter: blur(4.5px) brightness(0.7);
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: rotate(40deg);
  }
}

/* Petal 4: Melayang dari kiri -> Menyentuh air -> Tenggelam */
.petal-sink-item.ps4 {
  left: 32%;
  width: 17px;
  height: 23px;
  animation: sinkTrajectory4 10s infinite 7.2s;
}
.petal-sink-item.ps4 .petal-leaf {
  animation: sinkLeaf4 10s infinite 7.2s;
}
.petal-sink-item.ps4 .water-ripple {
  animation: rippleWave 10s infinite 7.2s;
}

@keyframes sinkTrajectory4 {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  12% {
    opacity: 1;
  }
  48% {
    transform: translate3d(40px, 230px, 0);
  }
  54% {
    transform: translate3d(42px, 232px, 0);
  }
  74% {
    transform: translate3d(42px, 232px, 0);
  }
  92% {
    transform: translate3d(44px, 245px, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
}

@keyframes sinkLeaf4 {
  0% {
    opacity: 0;
    transform: rotate(-10deg);
  }
  15% {
    opacity: 0.9;
  }
  48% {
    transform: rotate(80deg) rotateY(180deg) scale(1.08);
  }
  54% {
    transform: rotate(75deg) rotateY(180deg) scale(1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.32));
    opacity: 0.98;
  }
  72% {
    transform: rotate(77deg) scale(1);
    opacity: 0.98;
  }
  86% {
    transform: rotateX(55deg) rotate(88deg) scale(0.65) translateY(8px);
    filter: blur(2.5px) brightness(0.85);
    opacity: 0.35;
  }
  94% {
    transform: rotateX(72deg) rotate(92deg) scale(0.38) translateY(16px);
    filter: blur(4.5px) brightness(0.7);
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: rotate(-10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .petal-sink-item,
  .petal-leaf,
  .water-ripple {
    animation: none;
    display: none;
  }
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.hero-content {
  max-width: 100%;
  text-align: center;
}

@media (min-width: 992px) {
  .hero-content {
    max-width: 580px;
    text-align: left;
  }

  .hero-bismillah,
  .hero-headline,
  .hero-subheadline {
    text-align: left;
  }

  .hero-subheadline {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-ctas,
  .hero-chips {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Hero Media Showcase: Foto Robekan Kertas Timbul 3D (Bake dalam Gambar)
   -------------------------------------------------------------------------- */
.hero-media {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-showcase {
  position: relative;
  width: 100%;
  max-width: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .hero-photo-showcase:hover {
    transform: translateY(-4px) rotate(-0.4deg);
  }
}

.hero-photo-showcase picture {
  display: contents;
}

.hero-media-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.80rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.9rem;
  border: 1px solid rgba(232, 94, 5, 0.22);
  letter-spacing: 0.3px;
}

.hero-badge-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero-bismillah {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  color: var(--orange-dark);
  margin-bottom: 0.5rem;
  direction: rtl;
  text-align: center;
  line-height: 1.6;
}

/* Ukuran headline proporsional dan tidak kelewat besar agar view foto tetap lega & bersih */
.hero-headline {
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
  text-align: center;
}

.hero-headline .highlight-orange {
  color: var(--orange);
  background: linear-gradient(135deg, var(--orange) 0%, #C44E00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subheadline {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.58;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.4rem;
}

.btn-glass {
  background-color: var(--white);
  color: var(--ink);
  border: 1.5px solid rgba(31, 30, 29, 0.14);
  box-shadow: 0 2px 8px rgba(31, 30, 29, 0.04);
}

@media (hover: hover) {
  .btn-glass:hover {
    background-color: var(--orange-soft);
    border-color: rgba(232, 94, 5, 0.4);
    color: var(--orange-dark);
    transform: translateY(-2px);
  }
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(31, 30, 29, 0.04);
  border: 1px solid rgba(31, 30, 29, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1px;
}

.hero-chip.highlight-chip {
  background-color: var(--orange-soft);
  border-color: rgba(232, 94, 5, 0.25);
  color: var(--orange-dark);
  font-weight: 700;
}

/* (hero-live-badge dialihkan ke .hero-media-badge) */

/* --------------------------------------------------------------------------
   Quote Strip
   -------------------------------------------------------------------------- */
.quote-strip {
  background-color: var(--orange-soft);
  border-top: 1px solid rgba(232, 94, 5, 0.15);
  border-bottom: 1px solid rgba(232, 94, 5, 0.15);
  padding: 1.75rem 0;
  text-align: center;
}

.quote-arabic {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  color: var(--orange-dark);
  margin-bottom: 0.4rem;
  direction: rtl;
}

.quote-translation {
  font-size: 0.98rem;
  color: var(--ink);
  font-style: italic;
  font-weight: 600;
  max-width: 720px;
  margin: 0 auto 0.3rem;
}

.quote-reference {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Cards System & Grid (Mobile 1 Col, Responsive Tablet/Desktop)
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

/* 1. Mengapa Al-Qur'an (3 Poin) */
.why-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
}

.why-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.why-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* --------------------------------------------------------------------------
   Section: Tentang Pesantren (Selaras Vibe Tema Utama Warm Orange)
   -------------------------------------------------------------------------- */
.section-title-accent {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.section-title-accent span {
  color: var(--orange);
}

.section-title-accent::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, #FF9B57 100%);
  margin: 12px auto 2.25rem;
  border-radius: var(--radius-pill);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

/* Mobile-first: Gambar di atas (order: 1), teks di bawah (order: 2) */
.about-image-col {
  order: 1;
}

.about-text-col {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  /* Desktop: Teks di kolom kiri (order: 1), gambar di kolom kanan (order: 2) */
  .about-text-col {
    order: 1;
  }

  .about-image-col {
    order: 2;
  }
}

.about-block {
  display: flex;
  flex-direction: column;
}

.about-subheading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--orange-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-desc {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.75;
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
  opacity: 0.92;
}

.about-misi-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-misi-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.55;
  font-weight: 500;
}

.about-misi-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  /* Checkmark orange selaras tema utama */
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.35;
}

/* Section Tentang Pesantren: Foto Drone */
.about-image-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .about-image-card:hover {
    transform: translateY(-3px);
  }
}

.about-drone-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* --------------------------------------------------------------------------
   4. Empat Pilar Program & 5. Fasilitas & Lingkungan (Mobile 2 Kolom Grid)
   -------------------------------------------------------------------------- */
.programs-grid,
.facility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 480px) {

  .programs-grid,
  .facility-grid {
    gap: 14px;
  }
}

@media (min-width: 768px) {

  .programs-grid,
  .facility-grid {
    gap: 1.5rem;
  }
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background-color: var(--orange-soft);
}

@media (min-width: 768px) {
  .card-img-wrapper {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    margin-bottom: 1.15rem;
  }
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .card:hover .card-photo {
    transform: scale(1.05);
  }
}

.program-card,
.facility-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 768px) {

  .program-card,
  .facility-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }
}

@media (hover: hover) {

  .program-card:hover,
  .facility-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232, 94, 5, 0.3);
  }
}

.program-card .card-content,
.facility-card .card-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  flex: 1;
}

.program-card h3,
.facility-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

@media (min-width: 768px) {

  .program-card h3,
  .facility-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0;
    line-height: 1.35;
  }
}

.program-card p,
.facility-card p {
  color: var(--muted);
  font-size: 0.80rem;
  line-height: 1.45;
}

@media (min-width: 768px) {

  .program-card p,
  .facility-card p {
    font-size: 0.94rem;
    line-height: 1.6;
  }
}



/* 8. Output Lulusan (6 Cards) */
.output-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.output-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.25rem 1.4rem;
}

.output-icon {
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.output-icon .output-3d-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.16));
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.output-card:hover .output-3d-img {
  transform: scale(1.14) rotate(-4deg);
}

.output-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.output-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ==========================================================================
   9. Prosedur & Persyaratan PSB (2-Kolom Skenario A)
   ========================================================================== */
.prosedur-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .prosedur-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
}

.prosedur-col {
  display: flex;
  flex-direction: column;
}

.prosedur-col-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

@media (min-width: 768px) {
  .prosedur-col-card {
    padding: 2rem;
  }
}

.prosedur-col-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid rgba(232, 94, 5, 0.12);
}

.prosedur-col-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--orange-soft);
  color: var(--orange);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prosedur-col-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.prosedur-col-subtitle {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Stepper List (Kolom Kiri) */
.stepper-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  background-color: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 94, 5, 0.3);
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(232, 94, 5, 0.3);
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.step-content p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.prosedur-cta {
  margin-top: 0.5rem;
}

.btn-block {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

/* Requirements List (Kolom Kanan) */
.req-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--cream);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.req-item:hover {
  transform: translateX(3px);
  border-color: rgba(232, 94, 5, 0.3);
}

.req-item span.icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(232, 94, 5, 0.12);
  color: var(--orange);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prosedur-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background-color: var(--orange-soft);
  border: 1px solid rgba(232, 94, 5, 0.2);
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.note-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.note-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--orange-dark);
  margin-bottom: 0.15rem;
}

.note-text p {
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   10. Rincian Biaya & Periode Pendaftaran (2-Kolom Berdampingan)
   ========================================================================== */
.biaya-periode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .biaya-periode-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
}

.biaya-col {
  display: flex;
  flex-direction: column;
}

.biaya-col-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

@media (min-width: 768px) {
  .biaya-col-card {
    padding: 2rem;
  }
}

.biaya-col-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid rgba(232, 94, 5, 0.12);
}

.biaya-col-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--orange-soft);
  color: var(--orange);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.biaya-col-icon .biaya-3d-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.14));
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.biaya-col-card:hover .biaya-3d-img {
  transform: scale(1.12) rotate(-3deg);
}

.biaya-col-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.biaya-col-subtitle {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.fee-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--cream);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.fee-row:hover {
  transform: translateX(3px);
  border-color: rgba(232, 94, 5, 0.3);
}

.fee-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.fee-desc {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
}

.fee-amount {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

/* Interactive Fee Row & Toggle Switch */
.fee-row-interactive {
  background-color: var(--white);
  border: 1.5px solid rgba(232, 94, 5, 0.28);
  box-shadow: 0 4px 14px rgba(232, 94, 5, 0.08);
}

.fee-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.fee-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.fee-toggle-group {
  display: inline-flex;
  align-items: center;
  background-color: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

.fee-toggle-btn {
  border: none;
  background: transparent;
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.2;
}

.fee-toggle-btn:hover {
  color: var(--ink);
}

.fee-toggle-btn.active,
.fee-toggle-btn[data-tier="sma"].active {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: 0 2px 6px rgba(232, 94, 5, 0.35);
}

.fee-toggle-btn[data-tier="smp"].active {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
}

.fee-total-card {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin-top: auto;
}

.fee-total-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.92;
}

.fee-dual-totals {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.fee-total-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* SMP Color Vibe (Islamic Emerald Green) */
.fee-box-smp {
  background-color: rgba(21, 128, 61, 0.28);
  border: 1.5px solid rgba(134, 239, 172, 0.35);
}

.fee-box-smp:hover {
  background-color: rgba(21, 128, 61, 0.38);
}

.fee-box-smp.active {
  background-color: rgba(21, 128, 61, 0.52);
  border-color: #86efac;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.4);
}

.fee-tag-smp {
  background-color: #15803d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* SMA Color Vibe (Warm Terracotta & Amber) */
.fee-box-sma {
  background-color: rgba(124, 45, 18, 0.22);
  border: 1.5px solid rgba(254, 215, 170, 0.28);
}

.fee-box-sma:hover {
  background-color: rgba(124, 45, 18, 0.32);
}

.fee-box-sma.active {
  background-color: rgba(124, 45, 18, 0.48);
  border-color: #fed7aa;
  box-shadow: 0 4px 14px rgba(124, 45, 18, 0.35);
}

.fee-tag-sma {
  background-color: #c2410c;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.fee-tier-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.fee-total-box .fee-total-val {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .fee-dual-totals {
    flex-direction: column;
    gap: 0.4rem;
  }
}

.fee-total-card .btn {
  background-color: var(--white);
  color: var(--orange-dark);
  width: 100%;
  font-weight: 700;
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  border-radius: var(--radius-pill);
}

/* Periode Pendaftaran (Kolom Kanan) */
.period-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.period-card {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background-color: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.period-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.period-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.period-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.period-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.period-badge.active {
  background-color: #dcfce7;
  color: #15803d;
}

.period-badge.upcoming {
  background-color: var(--orange-soft);
  color: var(--orange-dark);
}

.period-badge.closed {
  background-color: #f1f5f9;
  color: #64748b;
}

.period-dates {
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange-dark);
}

.period-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.biaya-info-box {
  background-color: var(--orange-soft);
  border: 1px solid rgba(232, 94, 5, 0.2);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.info-box-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--orange-dark);
  font-size: 0.95rem;
}

.info-box-icon {
  font-size: 1.15rem;
}

.biaya-info-box p {
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}

.info-box-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(232, 94, 5, 0.25);
  font-size: 0.84rem;
}

.info-box-contact span {
  color: var(--muted);
}

.info-box-contact a {
  color: var(--orange-dark);
  font-weight: 800;
  text-decoration: underline;
}

/* 13. Brosur Pesantren & Lightbox */
.brochure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.brochure-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brochure-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.brochure-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background: linear-gradient(0deg, rgba(31, 30, 29, 0.85) 0%, transparent 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brochure-overlay span {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
  touch-action: none;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
  transition: transform 0.2s ease;
}

.lightbox-close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  width: var(--touch-target);
  height: var(--touch-target);
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 2005;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--touch-target);
  height: var(--touch-target);
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2005;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

/* 14. Kontak & Footer */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.contact-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-icon.icon-map {
  background-color: var(--orange-soft);
  color: var(--orange-dark);
  border: 1px solid rgba(232, 94, 5, 0.2);
}

.contact-icon.icon-wa {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid rgba(21, 128, 61, 0.2);
}

.contact-icon.icon-ig {
  background-color: #fce7f3;
  color: #db2777;
  border: 1px solid rgba(219, 39, 119, 0.2);
}

.contact-icon.icon-fb {
  background-color: #dbeafe;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.contact-icon.icon-web {
  background-color: #e0f2fe;
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.contact-item:hover .contact-icon {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 30, 29, 0.08);
}

.contact-details h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-details a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s;
}

.contact-details a:hover {
  color: var(--orange);
}

.site-footer {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  padding: 2.25rem 0 2rem;
  text-align: center;
}

.footer-quote {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  color: var(--orange-dark);
  margin-bottom: 0.5rem;
  direction: rtl;
}

.footer-quote-trans {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Sticky Bottom Bar (Mobile Phone Only, Appears Past Hero)
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-sticky);
  z-index: 990;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  transform: translateY(105%);
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-bottom-bar.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-bottom-bar .btn {
  flex: 1;
  padding: 12px 14px;
  font-size: 0.95rem;
  min-height: var(--touch-target);
}

/* Floating WA (Desktop only) */
.desktop-wa-fab {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 995;
  background-color: #25D366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease;
}

.desktop-wa-fab:hover {
  transform: scale(1.08) translateY(-3px);
}

.desktop-wa-fab svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Animations (Transform & Opacity Only, Hardware Accelerated)
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Preference for Accessibility */
@media (prefers-reduced-motion: reduce) {

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

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries (Tablet & Desktop Progressive Enhancement)
   -------------------------------------------------------------------------- */

/* Tablet (768px+) */
@media (min-width: 768px) {
  .section {
    padding: 5.5rem 0;
  }

  .hero-ctas {
    flex-direction: row;
  }

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

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

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

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

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

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

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

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

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
    /* No sticky bottom bar needed on desktop */
  }

  .menu-toggle {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .desktop-nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
  }

  .desktop-nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.2s ease;
  }

  .desktop-nav-links a:hover {
    color: var(--orange);
  }



  .why-grid {
    flex-direction: row;
  }

  .why-card {
    flex: 1;
    flex-direction: column;
  }

  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .visimisi-grid {
    flex-direction: row;
  }

  .visi-card,
  .misi-card {
    flex: 1;
  }

  .programs-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .facility-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .output-grid {
    grid-template-columns: repeat(3, 1fr);
  }


  .mobile-bottom-bar {
    display: none !important;
  }

  .desktop-wa-fab {
    display: flex;
  }
}