@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  --hijau-tua: #2c5e4a;
  --hijau-utama: #40916c;
  --hijau-terang: #52b788;
  --hijau-pastel: #d8f3dc;
  --kuning-bumi: #e9c46a;
  --kuning-tua: #d4a373;
  --teks-gelap: #2b2d42;
  --teks-abu: #6c757d;
  --putih: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: linear-gradient(135deg, #f8f9fa 0%, #eef2f3 100%);
  color: var(--teks-gelap);
  overflow-x: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- TOP BAR --- */
.top-bar {
  background: linear-gradient(90deg, #1b4332, var(--hijau-tua));
  color: var(--putih);
  padding: 8px 0;
  font-size: 12px;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-left,
.top-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.top-right a {
  color: var(--putih);
  text-decoration: none;
  display: flex;
  gap: 6px;
  align-items: center;
}
.sosmed-top {
  display: flex;
  gap: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 15px;
}

/* --- NAVBAR --- */
.navbar {
  background: var(--putih);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  background: linear-gradient(135deg, var(--hijau-utama), var(--hijau-terang));
  color: var(--putih);
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(64, 145, 108, 0.4);
}
.logo-text h2 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--hijau-tua);
  line-height: 1.15;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.logo-text span {
  display: block;
  font-size: 9.5px;
  color: var(--teks-abu);
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  height: 100%;
  align-items: center;
}
.nav-links > li {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 9px;
}
.nav-links a {
  text-decoration: none;
  color: var(--teks-gelap);
  font-weight: 600;
  font-size: 13.5px;
  transition: 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-links > li > a.active,
.nav-links > li:hover > a {
  color: var(--hijau-utama);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--putih);
  min-width: 250px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-top: 3px solid var(--hijau-utama);
}
.dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu a {
  padding: 12px 20px;
  font-weight: 500;
  border-bottom: 1px solid #f1f1f1;
}
.mega-menu a:hover {
  background: linear-gradient(90deg, var(--hijau-pastel), var(--putih));
  color: var(--hijau-tua);
  padding-left: 25px;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.btn-search {
  color: var(--teks-gelap);
  font-size: 17px;
}
.btn-login {
  background: linear-gradient(135deg, var(--hijau-pastel), #e9f5ec);
  color: var(--hijau-tua);
  padding: 9px 15px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: 0.3s;
}
.btn-login:hover {
  background: linear-gradient(135deg, var(--hijau-utama), var(--hijau-tua));
  color: var(--putih);
  box-shadow: 0 4px 10px rgba(64, 145, 108, 0.3);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  background: url("img/hero-bg.svg") center/cover no-repeat;
  padding: 100px 0 160px;
  overflow: hidden;
}
/* Overlay dibuat transparan agar gambar background asli tetap mengintip tipis */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(248, 249, 250, 0.98) 0%,
    rgba(248, 249, 250, 0.85) 45%,
    rgba(248, 249, 250, 0.4) 100%
  );
  z-index: 1;
}
.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}
.hero-text-area {
  flex: 1;
  max-width: 600px;
}
.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--kuning-bumi), #f4a261);
  color: #fff;
  padding: 6px 15px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(233, 196, 106, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--hijau-tua);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--hijau-utama), var(--hijau-terang));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 30px;
  font-weight: 500;
}

.hero-action-group {
  display: flex;
  gap: 15px;
}
.btn-primary-hero {
  background: linear-gradient(135deg, var(--hijau-utama), var(--hijau-tua));
  color: var(--putih);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(64, 145, 108, 0.3);
  transition: 0.3s;
}
.btn-primary-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(64, 145, 108, 0.4);
}
.btn-outline-hero {
  background: rgba(255, 255, 255, 0.8);
  color: var(--hijau-tua);
  border: 2px solid var(--putih);
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  backdrop-filter: blur(5px);
}
.btn-outline-hero:hover {
  border-color: var(--hijau-utama);
  background: var(--putih);
}

/* Tambahan Gambar di Kanan */
.hero-image-area {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.hero-img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  border: 8px solid white;
}
.hero-img-backdrop {
  position: absolute;
  width: 100%;
  max-width: 500px;
  height: 100%;
  background: linear-gradient(135deg, var(--hijau-utama), var(--kuning-bumi));
  border-radius: 20px;
  top: 20px;
  right: -20px;
  z-index: 1;
  opacity: 0.8;
}

.hero-wave {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  z-index: 1;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* --- STATISTIK --- */
.stat-overlap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.stat-box {
  background: linear-gradient(180deg, var(--putih), #fdfdfd);
  padding: 25px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border-bottom: 4px solid var(--hijau-utama);
  position: relative;
  overflow: hidden;
}
.stat-icon-bg {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--hijau-pastel), #e9f5ec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--hijau-utama);
}
.stat-info h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--hijau-tua);
}
.stat-info p {
  font-size: 13px;
  color: var(--teks-abu);
  font-weight: 600;
}
.accent-box {
  background: linear-gradient(135deg, var(--hijau-tua), #1b4332);
  border-bottom-color: var(--kuning-bumi);
  color: var(--putih);
}
.accent-box h3,
.accent-box p,
.accent-box .stat-icon-bg {
  color: var(--putih);
}
.accent-box .stat-icon-bg {
  background: rgba(255, 255, 255, 0.1);
}

/* --- LAYANAN GRID --- */
.section-margin {
  margin-top: 80px;
  margin-bottom: 80px;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--hijau-tua);
}
.section-header span {
  color: var(--kuning-tua);
}
.section-header p {
  color: var(--teks-abu);
  margin-top: 10px;
  font-size: 16px;
}

.layanan-grid-complex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.card-layanan {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  padding: 30px;
  border-radius: 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: 0.3s;
  position: relative;
}
.card-layanan:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--hijau-pastel);
}
.card-layanan i {
  font-size: 32px;
  background: -webkit-linear-gradient(45deg, #1e293b, #64748b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card-layanan h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--teks-gelap);
}
.card-layanan p {
  font-size: 14px;
  color: var(--teks-abu);
}

.text-teal i {
  background: -webkit-linear-gradient(45deg, #2a9d8f, #48cae4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-green i {
  background: -webkit-linear-gradient(45deg, #52b788, #74c69d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-orange i {
  background: -webkit-linear-gradient(45deg, #f4a261, #e9c46a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-blue i {
  background: -webkit-linear-gradient(45deg, #1d3557, #457b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-red i {
  background: -webkit-linear-gradient(45deg, #e76f51, #f4a261);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-brown i {
  background: -webkit-linear-gradient(45deg, #9c6644, #b08968);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- BERITA GRID --- */
.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card-berita {
  background: var(--putih);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}
.card-berita:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.card-berita img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 20%;
  background: #f1f5f9;
}
.berita-content {
  padding: 20px;
}
.tanggal-berita {
  font-size: 12px;
  color: var(--hijau-utama);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.berita-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--hijau-tua);
  margin-bottom: 15px;
  line-height: 1.4;
}
.berita-content a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--kuning-tua);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}
.berita-content a:hover {
  color: var(--hijau-utama);
  gap: 12px;
}

/* --- FOOTER --- */
.footer-desa {
  background: linear-gradient(135deg, var(--hijau-tua), #1b4332);
  color: var(--putih);
  padding-top: 60px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-about p {
  font-size: 14px;
  color: #d8f3dc;
  line-height: 1.7;
}
.footer-links h3,
.footer-contact h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--kuning-bumi);
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #d8f3dc;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}
.footer-links a:hover {
  color: var(--putih);
  padding-left: 5px;
}
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 15px;
  color: #d8f3dc;
  line-height: 1.5;
}
.footer-contact i {
  color: var(--kuning-bumi);
  margin-top: 3px;
}
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  font-size: 13px;
  color: #a7f3d0;
}

/* =========================================
   WIDGET 3D MENGAMBANG & MELUAS
========================================= */
@keyframes turunNaik {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.floating-3d-sidebar {
  position: fixed;
  right: 30px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
  z-index: 900;
  animation: turunNaik 3.5s ease-in-out infinite;
}

.btn-float-3d {
  max-width: 48px;
  height: 48px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 15px;
  text-decoration: none;
  color: var(--putih);
  position: relative;
  overflow: hidden;
  transition:
    max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    top 0.1s;
  top: 0;
}

.btn-float-3d:hover {
  max-width: 180px;
}
.btn-float-3d i {
  font-size: 18px;
  min-width: 18px;
  text-align: center;
}

.float-text {
  white-space: nowrap;
  margin-left: 12px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn-float-3d:hover .float-text {
  opacity: 1;
  transition-delay: 0.1s;
}

.wa-color {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow:
    0 6px 0 #075e54,
    0 15px 15px rgba(0, 0, 0, 0.15);
}
.blue-color {
  background: linear-gradient(135deg, #457b9d, #1d3557);
  box-shadow:
    0 6px 0 #0f1f38,
    0 15px 15px rgba(0, 0, 0, 0.15);
}
.orange-color {
  background: linear-gradient(135deg, #f4a261, #e76f51);
  box-shadow:
    0 6px 0 #d95c3a,
    0 15px 15px rgba(0, 0, 0, 0.15);
}
.dark-color {
  background: linear-gradient(135deg, var(--hijau-utama), var(--hijau-tua));
  box-shadow:
    0 6px 0 #163025,
    0 15px 15px rgba(0, 0, 0, 0.15);
}

.btn-float-3d:active {
  top: 6px;
  box-shadow:
    0 0px 0 transparent,
    0 5px 5px rgba(0, 0, 0, 0.1) !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .stat-overlap {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
    padding: 0 20px;
  }
  .hero-overlay {
    background: rgba(255, 255, 255, 0.85);
  }
  .layanan-grid-complex {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .top-bar,
  .nav-links,
  .nav-actions {
    display: none;
  }
  .hero {
    padding: 80px 0;
    text-align: center;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-action-group {
    justify-content: center;
    flex-direction: column;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-image-area {
    display: none;
  }
  .stat-overlap,
  .layanan-grid-complex {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .floating-3d-sidebar {
    right: 12px;
    bottom: 12px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    animation: none;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  }
  .btn-float-3d,
  .btn-float-3d:hover {
    width: 36px;
    max-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
  }
  .btn-float-3d i {
    font-size: 15px;
    min-width: auto;
  }
  .btn-float-3d .float-text {
    display: none;
  }
  .footer-bottom {
    padding-bottom: 68px;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
  }
}

/* --- RESPONSIVE NAVBAR COMPACT --- */
@media (max-width: 1120px) {
  .nav-links > li {
    padding: 0 6px;
  }
  .nav-links a {
    font-size: 13px;
  }
}
@media (max-width: 960px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
  }
}

/* --- TAMBAHAN RESPONSIVE & MENU MOBILE --- */
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--hijau-tua);
  font-size: 18px;
  cursor: pointer;
}
.mobile-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}
.mobile-drawer.open {
  display: block;
}
.mobile-drawer a {
  display: block;
  padding: 10px 12px;
  color: var(--teks-gelap);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
}
.mobile-drawer a:hover,
.mobile-drawer a.mob-active {
  background: var(--hijau-pastel);
  color: var(--hijau-tua);
}
.mob-acc-group {
  border-radius: 8px;
}
.mob-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--teks-gelap);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.mob-acc-btn:hover,
.mob-acc-btn.mob-active,
.mob-acc-group.open .mob-acc-btn {
  background: var(--hijau-pastel);
  color: var(--hijau-tua);
}
.mob-acc-chev {
  font-size: 11px;
  opacity: 0.75;
  transition: transform 0.2s ease;
}
.mob-acc-group.open .mob-acc-chev {
  transform: rotate(180deg);
}
.mob-acc-sub {
  display: none;
  padding: 4px 0 6px 14px;
  margin-left: 10px;
  border-left: 2px solid var(--hijau-pastel);
}
.mob-acc-group.open .mob-acc-sub {
  display: block;
}
.mob-acc-sub a {
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
}
.search-bar-panel {
  display: none;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 12px 0;
}
.search-bar-panel.open {
  display: block;
}
.search-bar-form {
  display: flex;
  gap: 10px;
}
.search-bar-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
}
.search-bar-form button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--hijau-utama);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}
.alert-flash {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}
.alert-flash.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.alert-flash.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.footer-contact-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-link:hover {
  color: var(--kuning-bumi);
  text-decoration: underline;
}
.footer-contact-empty {
  opacity: 0.65;
  font-style: italic;
}
[data-lightbox] {
  cursor: zoom-in;
}
.img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.88);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.img-lightbox.open {
  display: flex;
}
.img-lightbox-box {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.img-lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.img-lightbox-cap {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  max-width: 720px;
  line-height: 1.45;
}
.img-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.img-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.galeri-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.galeri-home-card {
  background: var(--putih);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.galeri-home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.galeri-home-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center 20%;
  background: #f1f5f9;
  display: block;
}
.galeri-home-cap {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.galeri-home-cap strong {
  font-size: 13.5px;
  color: var(--teks-gelap);
  line-height: 1.4;
}
.galeri-home-cap span {
  font-size: 12px;
  color: #64748b;
  margin-top: auto;
}
@media (max-width: 960px) {
  .galeri-home-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .galeri-home-card img {
    height: 135px;
  }
  .galeri-home-cap {
    padding: 10px 11px;
  }
  .galeri-home-cap strong {
    font-size: 12.5px;
  }
}
