/* ========================= */
/* 🌿 GLOBAL & BASE STYLES  */
/* ========================= */

:root {
  --green-600: #1f8a4c;
  --green-700: #17693c;
  --muted: #6b7280;
  --max-width: 1100px;
  --container-padding: 1rem;
  --text-color: #0f172a;
  --bg-color: #fff;
  --light-green: #d1fae5;
  --light-gray: #e5e5e5;
  --dark-gray: #333;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}

.merriweather {
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.alan-sans {
  font-family: "Alan Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================= */
/* HEADER & NAVBAR STYLE  */
/* ========================= */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--green-700), var(--green-600));
  color: #fff;
  z-index: 110; /* lebih tinggi dari overlay by default */
  box-shadow: 0 2px 10px var(--shadow-light);
  padding: 0;
}

.site-header .container {
  max-width: 100%;
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  margin: 0;
}

.brand-logo {
  width: 56px;
  height: 50px;
}

.brand-logo:hover {
  transform: scale(1.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.brand-text:hover {
  transform: translateY(-3px) scale(1.05);
  text-shadow: 0 4px 10px rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.brand-text h1 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.brand-text p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--light-gray);
}

/* ========================= */
/* NAVIGATION MENU */
/* ========================= */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  z-index: 111; /* pastikan di atas overlay */
}

/* Menu list */
.menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  position: relative;
}

.menu a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  font-weight: 500;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.menu a:hover,
.menu a:focus {
  color: var(--light-green);
}

/* Efek garis bawah saat hover */
.menu > li > a {
  position: relative;
}

.menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.menu > li > a:hover::after,
.menu > li > a[aria-current="page"]::after {
  width: 100%;
}

/* Submenu - default behavior (desktop + mobile) */
/* Use visibility/opacity + transform for desktop, and max-height for mobile animation */
.submenu {
  /* keep it in flow but hidden - allows smoother transitions across breakpoints */
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f9fafb;
  color: var(--dark-gray);
  list-style: none;
  margin: 0;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  min-width: 200px;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 8px 16px var(--shadow-light);
  z-index: 112;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none; /* prevent interaction when hidden */
}

/* submenu items */
.submenu li a {
  padding: 0.6rem 1rem;
  color: #334155;
  font-size: 0.95rem;
  display: block;
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.submenu li a:hover,
.submenu li a:focus {
  background: #e6f4ea;
  padding-left: 1.4rem;
  color: var(--green-700);
  font-weight: 500;
}

.submenu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--green-700);
  transition: width 0.3s ease;
}

.submenu li a:hover::after,
.submenu li a.active::after {
  width: 100%;
}

/* Hover / focus for desktop */
.menu li.has-submenu:hover > .submenu,
.menu li.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ========================= */
/* HAMBURGER TOGGLE */
/* ========================= */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none; /* muncul hanya di mobile */
  padding: 0.5rem;
  margin-left: 1rem;
  z-index: 115; /* paling atas di header */
}

.nav-toggle .hamburger {
  width: 26px;
  height: 3px;
  background: #fff;
  position: relative;
  display: block;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  width: 26px;
  height: 3px;
  background: #fff;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle .hamburger::before {
  top: -8px;
}

.nav-toggle .hamburger::after {
  top: 8px;
}

/* Animasi buka */
.nav-toggle.open .hamburger {
  background: transparent;
}
.nav-toggle.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Overlay background ketika menu mobile terbuka */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 109; /* di bawah main-nav (111) dan header (110) */
  transition: background 0.3s ease;
}

.nav-overlay.show {
  display: block;
}

/* ========================= */
/* HERO SLIDER STYLING */
/* ========================= */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 430px; /* ✅ tinggi slider desktop fix */
  overflow: hidden;
  background: #000;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 100vh;
  margin-buttom: 0 auto; /* ✅ isi seluruh wrapper */
  object-fit: cover; /* ✅ gambar selalu penuh, tidak gepeng */
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

/* Slide aktif muncul */
.slide-image.active {
  opacity: 1;
  z-index: 1;
}

/* Caption di atas gambar */
.hero-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  z-index: 5;
  padding: 0 1rem;
}

.hero-caption h2 {
  font-size: 1.5rem;
}
.hero-caption h3 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}
.hero-caption p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-caption .hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Tombol */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-primary {
  background: var(--green-600);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-700);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--green-700);
}

/* Loading overlay */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1f8a4c, #17693c);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================= */
/* CAPTION BERJALAN         */
/* ========================= */
.running-caption {
  position: relative;
  background: linear-gradient(90deg, var(--green-700), var(--green-600));
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.6rem 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.caption-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ========================= */
/* 📰 BERITA TERKINI SECTION */
/* ========================= */
.news-section {
  padding: 4rem 1rem;
  background-color: #f9fafb;
  text-align: center;
}

.news-section h2 {
  color: var(--green-700);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Grid berita */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

/* Card berita */
.news-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px var(--shadow-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px var(--shadow-medium);
}

/* Thumbnail */
.news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

/* Konten */
.news-content {
  padding: 1rem 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  font-size: 1.1rem;
  color: var(--green-700);
  margin-bottom: 0.5rem;
  text-align: left;
}

.news-content p {
  font-size: 0.95rem;
  color: #444;
  text-align: left;
  flex-grow: 1;
  line-height: 1.5;
}

.read-more {
  margin-top: 0.8rem;
  display: inline-block;
  color: var(--green-700);
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--green-600);
}

/* ========================= */
/* 🪄 MODAL BERITA POPUP */
/* ========================= */
.news-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}

.news-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-overlay {
  position: absolute;
  inset: 0;
}

.modal-content {
  position: relative;
  background: #fff;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-image img {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.modal-body {
  padding: 1.5rem;
}

.modal-title {
  color: var(--green-700);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.modal-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  white-space: pre-line;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #666;
  transition: color 0.25s ease;
}

.modal-close:hover {
  color: var(--green-700);
}

.read-more-btn {
  margin-top: 0.8rem;
  background: none;
  border: none;
  color: var(--green-700);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.3s ease;
}

.read-more-btn:hover {
  color: var(--green-600);
}

.galeri-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.section {
  display: none; /* Semua disembunyikan dulu */
  opacity: 0;
  transition: opacity 0.5s ease;
}

.section.active {
  display: block; /* Hanya yang aktif tampil */
  opacity: 1;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.section-subtitle {
  color: #666;
  margin-bottom: 40px;
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.galeri-item {
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.galeri-item:hover img {
  transform: scale(1.1);
}

/* Modal popup */
.galeri-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center; /* ⬅️ Ini kuncinya: posisi vertikal & horizontal di tengah */
}

.galeri-modal .modal-content {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  margin: auto; /* ⬅️ Pastikan tetap center */
  display: block;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  background: #fff;
}

/* Caption di bawah gambar */
#modalCaption {
  margin-top: 15px;
  color: #fff;
  text-align: center;
  font-size: 1rem;
}

/* Tombol close */
.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: #f1f1f1;
}

/* Tombol Next & Prev */
.galeri-modal .prev,
.galeri-modal .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s;
  user-select: none;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.galeri-modal .prev:hover,
.galeri-modal .next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.galeri-modal .prev {
  left: 30px;
}

.galeri-modal .next {
  right: 30px;
}

/* Animasi transisi gambar */
#modalImage {
  transition: opacity 0.4s ease;
  opacity: 1;
}

#modalImage.fade-out {
  opacity: 0;
}

/* 🌿 Footer */
.site-footer {
  background: linear-gradient(180deg, var(--green-700), var(--green-600));
  color: #fff;
  padding: 3rem 1rem 1rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: #e5e5e5;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--light-green);
}

/* Logo & Map */
.footer-brand .footer-logo {
  max-width: 80px;
  margin-bottom: 0.5rem;
}

.footer-brand h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.footer-map iframe {
  border-radius: 8px;
}

/* Sosial Media */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e5e5e5;
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
  color: var(--light-green);
  transform: translateX(5px);
}

.social-links i {
  font-size: 1.1rem;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #e5e5e5;
}
/* WhatsApp Container */
.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

/* WhatsApp Bubble */
.whatsapp-float {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

/* Popup Pesan Sambutan */
.whatsapp-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: #ffffff;
  color: #333;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  line-height: 1.4;
  display: none;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.4s ease-in-out;
  white-space: nowrap;
}

.whatsapp-popup::before {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 25px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
}

.close-popup {
  margin-left: 10px;
  font-size: 18px;
  cursor: pointer;
  color: #888;
}

.close-popup:hover {
  color: #000;
}

/* Popup Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bubble Animation */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.whatsapp-float {
  animation: bounce 2s infinite;
}

/* ========================= */
/* TENTANG KAMI SECTIONS */
/* ========================= */
.about-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem 2.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.about-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
  color: var(--green-700);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--green-600);
  display: table; /* ubah ke table agar mudah di tengah */
  margin: 0 auto 1rem auto; /* ini kunci agar selalu di tengah */
  padding-bottom: 0.3rem;
  text-align: center;
}

.about-section p {
  color: #374151;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.about-section ul li {
  margin-bottom: 0.6rem;
  color: #374151;
  font-size: 1.05rem;
}

.about-section strong {
  color: var(--green-700);
}

/* Animasi saat ganti konten */
.section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.about-section {
  text-align: center;
  padding: 60px 20px;
}

.about-section p,
.about-section ul {
  max-width: 800px;
  margin: 0 auto;
  color: #334155;
  line-height: 1.8;
  font-size: 1rem;
}

.about-section h2 {
  color: var(--green-700);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--green-600);
  display: table;
  margin: 0 auto 1.5rem auto;
  padding-bottom: 0.3rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Efek animasi saat muncul */
.about-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Styling untuk daftar di bagian Misi */
.about-section ul {
  list-style: none; /* hilangkan default bullet */
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.about-section ul li {
  position: relative;
  padding-left: 1.5rem; /* beri ruang untuk bullet custom */
  margin-bottom: 0.8rem;
  color: #334155;
  line-height: 1.8;
  font-size: 1rem;
}

/* Bullet custom berbentuk lingkaran kecil hijau */
.about-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-600);
}

/* ===== STRUKTUR ORGANISASI ===== */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
}

.org-level {
  display: flex;
  justify-content: center;
  text-align: center;
}

.org-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
  position: relative;
}

.org-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.2rem 2rem;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--green-600);
  position: relative;
  z-index: 2;
}

.org-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.org-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  color: var(--green-700);
  font-weight: 700;
}

.org-card p {
  margin: 0;
  font-size: 1rem;
  color: #374151;
}

/* Garis vertikal antar level */
.org-line {
  width: 2px;
  height: 30px;
  background: var(--green-600);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Garis horizontal penghubung antar empat posisi */
.org-horizontal-line {
  position: relative;
  width: 70%;
  height: 2px;
  background: var(--green-600);
  margin: 0 auto;
}

/* Tambahkan titik konektor vertikal kecil di bawah garis */
.org-horizontal-line::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background: var(--green-600);
}

/* ===== PROGRAM DONASI (PAGE STYLE) ===== */
.donasi-page {
  padding-top: 2rem;
}

.donasi-section {
  display: none;
  padding: 4rem 1rem;
  text-align: center;
  background: #fff;
}

.donasi-section.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.donasi-section h2 {
  color: var(--green-700);
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.donasi-section p {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  font-size: 1.05rem;
  color: #333;
}

.donasi-img {
  max-width: 800px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.donation-buttons {
  margin: 1.5rem 0 2rem;
  text-align: center;
}

.donation-buttons h4 {
  color: var(--green-700);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Tombol nominal */
.donation-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.donation-btn {
  position: relative;
  background: var(--green-600);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.donation-btn:hover {
  background: var(--green-700);
  transform: translateY(-3px);
}

/* Efek centang */
.donation-btn.selected {
  background: #16a34a;
  transform: scale(1.05);
  box-shadow: 0 0 0 3px #bbf7d0;
}

.donation-btn.selected::after {
  content: "✔";
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: 1.1rem;
  color: #fff;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Tombol Donasi Sekarang & Konfirmasi */
.donation-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.donate-action-btn {
  background: var(--green-700);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.donate-action-btn:hover:not(:disabled) {
  background: var(--green-600);
  transform: translateY(-2px);
}

.donate-action-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Tombol outline */
.donate-action-btn.outline {
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--green-700);
}

.donate-action-btn.outline:hover:not(:disabled) {
  background: var(--green-700);
  color: #fff;
}

/* Input nominal bebas */
.donation-custom {
  margin-top: 1.5rem;
  text-align: center;
}

.donation-custom label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--green-700);
  font-weight: 500;
}

.input-wrapper {
  display: inline-flex;
  align-items: center;
  background: #f9fafb;
  border: 2px solid var(--green-600);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  gap: 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.input-wrapper:focus-within {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.input-wrapper span {
  color: var(--green-700);
  font-weight: 600;
}

#customAmount {
  border: none;
  outline: none;
  width: 150px;
  font-size: 1rem;
  background: transparent;
  color: var(--green-700);
}

#customAmount::placeholder {
  color: #010202ff;
}

New

Share





41 lines

/* FORM DONASI */
.donation-form {
  margin-top: 2rem;
  background: #f9fafb;
  border: 2px solid var(--green-600);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 600px;
  margin-inline: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 1; /* Pastikan default opacity 1 */
  display: block; /* Pastikan default display block */
  transition: opacity 0.4s ease, display 0.4s ease; /* Tambahkan transition untuk display jika perlu */
}
/* Disembunyikan dengan class 'hidden' */
.donation-form.hidden {
  display: none !important; /* Gunakan !important untuk memastikan */
  opacity: 0 !important;
}
/* Efek fade-in saat muncul (opsional, jika ingin animasi) */
.donation-form.fade-in {
  display: block !important;
  opacity: 1 !important;
  animation: fadeInForm 0.5s ease; /* Tambahkan animasi jika mau */
}
@keyframes fadeInForm {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--green-700);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  outline: none;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-options input[type="radio"] {
  accent-color: var(--green-700);
  transform: scale(1.1);
}

.payment-options label:hover {
  border-color: var(--green-700);
  background: #f0fdf4;
}

.payment-options img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.donate-action-btn.full {
  width: 100%;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.donation-form.show {
  opacity: 1;
}

/* ====== MODAL DONASI (final, clean version) ====== */
.donasi-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.donasi-modal.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: popIn 0.4s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #555;
  transition: color 0.3s;
}
.close-modal:hover {
  color: #000;
}

#donasiSummary {
  margin-top: 1rem;
  line-height: 1.8;
  color: #333;
}

#confirmDonation {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.7rem 1.2rem;
  border: none;
  background: var(--green-700);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
#confirmDonation:hover {
  background: var(--green-600);
}

/* ===== FIX MODAL AGAR TIDAK MENGHALANGI HALAMAN ===== */
.donasi-modal.active {
  pointer-events: all;
}
.donasi-modal {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

/* === Popup Sukses === */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.success-popup.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.success-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
  animation: scaleIn 0.35s ease;
}

.success-icon {
  font-size: 50px;
  margin-bottom: 15px;
  color: #00b894;
  animation: popIn 0.4s ease;
}

.success-content h3 {
  margin-bottom: 10px;
  color: #222;
}

.success-content p {
  color: #555;
  margin-bottom: 20px;
}

#closeSuccess {
  background: #00b894;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
}

#closeSuccess:hover {
  background: #019874;
}

/* Animasi */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  80% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* === Info Metode Pembayaran === */
.payment-info {
  background: #f8f9fa;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.payment-info.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.payment-info.hidden {
  display: none;
}

.payment-info strong {
  color: #222;
  font-size: 1rem;
}

.btn-copy {
  margin-top: 10px;
  background: #00b894;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
}

.btn-copy:hover {
  background: #019874;
}

.copy-notif {
  display: none;
  color: #00b894;
  font-weight: 600;
  margin-top: 8px;
  font-size: 0.9rem;
}

.copy-notif.show {
  display: inline-block;
  animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* === Alert sukses profesional === */
.success-alert {
  position: fixed;
  top: 20px;
  right: -400px;
  background: #00b894;
  color: #fff;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  z-index: 9999;
}
.success-alert.show {
  right: 20px;
}
.success-alert .alert-box h4 {
  margin: 0 0 5px;
  font-size: 1.1rem;
}
.success-alert .alert-box p {
  margin: 0;
  font-size: 0.95rem;
}

/* === Animasi panah ke tombol WA === */
.arrow-hint {
  text-align: center;
  margin-top: 10px;
  animation: fadeIn 0.6s ease-in-out;
}
.arrow-hint p {
  color: #2d3436;
  font-size: 0.9rem;
  margin-top: 5px;
  font-weight: 500;
}
.arrow-bounce {
  font-size: 2rem;
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}
.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===== Efek Loading Saat Refresh ===== */
.page-loading {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.page-loading.show {
  opacity: 1;
  pointer-events: all;
}

.page-loading .loader {
  text-align: center;
  color: var(--green-700);
  font-weight: 600;
  font-size: 1rem;
}

.page-loading .spinner {
  width: 45px;
  height: 45px;
  border: 4px solid rgba(31, 138, 76, 0.3);
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === Tombol Konfirmasi via WhatsApp (Popup) === */
#sendWaConfirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer; /* bikin cursor jadi tangan */
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* efek hover */
#sendWaConfirm:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

/* efek saat ditekan */
#sendWaConfirm:active {
  transform: translateY(0);
  box-shadow: 0 3px 6px rgba(37, 211, 102, 0.2);
}

/* ikon di dalam tombol */
#sendWaConfirm::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;

  filter: brightness(0) invert(1); /* ubah ikon jadi putih */
}

.error-text {
  color: #e53935;
  font-size: 0.9rem;
  margin-top: 4px;
  display: block;
  transition: opacity 0.3s ease;
}

.error-text.hidden {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.error-text.show {
  opacity: 1;
  height: auto;
}

/* Untuk halaman program-kegiatan */
.program-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.4s ease;
}

.program-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ====== PROGRAM KEGIATAN (CARD STYLE) ====== */
.program-section {
  padding: 3rem 1rem;
}

.program-container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.program-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 1.5rem;
}

.program-description {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.program-card {
  padding: 1.7rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}

.program-card i {
  font-size: 2.3rem;
  color: var(--green-700);
  margin-bottom: 1rem;
}

.program-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 0.5rem;
}

.program-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsif ukuran teks */
@media (max-width: 600px) {
  .running-caption {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-col {
    text-align: center;
  }
  .social-links {
    align-items: center;
  }

  .donation-btn,
  .donate-action-btn {
    width: 100%;
    max-width: 260px;
  }

  .input-wrapper {
    width: 90%;
  }
  #customAmount {
    width: 100%;
  }
}

/* ========================= */
/* RESPONSIVE - MOBILE */
/* ========================= */
@media (max-width: 900px) {
  body.menu-open {
    /* disable scroll ketika menu terbuka */
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .header-inner {
    justify-content: flex-start;
    gap: 1rem;
  }

  .nav-toggle {
    display: block;
    order: 1;
    z-index: 115;
  }

  .brand {
    order: 2;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--green-700);
    flex-direction: column;
    align-items: flex-start;
    padding-top: 4rem;
    transition: transform 0.28s ease;
    transform: translateX(-100%);
    z-index: 113; /* di atas overlay */
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }
  .menu li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu a {
    display: block;
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  }

  .menu > li > a::after {
    display: none;
  }

  /* Submenu mobile: position static to flow inside sidebar, animation via max-height */
  .menu li.has-submenu {
    position: relative;
  }

  .submenu {
    position: relative;
    top: auto;
    margin-top: 0;
    left: auto;
    background: #14532d; /* hijau gelap */
    box-shadow: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    max-height: 0; /* closed by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: max-height 0.32s ease, opacity 0.22s ease, transform 0.22s ease;
  }

  .submenu li a {
    padding: 0.8rem 1.5rem;
    color: #f1f5f9;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
  }

  .submenu li a:hover {
    background: #ffff;
    padding-left: 2rem;
  }

  .menu li.has-submenu > a {
    position: relative;
    padding-right: 1.5rem; /* beri ruang untuk panah */
  }

  .menu li.has-submenu > a::after {
    content: "▾";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    opacity: 0.8;
    font-size: 1.1rem;
  }

  /* Saat submenu terbuka → panah berputar ke atas */
  .menu li.show-submenu > a::after {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
  }

  /* When show-submenu class is added (via JS) */
  .menu li.show-submenu > .submenu {
    max-height: 800px; /* cukup besar untuk muncul; overflow:hidden will clip */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 0.5rem 0;
  }

  .menu li.show-submenu > a::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .slide-image {
    max-height: 60vh;
  }

  .hero-caption h3 {
    font-size: 1.5rem;
  }
  .hero-caption p {
    font-size: 0.9rem;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .footer-col {
    margin-bottom: 2rem;
  }

  .footer-map iframe {
    width: 100% !important;
    height: 220px !important;
  }

  .social-links {
    align-items: center;
  }

  .org-horizontal-line {
    display: none; /* Hilangkan garis horizontal di HP agar rapi */
  }

  .org-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .org-card {
    min-width: 180px;
    padding: 1rem;
  }
}

/* ========================= */
/* MAIN CONTENT SECTIONS */
/* ========================= */
main {
  padding-top: 0;
  padding-bottom: 0;
}

section {
  padding: 0;
}

section:nth-of-type(even) {
  background-color: #f8fafc;
}

section h2,
section h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--green-700);
  font-weight: 700;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-text h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero-text h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px var(--shadow-medium);
  objectct-fit: cover;
}

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
  .hero-text {
    flex: 1;
  }
  .hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  .hero-text h2 {
    font-size: 1.8rem;
  }
  .hero-text h3 {
    font-size: 3.5rem;
  }
  .hero-ctas {
    justify-content: flex-start;
  }
}

/* About Section */
.about p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-grid .card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--shadow-light);
  text-align: left;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */
@media (max-width: 768px) {
  .slider-wrapper {
    height: 250px; /* tinggi menurun untuk HP */
  }

  .hero-caption h2 {
    font-size: 1rem;
  }
  .hero-caption h3 {
    font-size: 1.5rem;
  }
  .hero-caption p {
    font-size: 0.9rem;
  }
  .org-card {
    min-width: 160px;
    padding: 1rem;
  }

  .org-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .org-card h3 {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .slide-image {
    max-height: 60vh; /* 🟡 batasi tinggi saat mobile */
  }

  .hero-caption {
    width: 90%;
  }

  .hero-caption h3 {
    font-size: 1.3rem;
  }
  .hero-caption p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .slider-wrapper {
    height: 200px;
  }
}
