:root {
  --lp-itsb-primary: var(--itsb-color-primary, #0065ff);
  --lp-itsb-primary-hover: var(--itsb-color-primary-hover, #0051cc);
  --lp-itsb-primary-soft: var(--itsb-color-primary-soft, #e5f0ff);
  --lp-itsb-primary-tint: rgba(0, 101, 255, 0.08);
  --lp-itsb-primary-tint-strong: rgba(0, 101, 255, 0.14);
}

.lp-itsb-header-search {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lp-itsb-header-search__top {
  padding: 16px 0;
  border-bottom: 1px solid #e8e8e8;
}

.lp-itsb-header-search__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-itsb-header-search__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.lp-itsb-header-search__brand-logo {
  height: 40px;
  width: auto;
}

.lp-itsb-header-search__brand-text {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.lp-itsb-header-search__form {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 750px;
  background: transparent;
  border: none;
  padding: 0;
}

.lp-itsb-header-search__input-wrapper {
  flex: 1;
  background: #f4f7ff;
  border: 1px solid #dfe7ff;
  padding: 8px 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  min-width: 0;
}

.lp-itsb-header-search__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0px 0;
  font-size: 0.95rem;
  color: #1f2937;
  outline: none;
  min-width: 0;
}

.lp-itsb-header-search__input::placeholder {
  color: #999999;
}

.lp-itsb-header-search__submit {
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lp-itsb-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.lp-itsb-header-search__submit:hover,
.lp-itsb-header-search__submit:focus-visible {
  background: var(--lp-itsb-primary-hover);
  transform: translateY(-1px);
}

.lp-itsb-header-search__account {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.lp-itsb-header-search__courses-link {
  font-size: 0.9rem;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.lp-itsb-header-search__courses-link:hover {
  color: var(--lp-itsb-primary);
}

.lp-itsb-header-search__user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-itsb-header-search__account-menu {
  position: relative;
}

.lp-itsb-header-search__account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
}

.lp-itsb-header-search__account-toggle:focus-visible,
.lp-itsb-header-search__account-toggle:focus {
  outline: none;
  box-shadow: none;
}

.lp-itsb-header-search__account-avatar-wrapper {
  display: inline-flex;
}

.lp-itsb-header-search__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 180px;
  padding: 8px 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 20;
}

.lp-itsb-header-search__dropdown.is-open {
  display: flex;
  flex-direction: column;
}

.lp-itsb-header-search__dropdown::before {
  content: "";
  position: absolute;
  inset: -8px 0 auto 0;
  height: 8px;
  background: transparent;
}

.lp-itsb-header-search__dropdown-link {
  display: block;
  width: 100%;
  padding: 10px 20px;
  text-align: left;
  text-decoration: none;
  color: #2c3e50;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.lp-itsb-header-search__dropdown-link:hover,
.lp-itsb-header-search__dropdown-link:focus {
  background: var(--lp-itsb-primary-tint);
  color: var(--lp-itsb-primary);
  text-decoration: none;
}

.lp-itsb-header-search__dropdown-link--danger {
  color: #c53030;
}

.lp-itsb-header-search__dropdown-link--danger:hover,
.lp-itsb-header-search__dropdown-link--danger:focus {
  background: rgba(197, 48, 48, 0.12);
  color: #9b2c2c;
}

.lp-itsb-header-search__dropdown form {
  margin: 0;
}

.lp-itsb-header-search__account-greeting {
  font-size: 0.9rem;
  color: #666666;
  font-weight: 400;
}

.lp-itsb-header-search__account-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.lp-itsb-header-search__account-name:hover {
  color: var(--lp-itsb-primary);
}

.lp-itsb-header-search__account-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lp-itsb-header-search__account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8e8e8;
  transition: border-color 0.2s ease;
}

.lp-itsb-header-search__account-avatar-link:hover
  .lp-itsb-header-search__account-avatar {
  border-color: var(--lp-itsb-primary);
}

.lp-itsb-header-search__auth-link,
.lp-itsb-header-search__auth-cta {
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.lp-itsb-header-search__auth-link {
  color: #2c3e50;
  transition: color 0.2s ease;
}

.lp-itsb-header-search__auth-link:hover {
  color: var(--lp-itsb-primary);
}

.lp-itsb-header-search__auth-cta {
  color: #ffffff;
  background: var(--lp-itsb-primary);
  padding: 10px 24px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.lp-itsb-header-search__auth-cta:hover {
  background: var(--lp-itsb-primary-hover);
}

/* Navigation Bar */
.lp-itsb-header-search__nav {
  padding: 14px 0;
  background: #ffffff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.lp-itsb-header-search__nav-inner {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 100%;
}

.lp-itsb-header-search__nav-link {
  font-size: 0.85rem;
  color: #1f2937;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8ff;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
  box-shadow: none;
}

.lp-itsb-header-search__nav-link:hover {
  background: #f5f8ff;
  color: var(--lp-itsb-primary);
  text-decoration: none;
}

.lp-itsb-header-search__nav-link--active {
  background: #f0f6ff;
  border-color: rgba(0, 101, 255, 0.35);
  color: var(--lp-itsb-primary);
}

.lp-itsb-header-search__nav-link--active:hover {
  color: var(--lp-itsb-primary-hover);
}

.lp-itsb-header-search__nav-link--label {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 0;
  padding-right: 12px;
  color: black;
  cursor: default;
}

.lp-itsb-header-search__nav-link--label:hover {
  color: #2563eb;
  background: transparent;
  text-decoration: none;
}



/* Responsive */
@media (max-width: 991px) {
  .lp-itsb-header-search__inner {
    gap: 20px;
  }

  .lp-itsb-header-search__form {
    max-width: 400px;
  }

  .lp-itsb-header-search__nav-inner {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .lp-itsb-header-search__inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .lp-itsb-header-search__form {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .lp-itsb-header-search__brand {
    order: 1;
  }

  .lp-itsb-header-search__account {
    order: 2;
    margin-left: auto;
  }

  .lp-itsb-header-search__courses-link {
    font-size: 0.85rem;
  }

  .lp-itsb-header-search__nav {
    padding: 12px 0;
  }

  .lp-itsb-header-search__nav-inner {
    gap: 16px;
  }

  .lp-itsb-header-search__nav-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 575px) {
  .lp-itsb-header-search__top {
    padding: 12px 0;
  }

  .lp-itsb-header-search__submit {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .lp-itsb-header-search__account {
    gap: 12px;
  }

  .lp-itsb-header-search__courses-link {
    display: none;
  }

  .lp-itsb-header-search__account-avatar {
    width: 32px;
    height: 32px;
  }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}




