/* =========================================================
   Header bar: logo | search | theme + login  (aligned row)
   ========================================================= */

.wrapper {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}
.wrapper-container.wrapper-main {
  overflow: visible !important;
}

/* ---- Header row ---- */
header.header,
header.header.header--bar,
.header.header--bar {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  z-index: 300 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 0 16px 0 20px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, rgba(8,12,18,.94) 0%, rgba(8,12,18,.55) 70%, transparent 100%) !important;
}

/* kill theme utility classes that break layout */
header.header.d-flex,
header.header.jc-space-between,
header.header.ai-center {
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

/* Logo */
header.header .header__logo,
header.header .logo {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 180px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
}
header.header .logo__title {
  font-size: 18px !important;
  letter-spacing: 3px !important;
  line-height: 1 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
header.header .logo__caption {
  display: none !important;
}

/* Search */
header.header .header__search {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: 480px !important;
  min-width: 160px !important;
  margin: 0 !important;
  padding: 0 !important;
  order: 0 !important;
  position: relative !important;
  overflow: visible !important;
}
header.header .header__search form {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
header.header .header__search-box {
  position: relative !important;
  display: block !important;
  height: 44px !important;
  margin: 0 !important;
  width: 100% !important;
}
header.header .header__search input,
header.header .header__search input#ajax_search,
header.header .header__search input:focus {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  line-height: 44px !important;
  margin: 0 !important;
  padding: 0 46px 0 16px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.12) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 14px !important;
  outline: none !important;
}
header.header .header__search input::placeholder {
  color: rgba(255,255,255,.65) !important;
  opacity: 1 !important;
}
header.header .header__search button,
header.header .header__search .search-btn {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  transform: none !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 0 22px 22px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 15px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Right actions cluster: theme + login + menu */
header.header .header__actions {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin: 0 0 0 auto !important; /* push to right */
  padding: 0 !important;
  height: 44px !important;
}

/* Theme toggle — same height as search/login */
header.header .theme-toggle {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 4px !important;
  list-style: none !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.12) !important;
  box-shadow: none !important;
  order: 0 !important;
  box-sizing: border-box !important;
}
header.header .theme-toggle li {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  color: rgba(255,255,255,.85) !important;
  font-size: 14px !important;
  list-style: none !important;
  box-sizing: border-box !important;
}
header.header .theme-toggle li .fal {
  line-height: 1 !important;
}
body:not(.dt-is-active) header.header .theme-toggle li:last-child,
body.dt-is-active header.header .theme-toggle li:first-child {
  background: var(--accent, #5eb1ff) !important;
  color: #0a0c12 !important;
}

/* Login button — same height, text visible on desktop */
header.header .header__btn,
header.header button.header__btn,
header.header .header__btn.btn,
header.header .js-show-login {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  min-width: 44px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.14) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}
header.header .header__btn .fal {
  font-size: 14px !important;
  line-height: 1 !important;
}
header.header .header__btn .header__btn-text,
header.header .header__btn span:last-child {
  display: inline !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Mobile menu burger */
header.header .header__btn-menu {
  flex: 0 0 auto !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--accent, #5eb1ff) !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
header.header .header__btn-menu.d-none {
  display: none !important;
}

/* Hide leftover social strip if present */
header.header .soc-channels {
  display: none !important;
}

/* Side column under header */
.col-side {
  z-index: 5 !important;
  padding-top: 80px !important;
}
.content.cols {
  position: relative;
  z-index: 1;
}
.col-main {
  padding-top: 0 !important;
  position: relative;
  z-index: 1;
}

/* Slider */
.slider-box,
#owl-big {
  margin-top: 0 !important;
  position: relative !important;
  z-index: 1 !important;
  min-height: 360px !important;
  background: #0c1016 !important;
  border-radius: 0 0 16px 16px !important;
  overflow: hidden !important;
}
#owl-big .bslide,
.slider-box .bslide {
  height: 400px !important;
  min-height: 360px !important;
}
#owl-big .bslide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 18% !important;
  display: block !important;
}
#owl-big .bslide__desc {
  z-index: 3 !important;
  padding-top: 80px !important;
  padding-bottom: 36px !important;
}
.slider-box:not(.owl-carousel) {
  display: block !important;
}
.slider-box:not(.owl-carousel) > .bslide {
  display: none !important;
}
.slider-box:not(.owl-carousel) > .bslide:first-child {
  display: block !important;
  width: 100% !important;
}

/* Desktop */
@media screen and (min-width: 1220px) {
  header.header,
  header.header.header--bar {
    padding-left: 28px !important;
    padding-right: 24px !important;
  }
  .col-side {
    padding-top: 88px !important;
  }
  /* force theme visible on desktop (styles-support hides it) */
  header.header .theme-toggle {
    display: inline-flex !important;
  }
}

/* Tablet */
@media screen and (max-width: 1219px) {
  header.header,
  header.header.header--bar {
    position: relative !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 0 12px !important;
    background: #0c1016 !important;
    gap: 8px !important;
  }
  .col-side {
    padding-top: 16px !important;
  }
  header.header .header__search {
    max-width: none !important;
    min-width: 120px !important;
  }
  header.header .header__btn .header__btn-text,
  header.header .header__btn span:last-child {
    display: none !important;
  }
  header.header .header__btn {
    width: 44px !important;
    padding: 0 !important;
  }
  header.header .header__btn-menu {
    display: inline-flex !important;
  }
  header.header .header__btn-menu.d-none {
    display: inline-flex !important;
  }
  #owl-big .bslide {
    height: 320px !important;
    min-height: 300px !important;
  }
  #owl-big .bslide__desc {
    padding-top: 20px !important;
  }
}

/* Phone */
@media screen and (max-width: 640px) {
  header.header .logo__title {
    font-size: 14px !important;
    letter-spacing: 1px !important;
  }
  header.header .theme-toggle {
    display: none !important; /* too tight; keep search + login + menu */
  }
  header.header .header__search {
    min-width: 0 !important;
  }
}
