/* ============================================
   IMPLI Landing Page Styles
   Converted from Tailwind CSS to plain CSS
   ============================================ */

/* --- CSS Variables / Theme --- */
:root {
  --klh-orange: #F97910;
  --klh-orange-light: #FFF3EB;
  --klh-teal: #005952;
  --klh-teal-light: #E6F2F1;
  --klh-blue: #147DEF;
  --klh-blue-light: #EBF3FC;
  --deep-teal: #003D38;
  --dark: #1A1A2E;
  --gray-dark: #4A4A5A;
  --gray-medium: #6B7280;
  --gray-light: #E5E7EB;
  --gray-very-light: #F3F4F6;
  --white: #ffffff;
  --shadow-card: 0 4px 20px rgba(0, 89, 82, 0.08);
  --shadow-card-hover: 0 12px 30px rgba(0, 89, 82, 0.15);
  --shadow-nav: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; outline: none; }

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-very-light); }
::-webkit-scrollbar-thumb { background: var(--gray-medium); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--klh-teal); }

/* --- Utilities --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .container { padding: 0 1.5rem; } }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: var(--white); }
.text-dark { color: var(--dark); }
.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; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-\[11px\] { font-size: 11px; line-height: 16px; }
.text-\[13px\] { font-size: 13px; line-height: 18px; }
.text-\[15px\] { font-size: 15px; line-height: 22px; }
.bg-white { background: var(--white); }
.bg-transparent { background: transparent; }
.bg-deep-teal { background: var(--deep-teal); }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.italic { font-style: italic; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.top-1 { top: 0.25rem; }
.top-3 { top: 0.75rem; }
.top-4 { top: 1rem; }
.top-6 { top: 1.5rem; }
.top-1\/2 { top: 50%; }
.top-full { top: 100%; }
.left-0 { left: 0; }
.left-1 { left: 0.25rem; }
.left-1\/2 { left: 50%; }
.left-3 { left: 0.75rem; }
.left-4 { left: 1rem; }
.left-6 { left: 1.5rem; }
.left-8 { left: 2rem; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.right-8 { right: 2rem; }
.bottom-0 { bottom: 0; }
.bottom-2 { bottom: 0.5rem; }
.bottom-6 { bottom: 1.5rem; }
.bottom-8 { bottom: 2rem; }
.-bottom-1 { bottom: -0.25rem; }
.-bottom-2 { bottom: -0.5rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }
.z-0 { z-index: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.invisible { visibility: hidden; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.self-start { align-self: flex-start; }
.self-auto { align-self: auto; }
.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-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Space between utilities */
.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-3\.5 > * + * { margin-top: 0.875rem; }
.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; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }

.aspect-\[16\/10\] { aspect-ratio: 16/10; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.aspect-\[16\/9\] { aspect-ratio: 16/9; }
.aspect-video { aspect-ratio: 16/9; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.ml-1 { margin-left: 0.25rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.-mt-10 { margin-top: -2.5rem; }
.-mt-14 { margin-top: -3.5rem; }
.-mt-20 { margin-top: -5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-14 { margin-top: 3.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mt-24 { margin-top: 6rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-16 { padding-bottom: 4rem; }
.pr-4 { padding-right: 1rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.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-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.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; }
.py-7 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-32 { padding-top: 8rem; }
.pt-20 { padding-top: 5rem; }
.pb-16 { padding-bottom: 4rem; }
.p-2 { padding: 0.5rem; }
.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; }
.w-full { width: 100%; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.h-0\.5 { height: 0.125rem; }
.h-1 { height: 0.25rem; }
.h-3 { height: 0.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-48 { height: 12rem; }
.h-full { height: 100%; }
.w-3 { width: 0.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-40 { width: 10rem; }
.w-48 { width: 12rem; }
.w-auto { width: auto; }
.max-h-12 { max-height: 3rem; }
.max-w-full { max-width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-h-\[90vh\] { max-height: 90vh; }
.max-h-\[calc\(100vh-73px\)\] { max-height: calc(100vh - 73px); }
.max-w-\[32px\] { max-width: 32px; }
.max-w-\[450px\] { max-width: 450px; }
.max-w-\[1280px\] { max-width: 1280px; }
.min-w-\[120px\] { min-width: 120px; }
.min-w-\[200px\] { min-width: 200px; }
.min-h-\[280px\] { min-height: 280px; }
.min-h-screen { min-height: 100vh; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid var(--gray-light); }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top: 1px solid var(--gray-light); }
.border-b { border-bottom: 1px solid var(--gray-light); }
.border-gray-light { border-color: var(--gray-light); }
.border-gray-light\/60 { border-color: rgba(229,231,235,0.6); }
.border-white { border-color: var(--white); }
.divide-y > * + * { border-top: 1px solid var(--gray-light); }
.divide-x > * + * { border-left: 1px solid var(--gray-light); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }
.border-white\/25 { border-color: rgba(255,255,255,0.25); }
.border-white\/50 { border-color: rgba(255,255,255,0.5); }
.opacity-0 { opacity: 0; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.transition-transform { transition: transform 0.3s ease; }
.transition-opacity { transition: opacity 0.3s ease; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.duration-1000 { transition-duration: 1000ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.translate-y-0 { transform: translateY(0); }
.translate-y-1 { transform: translateY(0.25rem); }
.-translate-x-full { transform: translateX(-100%); }
.-translate-x-2 { transform: translateX(-0.5rem); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-125 { transform: scale(1.25); }
.scale-90 { transform: scale(0.9); }
.scale-110 { transform: scale(1.1); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-100:hover { transform: scale(1); }
.hover\:opacity-100:hover { opacity: 1; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.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; }
.line-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-line { white-space: pre-line; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.text-balance { text-wrap: balance; }
.drop-shadow-md { filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.drop-shadow-sm { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05)); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.select-none { user-select: none; }
.backdrop\:backdrop-blur-md::backdrop { backdrop-filter: blur(12px); }
.backdrop\:bg-dark\/75::backdrop { background-color: rgba(26,26,46,0.75); }

/* --- Color Utilities --- */
.text-klh-orange { color: var(--klh-orange); }
.text-klh-teal { color: var(--klh-teal); }
.text-klh-blue { color: var(--klh-blue); }
.text-gray-dark { color: var(--gray-dark); }
.text-gray-medium { color: var(--gray-medium); }
.bg-klh-orange { background-color: var(--klh-orange); }
.bg-klh-teal { background-color: var(--klh-teal); }
.bg-klh-teal-light { background-color: var(--klh-teal-light); }
.bg-klh-orange-light { background-color: var(--klh-orange-light); }
.bg-klh-blue-light { background-color: var(--klh-blue-light); }
.bg-klh-orange\/10 { background-color: rgba(249,121,16,0.1); }
.bg-gray-very-light { background-color: var(--gray-very-light); }
.bg-dark { background-color: var(--dark); }
.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.bg-white\/15 { background-color: rgba(255,255,255,0.15); }
.bg-white\/20 { background-color: rgba(255,255,255,0.2); }
.bg-white\/90 { background-color: rgba(255,255,255,0.9); }
.bg-dark\/40 { background-color: rgba(26,26,46,0.4); }
.bg-dark\/60 { background-color: rgba(26,26,46,0.6); }
.bg-dark\/75 { background-color: rgba(26,26,46,0.75); }
.bg-dark\/80 { background-color: rgba(26,26,46,0.8); }
.bg-dark\/95 { background-color: rgba(26,26,46,0.95); }
.bg-black\/40 { background-color: rgba(0,0,0,0.4); }
.bg-black\/50 { background-color: rgba(0,0,0,0.5); }
.bg-klh-teal\/10 { background-color: rgba(0,89,82,0.1); }
.bg-klh-teal\/20 { background-color: rgba(0,89,82,0.2); }
.bg-klh-teal\/40 { background-color: rgba(0,89,82,0.4); }
.bg-klh-orange\/25 { background-color: rgba(249,121,16,0.25); }
.bg-klh-orange\/30 { background-color: rgba(249,121,16,0.3); }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-800 { background-color: #065f46; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-800 { background-color: #1e40af; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-800 { background-color: #92400e; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-900 { background-color: #111827; }
.text-emerald-800 { color: #065f46; }
.text-blue-800 { color: #1e40af; }
.text-amber-800 { color: #92400e; }
.text-gray-700 { color: #374151; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-blue-200 { border-color: #bfdbfe; }
.border-amber-200 { border-color: #fde68a; }
.border-gray-200 { border-color: #e5e7eb; }
.border-klh-teal\/20 { border-color: rgba(0,89,82,0.2); }
.border-klh-teal\/10 { border-color: rgba(0,89,82,0.1); }
.border-klh-orange\/20 { border-color: rgba(249,121,16,0.2); }
.border-gray-very-light { border-color: var(--gray-very-light); }
.border-klh-teal { border-color: var(--klh-teal); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.text-white\/50 { color: rgba(255,255,255,0.5); }
.text-white\/40 { color: rgba(255,255,255,0.4); }
.text-white\/90 { color: rgba(255,255,255,0.9); }
.bg-white\/40 { background-color: rgba(255,255,255,0.4); }
.hover\:bg-klh-orange:hover { background-color: var(--klh-orange); }
.hover\:bg-klh-teal:hover { background-color: var(--klh-teal); }
.hover\:bg-klh-teal-light:hover { background-color: var(--klh-teal-light); }
.hover\:bg-klh-teal-light\/40:hover { background-color: rgba(230, 242, 241, 0.45); }
.hover\:bg-klh-orange:hover { background-color: var(--klh-orange); }
.hover\:bg-klh-orange\/90:hover { background-color: rgba(249,121,16,0.9); }
.hover\:bg-klh-teal\/90:hover { background-color: rgba(0,89,82,0.9); }
.hover\:bg-white:hover { background-color: var(--white); }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }
.hover\:bg-white\/70:hover { background-color: rgba(255,255,255,0.7); }
.hover\:bg-gray-very-light:hover { background-color: var(--gray-very-light); }
.hover\:text-klh-orange:hover { color: var(--klh-orange); }
.hover\:text-klh-teal:hover { color: var(--klh-teal); }
.hover\:text-white:hover { color: var(--white); }
.hover\:text-dark:hover { color: var(--dark); }
.hover\:text-white\/80:hover { color: rgba(255,255,255,0.8); }
.hover\:border-klh-orange:hover { border-color: var(--klh-orange); }
.hover\:border-white:hover { border-color: var(--white); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.active\:scale-95:active { transform: scale(0.95); }
.active\:scale-\[0\.98\]:active { transform: scale(0.98); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:translate-y-0 { transform: translateY(0); }
.group:hover .group-hover\:text-klh-teal { color: var(--klh-teal); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:translate-x-0 { transform: translateX(0); }
.group:hover .group-hover\:visible { visibility: visible; }
.group:hover .group-hover\:rotate-180 { transform: rotate(180deg); }
.group:hover .group-hover\:bg-klh-teal { background-color: var(--klh-teal); }
.group:hover .group-hover\:bg-klh-orange { background-color: var(--klh-orange); }
.group:hover .group-hover\:text-white { color: var(--white); }
.group:hover .group-hover\:!text-dark { color: var(--dark) !important; }
.group:hover .group-hover\:bg-white { background-color: var(--white); }
.group:hover .group-hover\:border-white { border-color: var(--white); }

/* --- Gradient Backgrounds --- */
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-from, transparent), var(--tw-via, var(--tw-to, transparent)), var(--tw-to, transparent)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-from, transparent), var(--tw-via, var(--tw-to, transparent)), var(--tw-to, transparent)); }
.bg-gradient-to-l { background-image: linear-gradient(to left, var(--tw-from, transparent), var(--tw-via, var(--tw-to, transparent)), var(--tw-to, transparent)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-from, transparent), var(--tw-via, var(--tw-to, transparent)), var(--tw-to, transparent)); }
.from-klh-teal { --tw-from: var(--klh-teal); }
.from-white { --tw-from: var(--white); }
.from-dark\/40 { --tw-from: rgba(26,26,46,0.4); }
.via-deep-teal { --tw-via: var(--deep-teal); }
.via-transparent { --tw-via: transparent; }
.to-dark { --tw-to: var(--dark); }
.to-transparent { --tw-to: transparent; }

/* --- Grid Responsive --- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@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)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none !important; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-sm { font-size: 0.875rem; }
  .sm\:text-xs { font-size: 0.75rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:p-7 { padding: 1.75rem; }
  .sm\:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .sm\:py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .sm\:py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
  .sm\:py-56 { padding-top: 14rem; padding-bottom: 14rem; }
  .sm\:mt-20 { margin-top: 5rem; }
  .sm\:mt-14 { margin-top: 3.5rem; }
  .sm\:mb-16 { margin-bottom: 4rem; }
  .sm\:gap-2 { gap: 0.5rem; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:w-auto { width: auto; }
  .sm\:h-56 { height: 14rem; }
  .sm\:left-8 { left: 2rem; }
  .sm\:right-8 { right: 2rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-left { text-align: left; }
  .sm\:-mt-20 { margin-top: -5rem; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:hidden { display: none !important; }
  .md\:block { display: block; }
  .md\:inline-flex { display: inline-flex; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .md\:py-0 { padding-top: 0; padding-bottom: 0; }
  .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .md\:p-0 { padding: 0; }
  .md\:mb-0 { margin-bottom: 0; }
  .md\:mb-5 { margin-bottom: 1.25rem; }
  .md\:self-auto { align-self: auto; }
  .md\:gap-6 { gap: 1.5rem; }
  .md\:gap-8 { gap: 2rem; }
  .md\:gap-10 { gap: 2.5rem; }
  .md\:gap-12 { gap: 3rem; }
  .md\:aspect-auto { aspect-ratio: auto; }
  .md\:h-full { height: 100%; }
  .md\:aspect-\[16\/10\] { aspect-ratio: 16/10; }
  .md\:p-8 { padding: 2rem; }
  .md\:pb-0 { padding-bottom: 0; }
  .md\:w-72 { width: 18rem; }
  .md\:w-auto { width: auto; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none !important; }
  .lg\:inline-flex { display: inline-flex; }
  .lg\:inline { display: inline; }
  .lg\:block { display: block; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-xl { font-size: 1.25rem; }
  .lg\:text-lg { font-size: 1.125rem; }
  .lg\:text-2xl { font-size: 1.5rem; }
  .lg\:p-10 { padding: 2.5rem; }
  .lg\:p-16 { padding: 4rem; }
  .lg\:p-20 { padding: 5rem; }
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .lg\:py-0 { padding-top: 0; padding-bottom: 0; }
  .lg\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lg\:pt-0 { padding-top: 0; }
  .lg\:mt-12 { margin-top: 3rem; }
  .lg\:mb-5 { margin-bottom: 1.25rem; }
  .lg\:mb-8 { margin-bottom: 2rem; }
  .lg\:mb-12 { margin-bottom: 3rem; }
  .lg\:mb-16 { margin-bottom: 4rem; }
  .lg\:mb-20 { margin-bottom: 5rem; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-10 { gap: 2.5rem; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:divide-y { border-top: 1px solid var(--gray-light); }
  .lg\:min-h-500px { min-height: 500px; }
  .lg\:aspect-auto { aspect-ratio: auto; }
  .lg\:aspect-\[16\/10\] { aspect-ratio: 16/10; }
  .lg\:h-full { height: 100%; }
  .lg\:min-h-\[280px\] { min-height: 280px; }
}

/* --- Specific Component Styles --- */

/* Navbar */
#navbar {
  background: transparent;
  transition: all 0.3s ease;
}
#navbar .nav-link { color: white; }
#navbar .nav-link.active { background: rgba(255, 255, 255, 0.15); color: white; }
#navbar .nav-icon-btn { color: white; }
#navbar .nav-logo-text { color: white; }
#navbar .logo-white { display: block; }
#navbar .logo-color { display: none; }

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-nav);
}
#navbar.scrolled .nav-link { color: var(--dark); }
#navbar.scrolled .nav-link:hover { background: var(--klh-teal-light); color: var(--klh-teal); }
#navbar.scrolled .nav-link.active { background: var(--klh-teal-light); color: var(--klh-teal); font-weight: 600; }
#navbar.scrolled .nav-icon-btn { color: var(--dark); }
#navbar.scrolled .nav-logo-text { color: var(--klh-teal); }
#navbar.scrolled .logo-white { display: none; }
#navbar.scrolled .logo-color { display: block; }

/* Lockup logo + wordmark navbar.
   Diskalakan dengan clamp(), bukan breakpoint: berkas ini hampir tidak punya
   varian sm:/md: untuk tinggi maupun ukuran teks - kelas sm:h-14 pernah
   dipakai di navbar dan diam-diam tidak pernah berlaku karena tidak ada di
   sini. clamp() juga membuat perubahannya mulus mengikuti lebar layar, bukan
   meloncat di titik breakpoint.
   Rentang: logo 28px -> 36px, wordmark 15px -> 24px, gap 8px -> 10px.
   Rasio gap terhadap tinggi logo dijaga sekitar 0,28 di semua ukuran. */
.nav-brand {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.3rem + 0.6vw, 0.625rem);
  min-width: 0;
}
.nav-brand-logo {
  height: clamp(1.75rem, 1.3rem + 2.2vw, 2.25rem);
  width: auto;
  flex-shrink: 0;
}
.nav-brand-text {
  font-size: clamp(0.9375rem, 0.68rem + 1.3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile Drawer */
.mobile-menu-btn { color: white; background: transparent; border: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 0.5rem; }
@media (min-width: 1024px) {
  .mobile-menu-btn { display: none !important; }
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.15); }
.mobile-menu-btn.scrolled { background: transparent; color: var(--dark); }
.mobile-menu-btn.scrolled:hover { background: var(--klh-teal-light); }
.mobile-submenu-toggle { border: none !important; box-shadow: none !important; outline: none !important; appearance: none !important; -webkit-appearance: none !important; text-align: left !important; }
.mobile-submenu-toggle:not(.open):hover,
.mobile-submenu-toggle:not(.open):focus { background: var(--klh-teal-light) !important; color: var(--klh-teal) !important; }
.mobile-submenu-toggle.open { background: var(--klh-teal-light) !important; color: var(--klh-teal) !important; }
#mobile-drawer { pointer-events: none; }
#mobile-drawer.open { visibility: visible; opacity: 1; pointer-events: auto; }
#mobile-drawer.open #drawer-panel { transform: translateY(0); }

/* Panel bisa lebih tinggi daripada layar pendek - di perangkat 568px (iPhone SE)
   isinya mencapai ~626px, sehingga tombol bahasa di bagian bawah tidak
   terjangkau sama sekali tanpa ini. dvh dipakai supaya bilah alamat peramban
   mobile yang muncul-hilang tidak memotong panel; vh ditulis lebih dulu sebagai
   cadangan untuk peramban lama. overscroll-behavior menahan gulirnya agar tidak
   merembet ke halaman di belakang drawer. */
#drawer-panel {
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-submenu-toggle svg { transition: transform 0.2s ease; }
.mobile-submenu-toggle.open svg { transform: rotate(180deg); }
.mobile-dropdown .mobile-submenu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-dropdown .mobile-submenu.open { max-height: 500px; }
/* Indent submenu dihitung dari teks item induknya, bukan dari tepi panel.
   Wrapper nav punya inset 10px, jadi padding-left 1.75rem (28px) menaruh teks
   submenu di 38px - 18px lebih dalam dari induknya di 20px. Sebelumnya 2.5rem
   membuat selisihnya 30px dan submenu terlihat terlepas dari induknya.
   Padding vertikal 0.75rem supaya tinggi barisnya mencapai 44px. */
.mobile-submenu a { display: block; padding: 0.75rem 1rem 0.75rem 1.75rem; font-size: 13px; color: #4b5563; border-radius: 0.5rem; transition: color 0.15s, background 0.15s; }
.mobile-submenu a:hover { color: var(--klh-teal); background: var(--klh-teal-light); }

/* Penanda halaman aktif untuk submenu drawer.
   Blade sudah menempelkan kelas .active pada item yang sedang dibuka, tapi
   sebelumnya tidak ada aturan yang memakainya - kelasnya menempel tanpa efek,
   sehingga di mobile tidak ada tanda halaman mana yang sedang dilihat.
   Nilainya menyamai item aktif lain di portal (bg-klh-teal-light,
   text-klh-teal, font-semibold) agar penandanya seragam. */
.mobile-submenu a.active {
  background: var(--klh-teal-light);
  color: var(--klh-teal);
  font-weight: 600;
}
.drawer-footer { padding-bottom: 1.5rem; }

/* Target sentuh minimum 44px (Apple HIG). Diatur di sini, bukan lewat utility,
   karena .w-11 tidak ada di berkas ini - .h-11 ada tapi pasangan lebarnya
   tidak, jadi menulisnya sebagai kelas justru menghasilkan tombol lonjong. */
#close-drawer {
  width: 44px;
  height: 44px;
}

.drawer-footer a {
  min-height: 44px;
}

/* Hero */
#hero-section {
  min-height: 100vh;
}

/* Card Hover Lift */
.card-hover-lift {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
  will-change: transform;
}
.card-hover-lift:hover,
.stagger-children.is-visible > .card-hover-lift:hover,
.stagger-children > .card-hover-lift:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 16px 35px rgba(0, 89, 82, 0.18) !important;
  border-color: rgba(0, 89, 82, 0.4) !important;
}

/* Badge Overlay — kategori/tag di atas gambar kartu (galeri, berita).
   Dibuat terbaca di atas foto terang maupun letterbox hitam:
   ring putih tipis memisahkan dari gambar, shadow memberi kedalaman. */
.badge-overlay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 1.5rem);
  padding: 0.3125rem 0.6875rem;
  border-radius: 9999px;
  background-color: rgba(230, 242, 241, 0.94); /* --klh-teal-light */
  color: var(--klh-teal);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Saat kartu di-hover, badge ikut menegas jadi teal solid */
.group:hover .badge-overlay {
  background-color: var(--klh-teal);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .badge-overlay { transition: none; }
}

/* Partner Logo Tooltip — nama organisasi muncul saat logo mitra di-hover.
   position: fixed supaya tidak terpotong oleh overflow-hidden pada track marquee;
   posisi diatur lewat JS (showPartnerTooltip) mengikuti getBoundingClientRect elemen yang di-hover. */
.partner-logo-tooltip {
  position: fixed;
  z-index: 9999;
  transform: translate(-50%, -100%);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.partner-logo-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--dark);
}
.partner-logo-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .partner-logo-tooltip { transition: none; }
}

/* Search Field — input pencarian portal (berita, publikasi, unduhan, profil proyek).
   Ditulis mandiri (tidak bergantung utility class) supaya ikon selalu center
   dan teks tidak menabrak ikon. */
.search-field {
  position: relative;
  display: block;
  width: 100%;
}

.search-field .search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--gray-medium);
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-field input {
  width: 100%;
  height: 3rem;
  padding: 0 2.75rem 0 2.75rem;
  background-color: var(--gray-very-light);
  border: 1px solid var(--gray-light);
  border-radius: 0.75rem;
  color: var(--dark);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Varian pill: latar putih + sudut penuh (dipakai di halaman Unduhan) */
.search-field--pill input {
  background-color: var(--white);
  border-radius: 9999px;
}

.search-field--pill input:focus {
  background-color: var(--white);
}

.search-field input::placeholder {
  color: var(--gray-medium);
  font-weight: 500;
  opacity: 1;
}

.search-field input:hover {
  border-color: #d1d5db;
}

.search-field input:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--klh-teal);
  box-shadow: 0 0 0 3px var(--klh-teal-light);
}

.search-field input:focus + .search-icon,
.search-field input:not(:placeholder-shown) + .search-icon {
  color: var(--klh-teal);
}

/* Hilangkan tombol clear bawaan Safari/Edge agar konsisten lintas browser */
.search-field input::-webkit-search-cancel-button,
.search-field input::-ms-clear {
  display: none;
}

/* Tombol clear (x). Disembunyikan selama input masih kosong —
   :placeholder-shown hanya benar bila input punya atribut placeholder. */
.search-field .search-clear {
  position: absolute;
  top: 50%;
  right: 0.625rem;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background-color: transparent;
  color: var(--gray-medium);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.search-field input:not(:placeholder-shown) ~ .search-clear {
  display: flex;
}

.search-field .search-clear:hover {
  background-color: var(--gray-light);
  color: var(--dark);
}

.search-field .search-clear:focus-visible {
  outline: 2px solid var(--klh-teal);
  outline-offset: 2px;
  color: var(--klh-teal);
}

@media (prefers-reduced-motion: reduce) {
  .search-field .search-clear { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .search-field input,
  .search-field .search-icon { transition: none; }
}

/* Scroll Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger Children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 300ms; }

/* Counter Animation */
.counter-value { font-variant-numeric: tabular-nums; }

/* Marquee Animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 60s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animate-marquee { animation: none; }
}

/* Hero Slider */
.hero-slide {
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

/* Gallery Modal */
dialog.gallery-modal {
  border: 0;
  padding: 0;
  max-width: 56rem;
  width: 92vw;
  background: transparent;
}
dialog.gallery-modal::backdrop {
  background: rgba(26,26,46,0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  transition: all 0.3s ease;
}
@media (min-width: 640px) {
  #back-to-top {
    bottom: 2rem;
    right: 2rem;
  }
}
#back-to-top:hover {
  background-color: var(--klh-teal);
  transform: scale(1.08);
}

/* Shadow utilities */
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-card-hover { box-shadow: var(--shadow-card-hover); }
.shadow-nav { box-shadow: var(--shadow-nav); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.08); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.06); }

/* Fill current color for SVG icons */
.fill-current { fill: currentColor; }

/* FAQ button hover */
.faq-toggle:hover span {
  color: var(--klh-teal);
}

/* Team grid responsive */
@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Orange glow hover effect */
.btn-glow-orange:hover {
  box-shadow: 0 0 20px rgba(249, 121, 16, 0.5), 0 0 40px rgba(249, 121, 16, 0.3), 0 0 60px rgba(249, 121, 16, 0.15);
}

/* Category Tabs & Filter Pills */
.category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9999px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  line-height: 1.25;
  text-decoration: none;
  box-sizing: border-box;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Table Utilities & Unduhan Row Hover */
.border-collapse { border-collapse: collapse; }
.divide-gray-very-light > * + * { border-top: 1px solid var(--gray-very-light); }
.bg-gray-100 { background-color: #f3f4f6; }
.text-gray-700 { color: #374151; }
.min-w-\[640px\] { min-width: 640px; }
@media (min-width: 640px) {
  .sm\:min-w-full { min-width: 100%; }
}

.download-row {
  transition: background-color 0.2s ease;
}
.download-row:hover {
  background-color: rgba(230, 242, 241, 0.45);
}
.download-row:hover .download-icon-box {
  background-color: var(--klh-orange) !important;
  color: var(--white) !important;
}
.download-row:hover .download-title {
  color: var(--klh-teal) !important;
}

/* Unduhan: responsive detail toggle (collapses extra columns into an expandable row on mobile) */
.unduhan-toggle-col,
.unduhan-toggle-cell {
  width: 2.75rem;
  text-align: center;
}
.unduhan-col-optional { display: none; }
@media (max-width: 639.98px) {
  /* table-layout:fixed alone gives display:none columns an equal share of the width too
     (browser quirk), so column widths are instead driven by an explicit <colgroup>: the
     hidden columns get width:0 and the main column implicitly absorbs the rest. */
  .unduhan-table { table-layout: fixed; }
  .unduhan-col-def-toggle { width: 2.75rem; }
  .unduhan-col-def-tipe { width: 6.5rem; }
  .unduhan-col-def-optional { width: 0; }
  .unduhan-col-main {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .unduhan-col-main .download-title,
  .unduhan-col-main .text-xs { overflow-wrap: break-word; }
  .unduhan-col-tipe {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
  }
  .unduhan-col-tipe .inline-flex {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    white-space: normal;
  }
}
@media (min-width: 640px) {
  .unduhan-toggle-col,
  .unduhan-toggle-cell {
    display: none;
  }
  .unduhan-col-optional { display: table-cell; }
}
.min-w-0 { min-width: 0; }
.unduhan-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--gray-light);
  background: var(--white);
  color: var(--gray-medium);
  transition: all 0.2s ease;
}
.unduhan-toggle-btn:hover {
  background: var(--klh-teal-light);
  color: var(--klh-teal);
  border-color: var(--klh-teal-light);
}
.unduhan-toggle-btn svg { transition: transform 0.2s ease; }
.unduhan-toggle-btn.open {
  background: var(--klh-teal);
  color: var(--white);
  border-color: var(--klh-teal);
}
.unduhan-toggle-btn.open svg { transform: rotate(90deg); }

.unduhan-detail-row { display: none; }
.unduhan-detail-row.open { display: table-row; }
@media (min-width: 640px) {
  .unduhan-detail-row { display: none !important; }
}
.unduhan-detail-cell {
  padding: 0.25rem 1rem 1.25rem 3rem;
  background: var(--gray-very-light);
}
.unduhan-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px dashed var(--gray-light);
  font-size: 0.8125rem;
}
.unduhan-detail-item:last-of-type { border-bottom: none; }
.unduhan-detail-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  color: var(--gray-medium);
}
.unduhan-detail-value {
  color: var(--dark);
  font-weight: 600;
  text-align: right;
}
.unduhan-detail-download { margin-top: 0.75rem; }

/* Category filter dropdown (replaces the pill row below the sm breakpoint) */
.category-select-wrap { position: relative; }
.category-select {
  width: 100%;
  height: 3rem;
  padding: 0 2.5rem 0 1rem;
  background-color: var(--gray-very-light);
  border: 1px solid var(--gray-light);
  border-radius: 0.75rem;
  color: var(--dark);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.category-select:hover { border-color: #d1d5db; }
.category-select:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--klh-teal);
  box-shadow: 0 0 0 3px var(--klh-teal-light);
}
.category-select-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--gray-medium);
  pointer-events: none;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 2rem;
}
.pagination.hidden { display: none; }
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.625rem;
  border-radius: 9999px;
  border: 1px solid var(--gray-light);
  background: var(--white);
  color: var(--gray-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination-btn:hover:not(:disabled):not(.active) {
  background: var(--klh-teal-light);
  border-color: var(--klh-teal-light);
  color: var(--klh-teal);
}
.pagination-btn.active {
  background: var(--klh-teal);
  border-color: var(--klh-teal);
  color: var(--white);
  cursor: default;
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  color: var(--gray-medium);
  font-size: 0.8125rem;
}

/* Unduhan: download gate modal */
@keyframes unduhanOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes unduhanPanelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes unduhanSpin { to { transform: rotate(360deg); } }

#unduhan-modal-overlay {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#unduhan-modal-overlay.flex { animation: unduhanOverlayIn 0.2s ease-out; }
#unduhan-modal-overlay.flex .unduhan-modal-panel { animation: unduhanPanelIn 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
@media (prefers-reduced-motion: reduce) {
  #unduhan-modal-overlay.flex,
  #unduhan-modal-overlay.flex .unduhan-modal-panel { animation: none; }
}

.unduhan-modal-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--klh-teal-light);
  color: var(--klh-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.unduhan-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: var(--gray-medium);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.unduhan-modal-close:hover { background: var(--gray-very-light); color: var(--dark); }
.unduhan-modal-close:focus-visible { outline: 2px solid var(--klh-teal); outline-offset: 2px; }

.unduhan-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.375rem;
}

.unduhan-input-wrap { position: relative; }
.unduhan-input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  transform: translateY(-50%);
  color: var(--gray-medium);
  pointer-events: none;
  transition: color 0.2s ease;
}
.unduhan-input-wrap:focus-within > svg { color: var(--klh-teal); }
.unduhan-input {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.875rem 0 2.625rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-light);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.unduhan-input::placeholder { color: #9ca3af; }
.unduhan-input:hover { border-color: #d1d5db; }
.unduhan-input:focus {
  outline: none;
  border-color: var(--klh-teal);
  box-shadow: 0 0 0 3px var(--klh-teal-light);
}
.unduhan-input.has-error { border-color: #dc2626; }
.unduhan-input.has-error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,0.14); }

.unduhan-field-error {
  display: none;
  align-items: center;
  gap: 0.3125rem;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
}
.unduhan-field-error.show { display: flex; }

.unduhan-select-wrap { position: relative; }
.unduhan-select {
  width: 100%;
  height: 2.75rem;
  padding: 0 2.5rem 0 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-light);
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--dark);
  background: var(--white);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.unduhan-select:hover { border-color: #d1d5db; }
.unduhan-select:focus {
  outline: none;
  border-color: var(--klh-teal);
  box-shadow: 0 0 0 3px var(--klh-teal-light);
}
.unduhan-select-wrap .category-select-icon {
  position: absolute;
  top: 50%;
  right: 0.875rem;
  transform: translateY(-50%);
  color: var(--gray-medium);
  pointer-events: none;
}

.unduhan-btn-cancel:disabled { opacity: 0.5; cursor: not-allowed; }

.unduhan-btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.unduhan-btn-submit:disabled { opacity: 0.75; cursor: not-allowed; }
.unduhan-spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  animation: unduhanSpin 0.7s linear infinite;
  display: none;
  flex-shrink: 0;
}
.unduhan-btn-submit.is-loading .unduhan-spinner { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  .unduhan-spinner { animation-duration: 1.4s; }
}

.unduhan-form-alert { display: none; align-items: flex-start; gap: 0.625rem; }
.unduhan-form-alert.show { display: flex; }



