/* ═══════════════════════════════════════════════════════
   WEB.CSS — Portal Desa (Blade version matching React frontend)
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* React frontend pakai font default Tailwind (system-ui stack), bukan Google Font khusus — disamakan di sini. */
body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; background: #f8fafc; color: #0f172a; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: #0f172a; }
a { text-decoration: none; color: inherit; transition: color 0.15s; }
img { max-width: 100%; display: block; }

/* ── Hero slideshow (beranda) — foto bergantian otomatis, dikelola admin ── */
.hero-slideshow { position: absolute; inset: 0; }
.hero-slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide-img.active { opacity: 1; }

/* ── Layout ── */
/* Jarak tepi mobile dinaikkan dari 1rem ke 1.25rem — 1rem terasa terlalu
   mepet ke tepi layar, terutama untuk kartu/badge berwarna solid dengan
   sudut membulat besar (page-header, tombol filter pil, dsb). */
.container-page { margin-left: auto; margin-right: auto; width: 100%; max-width: 80rem; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 640px)  { .container-page { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-page { padding-left: 2rem; padding-right: 2rem; } }

/* ── Navbar ── */
/* Reset chrome bawaan browser untuk <button> yang dipakai sebagai trigger dropdown
   (mis. tombol "Profil Desa" / "Informasi & Hukum") — tanpa ini browser menambahkan
   border/background/box-shadow default ala tombol native yang bikin kotak abu-abu. */
button.nav-link {
  border: none; background-color: transparent; cursor: pointer;
  font-family: inherit; line-height: inherit; -webkit-appearance: none; appearance: none;
}
.nav-link {
  display: inline-flex; align-items: center;
  border-radius: 0.5rem; padding: 0.5rem 0.875rem;
  font-size: 0.875rem; font-weight: 600; color: #475569;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: #059669; background: #f8fafc; }
.nav-link.active { background: #ecfdf5; color: #047857; font-weight: 700; }
.mobile-nav-link {
  display: block; border-radius: 0.75rem; padding: 0.625rem 1rem;
  font-size: 0.875rem; font-weight: 700; color: #334155;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav-link:hover { background: #f8fafc; }
.mobile-nav-link.active { background: #ecfdf5; color: #047857; }

/* Reset umum tombol native lain di area publik yang dipakai sebagai trigger UI
   (bukan tombol aksi/submit) supaya tidak mewarisi gaya OS bawaan. */
header button, .dropdown-wrapper button {
  border: none; background-color: transparent; cursor: pointer;
  font-family: inherit; font-size: inherit; line-height: inherit;
  -webkit-appearance: none; appearance: none;
}

/* ── Dropdowns ── */
.dropdown-wrapper { position: relative; }
.dropdown-menu {
  position: absolute; left: 0; top: 100%; margin-top: 0.5rem;
  width: 16rem; border-radius: 1rem; border: 1px solid #f1f5f9;
  background: white; padding: 0.5rem 0; box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  animation: dropdown-enter 0.25s cubic-bezier(0.16,1,0.3,1) both;
  z-index: 50;
}
.dropdown-menu.right-0 { left: auto; right: 0; width: 18rem; }
.dropdown-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1rem; transition: background 0.15s; color: #334155; }
.dropdown-item:hover { background: #f8fafc; }
.dropdown-icon { display: flex; align-items: center; justify-content: center; height: 2rem; width: 2rem; border-radius: 0.5rem; background: #ecfdf5; flex-shrink: 0; font-size: 0.875rem; }
.dropdown-chevron { transition: transform 0.2s; }
.dropdown-chevron.rotate-180 { transform: rotate(180deg); }

/* ── Buttons ── */
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 0.75rem; background: #059669; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 700; color: white; box-shadow: 0 4px 14px rgba(5,150,105,0.3); transition: all 0.2s; }
.btn-primary:hover { background: #047857; transform: translateY(-1px); }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 700; color: white; transition: all 0.2s; }
.btn-outline:hover { background: rgba(255,255,255,0.2); }

/* ── Cards ── */
.card { border-radius: 1.5rem; background: white; border: 1px solid #f1f5f9; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.card-hover-lift { transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease; }
.card-hover-lift:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(15,61,43,0.1); }

/* ── Page Header ── */
.page-header { margin-bottom: 2.5rem; border-radius: 2rem; background: linear-gradient(135deg, #0f172a 0%, #064e3b 50%, #0f172a 100%); padding: 2.5rem 2rem; color: white; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; opacity: 0.1; background-image: radial-gradient(circle at 20% 80%, white 1px, transparent 1px); background-size: 40px 40px; }
.page-header-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px; background: rgba(255,255,255,0.1); padding: 0.25rem 1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6ee7b7; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 1rem; }
.page-header h1 { font-size: 2rem; font-weight: 900; color: white; line-height: 1.2; }
.page-header p { margin-top: 0.75rem; color: #94a3b8; font-size: 0.9rem; max-width: 42rem; }
@media (min-width: 640px) { .page-header { padding: 3rem 2.5rem; } .page-header h1 { font-size: 2.5rem; } }

/* ── Grid utilities ── */
.grid { display: grid; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
@media (min-width: 640px) {
  .sm-grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sm-grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .lg-grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lg-grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* ── Badges ── */
.badge { display: inline-block; border-radius: 9999px; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 700; }
.badge-emerald { background: #d1fae5; color: #065f46; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-amber { background: #fef3c7; color: #92400e; }

/* ── Form elements ── */
.form-input { width: 100%; border-radius: 0.75rem; border: 1px solid #e2e8f0; background: white; padding: 0.625rem 0.875rem; font-size: 0.875rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.form-input:focus { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,0.1); }
.form-input.pl-10, input.pl-10 { padding-left: 2.5rem; }
.form-input-dark { width: 100%; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.1); padding: 0.625rem 1rem; font-size: 0.875rem; color: white; outline: none; }
.form-input-dark::placeholder { color: #94a3b8; }
.form-input-dark:focus { box-shadow: 0 0 0 2px #059669; }

/* ── Prose Content ── */
.prose-content h2 { margin-bottom: 0.75rem; margin-top: 1.5rem; font-size: 1.5rem; font-weight: 700; }
.prose-content h3 { margin-bottom: 0.5rem; margin-top: 1.25rem; font-size: 1.25rem; font-weight: 700; }
.prose-content p { margin-bottom: 1rem; line-height: 1.75rem; }
.prose-content ul { margin-bottom: 1rem; list-style: disc; padding-left: 1.5rem; }
.prose-content ol { margin-bottom: 1rem; list-style: decimal; padding-left: 1.5rem; }
.prose-content li { margin-bottom: 0.25rem; }
.prose-content table { width: 100%; margin-bottom: 1rem; font-size: 0.875rem; }
.prose-content table th, .prose-content table td { border: 1px solid #e2e8f0; padding: 0.5rem 0.75rem; text-align: left; }
.prose-content table th { background: #f8fafc; font-weight: 700; }

/* ── Image effects ── */
.img-zoom-hover { transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.img-zoom-hover:hover, .group:hover .img-zoom-hover { transform: scale(1.06); }

/* ── Spinner ── */
.spinner-wrap { display: flex; align-items: center; justify-content: center; padding: 5rem; }
.spinner { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 3px solid #e2e8f0; border-top-color: #059669; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Progress bar ── */
.progress-bar { height: 0.375rem; border-radius: 9999px; background: #e2e8f0; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 9999px; transition: width 0.5s; }

/* ── Table ── */
.data-table { width: 100%; font-size: 0.75rem; color: #475569; }
.data-table thead { background: #0f172a; color: white; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table th, .data-table td { padding: 1rem 1.5rem; text-align: left; }
.data-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.1s; }
.data-table tbody tr:hover { background: rgba(248,250,252,0.7); }

/* ══════════════════════════════════════════════════════
   ANIMATION SYSTEM
   ══════════════════════════════════════════════════════ */

@keyframes page-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-transition-enter { animation: page-enter 0.5s cubic-bezier(0.16,1,0.3,1) forwards; }

@keyframes hero-text-enter {
  from { opacity: 0; transform: translateY(40px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes hero-card-enter {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes hero-badge-enter {
  from { opacity: 0; transform: translateY(-12px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-animate-badge { animation: hero-badge-enter 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.hero-animate-title { animation: hero-text-enter 0.8s cubic-bezier(0.16,1,0.3,1) 0.25s both; }
.hero-animate-subtitle { animation: hero-text-enter 0.8s cubic-bezier(0.16,1,0.3,1) 0.4s both; }
.hero-animate-cta { animation: hero-text-enter 0.7s cubic-bezier(0.16,1,0.3,1) 0.55s both; }
.hero-animate-card { animation: hero-card-enter 0.8s cubic-bezier(0.16,1,0.3,1) 0.5s both; }

@keyframes stat-pop {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.stat-animate { animation: stat-pop 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.stat-animate:nth-child(1) { animation-delay: 0.1s; }
.stat-animate:nth-child(2) { animation-delay: 0.2s; }
.stat-animate:nth-child(3) { animation-delay: 0.3s; }
.stat-animate:nth-child(4) { animation-delay: 0.4s; }

@keyframes fade-up-enter {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up-enter 0.7s cubic-bezier(0.16,1,0.3,1) both; }
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

@keyframes dropdown-enter {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-animate { animation: dropdown-enter 0.25s cubic-bezier(0.16,1,0.3,1) both; }

@keyframes mobile-menu-enter {
  from { opacity: 0; max-height: 0; transform: translateY(-8px); }
  to { opacity: 1; max-height: 800px; transform: translateY(0); }
}
.mobile-menu-animate { animation: mobile-menu-enter 0.4s cubic-bezier(0.16,1,0.3,1) both; overflow: hidden; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ── Scroll-triggered animation ── */
.animate-in-base { transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); will-change: opacity, transform; }
.animate-in-hidden { opacity: 0; transform: translateY(32px); }
.animate-in-visible { opacity: 1; transform: translate(0,0) scale(1); }

/* ── Utility classes ── */
.hidden { display: none !important; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.flex-1 { flex: 1 1 0; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.z-40 { z-index: 40; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.font-black { font-weight: 900; }
.font-extrabold { font-weight: 800; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.object-cover { object-fit: cover; }
.aspect-video { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1/1; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.border { border: 1px solid; }
.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-800 { border-color: #1e293b; }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.07); }
.shadow-md { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.shadow-lg { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 48px rgba(0,0,0,0.12); }
.shadow-2xl { box-shadow: 0 24px 64px rgba(0,0,0,0.16); }
.backdrop-blur { backdrop-filter: blur(8px); }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ── Ukuran teks & tipografi (sebelumnya banyak dipakai tapi tidak pernah
   didefinisikan — ini penyebab utama banyak elemen tampil dengan ukuran
   font/leading default browser, bukan sesuai desain, terutama di mobile) ── */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* ── Ukuran tetap (ikon, avatar, badge) ── */
.h-4 { height: 1rem; } .w-4 { width: 1rem; }
.h-5 { height: 1.25rem; } .w-5 { width: 1.25rem; }
.h-6 { height: 1.5rem; } .w-6 { width: 1.5rem; }
.h-7 { height: 1.75rem; } .w-7 { width: 1.75rem; }
.h-8 { height: 2rem; } .w-8 { width: 2rem; }
.h-9 { height: 2.25rem; } .w-9 { width: 2.25rem; }
.h-10 { height: 2.5rem; } .w-10 { width: 2.5rem; }
.h-12 { height: 3rem; } .w-12 { width: 3rem; }
.h-14 { height: 3.5rem; } .w-14 { width: 3.5rem; }
.h-16 { height: 4rem; } .w-16 { width: 4rem; }
.h-20 { height: 5rem; } .w-20 { width: 5rem; }
.h-24 { height: 6rem; } .w-24 { width: 6rem; }
.h-32 { height: 8rem; } .w-32 { width: 8rem; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* ── Rounded tambahan ── */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }

/* ── Transisi ── */
.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.transition-transform { transition: transform 0.2s ease; }
.transition-opacity { transition: opacity 0.2s ease; }

/* ── Padding penuh (semua sisi & per-sisi), skala sama seperti Tailwind ── */
.p-1 { padding: 0.25rem; } .p-1\.5 { padding: 0.375rem; } .p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; } .p-3 { padding: 0.75rem; } .p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; } .p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; } .p-10 { padding: 2.5rem; } .p-12 { padding: 3rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pt-1 { padding-top: 0.25rem; } .pt-2 { padding-top: 0.5rem; } .pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; } .pt-6 { padding-top: 1.5rem; } .pt-8 { padding-top: 2rem; }
.pb-1 { padding-bottom: 0.25rem; } .pb-2 { padding-bottom: 0.5rem; } .pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; } .pb-6 { padding-bottom: 1.5rem; } .pb-8 { padding-bottom: 2rem; }
.pl-2 { padding-left: 0.5rem; } .pl-4 { padding-left: 1rem; } .pl-6 { padding-left: 1.5rem; }
.pr-2 { padding-right: 0.5rem; } .pr-4 { padding-right: 1rem; }

/* ── Margin tambahan (mengisi celah mt-1/mb-1..3/5, mx-*, my-*, ml-*, mr-*) ── */
.mt-1 { margin-top: 0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-5 { margin-bottom: 1.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: 0.5rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

/* ── Varian hover & opacity yang benar-benar dipakai di markup
   (Tailwind syntax bg-color/opacity & hover:x tidak bisa dijadikan pola
   umum tanpa preprocessor, jadi didaftarkan eksplisit satu per satu) ── */
.bg-white\/95 { background-color: rgba(255,255,255,.95); }
.bg-emerald-50\/70 { background-color: rgba(236,253,245,.7); }
.hover\:bg-emerald-50\/60:hover { background-color: rgba(236,253,245,.6); }
.hover\:bg-emerald-100:hover { background-color: #d1fae5; }
.hover\:bg-emerald-700:hover { background-color: #047857; }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-emerald-400:hover { color: #34d399; }
.hover\:text-emerald-600:hover { color: #059669; }
.hover\:text-emerald-700:hover { color: #047857; }
.hover\:text-emerald-800:hover { color: #065f46; }

/* Colors */
.bg-white { background: #fff; }
.bg-slate-50 { background: #f8fafc; }
.bg-slate-100 { background: #f1f5f9; }
.bg-slate-900 { background: #0f172a; }
.bg-emerald-50 { background: #ecfdf5; }
.bg-emerald-600 { background: #059669; }
.bg-emerald-700 { background: #047857; }
.text-white { color: #fff; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-emerald-400 { color: #34d399; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-blue-400 { color: #60a5fa; }
.text-purple-400 { color: #c084fc; }
.text-amber-300 { color: #fcd34d; }
.text-teal-300 { color: #5eead4; }
.text-red-400 { color: #f87171; }

/* village-* — palet custom persis dari react-frontend/tailwind.config.js (beda dari emerald-* Tailwind bawaan) */
.bg-village-50 { background: #effcf5; }
.bg-village-100 { background: #d8f8e6; }
.bg-village-500 { background: #16a364; }
.bg-village-600 { background: #0e8450; }
.bg-village-700 { background: #0d6a43; }
.bg-village-900 { background: #0a3c28; }
.text-village-500 { color: #16a364; }
.text-village-600 { color: #0e8450; }
.text-village-700 { color: #0d6a43; }
.border-village-500 { border-color: #16a364; }
.shadow-soft { box-shadow: 0 12px 35px rgba(15, 61, 43, .08); }
.group:hover .group-hover\:text-village-600,
a:hover .hover\:text-village-600,
.hover\:text-village-600:hover { color: #0e8450; }
.group:hover .group-hover\:text-emerald-600 { color: #059669; }

/* Lucide icon defaults — ikon dirender lewat lucide.createIcons() di layout.
   Ukuran diatur per-tag lewat atribut width/height (disalin apa adanya oleh Lucide),
   supaya sama persis dengan prop size={n} pada lucide-react. */
svg.lucide { stroke-width: 2; flex-shrink: 0; }

/* Padding / Margin quick utils */
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* News Card */
.news-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem; border: 1px solid #f1f5f9; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(15,61,43,0.1); }
.news-card img { aspect-ratio: 16/9; width: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.news-card:hover img { transform: scale(1.06); }

/* Service Card */
.service-card { display: flex; flex-direction: column; gap: 1rem; border-radius: 1rem; border: 1px solid #f1f5f9; background: white; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: all 0.3s; }
.service-card:hover { border-color: #6ee7b7; box-shadow: 0 8px 24px rgba(5,150,105,0.1); transform: translateY(-2px); }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 0.5rem; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600; transition: all 0.15s; border: 1px solid #e2e8f0; background: white; color: #475569; }
.page-btn:hover { background: #f8fafc; border-color: #059669; color: #059669; }
.page-btn.active { background: #059669; border-color: #059669; color: white; font-weight: 700; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-animate-badge, .hero-animate-title, .hero-animate-subtitle,
  .hero-animate-cta, .hero-animate-card, .stat-animate,
  .page-transition-enter, .mobile-menu-animate, .dropdown-animate,
  .card-hover-lift, .img-zoom-hover, .animate-float, .animate-fade-up,
  .animate-in-base {
    animation: none !important; transition: none !important;
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
}
