/* ============================================================
   Desa Sondregeasi – PREMIUM VISUAL REDESIGN
   Dipakai bersama Tailwind (utility) & Bootstrap (komponen JS)
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --primary:        #0f766e;
  --primary-light:  #14b8a6;
  --primary-dark:   #0d5c56;
  --accent:         #d97706;
  --accent-light:   #f59e0b;
  --deep:           #0a1628;
  --cyan:           #0891b2;
  --violet:         #7c3aed;
  --rose:           #e11d48;
  --emerald:        #059669;
  --indigo:         #4338ca;

  --grad-main:      linear-gradient(135deg, var(--deep) 0%, #0f2942 55%, var(--primary-dark) 100%);
  --grad-teal:      linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --grad-amber:     linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  --grad-rainbow:   linear-gradient(90deg,
                      var(--primary) 0%, var(--primary-light) 25%,
                      var(--cyan) 50%, var(--accent-light) 75%, var(--accent) 100%);

  --shadow-teal:    0 8px 24px -6px rgba(15,118,110,.45);
  --shadow-accent:  0 8px 24px -6px rgba(217,119,6,.45);
  --shadow-card:    0 4px 24px -8px rgba(15,23,42,.14);
  --shadow-card-h:  0 20px 48px -12px rgba(15,23,42,.22);

  --radius-card:    1.5rem;
  --radius-sm:      1rem;
}

/* ── BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Playfair Display', serif;
}

/* ── SCROLL PROGRESS BAR ─────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-rainbow);
  z-index: 99999;
  transition: width .1s linear;
  background-size: 200% 100%;
  animation: rainbowShift 3s linear infinite;
}
@keyframes rainbowShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ── PAGE ENTER ANIMATION (modern, tanpa spinner) ──────────────── */
body.page-enter { opacity: 0; }
body.page-enter.page-enter-active {
  opacity: 1;
  animation: pageFadeIn .5s ease both;
}
/* Setelah class dilepas oleh JS, pastikan tidak ada transform tersisa
   di <body> — mencegah body menjadi containing block untuk elemen
   position:fixed seperti tombol WhatsApp / back-to-top */
body:not(.page-enter):not(.page-enter-active) { transform: none; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(15,23,42,.07);
  transition: box-shadow .3s ease, background .3s ease;
}
.navbar.shadow-sm {
  box-shadow: 0 8px 32px -8px rgba(10,22,40,.18) !important;
  background: rgba(255,255,255,.97) !important;
}

.nav-topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-rainbow);
  background-size: 200% 100%;
  animation: rainbowShift 4s linear infinite;
}

/* Logo mark */
.logo-mark {
  width: 44px !important; height: 44px !important;
  border-radius: 14px !important; flex-shrink: 0;
  display: flex !important; align-items: center !important; justify-content: center !important;
  background: var(--grad-teal) !important;
  box-shadow: var(--shadow-teal), inset 0 1px 0 rgba(255,255,255,.3);
  position: relative; overflow: hidden;
  transition: transform .3s ease;
}
.logo-mark::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 55%);
  border-radius: 14px;
}
.logo-mark svg { display: block !important; width: 24px !important; height: 24px !important; }
.navbar-brand:hover .logo-mark { transform: scale(1.06); }

.brand-title {
  font-size: 1rem; line-height: 1.15;
  background: var(--grad-teal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.brand-sub { font-size: .66rem; color: #64748b !important; font-weight: 600; letter-spacing: .02em; }

/* Nav pills */
.nav-pill {
  display: inline-flex !important; align-items: center !important; text-decoration: none !important;
  color: #334155 !important; padding: .5rem .85rem !important; border-radius: 999px !important;
  position: relative; transition: color .2s ease, background .2s ease, transform .2s ease;
  font-size: .82rem;
}
.nav-pill:hover {
  color: var(--primary-dark) !important;
  background: rgba(15,118,110,.09) !important;
  transform: translateY(-1px);
}
.nav-pill.active {
  color: #fff !important;
  background: var(--grad-teal) !important;
  box-shadow: var(--shadow-teal);
}
.nav-scroll { scrollbar-width: thin; list-style: none !important; }
.quick-scroll { scrollbar-width: thin; }
.quick-scroll::-webkit-scrollbar { height: 4px; }
.quick-scroll::-webkit-scrollbar-thumb { background: rgba(15,118,110,.25); border-radius: 4px; }

/* Dropdown */
.dropdown-toggle::after { margin-left: .4rem; vertical-align: .15em; }
.dropdown-menu { min-width: 210px; margin-top: .5rem !important; border: none !important; border-radius: 1rem !important; box-shadow: 0 16px 40px -8px rgba(10,22,40,.18) !important; padding: .5rem !important; }
.dropdown-item { border-radius: .6rem; font-size: .82rem; font-weight: 600; padding: .55rem .85rem !important; transition: background .15s, color .15s; }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(15,118,110,.09) !important; color: var(--primary-dark) !important; }

/* Navbar mobile toggle – buka/tutup lebih cepat saat diklik */
.navbar-collapse.collapsing { transition: height .15s ease; }

/* Admin button */
.btn-admin {
  display: inline-flex !important; align-items: center !important; text-decoration: none !important;
  font-size: .78rem !important; font-weight: 700 !important; color: #fff !important; white-space: nowrap;
  padding: .5rem 1rem !important; border-radius: 999px !important;
  background: var(--grad-amber) !important;
  box-shadow: var(--shadow-accent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-admin:hover {
  color: #fff !important; transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(217,119,6,.6);
}

/* ── HERO SECTION ────────────────────────────────────────────── */
.hero-gradient {
  background: var(--grad-main);
}
.hero-title {
  animation: fadeInUp .8s cubic-bezier(.22,1,.36,1) both;
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Hero stat boxes – kartu solid, kontras jelas, tidak buram */
.hero-stat-card {
  background: rgba(10,22,40,.55);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1rem;
  transition: background .25s ease, transform .25s ease;
}
.hero-stat-card:hover {
  background: rgba(10,22,40,.68);
  transform: translateY(-3px);
}

/* Hero animations */
@keyframes bgGradientShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-anim-gradient { background-size: 200% 200% !important; animation: bgGradientShift 14s ease-in-out infinite; }
@keyframes bgKenburns {
  0%   { transform: scale(1) translate(0,0); }
  50%  { transform: scale(1.12) translate(-1%,-1%); }
  100% { transform: scale(1) translate(0,0); }
}
.hero-anim-kenburns { animation: bgKenburns 20s ease-in-out infinite; }
@keyframes bgPulse { 0%,100%{opacity:1;} 50%{opacity:.75;} }
.hero-anim-pulse { animation: bgPulse 5s ease-in-out infinite; }

/* Particles */
.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hero-particles span {
  position: absolute; bottom: -10%; display: block; border-radius: 50%;
  background: rgba(255,255,255,.28);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%  { transform: translateY(0) translateX(0) rotate(0deg); opacity:0; }
  10% { opacity:1; }
  90% { opacity:.5; }
  100%{ transform: translateY(-110vh) translateX(30px) rotate(180deg); opacity:0; }
}

/* Floating orbs in hero for depth */
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px);
  pointer-events: none; z-index: 0;
  animation: orbFloat 8s ease-in-out infinite;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-20px) scale(1.07); }
}

.hero-parallax { will-change: transform; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(.94); }
.btn-primary {
  background: var(--grad-teal) !important;
  border: none !important;
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  box-shadow: 0 12px 28px -6px rgba(15,118,110,.6);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--grad-amber) !important;
  border: none !important; color: #fff !important;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  color: #fff !important;
  box-shadow: 0 12px 28px -6px rgba(217,119,6,.6);
  transform: translateY(-2px);
}
.btn-outline-primary {
  border-color: var(--primary) !important; color: var(--primary) !important;
}
.btn-outline-primary:hover {
  background: var(--grad-teal) !important;
  border-color: transparent !important; color: #fff !important;
  box-shadow: var(--shadow-teal); transform: translateY(-2px);
}

/* Ripple */
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.55);
  transform: scale(0); animation: rippleAnim .55s ease-out; pointer-events: none;
}
.ripple.ripple-dark { background: rgba(15,118,110,.25); }
@keyframes rippleAnim { to { transform: scale(3); opacity: 0; } }

/* ── SECTION BADGE ───────────────────────────────────────────── */
.section-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(15,118,110,.1); color: var(--primary);
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .95rem; border-radius: 999px;
  border: 1px solid rgba(15,118,110,.2);
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.section-badge::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-teal);
  opacity: 0;
  transition: opacity .25s ease;
  border-radius: 999px;
}
.section-badge:hover {
  color: #fff;
  transform: scale(1.05);
  box-shadow: var(--shadow-teal);
}
.section-badge:hover::before { opacity: 1; }
.section-badge span { position: relative; z-index: 1; }
/* Frame tint badge override */
.section-frame .section-badge {
  background: rgba(15,118,110,.1);
}
.section-frame.frame-dark .section-badge {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

/* ── SECTION FRAMES ──────────────────────────────────────────── */
.section-frame {
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 2rem;
  background: #ffffff;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .4s ease, transform .4s ease;
}
.section-frame::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-rainbow);
  background-size: 200% 100%;
  animation: rainbowShift 5s linear infinite;
}
/* Decorative blobs inside sections */
.section-frame::after {
  content: '';
  position: absolute; bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,118,110,.06) 0%, transparent 70%);
  pointer-events: none;
}
.section-frame:hover {
  box-shadow: var(--shadow-card-h);
}

.section-frame.frame-dark {
  background: var(--grad-main);
  border-color: transparent;
  box-shadow: 0 20px 60px -16px rgba(10,22,40,.5);
}
.section-frame.frame-dark::after {
  background: radial-gradient(circle, rgba(20,184,166,.12) 0%, transparent 70%);
}

.section-frame.frame-tint {
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 60%, #eff6ff 100%);
  border-color: rgba(15,118,110,.1);
}

/* Alternating section blobs for visual flair */
.section-frame.frame-violet {
  background: linear-gradient(135deg, #faf5ff 0%, #f8fafc 60%, #ede9fe 100%);
  border-color: rgba(124,58,237,.1);
}
.section-frame.frame-violet::before { background: linear-gradient(90deg, #7c3aed, #a78bfa, #0891b2, #7c3aed); background-size: 200% 100%; animation: rainbowShift 5s linear infinite; }

.section-frame.frame-rose {
  background: linear-gradient(135deg, #fff1f2 0%, #f8fafc 60%, #ffe4e6 100%);
  border-color: rgba(225,29,72,.1);
}
.section-frame.frame-amber {
  background: linear-gradient(135deg, #fffbeb 0%, #f8fafc 60%, #fef3c7 100%);
  border-color: rgba(217,119,6,.12);
}

@media (max-width: 768px) {
  .section-frame { padding: 2rem 1.25rem; border-radius: 1.5rem; }
}

/* ── QUICK LINKS (Layanan Cepat) ─────────────────────────────── */
.quick-link-card {
  border-radius: 1.1rem;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(15,23,42,.07) !important;
  background: #fff;
}
.quick-link-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 16px 36px -10px rgba(15,23,42,.2);
  border-color: transparent !important;
}
.icon-pop { transition: transform .2s ease; }
a:hover .icon-pop, a:hover > div > .icon-pop { transform: scale(1.12); }

/* ── CARDS ───────────────────────────────────────────────────── */
.card-hover {
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s cubic-bezier(.16,1,.3,1);
}
.card-hover:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: var(--shadow-card-h);
}
.card-hover img, .img-zoom { transition: transform .55s cubic-bezier(.16,1,.3,1); }
.card-hover:hover img, .card-hover:hover .img-zoom { transform: scale(1.08); }
.img-zoom { overflow: hidden; display: block; }
.img-zoom img { transition: transform .55s cubic-bezier(.16,1,.3,1); }
.img-zoom:hover img { transform: scale(1.09); }

/* Berita category badge */
.berita-cat {
  display: inline-block;
  font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .7rem; border-radius: 999px;
  background: rgba(15,118,110,.1); color: var(--primary);
  border: 1px solid rgba(15,118,110,.18);
}

/* ── INFO BLOCKS (profil, dashboard) ─────────────────────────── */
.info-block {
  border-radius: 1.1rem; padding: 1.25rem 1.4rem;
  border: 1px solid transparent; position: relative; overflow: hidden;
}
.info-block::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: 4px 0 0 4px;
}
.info-block p { color: #334155; line-height: 1.75; font-size: .92rem; }
.info-block--teal   { background: rgba(15,118,110,.07); border-color: rgba(15,118,110,.15); }
.info-block--teal::before   { background: var(--grad-teal); }
.info-block--amber  { background: rgba(217,119,6,.07);  border-color: rgba(217,119,6,.15); }
.info-block--amber::before  { background: var(--grad-amber); }
.info-block--cyan   { background: rgba(8,145,178,.07);  border-color: rgba(8,145,178,.15); }
.info-block--cyan::before   { background: linear-gradient(135deg,#0891b2,#22d3ee); }
.info-block--lime   { background: rgba(5,150,105,.07);  border-color: rgba(5,150,105,.15); }
.info-block--lime::before   { background: linear-gradient(135deg,#059669,#34d399); }
.info-block--violet { background: rgba(124,58,237,.07); border-color: rgba(124,58,237,.15); }
.info-block--violet::before { background: linear-gradient(135deg,#7c3aed,#a78bfa); }
.info-block--rose   { background: rgba(225,29,72,.07);  border-color: rgba(225,29,72,.15); }
.info-block--rose::before   { background: linear-gradient(135deg,#e11d48,#fb7185); }

/* Dashboard stat card glow on hover */
.col-6.col-md-3 .card-hover:hover,
.col-6.col-md-3 [class*="rounded-4"].card-hover:hover {
  box-shadow: 0 16px 40px -10px rgba(15,23,42,.35);
  transform: translateY(-6px) scale(1.04);
}

/* ── PENGUMUMAN BADGES ───────────────────────────────────────── */
.badge.bg-primary { background: var(--grad-teal) !important; }
.badge.bg-danger  { background: linear-gradient(135deg,#e11d48,#fb7185) !important; }
.badge.bg-secondary { background: linear-gradient(135deg,#475569,#94a3b8) !important; }

/* Pengumuman items */
.notif-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(15,23,42,.07) !important;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
  overflow: hidden;
  position: relative;
}
.notif-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-teal);
}
.notif-card:hover {
  box-shadow: 0 12px 32px -8px rgba(15,23,42,.16);
  transform: translateY(-3px);
  border-color: rgba(15,118,110,.2) !important;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer.hero-gradient {
  background: var(--grad-main) !important;
  position: relative; overflow: hidden;
}
footer.hero-gradient::before {
  content: '';
  position: absolute; top: -40%; left: -10%;
  width: 60%; height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.1) 0%, transparent 65%);
  pointer-events: none;
}
footer.hero-gradient::after {
  content: '';
  position: absolute; bottom: -30%; right: -5%;
  width: 40%; height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,145,178,.08) 0%, transparent 65%);
  pointer-events: none;
}

/* Footer links – slide underline */
footer a { position: relative; display: inline-block; }
footer a:not(.footer-social)::after {
  content: '';
  position: absolute; left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--primary-light);
  transition: width .3s ease;
}
footer a:not(.footer-social):hover::after { width: 100%; }
footer a:not(.footer-social):hover { color: #fff !important; }

/* Footer social icons */
.footer-social {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.footer-social:hover {
  background: var(--primary-light); color: #fff;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px -6px rgba(20,184,166,.6);
}

/* ── FORM CONTROLS ───────────────────────────────────────────── */
.form-control {
  border-radius: .8rem !important;
  border: 1.5px solid rgba(15,23,42,.12) !important;
  padding: .65rem 1rem !important;
  font-size: .9rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(15,118,110,.15) !important;
  outline: none;
}
.form-label { color: #374151; font-size: .83rem; font-weight: 700; letter-spacing: .01em; }

/* ── LIGHTBOX ────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,22,40,.93);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: .18s ease;
  padding: 1.5rem;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 1rem;
  box-shadow: 0 30px 80px -20px rgba(10,22,40,.9);
  animation: lightboxZoom .18s ease;
}
@keyframes lightboxZoom {
  from { transform: scale(.88); opacity:0; }
  to   { transform: scale(1);   opacity:1; }
}
#lightboxClose {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
#lightboxClose:hover { background: var(--rose); transform: scale(1.1) rotate(90deg); }

/* ── WHATSAPP FLOAT ──────────────────────────────────────────── */
.wa-float {
  position: fixed !important; right: 1.5rem; bottom: 2.2rem; z-index: 1500 !important;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #1EB556);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.5); cursor: pointer; border: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.wa-float::before {
  content: '';
  position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(37,211,102,.3);
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.06); box-shadow: 0 16px 36px rgba(37,211,102,.65); }
@keyframes waPulse {
  0%,100% { transform: scale(1); opacity:.7; }
  50%      { transform: scale(1.35); opacity:0; }
}

/* ── BACK TO TOP ─────────────────────────────────────────────── */
#back-to-top {
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 1490;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-teal);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-teal);
  border: none; cursor: pointer;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease;
  pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 14px 32px -8px rgba(15,118,110,.6); }

/* ── SCROLL REVEAL ANIMATIONS ─────────────────────────────────── */
[data-animate] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }

[data-animate-left] {
  opacity: 0; transform: translateX(-28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
[data-animate-left].in-view { opacity: 1; transform: translateX(0); }

[data-animate-scale] {
  opacity: 0; transform: scale(.92);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s ease;
}
[data-animate-scale].in-view { opacity: 1; transform: scale(1); }

/* ── LOGO / BRAND HOVER ──────────────────────────────────────── */
.navbar-brand:hover .brand-title { text-decoration: none; }
.link-underline { position: relative; text-decoration: none !important; }
.link-underline::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: currentColor;
  transition: width .3s cubic-bezier(.22,1,.36,1);
}
.link-underline:hover::after { width: 100%; }

/* ── SECTION BADGE HOVER in frame ─────────────────────────────── */
.section-frame:hover .section-badge { transform: translateX(3px); }

/* ── NAV ACTIVE HOVER ────────────────────────────────────────── */
.nav-pill { transition: color .2s ease, background .2s ease, transform .2s ease; }

/* ── HIGHLIGHT HEADING GRADIENT ──────────────────────────────── */
.font-heading.gradient-text,
h1.gradient-text, h2.gradient-text {
  background: var(--grad-teal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ── LINE CLAMP ──────────────────────────────────────────────── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── CAROUSEL enhancements ────────────────────────────────────── */
.carousel-control-prev, .carousel-control-next {
  width: 48px; height: 48px;
  top: 50%; transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255,255,255,.2) !important;
  backdrop-filter: blur(8px);
  margin: 0 1rem;
  opacity: 1;
  transition: background .2s ease, transform .25s ease;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
  background: rgba(15,118,110,.85) !important;
  transform: translateY(-50%) scale(1.1);
}

/* ══════════════════════════════════════════════════════════════
   PROFIL SLIDESHOW – responsif laptop & HP, caption di bawah,
   foto klik-popup (lightbox)
   ══════════════════════════════════════════════════════════════ */

/* 1. Wrapper utama */
.profil-carousel-wrap {
  width: 100%;
  background: #111827;
  border-radius: 1rem;
  overflow: hidden;
}

/* 2. carousel-inner: tidak ada tinggi tetap, ikuti konten */
.profil-carousel-inner {
  width: 100%;
  line-height: 0;   /* hilangkan gap bawah inline image */
}

/* 3. Wrapper foto – posisi relative untuk icon zoom */
.profil-foto-wrap {
  position: relative;
  width: 100%;
  cursor: zoom-in;
  line-height: 0;
  overflow: hidden;
  background: #111827;
}

/* 4. Foto: lebar penuh, tinggi otomatis sesuai ukuran foto.
      max-height agar tidak terlalu panjang di layar besar.   */
.profil-foto-img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  display: block;
  transition: transform .45s cubic-bezier(.16,1,.3,1);
  background: #111827;
}

/* 5. Efek zoom hover + icon kaca */
.profil-foto-wrap:hover .profil-foto-img {
  transform: scale(1.03);
}

.profil-foto-zoom {
  position: absolute;
  bottom: .6rem;
  right: .75rem;
  font-size: 1.3rem;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.8));
}
.profil-foto-wrap:hover .profil-foto-zoom { opacity: 1; }

/* 6. Caption DI BAWAH foto – selalu tampil (mobile & desktop) */
.profil-foto-caption {
  background: #ffffff;
  color: #1e293b;
  padding: .7rem 1.25rem;
  text-align: center;
  border-top: 2px solid rgba(15,118,110,.15);
  line-height: 1.55;
}
.profil-foto-caption p {
  color: #1e293b;
  margin: 0;
  font-size: .9rem;
}

/* 7. Dots indikator – di LUAR carousel, di bawah foto */
.profil-dots-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem .5rem;
  background: transparent;
}

.profil-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #0f766e;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease, width .25s ease;
  flex-shrink: 0;
}

.profil-dot.active,
.profil-dot:hover {
  background: #0f766e;
  transform: scale(1.25);
}

/* 8. Baris kontrol di bawah foto: panah kiri | dots | panah kanan */
.profil-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .65rem 1rem .5rem;
}

.profil-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #0f766e;
  background: transparent;
  color: #0f766e;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.profil-nav-btn:hover {
  background: #0f766e;
  color: #fff;
  transform: scale(1.1);
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .profil-foto-img {
    max-height: 55vw;    /* di HP kecil, batasi proporsi */
    object-fit: cover;   /* agar tidak terlalu tinggi, crop sedikit */
  }
  .profil-foto-caption {
    padding: .55rem 1rem;
  }
  .profil-foto-caption p {
    font-size: .82rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .profil-foto-img {
    max-height: 55vh;
  }
}

/* ── GALERI IMAGE OVERLAY ─────────────────────────────────────── */
.galeri-wrap {
  position: relative; overflow: hidden; border-radius: .85rem;
  cursor: pointer;
}
.galeri-wrap::after {
  content: '🔍';
  position: absolute; inset: 0;
  background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  opacity: 0; transition: opacity .3s ease;
  border-radius: .85rem;
}
.galeri-wrap:hover::after { opacity: 1; }
.galeri-wrap img { transition: transform .5s cubic-bezier(.16,1,.3,1); width:100%; height: 160px; object-fit:cover; }
.galeri-wrap:hover img { transform: scale(1.1); }

/* ── DOCUMENT ROW ─────────────────────────────────────────────── */
.doc-row {
  border-radius: 1rem !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.doc-row:hover {
  background: rgba(15,118,110,.05) !important;
  box-shadow: 0 6px 20px -8px rgba(15,23,42,.15);
  transform: translateX(4px);
  border-color: rgba(15,118,110,.2) !important;
}

/* ── MAP WRAPPER ─────────────────────────────────────────────── */
.map-wrap { box-shadow: 0 12px 40px -12px rgba(15,23,42,.2); transition: box-shadow .3s ease; }
.map-wrap:hover { box-shadow: 0 20px 60px -16px rgba(15,23,42,.3); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
/* Batas dasar: cegah scroll horizontal di layar mana pun */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; height: auto; }

/* Tablet & layar sedang */
@media (max-width: 992px) {
  .hero-title { font-size: 2.4rem !important; }
  .section-pad { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
  .section-frame { padding: 2rem 1.5rem; }
}

/* Handphone besar / tablet kecil */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem !important; }
  .section-pad { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .nav-pill { font-size: .7rem !important; padding: .42rem .6rem !important; }
  .section-frame { padding: 1.75rem 1rem; }
  .wa-float { right: 1rem; bottom: 1.8rem; }
  #back-to-top { left: 1rem; bottom: 1rem; }
  .brand-title { font-size: .85rem; }
  .logo-mark { width: 38px !important; height: 38px !important; }
  .logo-mark svg { width: 20px !important; height: 20px !important; }
  .table-responsive { font-size: .85rem; }
  .hero-stat-card { padding: 1rem !important; }
  .hero-stat-card .fs-2 { font-size: 1.5rem !important; }
}

/* Handphone kecil (iPhone SE, Android kecil, dll) */
@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem !important; }
  .section-pad { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }
  .section-frame { padding: 1.25rem .85rem; border-radius: 1.1rem; }
  .brand-title { font-size: .78rem; }
  .logo-mark { width: 34px !important; height: 34px !important; border-radius: 10px !important; }
  .logo-mark svg { width: 18px !important; height: 18px !important; }
  .quick-link-card, .card-hover { border-radius: .9rem; }
  .wa-float { width: 48px; height: 48px; right: .75rem; bottom: 1.5rem; }
  #back-to-top { left: .75rem; bottom: .75rem; }
  .hero-stat-card { padding: .85rem !important; }
  .hero-stat-card .fs-2 { font-size: 1.3rem !important; }
  .hero-stat-card .small { font-size: .72rem !important; }
}

/* Layar sangat lebar (desktop besar / monitor 2K+) */
@media (min-width: 1600px) {
  .container, .container-lg, .container-xl { max-width: 1400px; }
}

/* ── UTILITY ──────────────────────────────────────────────────── */
.text-primary-c { color: var(--primary); }
.bg-primary-c   { background-color: var(--primary); }
.object-fit-cover { object-fit: cover; }

/* ── TABLE BUTTONS ─────────────────────────────────────────────── */
.table .btn, .btn-outline-secondary, .btn-outline-danger {
  transition: transform .2s ease, box-shadow .2s ease;
}
.table .btn:hover, .btn-outline-secondary:hover, .btn-outline-danger:hover {
  transform: translateY(-2px);
}

/* ── ANIMATED UNDERLINE ON H2 ─────────────────────────────────── */
.section-frame h2.font-heading {
  position: relative; display: inline-block;
}

/* ── SHIMMER ON IMAGE PLACEHOLDERS ───────────────────────────── */
.bg-secondary-subtle {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── VISI MISI BOX ────────────────────────────────────────────── */
.bg-white.border.rounded-4 {
  box-shadow: var(--shadow-card);
  border-color: rgba(15,23,42,.08) !important;
  transition: box-shadow .3s ease;
}
.bg-white.border.rounded-4:hover { box-shadow: var(--shadow-card-h); }

/* ── STRUKTUR PERSON CARDS ────────────────────────────────────── */
.col-6.col-md-2-4 .border.rounded-4,
[style*="max-width:20%"] .border.rounded-4 {
  border-color: rgba(15,23,42,.07) !important;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
[style*="max-width:20%"] .border.rounded-4:hover,
.col-6.col-md-2-4 .border.rounded-4:hover {
  box-shadow: 0 12px 28px -8px rgba(15,23,42,.16);
  transform: translateY(-5px);
  border-color: var(--primary-light) !important;
}

/* ══════════════════════════════════════════════════════════
   PERBAIKAN & PENINGKATAN – Agustus 2026
   ══════════════════════════════════════════════════════════ */

/* ── 1. MAP IFRAME – responsive, tidak terpotong ─────────── */
.map-iframe-wrap {
  position: relative;
  width: 100%;
  /* aspect-ratio 16:9 agar tinggi mengikuti lebar di semua layar */
  aspect-ratio: 16 / 9;
  min-height: 280px;
  max-height: 460px;
  overflow: hidden;
}
.map-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}
/* Kolom info lokasi: sama tinggi dengan peta di desktop */
@media (min-width: 992px) {
  .map-iframe-wrap { max-height: none; aspect-ratio: unset; height: 420px; }
}
/* Mobile: peta lebih pendek agar cukup layar */
@media (max-width: 767px) {
  .map-iframe-wrap { aspect-ratio: 4 / 3; min-height: 240px; max-height: 320px; }
}

/* ── 2. TOMBOL WHATSAPP – turunkan posisi ─────────────────── */
.wa-float {
  bottom: 2.2rem !important;  /* semula 5rem, sekarang lebih rendah */
}
@media (max-width: 768px) {
  .wa-float { bottom: 1.8rem !important; right: 1rem !important; }
}
@media (max-width: 480px) {
  .wa-float { bottom: 1.5rem !important; right: .75rem !important; }
}

/* ── 3. JUDUL SECTION – selalu di tengah ─────────────────── */
.section-frame > .section-badge,
.section-frame > h2,
.section-frame > h3,
.section-frame > p.text-secondary {
  display: block;
  text-align: center !important;
}
/* Khusus h2 dalam section-frame: tengah & inline-block agar
   animasi gradient-text (background-clip) tetap bekerja */
.section-frame > h2.font-heading {
  display: block !important;
  text-align: center !important;
  width: 100%;
}
/* Wrapper badge – pastikan berada di tengah */
.section-frame .section-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ── 4. ADMIN PANEL – perbaikan mobile ───────────────────── */
/* Overlay gelap ketika sidebar terbuka di mobile */
#adminOverlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,22,40,.55);
  backdrop-filter: blur(3px);
  z-index: 99;
}
#adminOverlay.show { display: block; }

/* Sidebar mobile – lebih lebar dan lebih rapi */
@media (max-width: 768px) {
  .admin-sidebar {
    width: 260px !important;
    box-shadow: 4px 0 24px rgba(10,22,40,.4);
    z-index: 200 !important;
  }
  .admin-main {
    margin-left: 0 !important;
    padding: 1rem !important;
  }
  /* Sticky mobile header di admin */
  .admin-topbar-mobile {
    position: sticky !important;
    top: 0;
    z-index: 90;
    background: #fff;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 2px 12px rgba(15,23,42,.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -1rem -1rem .75rem;
  }
  .admin-topbar-mobile .btn-menu {
    background: var(--grad-teal);
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: .5rem .85rem;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: transform .2s, box-shadow .2s;
  }
  .admin-topbar-mobile .btn-menu:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-teal);
  }
  /* Card/tabel di admin – tidak meluap di HP */
  .admin-main .card,
  .admin-main .section-frame { overflow-x: auto; }
  .admin-main table { min-width: 540px; }
  .admin-main .table-responsive { border-radius: 1rem; overflow: hidden; }
}

/* ── 5. ANIMASI HOVER KURSOR – semua elemen interaktif ────── */

/* Tabel baris */
.table tbody tr {
  transition: background .2s ease, transform .18s ease;
  cursor: default;
}
.table tbody tr:hover {
  background: rgba(15,118,110,.06) !important;
  transform: translateX(3px);
}

/* Link biasa */
a:not(.btn):not(.nav-pill):not(.dropdown-item):not(.navbar-brand):not(.footer-social) {
  transition: color .2s ease, opacity .2s ease;
}
a:not(.btn):not(.nav-pill):not(.dropdown-item):not(.navbar-brand):not(.footer-social):hover {
  opacity: .82;
}

/* Badge / tag */
.badge {
  transition: transform .2s ease, box-shadow .2s ease;
}
.badge:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(15,23,42,.2);
}

/* Input / form */
.form-control {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}
.form-control:hover:not(:focus) {
  border-color: var(--primary-light) !important;
  transform: translateY(-1px);
}

/* Select */
.form-select {
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-select:hover:not(:focus) {
  border-color: var(--primary-light) !important;
}

/* Section frame – sudah ada hover, tambah cursor pointer jika ada link di dalamnya */
.section-frame a { cursor: pointer; }

/* Gambar galeri – zoom lebih halus */
.galeri-wrap img {
  transition: transform .6s cubic-bezier(.16,1,.3,1), filter .4s ease !important;
}
.galeri-wrap:hover img {
  transform: scale(1.12) !important;
  filter: brightness(1.05) saturate(1.15);
}

/* Stat card di hero */
.hero-stat-card {
  transition: background .25s ease, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease !important;
}
.hero-stat-card:hover {
  transform: translateY(-5px) scale(1.03) !important;
  box-shadow: 0 16px 32px -8px rgba(10,22,40,.4) !important;
}

/* Nav pill tambahan */
.dropdown-item {
  transition: background .15s ease, color .15s ease, transform .15s ease !important;
}
.dropdown-item:hover {
  transform: translateX(4px) !important;
}

/* Tombol back-to-top */
#back-to-top {
  transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease !important;
}
#back-to-top:hover {
  transform: translateY(-5px) scale(1.12) !important;
}

/* Info block */
.info-block {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important;
}
.info-block:hover {
  transform: translateY(-4px) translateX(3px) !important;
  box-shadow: 0 12px 28px -8px rgba(15,23,42,.18) !important;
}

/* Logo navbar */
.navbar-brand {
  transition: transform .25s ease;
}
.navbar-brand:hover {
  transform: scale(1.04);
}

/* Profil gambar */
img.rounded-circle, img.rounded-4 {
  transition: transform .35s ease, box-shadow .35s ease;
}
img.rounded-circle:hover, img.rounded-4:hover {
  transform: scale(1.04) rotate(1deg);
  box-shadow: 0 12px 28px -8px rgba(15,23,42,.25);
}

/* Doc row – sudah ada, perkuat */
.doc-row:hover {
  transform: translateX(6px) !important;
}


/* ══════════════════════════════════════════════════════════
   STRUKTUR ORGANISASI – Grid responsif & rapi di semua layar
   ══════════════════════════════════════════════════════════ */

/* Grid otomatis: desktop 5 kolom, tablet 3, HP 2 */
.struktur-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 991px) {
  .struktur-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  .struktur-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}

/* Kartu tiap perangkat */
.struktur-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 1.1rem;
  padding: 1.1rem .75rem .9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  min-width: 0; /* cegah kartu meluap dari grid */
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.struktur-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 36px -10px rgba(15,23,42,.18);
  border-color: var(--primary-light) !important;
}

/* Foto / avatar */
.struktur-foto {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(15,118,110,.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(15,118,110,.15);
  transition: border-color .3s ease;
}
.struktur-card:hover .struktur-foto {
  border-color: var(--primary-light);
}
.struktur-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Nama – tidak terpotong, wrap normal */
.struktur-nama {
  font-size: .82rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
  /* word wrap agar tidak meluap */
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  width: 100%;
}

/* Jabatan */
.struktur-jabatan {
  font-size: .72rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
  width: 100%;
  opacity: .85;
}

/* Di HP kecil, foto sedikit lebih kecil agar muat */
@media (max-width: 480px) {
  .struktur-foto { width: 52px; height: 52px; font-size: 1.3rem; }
  .struktur-nama { font-size: .75rem; }
  .struktur-jabatan { font-size: .67rem; }
  .struktur-card { padding: .85rem .5rem .75rem; border-radius: .9rem; gap: .35rem; }
}

/* ══════════════════════════════════════════════════════════
   JUDUL SECTION – pastikan selalu di tengah
   ══════════════════════════════════════════════════════════ */
.section-frame .text-center > .section-badge,
.section-frame > .text-center {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}
/* Override CSS sebelumnya agar h2 di dalam text-center benar-benar center */
.section-frame .text-center h2.font-heading {
  text-align: center !important;
  display: block !important;
  width: 100%;
}


/* ══════════════════════════════════════════════════════════
   PEMISAH ANTAR SECTION – lebih rapi di HP & desktop
   ══════════════════════════════════════════════════════════ */

/* Jarak antar section-frame lebih jelas */
.section-frame.mb-4 {
  margin-bottom: 1.75rem !important;
}

/* Tambah shadow bawah tipis sebagai pemisah visual */
.section-frame {
  box-shadow: var(--shadow-card), 0 1px 0 rgba(15,23,42,.04) !important;
}

/* Di HP: tambah garis bawah tipis + jarak lebih besar */
@media (max-width: 767px) {
  .section-frame.mb-4 {
    margin-bottom: 1.25rem !important;
    /* Border bawah sebagai pemisah */
    border-bottom: 2px solid rgba(15,118,110,.12) !important;
  }
  /* Section gelap (statistik) pakai pemisah warna cerah */
  .section-frame.frame-dark {
    border-bottom: 2px solid rgba(20,184,166,.25) !important;
  }
  /* Tambah garis atas tipis di setiap section */
  .section-frame::before {
    height: 3px !important;
  }
}

/* ── Visi Misi box – lebih menarik ────────────────────────── */
.bg-white.border.rounded-4.p-4 {
  border-color: rgba(15,118,110,.15) !important;
  box-shadow: 0 4px 20px -8px rgba(15,118,110,.15) !important;
  transition: box-shadow .3s ease, transform .3s ease;
}
.bg-white.border.rounded-4.p-4:hover {
  box-shadow: 0 10px 30px -10px rgba(15,118,110,.25) !important;
  transform: translateY(-3px);
}


/* ══════════════════════════════════════════════════════════
   FIX FINAL – JUDUL TENGAH (desktop & HP) + QUICK MENU GRID
   ══════════════════════════════════════════════════════════ */

/* ── 1. Semua judul h2/h3 di dalam section-frame: selalu tengah ── */
.section-frame h2,
.section-frame h2.font-heading,
.section-frame h3,
.section-frame > .text-center h2,
.section-frame > .text-center h3,
.section-frame .text-center h2.font-heading {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

/* ── 2. Wrapper .text-center di dalam section-frame ── */
.section-frame > .text-center {
  display: block !important;
  text-align: center !important;
  width: 100%;
}

/* ── 3. Paksa tengah di semua ukuran layar (mobile override) ── */
@media (max-width: 991.98px) {
  .section-frame h2,
  .section-frame h3,
  .section-frame h2.font-heading {
    text-align: center !important;
    width: 100% !important;
  }
  /* Kolom teks profil singkat: di HP ikut tengah, bukan rata kiri */
  .section-frame .col-lg-6.text-center.text-lg-start {
    text-align: center !important;
  }
}

/* ── 4. Quick menu grid: pastikan tinggi item sama rata ── */
.row.row-cols-4.row-cols-sm-8 .col > a > div,
.row.row-cols-4.row-cols-md-8 .col > a > div {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── 5. Di HP: quick menu item label sedikit lebih besar ── */
@media (max-width: 575.98px) {
  .row.row-cols-4 .col > a > div {
    padding: .4rem .25rem !important;
    border-radius: .75rem !important;
  }
  .row.row-cols-4 .col > a > div p {
    font-size: .58rem !important;
  }
  .row.row-cols-4 .col > a > div .icon-pop {
    width: 30px !important;
    height: 30px !important;
    font-size: .85rem !important;
  }
}

/* ── 6. Dashboard frame: tombol "Lihat Dashboard" tengah ── */
.section-frame.frame-dark > a.btn,
.section-frame.frame-dark .btn.btn-accent {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   HAMBURGER BUTTON – selalu terlihat di navbar putih (mobile)
   ══════════════════════════════════════════════════════════════ */
.hamburger-btn {
  background: var(--grad-teal) !important;
  border-radius: 10px !important;
  width: 40px !important;
  height: 40px !important;
  flex-shrink: 0;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px -2px rgba(15,118,110,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hamburger-btn:hover, .hamburger-btn:focus {
  transform: scale(1.06);
  box-shadow: 0 6px 18px -2px rgba(15,118,110,.6);
  outline: none;
}
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.hamburger-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ══════════════════════════════════════════════════════════════
   PROFIL DESA – semua judul di tengah (desktop & mobile)
   ══════════════════════════════════════════════════════════════ */
.profil-heading-center {
  text-align: center !important;
}
/* Video section heading */
section .text-center .section-badge,
section .text-center h2.font-heading {
  text-align: center !important;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE OVERRIDES
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  /* Pastikan navbar tidak terlalu padat di HP */
  #mainNavbar .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Sembunyikan brand subtitle di HP agar tidak sempit */
  .brand-sub {
    display: none !important;
  }

  /* Judul halaman profil di tengah pada mobile */
  .section-pad .container {
    text-align: center !important;
  }
  .section-pad .container p {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
