/* Underline animation setup */
.custom-nav-link {
  position: relative;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.custom-nav-link::after {
  content: "";
  position: absolute;
  left: 0rem; /* aligns with Bootstrap's nav-link horizontal padding */
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #a47761;
  transition: width 0.3s ease;
}

/* Hover underline */
.custom-nav-link:hover::after {
  /* width: calc(100% - 1.5rem); */
  width: 100%;
}

.custom-nav-link:hover {
  color: #253747 !important;
}

/* Static underline for the selected item */
.custom-nav-link.active::after {
  /* width: calc(100% - 1.5rem); */
  width: 100%;
}

.custom-nav-link.active {
  color: #253747 !important;
  font-weight: bold;
}

/* On collapsed mobile menu, let the underline span full width */
@media (max-width: 991.98px) {
  .custom-nav-link::after {
    left: 0;
  }
  .custom-nav-link:hover::after,
  .custom-nav-link.active::after {
    width: 100%;
  }
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  padding: 5px 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-icon {
  flex-shrink: 0;
}

.divider {
  width: 1px;
  height: 24px;
  background-color: #ccc;
}

.search-box input[type="text"] {
  background-color: transparent !important;
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #333;
}

.search-box input::placeholder {
  color: #999;
}
