/* Force Extra Nav Button to Always Display on Desktop */
@media only screen and (min-width: 1024px) {
  .box-header .extra-nav,
  .box-header .extra-nav .site-button {
    display: flex !important;
  }
  
  /* Hide Pendaftaran link in navbar on desktop (button is shown instead) */
  .header-nav .nav-item:has(a[href*="pendaftaran"]) {
    display: none !important;
  }
}

/* Show Pendaftaran link in mobile menu */
@media only screen and (max-width: 1023px) {
  .header-nav .nav-item:has(a[href*="pendaftaran"]) {
    display: block !important;
  }
  
  /* Style the Pendaftaran link like other nav items */
  .header-nav .nav-item:has(a[href*="pendaftaran"]) .nav-link {
    padding: 8px 12px; 
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 18px;
    display: block;
  }
}

/* Step Indicator */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  font-weight: bold;
}

.step-label {
  font-size: 12px;
  color: #9e9e9e;
}

.step.active .step-number {
  background-color: #195f5c;
}

.step.active .step-label {
  color: #195f5c;
  font-weight: bold;
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.form-navigation .btn {
  flex: 1;
  margin: 0 5px;
}

/* Review Data */
#review-data-santri p,
#review-data-orangtua p {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

#review-data-santri p:last-child,
#review-data-orangtua p:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Review Table Styles */
.review-table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  border-collapse: collapse;
}

.review-table th,
.review-table td {
  padding: 0.75rem;
  vertical-align: top;
  border: 1px solid #dee2e6;
}

.review-table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

.review-table tbody+tbody {
  border-top: 2px solid #dee2e6;
}

.review-table.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.review-table.table-bordered {
  border: 1px solid #dee2e6;
}

.review-table.table-bordered th,
.review-table.table-bordered td {
  border: 1px solid #dee2e6;
}

.review-table.table-bordered thead th,
.review-table.table-bordered thead td {
  border-bottom-width: 2px;
}

/* Responsive table */
@media (max-width: 768px) {
  .review-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .review-table td:first-child {
    width: 40% !important;
  }

  .review-table td:last-child {
    width: 60% !important;
  }
}

.get-template {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

.hstack {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: stretch;
}

/* Language Toggle - base */
.lang-toggle-wrapper {
  display: flex;
  align-items: center;
  /* supaya mengikuti padding/flow navbar */
}

.lang-toggle-btn {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 3px;
  width: 90px;
  height: 36px;
  overflow: hidden;
}

.lang-option {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: #000;
  /* warna default */
  transition: color 0.20s ease;
  z-index: 2;
  cursor: pointer;
  user-select: none;
}

.lang-option.active {
  color: #fff;
}

.lang-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 6px);
  height: calc(100% - 6px);
  background: #0c7a6e;
  border-radius: 17px;
  transition: transform 0.25s ease;
  z-index: 1;
}

/* FIXED: add missing { } so rule applies */
.lang-slider.slide-right {
  transform: translateX(calc(100% + 6px));
}

/* Optional: small focus/active styles */
.lang-option:active {
  transform: scale(0.995);
}

/* ===== Mobile / collapsed navbar tweaks ===== */
@media (max-width: 991px) {

  /* make the li behave like the other li items (full-width row) */
  .header-nav .nav>.lang-toggle-wrapper {
    width: 100%;
    padding: 0.5rem 1rem;
    /* cocokkan dengan padding link lain */
    box-sizing: border-box;
  }

  /* align toggle to the left like links (sesuaikan indent jika perlu) */
  .lang-toggle-btn {
    margin-left: 0;
  }

  /* slightly larger tap targets on mobile */
  .lang-toggle-btn {
    width: 110px;
    height: 40px;
    padding: 4px;
    border-radius: 22px;
  }

  .lang-option {
    font-size: 14px;
  }

  .lang-slider {
    top: 4px;
    left: 4px;
    width: calc(50% - 8px);
    height: calc(100% - 8px);
    border-radius: 18px;
  }

  /* ensure text color contrast when slider moves */
  .lang-option {
    color: #222;
  }

  .lang-option:not(.active) {
    color: #fff;
  }
  
  .lang-option.active {
    color: #fff;
  }

  /* if you prefer white on active, adjust */
}

/* Responsive margins for about-area-one section */
/* Desktop - keep original margins */
.about-area-one.my-5.mx-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
  margin-left: 3rem !important;
  margin-right: 3rem !important;
}

/* Tablet - reduce horizontal margins */
@media (max-width: 1024px) {
  .about-area-one.my-5.mx-5 {
    margin-left: 2rem !important;
    margin-right: 2rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
  }
}

/* Small tablet - further reduce margins */
@media (max-width: 768px) {
  .about-area-one.my-5.mx-5 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
}

/* Mobile - minimal margins */
@media (max-width: 576px) {
  .about-area-one.my-5.mx-5 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
}

/* Extra small mobile - remove horizontal margins completely */
@media (max-width: 375px) {
  .about-area-one.my-5.mx-5 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }
}

/* Card styling for icon boxes */
.about-area-one .icon-box {
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 2rem !important;
}

.about-area-one .icon-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Add spacing between cards on mobile */
@media (max-width: 991px) {
  .about-area-one .icon-box {
    margin-bottom: 1.5rem;
  }
  
  .about-area-one .icon-box:last-child {
    margin-bottom: 0;
  }
}

/* Enhance icon styling */
.about-area-one .icon-lg {
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.about-area-one .icon-box:hover .icon-lg {
  transform: scale(1.1);
}

/* Add gap between cards on desktop */
@media (min-width: 992px) {
  .about-area-one .row {
    gap: 1.5rem;
  }
  
  .about-area-one .col-lg-4 {
    flex: 1;
    max-width: calc(33.333% - 1rem);
  }
}