/* ================= BASE ================= */
body {
  font-family: 'Poppins', sans-serif;
}

/* ================= HERO IMAGE ================= */
.hero-bg {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  transform: scale(1.15);
  animation: heroZoomOut 10s ease-out forwards;
}

@keyframes heroZoomOut {
  from {
    transform: scale(1.15);
  }

  to {
    transform: scale(1);
  }
}

/* ================= TEXT ANIMATION ================= */
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: textFadeUp 1s ease-out forwards;
}

.hero-line:nth-child(1) {
  animation-delay: .2s;
}

.hero-line:nth-child(2) {
  animation-delay: .4s;
}

.hero-line:nth-child(3) {
  animation-delay: .6s;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: textFadeUp 1s ease-out forwards;
  animation-delay: .9s;
}

@keyframes textFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= CTA ================= */
.cta-btn {
  position: relative;
  overflow: hidden;
}

.cta-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -100%;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transition: left .4s ease;
}

.cta-btn:hover::after {
  left: 0;
}

/* ================= SLIDER ARROWS ================= */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all .3s ease;
  z-index: 50;
}

.nav-arrow:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-50%) scale(1.08);
}

.nav-prev {
  left: 24px;
}

.nav-next {
  right: 24px;
}

@media (max-width: 768px) {
  .nav-arrow {
    width: 44px;
    height: 44px;
  }
}

/* ================= HEADER ================= */
.hide-header {
  visibility: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  transition: all 0.35s ease;
}

/* HEADER SAAT SCROLL */
.header.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* FULL WIDTH FIX */
.header .container {
  max-width: 100% !important;
  width: 100%;
  padding-left: 5rem;
  padding-right: 5rem;
}

@media (max-width: 768px) {
  .header .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* INNER */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= LOGO ================= */
.logo img {
  height: 100px;
  transition: opacity 0.3s ease;
}

/* DEFAULT (TOP) */
.logo-dark {
  display: none;
}

.logo-white {
  display: block;
}

/* SCROLL */
.header.scrolled .logo-white {
  display: none;
}

.header.scrolled .logo-dark {
  display: block;
}

/* ================= NAV ================= */
.nav {
  display: flex;
  align-items: center;
}

/* MENU ITEM */
.nav a,
.nav-link {
  margin-left: 28px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 4px;
}

/* TOP */
.header:not(.scrolled) .nav a,
.header:not(.scrolled) .nav-link {
  color: #ffffff;
}

/* SCROLL */
.header.scrolled .nav a,
.header.scrolled .nav-link {
  color: #24570d;
}

/* UNDERLINE HOVER */
.nav a::after,
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #44dd00;
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav-link:hover::after {
  width: 100%;
}

/* KEEP TEXT COLOR */
.nav a:hover,
.nav-link:hover {
  color: inherit;
}

/* ARROW */
.arrow {
  font-size: 12px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.has-sub:hover .arrow {
  transform: rotate(180deg);
}

/* ================= DROPDOWN ================= */
.nav-item {
  position: relative;
}

/* ================= BASE ================= */
body {
  font-family: 'Poppins', sans-serif;
}

/* ================= HERO IMAGE ================= */
.hero-bg {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  transform: scale(1.15);
  animation: heroZoomOut 10s ease-out forwards;
}

@keyframes heroZoomOut {
  from {
    transform: scale(1.15);
  }

  to {
    transform: scale(1);
  }
}

/* ================= TEXT ANIMATION ================= */
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: textFadeUp 1s ease-out forwards;
}

.hero-line:nth-child(1) {
  animation-delay: .2s;
}

.hero-line:nth-child(2) {
  animation-delay: .4s;
}

.hero-line:nth-child(3) {
  animation-delay: .6s;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: textFadeUp 1s ease-out forwards;
  animation-delay: .9s;
}

@keyframes textFadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= CTA ================= */
.cta-btn {
  position: relative;
  overflow: hidden;
}

.cta-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -100%;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transition: left .4s ease;
}

.cta-btn:hover::after {
  left: 0;
}

/* ================= SLIDER ARROWS ================= */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all .3s ease;
  z-index: 50;
}

.nav-arrow:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-50%) scale(1.08);
}

.nav-prev {
  left: 24px;
}

.nav-next {
  right: 24px;
}

@media (max-width: 768px) {
  .nav-arrow {
    width: 44px;
    height: 44px;
  }
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  transition: all 0.35s ease;
}

/* HEADER SAAT SCROLL */
.header.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* FULL WIDTH FIX */
.header .container {
  max-width: 100% !important;
  width: 100%;
  padding-left: 5rem;
  padding-right: 5rem;
}

@media (max-width: 768px) {
  .header .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* INNER */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= LOGO ================= */
.logo img {
  height: 100px;
  transition: opacity 0.3s ease;
}

/* DEFAULT (TOP) */
.logo-dark {
  display: none;
}

.logo-white {
  display: block;
}

/* SCROLL */
.header.scrolled .logo-white {
  display: none;
}

.header.scrolled .logo-dark {
  display: block;
}

/* ================= NAV ================= */
.nav {
  display: flex;
  align-items: center;
}

/* MENU ITEM */
.nav a,
.nav-link {
  margin-left: 28px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 4px;
}

/* TOP */
.header:not(.scrolled) .nav a,
.header:not(.scrolled) .nav-link {
  color: #ffffff;
}

/* SCROLL */
.header.scrolled .nav a,
.header.scrolled .nav-link {
  color: #24570d;
}

/* UNDERLINE HOVER */
.nav a::after,
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #44dd00;
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav-link:hover::after {
  width: 100%;
}

/* KEEP TEXT COLOR */
.nav a:hover,
.nav-link:hover {
  color: inherit;
}

/* ARROW */
.arrow {
  font-size: 12px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.has-sub:hover .arrow {
  transform: rotate(180deg);
}

/* ================= DROPDOWN ================= */
.nav-item {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 999;
}

.sub-menu a {
  display: block;
  padding: 12px 18px;
  color: #24570d !important;
  font-weight: 500;
  transition: all 0.25s ease;
}


.sub-menu a:hover {
  background: #44dd00;
  color: #ffffff;
}

/* SHOW DROPDOWN */
.has-sub:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =================== VISI & MISI ========================== */
#visi-misi {
  position: relative;
  width: 100%;
  min-height: 100vh;   /* 🔑 kunci utama */
  overflow: hidden;   /* ganti dari overflow-auto */
}

/* PARALLAX CONTAINER */
#visi-misi .parallax-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* PARALLAX BACKGROUND */
#visi-misi .parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* CONTENT DI ATAS BG */
#visi-misi .content-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

/* DIAGONAL DI ATAS BG */
#visi-misi .diagonal-divider {
  position: absolute;
      top: 0;
      right: 0;
      width: 50%;
      height: 100%;
      background: white;
      /* clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%); */
      z-index: 1;
}

.mission-item {
  opacity: 0;
  transform: translateX(30px);
  animation: slideIn 0.6s ease-out forwards;
}

.mission-item:nth-child(1) {
  animation-delay: 0.2s;
}

.mission-item:nth-child(2) {
  animation-delay: 0.4s;
}

.mission-item:nth-child(3) {
  animation-delay: 0.6s;
}

.mission-item:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.leaf-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@view-transition {
  navigation: auto;
}

/* ================= PROGRAM CARD ANIMATION ================= */
.program-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.program-card:hover {
  transform: translateY(-14px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* ICON ANIMATION */
.program-icon {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.program-card:hover .program-icon {
  transform: scale(1.08) rotate(-3deg);
}

/* Hover lift subtle */
.hover-lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

/* Mobile swipe */
.swipe-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.swipe-card {
  scroll-snap-align: start;
}


/* Gallery */
/* FILTER */
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: #eee;
  font-weight: 500;
  transition: all .3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #24570d;
  color: #fff;
}

/* GALLERY ITEM */
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  background: #000;
  transition: transform .4s ease, box-shadow .4s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

/* IMAGE & VIDEO */
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* AUTO PLAY VIDEO PREVIEW */
.gallery-item.video video {
  pointer-events: none;
}

/* OVERLAY TEXT */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent 60%);
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity .3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox .closeLightbox {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 36px;
  color: #fff;
}

.lightbox .nav {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: #fff;
  padding: 12px;
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}


/* Filter Button */
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #1f513b;
  color: #fff;
  border-color: #1f513b;
}

/* Gallery Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: #000;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.08);
}

/* Overlay Text */
.gallery-item span {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  z-index: 2;
}

/* Video Play Icon */
.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: white;
  opacity: 0.85;
}

/* Hidden */
.gallery-item.hidden {
  display: none;
}


/* ROADMAP */
.dot {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #fff;
  border: 3px solid #d1d5db;
  cursor: pointer;
  transition: all .3s ease;
}

.dot.active {
  background: #24570d;
  border-color: #24570d;
  box-shadow: 0 0 0 6px rgba(36,87,13,.15);
}

.roadmap-item {
  display: none;
}

.roadmap-item.active {
  display: block;
}

/* FOOTER */
.footer {
  background: #24570d;
  color: #ffffff;
  padding-top: 80px;
  font-family: 'Inter', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
}

/* Brand */
.footer-logo {
  width: 160px;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Subscribe */
.footer-subscribe {
  position: relative;
  max-width: 320px;
}

.footer-subscribe input {
  width: 100%;
  padding: 14px 60px 14px 20px;
  border-radius: 50px;
  border: none;
  outline: none;
}

.footer-subscribe button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #44dd00;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* Titles */
.footer h4 {
  font-size: 18px;
  margin-bottom: 25px;
}

/* Links */
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: #ffffff;
  opacity: 0.85;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #44dd00;
  opacity: 1;
}

/* Posts */
.footer-posts .post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-posts img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-posts .date {
  font-size: 13px;
  color: #44dd00;
  display: block;
  margin-bottom: 5px;
}

.footer-posts a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
}

/* Contact */
.footer-contact .contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-contact .icon {
  width: 42px;
  height: 42px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.15);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.85;
}

.footer-bottom-links a {
  color: #ffffff;
  margin-left: 20px;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.85;
}

.footer-bottom-links a:hover {
  color: #44dd00;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}