/*
Theme Name: Darul Muqomah Official
Theme URI: https://ppdarulmuqomah.ponpes.id
Description: Tema resmi Pesantren Darul Muqomah dengan nuansa hijau khas NU (Islamic Emerald & Warm Gold), modern, responsif, dan ringan.
Author: Faid Eksan Fakrulloh
Author URI: https://ppdarulmuqomah.ponpes.id
Version: 1.1.0
*/

:root {
  --nu-green-dark: #004d2c;
  --nu-green: #0a6b3d;
  --nu-green-light: #128a50;
  --nu-gold: #c69214;
  --nu-gold-light: #dfaa22;
  --nu-bg: #f7faf8;
  --nu-card: #ffffff;
  --nu-text-main: #1a2e22;
  --nu-text-muted: #5c7265;
  --nu-border: #e2ece5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--nu-bg);
  color: var(--nu-text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOPBAR */
.topbar {
  background: var(--nu-green-dark);
  color: #d1fae5;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-info span {
  margin-right: 18px;
}

/* JADWAL IMSAKIYAH / SHOLAT BAR (WIDGET ATAS) */
.imsakiyah-bar {
  background: linear-gradient(90deg, #02381f, #07522d, #02381f);
  color: #ffffff;
  border-bottom: 2px solid var(--nu-gold);
  padding: 9px 0;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.imsakiyah-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.imsakiyah-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 12px;
}
.imsakiyah-badge {
  background: rgba(198, 146, 20, 0.25);
  border: 1px solid var(--nu-gold);
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
}
.imsakiyah-times {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.imsakiyah-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.imsakiyah-item.highlight {
  background: linear-gradient(135deg, rgba(198, 146, 20, 0.35), rgba(198, 146, 20, 0.15));
  border-color: var(--nu-gold);
}
.imsakiyah-item .label {
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.imsakiyah-item .time {
  font-weight: 800;
  color: #ffffff;
  font-family: monospace;
  font-size: 13px;
}

/* NAVBAR */
.navbar {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 77, 44, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 77, 44, 0.12);
  border: 1.5px solid var(--nu-border);
  overflow: hidden;
  padding: 3px;
  transition: transform 0.2s ease;
}
.brand:hover .brand-logo {
  transform: scale(1.05);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--nu-green-dark);
  line-height: 1.2;
}
.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--nu-gold);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 22px;
}
.nav-links a {
  font-weight: 600;
  font-size: 14px;
  color: var(--nu-text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--nu-green);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--nu-gold);
  transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* TOMBOL PSB (GOLD/EMAS MENCOLOK) */
.btn-psb {
  background: linear-gradient(135deg, var(--nu-gold-light), var(--nu-gold));
  color: #00361f !important;
  padding: 10px 22px !important;
  border-radius: 50px;
  font-weight: 800 !important;
  font-size: 13px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffd573;
  box-shadow: 0 4px 14px rgba(198, 146, 20, 0.35);
}
.btn-psb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(198, 146, 20, 0.5);
  color: #002213 !important;
}

/* HERO SECTION (HIJAU AWAL DENGAN GAMBAR TRANSPARAN DI KANAN MEMUDAR KE TENGAH) */
.hero {
  position: relative;
  color: #fff;
  padding: 95px 0 115px;
  overflow: hidden;
  background: linear-gradient(135deg, #004d2c 0%, #0a6b3d 100%);
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.38;
  filter: saturate(1.1) brightness(1.05);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  transition: transform 6s ease-out, opacity 0.5s ease;
}

.hero:hover .hero-bg-layer {
  transform: scale(1.04);
}

.hero-gradient-overlay {
  display: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(198, 146, 20, 0.2), transparent 55%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 780px;
  z-index: 3;
}

.hero-badge {
  display: inline-block;
  background: rgba(198, 146, 20, 0.2);
  border: 1px solid var(--nu-gold);
  color: #fde68a;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-desc {
  font-size: 17px;
  color: #d1fae5;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-hero-psb {
  background: linear-gradient(135deg, var(--nu-gold-light), var(--nu-gold));
  color: #00361f;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(198, 146, 20, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-psb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198, 146, 20, 0.45);
}
.btn-outline {
  border: 2px solid #ffffff;
  color: #fff;
  padding: 11px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  background: #ffffff;
  color: var(--nu-green-dark);
}

/* QUICK ACCESS CARDS */
.quick-access {
  margin-top: -50px;
  position: relative;
  z-index: 10;
  padding-bottom: 50px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.quick-card {
  background: #ffffff;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 77, 44, 0.08);
  border: 1px solid var(--nu-border);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 16px;
}
.quick-card:hover {
  transform: translateY(-5px);
  border-color: var(--nu-gold);
  box-shadow: 0 16px 36px rgba(0, 77, 44, 0.12);
}
.quick-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(10, 107, 61, 0.08);
  color: var(--nu-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.quick-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--nu-green-dark);
  margin-bottom: 3px;
}
.quick-text p {
  font-size: 12px;
  color: var(--nu-text-muted);
}

/* SECTION GLOBAL */
.section {
  padding: 65px 0;
}
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 45px;
}
.section-tag {
  color: var(--nu-gold);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 6px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--nu-green-dark);
}
.section-subtitle {
  color: var(--nu-text-muted);
  font-size: 15px;
  margin-top: 8px;
}

/* DAWUH KYAI (QUOTE) */
.dawuh-section {
  background: #ffffff;
  border-top: 1px solid var(--nu-border);
  border-bottom: 1px solid var(--nu-border);
  padding: 60px 0;
}
.dawuh-card {
  background: linear-gradient(135deg, #f0f7f3, #ffffff);
  border: 1px solid #d4e7db;
  border-left: 6px solid var(--nu-gold);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  align-items: center;
}
.dawuh-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--nu-gold);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.dawuh-arabic {
  font-family: 'Amiri', serif;
  font-size: 24px;
  color: var(--nu-green-dark);
  line-height: 1.8;
  direction: rtl;
  margin-bottom: 12px;
}
.dawuh-quote {
  font-size: 16px;
  font-style: italic;
  color: var(--nu-text-main);
  line-height: 1.7;
}
.dawuh-author {
  margin-top: 14px;
  font-weight: 800;
  font-size: 15px;
  color: var(--nu-green);
}
.dawuh-role {
  font-size: 12px;
  color: var(--nu-text-muted);
}

/* CARDS GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.post-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--nu-border);
  box-shadow: 0 4px 18px rgba(0, 77, 44, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 77, 44, 0.1);
  border-color: #cbdad1;
}
.post-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.post-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--nu-green-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--nu-gold);
  text-transform: uppercase;
}
.post-body {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.post-meta {
  font-size: 12px;
  color: var(--nu-text-muted);
  margin-bottom: 8px;
}
.post-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--nu-green-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}
.post-card:hover .post-title {
  color: var(--nu-gold-light);
}
.post-excerpt {
  font-size: 13px;
  color: var(--nu-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}
.post-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--nu-green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* FOOTER */
.footer {
  background: #00361f;
  color: #cbdad1;
  padding: 60px 0 25px;
  border-top: 4px solid var(--nu-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
}
.footer-col h4 {
  color: var(--nu-gold-light);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 13px;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #8fa89b;
}

/* RESPONSIVE & MOBILE ENHANCEMENT */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--nu-green-dark);
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover {
  background: rgba(0, 77, 44, 0.08);
  color: var(--nu-green);
}

@media (max-width: 992px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .dawuh-card { grid-template-columns: 1fr; text-align: center; }
  .dawuh-img { margin: 0 auto; }
}

@media (max-width: 768px) {
  /* TOPBAR DI MOBILE: TETAP TAMPIL JAM & WAKTU SHOLAT */
  .topbar {
    display: block !important;
    padding: 6px 0 !important;
    font-size: 11px !important;
  }
  .topbar .container {
    flex-direction: column !important;
    gap: 4px !important;
    text-align: center !important;
  }
  .topbar-info {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
  }
  .topbar-sekretariat {
    display: none; /* hemat tempat */
  }
  .topbar-social {
    display: flex;
    justify-content: center;
    font-size: 12px;
  }

  /* IMSAKIYAH DI MOBILE: TETAP RAPI & HORIZONTAL SCROLL/FLEX WRAP */
  .imsakiyah-bar {
    padding: 8px 0;
  }
  .imsakiyah-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .imsakiyah-times {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
  }
  .imsakiyah-item {
    padding: 2px 7px;
    font-size: 11px;
    border-radius: 4px;
    gap: 4px;
  }
  .imsakiyah-item .time {
    font-size: 11px;
  }

  /* NAVBAR MOBILE: TOMBOL HAMBURGER & DROPDOWN MENU */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    box-shadow: 0 16px 30px rgba(0, 77, 44, 0.15);
    border-top: 2px solid var(--nu-gold);
    gap: 0;
    z-index: 9999;
  }
  .nav-links.nav-links-open {
    display: flex !important;
    animation: fadeInSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .nav-links li {
    border-bottom: 1px solid #f1f5f9;
  }
  .nav-links a {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--nu-text-main);
  }
  .nav-links a:hover, .nav-links a.active {
    background: rgba(0, 77, 44, 0.06);
    color: var(--nu-green);
    border-radius: 8px;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-item-psb {
    border-bottom: none !important;
    margin-top: 12px;
  }
  .nav-item-psb .btn-psb {
    text-align: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
  }

  .quick-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 26px; }
}

@keyframes fadeInSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================================
   GALERI & LIGHTBOX POPUP SYSTEM
   ======================================================== */
.galeri-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
}
.galeri-filter-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--nu-border);
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.galeri-filter-btn:hover {
  border-color: var(--nu-green);
  color: var(--nu-green);
  transform: translateY(-1px);
}
.galeri-filter-btn.active {
  background: var(--nu-green);
  color: #ffffff;
  border-color: var(--nu-green);
  box-shadow: 0 4px 12px rgba(0,77,44,0.25);
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.galeri-item {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--nu-border);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.galeri-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,77,44,0.14);
}

.galeri-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}
.galeri-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.galeri-item:hover .galeri-img-wrap img {
  transform: scale(1.06);
}

.galeri-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}
.galeri-badge {
  align-self: flex-start;
  background: var(--nu-gold);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.galeri-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition: all 0.3s ease;
}
.galeri-item:hover .galeri-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.galeri-preview-info {
  color: #ffffff;
}
.galeri-preview-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 4px;
}
.galeri-preview-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================= MODAL / LIGHTBOX ================= */
.galeri-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}
.galeri-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.galeri-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 15, 0.82);
  backdrop-filter: blur(8px);
}
.galeri-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1040px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.galeri-modal.active .galeri-modal-content {
  transform: scale(1);
}

.galeri-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}
.galeri-modal-close:hover {
  background: #dc2626;
  transform: rotate(90deg);
}

.galeri-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}
.galeri-nav-btn:hover {
  background: var(--nu-green);
  transform: translateY(-50%) scale(1.1);
}
.galeri-nav-btn.prev {
  left: 16px;
}
.galeri-nav-btn.next {
  right: 16px;
}

.galeri-modal-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  height: 100%;
  max-height: 85vh;
}
.galeri-modal-media {
  background: #09120e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}
.galeri-modal-media img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.galeri-modal-info {
  display: flex;
  flex-direction: column;
  padding: 28px 30px;
  overflow-y: auto;
  background: #ffffff;
}
.galeri-modal-header {
  border-bottom: 1px solid var(--nu-border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.galeri-modal-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #64748b;
  margin: 10px 0 6px 0;
  flex-wrap: wrap;
}
.galeri-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--nu-green-dark);
  line-height: 1.35;
  margin: 0;
}

.galeri-modal-desc-wrap {
  flex-grow: 1;
}
.galeri-modal-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}
.galeri-modal-desc p {
  margin-bottom: 12px;
}

.galeri-modal-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--nu-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.galeri-btn-viewfull {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--nu-green);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 77, 44, 0.08);
  transition: all 0.2s ease;
}
.galeri-btn-viewfull:hover {
  background: var(--nu-green);
  color: #ffffff;
}

@media (max-width: 900px) {
  .galeri-grid { grid-template-columns: repeat(2, 1fr); }
  .galeri-modal-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .galeri-modal-media {
    max-height: 40vh;
  }
  .galeri-modal-media img {
    max-height: 38vh;
  }
  .galeri-modal-content {
    max-height: 92vh;
  }
  .galeri-nav-btn {
    top: 25%;
  }
}
@media (max-width: 600px) {
  .galeri-grid { grid-template-columns: 1fr; }
}
