/* ============================================================
   PUBLIC STYLES
============================================================ */
.reveal{opacity:0;transform:translateY(24px);transition:.8s cubic-bezier(.22,1,.36,1)}
.reveal.in{opacity:1;transform:none}
.scrollbar-hide::-webkit-scrollbar{display:none}
.scrollbar-hide{scrollbar-width:none}

/* Gallery slider */
.gal-track{display:flex;height:100%;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.gal-dot{width:9px;height:9px;border-radius:50%;background:#d7efe1;border:none;padding:0;cursor:pointer;transition:.3s}
.gal-dot.active{width:30px;border-radius:99px;background:linear-gradient(90deg,#22c55e,#15803d)}

/* Toast */
.toast{
  position:fixed;left:50%;bottom:30px;transform:translate(-50%,20px);
  background:#0b3d20;color:#fff;padding:12px 22px;border-radius:999px;
  font-size:.86rem;font-weight:700;box-shadow:0 20px 40px -16px rgba(5,46,22,.8);
  opacity:0;visibility:hidden;transition:.3s;z-index:200;pointer-events:none;
  max-width:calc(100vw - 32px);
}
.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}

/* Pulse */
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}
.animate-pulse-slow{animation:pulse 2s infinite}

/* News content (HTML dari editor) */
.news-content p{margin-bottom:1rem;line-height:1.75}
.news-content h2,.news-content h3{margin-top:1.5rem;margin-bottom:.75rem;font-weight:800;color:#0b3d20}
.news-content ul{list-style:disc;padding-left:1.5rem;margin-bottom:1rem}
.news-content ol{list-style:decimal;padding-left:1.5rem;margin-bottom:1rem}
.news-content a{color:#15803d;text-decoration:underline}
.news-content img{border-radius:14px;margin:1rem 0}

/* ============================================================
   ADMIN — RESPONSIVE TABLE → CARD (mobile)
============================================================ */
@media (max-width: 767px) {
  .responsive-table thead { display: none; }
  .responsive-table tbody tr {
    display: block;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
  }
  .responsive-table tbody tr:first-child { margin-top: 14px; }
  .responsive-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    text-align: right;
  }
  .responsive-table tbody td:last-child {
    border-bottom: 0;
    background: #f9fafb;
  }
  .responsive-table tbody td::before {
    content: attr(data-label);
    font-weight: 800;
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    text-align: left;
  }
  .responsive-table tbody td[data-label="Aksi"] {
    justify-content: center;
    gap: 18px;
  }
  .responsive-table tbody td[data-label="Aksi"]::before { display: none; }
  .responsive-table tbody td img {
    max-height: 60px;
    max-width: 80px;
    object-fit: cover;
  }
}

/* ============================================================
   PUBLIC — MOBILE TWEAKS
============================================================ */
@media (max-width: 640px) {
  /* Hero */
  section#hero { padding: 60px 0 100px !important; }
  section#hero h1 { font-size: 2rem !important; line-height: 1.15 !important; }
  section#hero .text-lg { font-size: 0.95rem !important; }
  .hero-arabic { font-size: 0.95rem !important; margin-top: 24px !important; }

  /* Stats */
  .stat-mobile { padding: 16px 8px !important; }

  /* Gallery nav */
  .gal-nav { width: 44px !important; height: 44px !important; }
}

/* Prevent iOS zoom on input focus */
@media (max-width: 767px) {
  input, textarea, select { font-size: 16px !important; }
}

/* ============================================================
   NAVBAR DROPDOWN — Layanan External Links
============================================================ 
.nav-dropdown { position: relative; }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid rgba(5,46,22,0.08);
  border-radius: 16px;
  box-shadow: 0 24px 48px -24px rgba(5,46,22,0.35), 0 8px 16px -8px rgba(5,46,22,0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 60;
}
.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(5,46,22,0.08);
  border-top: 1px solid rgba(5,46,22,0.08);
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 600;
  color: #374b3f;
  transition: background .18s ease, color .18s ease;
  text-decoration: none;
}
.nav-dropdown-item:hover {
  background: #ecfdf5;
  color: rgb(var(--brand-700));
}
.nav-dropdown-item .icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f1f5f9;
  color: rgb(var(--brand-600));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .18s ease, color .18s ease;
}
.nav-dropdown-item:hover .icon-wrap {
  background: rgb(var(--brand-500));
  color: #fff;
}
.nav-dropdown-item .icon-wrap svg {
  width: 16px;
  height: 16px;
}

.nav-dropdown-item .ext-arrow {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
  color: #9ca3af;
}
.nav-dropdown-item:hover .ext-arrow {
  opacity: 1;
  transform: translateX(0);
}

 Group header 
.nav-dropdown-group {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 10px 12px 6px;
}
.nav-dropdown-group:not(:first-child) {
  border-top: 1px solid #f3f4f6;
  margin-top: 4px;
}

 Mobile accordion 
@media (max-width: 1023px) {
  .nav-dropdown-panel {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height .35s ease;
  }
  .nav-dropdown.open .nav-dropdown-panel {
    max-height: 800px;
  }
  .nav-dropdown-panel::before { display: none; }
  .nav-dropdown-item {
    padding-left: 20px;
  }
}*/