/* ==============================
   NAV PILL — EduTech Redesign
   ============================== */

/* === TOP BAR === */
.it-header-top-area.black-bg {
  background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 60%, #0f2027 100%) !important;
  border-bottom: 1px solid rgba(248, 198, 47, 0.18) !important;
}

/* === MAIN HEADER === */
.it-header-area {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* Sticky — frosted glass */
.header-sticky {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10) !important;
  border-bottom: 1px solid rgba(248, 198, 47, 0.12) !important;
}

/* === NAV LIST === */
.it-header-menu .it-menu-content > ul {
  display: flex !important;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  margin: 0 !important;
  padding: 0 !important;
}

.it-header-menu .it-menu-content > ul > li {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

.it-header-menu .it-menu-content > ul > li::before,
.it-header-menu .it-menu-content > ul > li::after {
  content: none !important;
  display: none !important;
}

/* === PILL LINK === */
.it-header-menu .it-menu-content > ul > li > a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 8px 16px !important;
  border-radius: 50px !important;
  line-height: 1 !important;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748 !important;
  background: transparent !important;
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

/* Pill fill pseudo-element */
.it-header-menu .it-menu-content > ul > li > a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(135deg, #F8C62F 0%, #FFB41F 100%);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}

/* Hover */
.it-header-menu .it-menu-content > ul > li > a:hover {
  color: #1a1a2e !important;
  transform: translateY(-1px);
}

.it-header-menu .it-menu-content > ul > li > a:hover::before {
  opacity: 0.18;
  transform: scale(1);
}

/* Active / current page */
.it-header-menu .it-menu-content > ul > li.active > a,
.it-header-menu .it-menu-content > ul > li > a.active {
  color: #1a1a2e !important;
  font-weight: 700;
}

.it-header-menu .it-menu-content > ul > li.active > a::before,
.it-header-menu .it-menu-content > ul > li > a.active::before {
  opacity: 1;
  transform: scale(1);
}

/* === Support pill + double-arrow icon === */
.it-header-menu .it-menu-content > ul > li.has-dropdown > a {
  color: #1a1a2e !important;
}

.it-header-menu .it-menu-content > ul > li.has-dropdown > a::before {
  opacity: 0;
  transform: scale(0.8);
  background: linear-gradient(135deg, #f8c62f 0%, #ffb41f 100%);
}

.it-header-menu .it-menu-content > ul > li.has-dropdown > a .nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
  vertical-align: middle;
}

.it-header-menu .it-menu-content > ul > li.has-dropdown > a .nav-caret i {
  font-size: 12px;
  line-height: 1;
}

/* Hide theme default dropdown arrow; keep only .nav-caret icon */
.it-header-menu .it-menu-content > ul > li.has-dropdown > a::after {
  content: none !important;
  display: none !important;
}

.it-header-menu .it-menu-content > ul > li.has-dropdown:hover > a .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.it-header-menu .it-menu-content > ul > li.has-dropdown.active > a::before,
.it-header-menu .it-menu-content > ul > li.has-dropdown > a:hover::before {
  background: linear-gradient(135deg, #f8c62f 0%, #ffb41f 100%);
}

/* === SEARCH WRAP === */
.it-header-search-wrap {
  border: 1.5px solid #e9ecef;
  border-radius: 50px;
  overflow: hidden;
  background: #f8f9fa;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  height: 42px;
}

.it-header-search-wrap:focus-within {
  border-color: #F8C62F;
  box-shadow: 0 0 0 3px rgba(248, 198, 47, 0.18);
  background: #fff;
}

.it-header-categorie {
  padding: 0 12px 0 14px;
  border-right: 1.5px solid #e2e8f0;
  height: 100%;
  gap: 7px;
}

.it-header-categorie svg {
  flex-shrink: 0;
  opacity: 0.65;
}

.it-header-search {
  padding: 0 14px 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.it-header-search input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 13.5px;
  color: #4a5568;
  min-width: 130px;
}

.it-header-search input::placeholder {
  color: #a0aec0;
}

/* === DESKTOP HEIGHT LOCK === */
@media (min-width: 1200px) {
  header,
  .it-header-area,
  .it-header-main,
  .it-header-2-area,
  .it-header-menu,
  .it-header-menu .it-header-dropdown,
  .it-header-menu .it-menu-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .it-header-menu .it-menu-content > ul {
    height: 72px !important;
  }
}

@media (max-width: 1199.98px) {
  .it-header-menu {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

@media (max-width: 575.98px) {
  .it-header-top-ptb {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .it-header-top-area .row {
    row-gap: 6px;
  }

  .it-header-top-right-action {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .it-header-top-login-box {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-right: 0 !important;
    margin-right: 0 !important;
    border-right: none !important;
  }

  .it-header-top-login-box a,
  .it-header-top-login-box span {
    font-size: 13px;
    line-height: 1;
  }

  .it-header-top-login-box span {
    margin: 0 6px;
  }

  .it-header-top-social-box {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .it-header-top-social-box > span {
    display: none;
  }

  .it-header-top-social-box a {
    line-height: 1;
  }

  .it-header-top-contact-wrap ul li {
    margin-right: 0 !important;
  }

  .it-header-top-contact-wrap ul li .it-header-top-contact a {
    font-size: 13px;
    line-height: 1.2;
  }
}
