/* Custom Header Styles */
.custom-header {
  --white-text: #000000;
  --white-border: #000000;
  --header-bg-color: #ffffff;
  --subheader-bg-color: #D8D8D9;

  background-color: var(--header-bg-color);
  color: var(--white-text);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  overflow: visible;
  padding-top: 20px;
  padding-bottom: 20px;
}


.mobile-header {
  display: none;
}

.custom-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;

}

/* Left Section */
.custom-header__left {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding-left: 40px;
}

.custom-header__logo {
  margin-right: 32px;
  width: 160px;
  /* height: 80px; */
  height: auto;
}

.custom-header__divider {
  width: 1px;
  height: 100px;
  background-color: var(--white-text);
  margin: 0 32px;
}

/* Navigation */
.custom-header__nav {
  flex: 1;
}

.custom-header__nav-list {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 96px;
}


.custom-header__nav-link {
  color: var(--white-text);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  display: block;
  transition: color 0.3s ease;
}

.custom-header__nav-link:hover {
  color: var(--white-text);
  text-decoration: underline;
}

.custom-header__nav-link.is-active {
  text-decoration: none;
  font-weight: normal;
  cursor: pointer;
}

.custom-header__nav-link.is-active:hover {
  text-decoration: underline;
  cursor: pointer;
}

.custom-header-right-side__nav-link {
  color: var(--white-text);
  text-decoration: none;
  font-weight: 500;
  padding: 2px 2px;
  display: block;
  transition: color 0.3s ease;
}

.custom-header-right-side__nav-link:hover {
  color: var(--white-text);
  text-decoration: underline;
}


.custom-header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--subheader-bg-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  /* transform: translateY(-10px); */
  transform: none;
  transition: all 0.3s ease;
  list-style: none;
  margin: 0;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 1001;

}


.custom-header__nav-item:hover .custom-header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);

}

.custom-header__dropdown li {
  margin: 0;
  flex: 0 0 auto;

}

.custom-header__dropdown a {
  color: var(--white-text);
  text-decoration: none;
  padding: 2px 12px;
  display: block;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-right: 1px solid var(--white-border);
  font-size: 0.95rem;
  margin-top: 5px;
}

.custom-header__dropdown .logo-hover-link {
  border-right: none;
  padding: 0;
}

.custom-header-row__dropdown {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;

}

.custom-header-column__dropdown {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 50px;
}

.custom-header-column__dropdown span {
  line-height: 1.2rem;
  font-size: 16px;
  font-weight: bold;
}

.custom-header-no-border-right__dropdown {
  border-right: none !important;
}

.custom-header__dropdown a:hover {
  color: var(--white-text);
  text-decoration: underline;
}

/* Right Section */
.custom-header__right {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 40px;
}

.custom-header__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-header__link {
  color: var(--white-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.custom-header__link:hover {
  color: var(--white-text);
}

/* CTA and Search Section */
.custom-header__cta-search {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding-right: 24px;
}

.custom-header__cta-button {
  background: transparent;
  border: 2px solid var(--white-border);
  color: var(--white-text);
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 1s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}

.custom-header__cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--white-text);
  transition: width 1s ease;
  z-index: -1;
}

.custom-header__cta-button:hover::before {
  width: 100%;
}

.custom-header__cta-button:hover {
  color: var(--header-bg-color);
}

.custom-header__search {
  position: relative;
  min-width: 215px;
}

.custom-header__search-input {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid var(--white-border) !important;
  color: var(--white-text) !important;
  padding: 12px 0 12px 0 !important;
  font-size: 1rem !important;
  width: 100% !important;
  outline: none !important;
  font-weight: 400 !important;
}

.custom-header__search-input::placeholder {
  color: var(--white-text);
  font-weight: 400;
}

.custom-header__search-input:focus {
  border-bottom-color: var(--white-text);
}

.custom-header__search-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white-text);
  cursor: pointer;
  transition: color 0.3s ease;
  width: 16px;
  height: 16px;
}

.custom-header__search-icon:hover {
  color: var(--white-text);
}

.logo-hover-image {
  width: 78px;
  /* height: 48px; */
  height: auto;
  margin-left: 40px;
}

.pl-10 {
  padding-left: 11px;
}

.list-style-none {
  list-style: none;
}

/* tooltip */

.custom-header__cta-search,
.mobile-header__cta-search {
  position: relative; /* important */
}

.cta-tooltip {
  position: absolute;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 10;

  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-header__cta-search .cta-tooltip {
  top: 110%;
}

.mobile-header__cta-search .cta-tooltip {
  top: 75px;
}

.cta-tooltip.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(4px);
}

.cta-tooltip::after {
  content: " ";
  position: absolute;
  bottom: 100%;  /* At the top of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

/* Media Queries */

@media (max-width: 1500px) {
  .custom-header__nav-list {
    gap: 64px;
  }

  .custom-header__left {
    padding-left: 32px;
  }

  .logo-hover-image {
    margin-left: 32px;
  }

  .custom-header__right {
    padding-right: 32px;
  }

  .custom-header-column__dropdown {
    padding-left: 42px;
  }
}

@media (max-width: 1200px) {
  /* .custom-header__nav-list {
    gap: 48px;
  } */

  .custom-header__left {
    padding-left: 24px;
  }

  .logo-hover-image {
    margin-left: 24px;
  }

  .custom-header__right {
    padding-right: 24px;
    gap: 24px;
  }

  .custom-header__divider {
    height: 80px;
    margin: 0 24px;
  }

  .custom-header-column__dropdown {
    padding-left: 34px;
  }
}

/* gap adjustment */

@media (max-width: 1660px) {
  .custom-header__nav-list {
    gap: 64px;
  } 
}

@media (max-width: 1530px) {
  .custom-header__nav-list {
    gap: 32px;
  } 
}

@media (max-width: 1390px) {
  .custom-header__nav-list {
    gap: 16px;
  } 
}
