html, body {
  overflow-x: hidden;
  max-width: 100%;
}

#navbar.scrolled {
  border-bottom: 2px solid #1B2D6B;
  box-shadow: 0 4px 0 rgba(27,45,107,0.1);
}

.hero-swiper {
  width: 100%;
  height: 100dvh;
  min-height: 600px;
}

.swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background: rgba(255, 255, 255, 0.45) !important;
  border: 2px solid #fff !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
}
.swiper-pagination-bullet-active {
  background: #2DBE6C !important;
  border-color: #2DBE6C !important;
  transform: scale(1.35) !important;
}

.nb-card {
  background: #fff;
  border: 2px solid #1B2D6B;
  border-radius: 1rem;
  box-shadow: 6px 6px 0 #1B2D6B;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.nb-card:hover {
  box-shadow: 3px 3px 0 #1B2D6B;
  transform: translate(3px, 3px);
}

.badge-slant {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.badge-green  { background: #2DBE6C; color: #1B2D6B; transform: rotate(-2deg); }
.badge-yellow { background: #F5C400; color: #1B2D6B; transform: rotate(-2deg); }
.badge-navy   { background: #1B2D6B; color: #fff;    transform: rotate(1.5deg); }
.badge-red    { background: #E63946; color: #fff;    transform: rotate(1.5deg); }

.jaga-card {
  border: 2px solid #1B2D6B;
  border-radius: 1.25rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.jaga-card:hover {
  box-shadow: 3px 3px 0 #1B2D6B !important;
  transform: translate(3px, 3px);
}
.jaga-bg-letter {
  position: absolute;
  top: 0.25rem;
  right: 0.75rem;
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  opacity: 0.08;
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border: 2px solid #1B2D6B;
  border-radius: 1rem;
  box-shadow: 6px 6px 0 #1B2D6B;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.gallery-item:hover {
  box-shadow: 3px 3px 0 #1B2D6B;
  transform: translate(3px, 3px);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,45,107,0.75), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.dot-pattern {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.dot-pattern span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1B2D6B;
  opacity: 0.22;
  display: block;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(27, 45, 107, 0.22);
  border-radius: 0.75rem;
  background: #F7F5EE;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1B2D6B;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-input:focus { border-color: #2DBE6C; }
.form-input::placeholder { color: rgba(27, 45, 107, 0.35); }

.nav-link.active { color: #2DBE6C; }
.nav-link.active::after { width: 100%; }

#icon-open, #icon-close {
  display: none !important;
}
#icon-open.visible, #icon-close.visible {
  display: inline !important;
}

@media (max-width: 1023px) {
  #mobile-menu {
    display: flex !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0.4s ease;
    box-shadow: 0 12px 24px -4px rgba(27, 45, 107, 0.18);
  }
  #mobile-menu.open {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    padding-top: 0.5rem !important;
    padding-bottom: 0.75rem !important;
  }
  #mobile-menu a {
    transform: translateX(-12px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  #mobile-menu.open a {
    transform: translateX(0);
    opacity: 1;
  }
  #mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
  #mobile-menu.open a:nth-child(2) { transition-delay: 0.10s; }
  #mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
  #mobile-menu.open a:nth-child(4) { transition-delay: 0.20s; }
  #mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }
  #mobile-menu.open a:nth-child(6) { transition-delay: 0.30s; }
}
@media (min-width: 1024px) {
  #mobile-menu { display: none !important; }
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #F7F5EE; }
::-webkit-scrollbar-thumb { background: #1B2D6B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2DBE6C; }

@media (max-width: 768px) {
  .hero-swiper { height: 100svh; }
  [data-aos] {
    transition-delay: 0ms !important;
  }
}
