/* Halk Women Header – Elementor widget */

/*
 * The homepage section still has margin-top:-6% from the old transparent
 * theme header. That negative pull hides this widget when it is the first
 * element (the Spacer was only compensating). Reset it whenever our widget
 * is present so no Spacer is required in editor or frontend.
 */
.elementor-section:has(.elementor-widget-halk-women-header),
.e-con:has(.elementor-widget-halk-women-header) {
  margin-top: 0 !important;
}

.elementor-widget-halk-women-header {
  position: relative;
  z-index: 10050;
  width: 100%;
}

.elementor-widget-halk-women-header > .elementor-widget-container {
  width: 100%;
}

/* Elementor editor: never take the bar out of document flow */
.elementor-editor-active .hwh-bar.is-sticky,
.elementor-editor-preview .hwh-bar.is-sticky {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  animation: none !important;
}

.hwh {
  --hwh-accent: #0018a8;
  --hwh-ink: #0e1133;
  --hwh-muted: #6d6e75;
  --hwh-search-sticky-bg: #edeef3;
  --hwh-border: #d8dce5;
  --hwh-pill: #f0f2f5;
  --hwh-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --hwh-sticky-shadow: 0 10px 20px rgba(8, 0, 42, 0.08);
  display: block;
  position: relative;
  z-index: 999;
  width: 100%;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--hwh-ink);
}

.hwh *,
.hwh *::before,
.hwh *::after {
  box-sizing: border-box;
}

.hwh a {
  text-decoration: none;
  color: inherit;
}

.hwh-bar {
  position: relative;
  z-index: 100;
  background: #fff;
  box-shadow: var(--hwh-shadow);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.hwh-bar.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: var(--hwh-sticky-shadow);
  animation: hwhFadeInDown 0.3s ease-in-out;
}

.hwh-bar.is-sticky .hwh-search input {
  background: var(--hwh-search-sticky-bg);
  border-color: var(--hwh-search-sticky-bg);
}

.hwh-spacer {
  display: none;
}

.hwh-bar.is-sticky + .hwh-spacer,
.hwh.has-sticky-spacer .hwh-spacer {
  display: block;
}

@keyframes hwhFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hwh-inner {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hwh-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.hwh-center {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.hwh-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: 0;
}

.hwh-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* Language dropdown (WPML) – sits after buttons, before logo separator */
.hwh-lang--drop {
  position: relative;
  flex: 0 0 auto;
  z-index: 140;
}

.hwh-lang-toggle {
  appearance: none;
  border: 0;
  background: var(--hwh-pill);
  border-radius: 999px;
  height: 42px;
  padding: 0 12px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hwh-ink);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.hwh-lang-toggle:hover,
.hwh-lang--drop.is-open .hwh-lang-toggle {
  color: var(--hwh-accent);
  background: #e8eefc;
}

.hwh-lang-chevron {
  font-size: 11px;
  opacity: 0.7;
  line-height: 1;
  transition: transform 0.2s ease;
}

.hwh-lang--drop.is-open .hwh-lang-chevron {
  transform: rotate(180deg);
}

.hwh-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(14, 17, 51, 0.14);
  padding: 6px;
  z-index: 150;
}

.hwh-lang-menu[hidden] {
  display: none !important;
}

.hwh-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--hwh-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hwh-lang-item:hover,
.hwh-lang-item.is-active {
  background: var(--hwh-pill);
  color: var(--hwh-accent);
}

.hwh-lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4e7ef;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hwh-lang-item.is-active .hwh-lang-code {
  background: var(--hwh-accent);
  color: #fff;
  box-shadow: none;
}

.hwh-lang-name {
  flex: 1 1 auto;
  min-width: 0;
}

.hwh-lang-check {
  font-size: 12px;
  opacity: 0.8;
}

.hwh-drawer-lang {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eceef4;
}

.hwh-drawer-lang-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hwh-muted);
}

.hwh-lang-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hwh-lang-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--hwh-ink);
  font-weight: 600;
  text-decoration: none;
}

.hwh-lang-list a:hover,
.hwh-lang-list a.is-active {
  background: var(--hwh-pill);
  color: var(--hwh-accent);
}

/* Courses */
.hwh-courses {
  position: relative;
}

.hwh-courses-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--hwh-ink);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.hwh-courses-trigger:hover,
.hwh-courses.is-open .hwh-courses-trigger {
  color: var(--hwh-accent);
  background: var(--hwh-pill);
}

.hwh-courses-trigger:hover .hwh-dot,
.hwh-courses.is-open .hwh-dot {
  fill: var(--hwh-accent);
}

.hwh-dots svg {
  display: block;
}

.hwh-dot {
  fill: var(--hwh-ink);
  transition: fill 0.2s ease;
}

.hwh-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 270px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(8, 0, 42, 0.08);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 120;
}

.hwh-courses:hover .hwh-dropdown,
.hwh-courses.is-open .hwh-dropdown,
.hwh-menu-item:hover > .hwh-submenu,
.hwh-menu-item:focus-within > .hwh-submenu,
.hwh-submenu li:hover > .hwh-submenu,
.hwh-submenu li:focus-within > .hwh-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hwh-courses-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hwh-courses-dropdown a {
  display: block;
  padding: 8px 28px;
  color: var(--hwh-muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.hwh-courses-dropdown a:hover {
  color: var(--hwh-accent);
}

/* Main menu */
.hwh-main-nav {
  display: block;
}

.hwh-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.hwh-menu-item {
  position: relative;
}

.hwh-nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--hwh-ink);
  transition: color 0.2s ease;
}

.hwh-nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 38px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 20px;
  background: transparent;
  z-index: -1;
  transition: background-color 0.2s ease;
}

.hwh-menu-item:hover > .hwh-nav-link,
.hwh-menu-item:focus-within > .hwh-nav-link {
  color: var(--hwh-accent);
}

.hwh-menu-item:hover > .hwh-nav-link::before,
.hwh-menu-item:focus-within > .hwh-nav-link::before {
  background: var(--hwh-pill);
}

/* Submenu with blue fill animation */
.hwh-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(11, 6, 70, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 130;
}

.hwh-submenu .hwh-submenu {
  top: 0;
  left: calc(100% + 2px);
  transform: translateX(8px);
}

.hwh-submenu li:hover > .hwh-submenu,
.hwh-submenu li:focus-within > .hwh-submenu {
  transform: translateX(0);
}

.hwh-submenu li {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hwh-submenu li:last-child {
  border-bottom: 0;
}

.hwh-submenu a {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 12px 25px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hwh-ink);
  transition: color 0.25s ease;
}

.hwh-submenu a::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 0;
  height: 100%;
  background: var(--hwh-accent);
  z-index: -1;
  transition: width 0.28s ease;
}

.hwh-submenu li:hover > a,
.hwh-submenu li:focus-within > a {
  color: #fff;
}

.hwh-submenu li:hover > a::before,
.hwh-submenu li:focus-within > a::before {
  left: 0;
  right: auto;
  width: 100%;
}

.hwh-submenu li.has-children > a::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

/* Search – grows to fill all space until the buttons */
.hwh-search {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-width: 160px;
  margin: 0;
}

.hwh-search input {
  width: 100%;
  height: 50px;
  border: 1px solid #fff;
  border-radius: 25px;
  background: #fff;
  outline: none;
  font: inherit;
  font-size: 16px;
  color: var(--hwh-ink);
  padding: 0 22px 0 52px;
  box-shadow: inset 0 0 0 1px #eef0f5;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hwh-search input::placeholder {
  color: #8c8faa;
}

.hwh-search input:focus {
  border-color: var(--hwh-accent);
  box-shadow: 0 0 0 1px var(--hwh-accent);
}

.hwh-search-btn {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--hwh-ink);
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* Action buttons + separator + logo */
.hwh-btn,
.hwh-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--hwh-accent);
  color: #fff !important;
  font-weight: 500;
  text-transform: lowercase;
  white-space: nowrap;
  transition: box-shadow 0.25s ease, filter 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hwh-btn::first-letter,
.hwh-login::first-letter {
  text-transform: uppercase;
}

.hwh-btn:hover,
.hwh-login:hover {
  box-shadow: 0 10px 24px rgba(4, 23, 118, 0.3);
  filter: brightness(1.05);
}

.hwh-btn--outline {
  background: #fff;
  color: var(--hwh-accent) !important;
  border-color: var(--hwh-accent);
}

.hwh-btn--outline:hover {
  background: var(--hwh-accent);
  color: #fff !important;
  filter: none;
}

.hwh-separator {
  width: 1px;
  height: 58px;
  background: var(--hwh-border);
  flex: 0 0 auto;
}

.hwh-logo img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 74px;
  object-fit: contain;
}

.hwh-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.hwh-burger span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 5px 0;
  background: var(--hwh-accent);
  border-radius: 2px;
  transition: transform 0.25s ease, width 0.25s ease;
}

.hwh-burger:hover span:nth-child(1) {
  width: 55%;
}
.hwh-burger:hover span:nth-child(2) {
  width: 75%;
}

/* Mobile drawer */
.hwh-drawer[hidden] {
  display: none !important;
}

.hwh-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 17, 51, 0.45);
}

.hwh-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: #fff;
  padding: 22px;
  overflow: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  animation: hwhSlideIn 0.25s ease;
}

@keyframes hwhSlideIn {
  from {
    transform: translateX(24px);
    opacity: 0.6;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hwh-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.hwh-drawer-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.hwh-drawer-close {
  border: 0;
  background: var(--hwh-pill);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--hwh-ink);
}

.hwh-search--mobile {
  width: 100%;
  margin-bottom: 18px;
}

.hwh-search--mobile input {
  background: #f5f6fa;
  border-color: #f5f6fa;
  box-shadow: none;
}

.hwh-mobile-group {
  border-bottom: 1px solid #eceef4;
  padding: 10px 0;
}

.hwh-mobile-group summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 6px 0;
}

.hwh-mobile-group summary::-webkit-details-marker {
  display: none;
}

.hwh-mobile-group ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 12px;
}

.hwh-mobile-group a,
.hwh-mobile-link {
  display: block;
  padding: 8px 0;
  color: var(--hwh-muted);
  font-weight: 500;
}

.hwh-mobile-group a:hover,
.hwh-mobile-link:hover {
  color: var(--hwh-accent);
}

.hwh-login--block,
.hwh-btn--block {
  width: 100%;
  margin-top: 12px;
}

.hwh-drawer-actions {
  margin-top: 22px;
}

body.hwh-drawer-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1199px) {
  .hwh-inner {
    width: min(100%, calc(100% - 28px));
    gap: 12px;
  }
}

@media (max-width: 991px) {
  .hwh-main-nav,
  .hwh-courses,
  .hwh-center,
  .hwh-separator {
    display: none;
  }

  .hwh-burger {
    display: inline-block;
  }

  .hwh-inner {
    min-height: 72px;
    justify-content: space-between;
  }

  .hwh-left {
    display: none;
  }

  .hwh-right {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  /* Mobile/tablet order: Logo → Buttons → Language → Menu */
  .hwh-logo {
    order: 1;
    margin-right: 0;
  }

  .hwh-actions {
    order: 2;
    display: flex;
    gap: 8px;
  }

  .hwh-lang--drop {
    order: 3;
  }

  .hwh-burger {
    order: 4;
    margin-left: auto;
  }

  .hwh-btn,
  .hwh-login {
    min-width: 0;
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hwh-lang-toggle {
    height: 40px;
  }
}

@media (max-width: 575px) {
  .hwh-logo img {
    height: 44px;
  }

  .hwh-btn,
  .hwh-login {
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hwh-lang-toggle {
    height: 38px;
    padding: 0 10px;
  }
}
