/* Minimal custom CSS for states/animations not covered cleanly by Tailwind utilities. */

@media (max-width: 767px) {
  section[id] {
    scroll-margin-top: 10px;
  }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: 0.5rem;
  color: rgb(51 65 85);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 200ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.25rem;
  width: 100%;
  height: 1px;
  background-color: rgb(15 23 42);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: rgb(15 23 42);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.mobile-menu-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1rem) scale(0.98);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.mobile-menu-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mobile-nav-link {
  border-radius: 0.75rem;
  color: rgb(30 41 59);
  font-weight: 500;
  padding: 0.875rem 1rem;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  background-color: rgb(248 250 252);
  color: rgb(15 23 42);
  outline: none;
}

.navbar-scrolled {
  background-color: rgb(255 255 255);
}

.navbar-scrolled #navbar-inner {
  height: 4rem;
}

.hero-scroll-indicator {
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(0.5rem);
  }
}

.detail-modal {
  transition: opacity 260ms ease;
}

.detail-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.detail-modal-content {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.detail-modal.is-open .detail-modal-content {
  opacity: 1;
  transform: translateY(0);
}

/* Scoped styling for the Alur Pendaftaran topology section only. */
.alur-pendaftaran-topology {
  margin: 3.5rem auto 0;
  width: 100%;
  overflow: hidden;
}

.alur-pendaftaran-topology picture {
  display: block;
  width: 100%;
}

.alur-pendaftaran-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.review-scrollbar {
  scrollbar-width: none;
}

.review-scrollbar::-webkit-scrollbar {
  display: none;
}

#review-carousel {
  overflow-x: auto;
}

#review-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 500ms ease;
}

.review-card {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  #review-carousel {
    overflow: hidden;
  }

  .review-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 1024px) {
  .review-card {
    flex-basis: calc((100% - 3rem) / 3);
  }
}

.custom-date,
.custom-select {
  position: relative;
}

.custom-date-trigger,
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgb(148 163 184);
  cursor: pointer;
}

.custom-date.is-selected .custom-date-trigger,
.custom-select.is-selected .custom-select-trigger {
  color: rgb(15 23 42);
}

.custom-date-trigger i,
.custom-select-trigger i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(148 163 184);
  pointer-events: none;
}

.custom-select-trigger i:first-child {
  left: 1rem;
  right: auto;
}

.custom-date.is-open .custom-date-trigger,
.custom-select.is-open .custom-select-trigger {
  border-color: rgb(15 23 42);
}

.custom-date-panel,
.custom-select-panel {
  position: absolute;
  z-index: 50;
  margin-top: 0.5rem;
  border: 1px solid rgb(226 232 240);
  border-radius: 4px;
  background-color: #ffffff;
}

.custom-date-panel {
  width: 18rem;
  padding: 1rem;
}

.custom-select-panel {
  width: 100%;
  overflow: hidden;
}

.custom-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  color: rgb(15 23 42);
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease;
}

.custom-option:hover,
.custom-option:focus-visible {
  background-color: rgb(241 245 249);
  outline: none;
}

.custom-option.is-selected {
  background-color: rgb(15 23 42);
  color: #ffffff;
}

.custom-date-panel .custom-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .alur-pendaftaran-topology {
    margin-top: 3rem;
  }

  .alur-pendaftaran-image {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .alur-pendaftaran-topology {
    margin: 2.75rem auto 0;
    max-width: 28.4375rem;
  }

  .alur-pendaftaran-image {
    width: 100%;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-indicator {
    animation: none;
  }

  .detail-modal,
  .detail-modal-content {
    transition: none;
  }
}