/* Header rollback: keep layout fixes, remove premium redesign layer. */

.it-header-top-area.black-bg {
  background: #0d1117 !important;
  border-bottom: 1px solid rgba(248, 198, 47, 0.18) !important;
}

.it-header-top-contact-wrap ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.it-header-top-contact-wrap ul li,
.it-header-top-contact,
.it-header-top-contact a {
  white-space: nowrap;
}

.it-header-top-contact-wrap ul li:not(:last-child) {
  padding-right: 18px !important;
  margin-right: 18px !important;
}

.it-header-top-contact a {
  font-size: 13px;
}

.it-header-top-right-action {
  flex-wrap: nowrap;
  gap: 14px;
}

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

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

.it-header-top-login-box span {
  margin: 0 5px !important;
}

.topbar-dashboard-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  background: #ffb41f;
  color: #1a1a2e !important;
  font-size: 12px !important;
  font-weight: 700;
  padding: 4px 12px !important;
  border-radius: 20px;
  text-decoration: none !important;
  line-height: 1.4 !important;
  margin-right: 8px;
}

.topbar-user-chip {
  display: inline !important;
  color: #ffffff !important;
  font-weight: 600;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.topbar-user-chip svg,
.topbar-logout-btn svg {
  display: none;
}

.topbar-logout-btn {
  display: inline !important;
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.topbar-logout-btn::before {
  content: "/";
  display: inline-block;
  margin: 0 10px 0 5px;
  color: #ffffff;
}

.it-header-top-social-box {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.it-header-top-social-box a:not(:last-child) {
  margin-right: 0 !important;
}

.topbar-lang-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #f8c62f;
  border: 1px solid #f8c62f;
  color: #111 !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
}

.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;
}

.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;
}

.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;
}

.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 ease;
  z-index: 1;
}

.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 ease;
  z-index: -1;
}

.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);
}

.it-header-menu .it-menu-content > ul > li.active > a,
.it-header-menu .it-menu-content > ul > li > a.active,
.it-header-menu .it-menu-content > ul > li.has-dropdown.active > a {
  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,
.it-header-menu .it-menu-content > ul > li.has-dropdown.active > a::before {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.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 > 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;
}

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

.it-header-menu nav ul li .submenu li.active > a {
  color: #1a1a2e !important;
  background: rgba(248, 198, 47, 0.14);
  font-weight: 700 !important;
}

@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 {
    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-social-box {
    justify-content: center;
    gap: 8px;
  }

  .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;
  }
}

/* Premium header/nav design restored after contact translation work. */
.it-header-top-area.black-bg {
  background:
    linear-gradient(90deg, rgba(26, 182, 157, 0.12), transparent 28%),
    #08111f !important;
  border-top: 2px solid #19b89f;
  border-bottom: 1px solid rgba(248, 198, 47, 0.18) !important;
  box-shadow: 0 8px 24px rgba(8, 17, 31, 0.1);
}

.it-header-top-area .it-header-top-ptb {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

.it-header-top-contact {
  min-height: 28px;
  padding-left: 32px !important;
}

.it-header-top-contact span {
  top: 50% !important;
  left: 0 !important;
  display: inline-flex !important;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(248, 198, 47, 0.1);
  transform: translateY(-50%);
}

.it-header-top-contact a {
  font-size: 12.5px !important;
  font-weight: 500 !important;
}

.it-header-top-login-box {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  white-space: nowrap !important;
}

.it-header-top-area .topbar-dashboard-btn,
.it-header-top-area .topbar-user-chip,
.it-header-top-area .topbar-logout-btn,
.it-header-top-area .topbar-lang-btn {
  min-height: 28px;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.it-header-top-area .topbar-dashboard-btn,
.it-header-top-area .topbar-user-chip,
.it-header-top-area .topbar-logout-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
}

.it-header-top-area .topbar-dashboard-btn {
  position: relative;
  padding: 6px 14px !important;
  color: #08111f !important;
  background: linear-gradient(180deg, #ffe071 0%, #ffc62d 48%, #f0a90c 100%) !important;
  border: 1px solid #ffd75a !important;
  border-bottom-color: #a56700 !important;
  box-shadow:
    0 4px 0 #9c6100,
    0 10px 18px rgba(248, 185, 28, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -2px 0 rgba(131, 78, 0, 0.18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.it-header-top-area .topbar-dashboard-btn::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 4px;
  height: 36%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.it-header-top-area .topbar-user-chip {
  max-width: 165px;
  padding: 6px 11px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  text-overflow: ellipsis;
}

.it-header-top-area .topbar-user-chip svg,
.it-header-top-area .topbar-logout-btn svg {
  display: inline-block;
  flex: 0 0 auto;
}

.it-header-top-area .topbar-user-chip svg {
  color: #f8c62f;
}

.it-header-top-area .topbar-logout-btn {
  padding: 6px 10px !important;
  color: rgba(255, 255, 255, 0.86) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.it-header-top-area .topbar-dashboard-btn:hover {
  color: #08111f !important;
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffe786 0%, #ffcc35 48%, #f4ad0c 100%) !important;
  box-shadow:
    0 6px 0 #9c6100,
    0 14px 24px rgba(248, 185, 28, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -2px 0 rgba(131, 78, 0, 0.16);
}

.it-header-top-area .topbar-dashboard-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #9c6100,
    0 6px 12px rgba(248, 185, 28, 0.2),
    inset 0 2px 3px rgba(131, 78, 0, 0.24);
}

.it-header-top-area .topbar-user-chip:hover,
.it-header-top-area .topbar-logout-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.105) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  transform: translateY(-1px);
}

.topbar-logout-btn::before {
  content: none !important;
}

.it-header-top-social-box > a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82) !important;
  background: transparent;
  border: 1px solid transparent;
}

.it-header-top-social-box > a:hover {
  color: #ffcf35 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 207, 53, 0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.it-header-top-area .topbar-lang-btn {
  display: inline-grid !important;
  grid-template-columns: 1fr 1fr;
  min-width: 74px;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px;
  padding: 3px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.it-header-top-area .topbar-lang-btn .lang-option {
  display: inline-flex;
  min-width: 31px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.it-header-top-area .topbar-lang-btn .lang-option.active {
  color: #08111f;
  background: linear-gradient(135deg, #ffd044 0%, #f8b91c 100%);
  box-shadow: 0 6px 14px rgba(248, 185, 28, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.it-header-top-area .topbar-lang-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 207, 53, 0.42) !important;
}

.it-header-area {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
}

.it-header-ptb {
  padding: 14px 0 !important;
}

.it-header-logo img {
  max-height: 76px;
  width: auto;
}

.it-header-menu {
  display: flex;
  justify-content: center;
}

.it-header-menu .nav-pill {
  display: inline-flex;
  align-items: center;
}

.it-header-menu .it-menu-content > ul {
  gap: 4px;
  padding: 7px !important;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 28px rgba(15, 23, 42, 0.07);
}

.it-header-menu .it-menu-content > ul > li > a {
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 10px 17px !important;
  font-size: 13.5px;
  color: #1f2937 !important;
  transition: color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.it-header-menu .it-menu-content > ul > li > a::before {
  background: #ffffff;
  opacity: 0;
  transform: scale(0.96);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

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

.it-header-menu .it-menu-content > ul > li.active > a,
.it-header-menu .it-menu-content > ul > li > a.active,
.it-header-menu .it-menu-content > ul > li.has-dropdown.active > a {
  color: #07111f !important;
  font-weight: 650;
}

.it-header-menu .it-menu-content > ul > li.active > a::before,
.it-header-menu .it-menu-content > ul > li > a.active::before,
.it-header-menu .it-menu-content > ul > li.has-dropdown.active > a::before {
  opacity: 1 !important;
  transform: scale(1) !important;
  background: linear-gradient(135deg, #ffcf35 0%, #ffb41f 100%) !important;
  box-shadow: 0 10px 22px rgba(255, 180, 31, 0.24);
}

.it-header-menu nav ul li .submenu {
  padding: 10px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14) !important;
}

.it-header-menu nav ul li .submenu li a {
  position: relative;
  display: flex !important;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px 10px 36px !important;
  border-radius: 12px;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #243044 !important;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.it-header-menu nav ul li .submenu li a::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  opacity: 1 !important;
  transform: translateY(-50%) scale(1) !important;
}

.it-header-menu nav ul li .submenu li.active > a {
  color: #07111f !important;
  background:
    linear-gradient(135deg, rgba(255, 207, 53, 0.24) 0%, rgba(255, 180, 31, 0.16) 100%),
    #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(255, 180, 31, 0.24);
  font-weight: 650 !important;
}

.it-header-menu nav ul li .submenu li:hover > a {
  padding: 10px 14px 10px 36px !important;
  color: #075f54 !important;
  background: rgba(0, 117, 102, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 117, 102, 0.12);
}

.it-header-menu nav ul li .submenu li:hover > a::before {
  width: 8px !important;
  background: #007566 !important;
  box-shadow: 0 0 0 4px rgba(0, 117, 102, 0.12);
}

.it-header-menu nav ul li .submenu li.active:hover > a {
  color: #07111f !important;
  background:
    linear-gradient(135deg, rgba(255, 207, 53, 0.24) 0%, rgba(255, 180, 31, 0.16) 100%),
    #fffaf0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 180, 31, 0.24);
}

.it-header-menu nav ul li .submenu li.active:hover > a::before {
  background: #ffb41f !important;
  box-shadow: 0 0 0 4px rgba(255, 180, 31, 0.18);
}

.it-header-menu nav ul li .submenu li.active > a::before {
  background: #ffb41f !important;
  box-shadow: 0 0 0 4px rgba(255, 180, 31, 0.18);
}

@media (min-width: 1200px) {
  .it-header-menu .it-menu-content > ul {
    height: auto !important;
    min-height: 52px !important;
  }
}
