
/* Safe premium menu v3 - scoped to existing header structure */
@media (min-width: 992px) {
  .fix-hd-main {
    height: 121px;
  }

  .fix-header {
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.10);
    background: #ffffff;
  }

  .zr-top-header {
    height: 34px !important;
    min-height: 34px;
    border-bottom: 0 !important;
    background: linear-gradient(90deg, #173b8f 0%, #204fb6 100%) !important;
    background-image: none !important;
  }

  .zr-top-header .container.mobile-padding-0 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
  }

  .zr-top-header .header-contact,
  .zr-top-header .header-top-right,
  .zr-top-header .header_mail,
  .zr-top-header .header_phone {
    float: none !important;
  }

  .zr-top-header .header-contact,
  .zr-top-header .header-top-right {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .zr-top-header .header-contact {
    color: rgba(255,255,255,.98);
    font-size: 13px;
    font-weight: 600;
  }

  .zr-top-header .header-contact .header_mail,
  .zr-top-header .header-contact .header_phone {
    display: inline-flex;
    align-items: center;
    padding-left: 0 !important;
    margin: 0 !important;
  }

  .zr-top-header .header-contact .header_mail i,
  .zr-top-header .header-contact .header_phone i,
  .zr-top-header .header-contact .header_mail span,
  .zr-top-header .header-contact .header_phone span {
    float: none !important;
    margin: 0 !important;
    color: #fff !important;
  }

  .zr-top-header .header-contact .header_mail i { font-size: 14px; margin-right: 8px !important; }
  .zr-top-header .header-contact .header_phone i { font-size: 16px; margin-right: 8px !important; }

  .zr-top-header .header-top-right {
    min-width: 300px;
    justify-content: flex-end;
  }

  .zr-top-header .zr_search {
    float: none !important;
    margin: 0 !important;
  }

  .zr-top-header .zr-ara {
    height: 34px;
  }

  .zr-top-header .zr-ara.arama_after_edit {
    display: flex;
    align-items: center;
    height: 34px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    overflow: hidden;
    padding-left: 12px;
    transition: background .2s ease, border-color .2s ease;
  }

  .zr-top-header .zr-ara.arama_after_edit:hover,
  .zr-top-header .zr-ara.arama_after_edit:focus-within {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.28);
  }

  .zr-top-header input.s_input {
    background: transparent !important;
    color: #fff !important;
    width: 190px;
    height: 30px;
    margin-top: 0 !important;
    padding: 6px 8px 6px 0 !important;
  }

  .zr-top-header input.s_input::placeholder {
    color: rgba(255,255,255,.82) !important;
  }

  .zr-top-header .zr-ara span.back-first {
    width: 36px;
    height: 34px;
    line-height: 34px;
    float: none !important;
    background: rgba(255,255,255,.12);
    color: #fff;
    border-left: 1px solid rgba(255,255,255,.12);
  }

  .zr-top-header .zr-ara span.back-first i { margin-top: 9px !important; color: #fff; }

  .zr_header {
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08) !important;
  }

  .zr_header .zr_header_x {
    height: 86px !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 300px !important;
    position: relative;
  }

  .zr_header .zr_header_x > .z-logo {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    position: absolute !important;
  }

  .zr_header .z-logo .logo_img {
    width: 240px;
  }

  .zr_main_nav,
  .zr_menu {
    float: none !important;
  }

  .zr_menu ul#copy {
    float: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .zr_menu > ul > li {
    position: relative;
  }

  .zr_menu > ul > li > a {
    background: transparent !important;
    border: none !important;
    color: #18233f !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
    padding: 30px 16px 29px !important;
    border-radius: 16px 16px 0 0;
    text-transform: uppercase;
    line-height: 1;
    transition: color .2s ease, background-color .2s ease;
  }

  .zr_menu > ul > li > a i {
    margin-left: 8px;
    color: #64748b;
    transition: transform .2s ease, color .2s ease;
  }

  .zr_menu > ul > li:hover > a,
  .zr_menu > ul > li.is-active > a,
  .zr_menu > ul > li.current-menu-item > a {
    background: #f4f7ff !important;
    color: #1d4ed8 !important;
  }

  .zr_menu > ul > li:hover > a i,
  .zr_menu > ul > li.is-active > a i,
  .zr_menu > ul > li.current-menu-item > a i {
    color: #1d4ed8;
  }

  .zr_menu > ul > li:hover > a::after,
  .zr_menu > ul > li.is-active > a::after,
  .zr_menu > ul > li.current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  }

  .zr_menu ul li:hover a {
    background: transparent !important;
  }

  .zr_menu > ul > li > .dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 250px;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(37, 99, 235, .08) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 18px 44px rgba(15,23,42,.14);
  }

  .zr_menu > ul > li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .zr_menu .dropdown-menu > li {
    float: none !important;
    display: block;
  }

  .zr_menu .dropdown-menu > li > a {
    display: block;
    padding: 14px 16px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    color: #22314d !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    text-transform: none;
  }

  .zr_menu .dropdown-menu > li > a:hover {
    background: #eef4ff !important;
    color: #1d4ed8 !important;
  }

  .zr_menu .dropdown-menu > li + li > a {
    border-top: 1px solid rgba(148,163,184,.18) !important;
  }

  .zr_menu .dropdown-submenu > .dropdown-menu {
    left: calc(100% + 8px) !important;
    top: 0 !important;
  }

  .zr_menu .dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .zr_header .zr_header_x {
    padding-left: 240px !important;
  }

  .zr_header .z-logo .logo_img {
    width: 205px;
  }

  .zr_menu > ul > li > a {
    font-size: 14px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .zr-top-header input.s_input {
    width: 140px;
  }
}

@media (max-width: 991px) {
  .fix-hd-main {
    height: 107px;
  }

  .zr-top-header {
    background: linear-gradient(90deg, #173b8f 0%, #204fb6 100%) !important;
    background-image: none !important;
  }

  .zr-top-header .header-contact .header_mail span,
  .zr-top-header .header-contact .header_phone span,
  .zr-top-header .header-contact .header_mail i,
  .zr-top-header .header-contact .header_phone i {
    color: #fff !important;
  }
}

/* v4: dropdown corner artifact fix */
@media (min-width: 992px) {
  .zr_menu > ul > li > a,
  .zr_menu > ul > li > a:hover,
  .zr_menu > ul > li > a:focus,
  .zr_menu .dropdown-menu,
  .zr_menu .dropdown-menu > li,
  .zr_menu .dropdown-menu > li > a,
  .zr_menu .dropdown-menu > li > a:hover,
  .zr_menu .dropdown-menu > li > a:focus {
    background-image: none !important;
    box-shadow: none !important;
  }

  .zr_menu > ul > li > a::before,
  .zr_menu > ul > li > a::after,
  .zr_menu .dropdown-menu::before,
  .zr_menu .dropdown-menu::after,
  .zr_menu .dropdown-menu > li::before,
  .zr_menu .dropdown-menu > li::after,
  .zr_menu .dropdown-menu > li > a::before,
  .zr_menu .dropdown-menu > li > a::after,
  .zr_menu .dropdown-menu > li:hover > a::before,
  .zr_menu .dropdown-menu > li:hover > a::after,
  .zr_menu .dropdown-submenu > a::before,
  .zr_menu .dropdown-submenu > a::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    border: 0 !important;
  }

  .zr_menu .dropdown-menu {
    overflow: hidden !important;
    isolation: isolate;
  }

  .zr_menu .dropdown-menu > li {
    overflow: hidden !important;
    border-radius: 14px !important;
  }

  .zr_menu .dropdown-menu > li > a {
    position: relative;
    overflow: hidden !important;
    border-radius: 14px !important;
    background-clip: padding-box !important;
  }

  .zr_menu .dropdown-menu > li:hover > a,
  .zr_menu .dropdown-menu > li > a:hover,
  .zr_menu .dropdown-menu > li > a:focus {
    background: #eef4ff !important;
    color: #1d4ed8 !important;
  }
}

/* v5: remove remaining red edges and make hover cleaner */
@media (min-width: 992px) {
  .zr_header,
  .zr_header .zr_header_x,
  .zr_menu,
  .zr_menu > ul,
  .zr_menu > ul > li,
  .zr_menu > ul > li > a,
  .zr_menu > ul > li:hover > a,
  .zr_menu > ul > li.current-menu-item > a,
  .zr_menu > ul > li.is-active > a,
  .zr_menu .dropdown-menu,
  .zr_menu .dropdown-menu > li,
  .zr_menu .dropdown-menu > li > a,
  .zr_menu .dropdown-menu > li > a:hover,
  .zr_menu .dropdown-menu > li > a:focus {
    border-color: transparent !important;
    outline: 0 !important;
  }

  .zr_menu > ul > li > a,
  .zr_menu > ul > li:hover > a,
  .zr_menu > ul > li.current-menu-item > a,
  .zr_menu > ul > li.is-active > a {
    box-shadow: none !important;
  }

  .zr_menu > ul > li:hover > a,
  .zr_menu > ul > li.current-menu-item > a,
  .zr_menu > ul > li.is-active > a {
    background: #f5f8ff !important;
    color: #1d4ed8 !important;
  }

  .zr_menu > ul > li:hover > a::after,
  .zr_menu > ul > li.current-menu-item > a::after,
  .zr_menu > ul > li.is-active > a::after {
    background: #3b82f6 !important;
    height: 2px !important;
    bottom: 10px !important;
  }

  .zr_menu .dropdown-menu {
    border: 1px solid rgba(37, 99, 235, .10) !important;
    box-shadow: 0 20px 48px rgba(15,23,42,.12) !important;
  }

  .zr_menu .dropdown-menu > li {
    border-radius: 16px !important;
  }

  .zr_menu .dropdown-menu > li + li > a {
    border-top: 1px solid rgba(148,163,184,.14) !important;
  }

  .zr_menu .dropdown-menu > li > a,
  .zr_menu .dropdown-menu > li > a:hover,
  .zr_menu .dropdown-menu > li > a:focus,
  .zr_menu .dropdown-menu > li.active > a,
  .zr_menu .dropdown-menu > li.current-menu-item > a {
    border: 0 !important;
    text-decoration: none !important;
  }

  .zr_menu .dropdown-menu > li > a:hover,
  .zr_menu .dropdown-menu > li > a:focus,
  .zr_menu .dropdown-menu > li.active > a,
  .zr_menu .dropdown-menu > li.current-menu-item > a {
    background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%) !important;
    color: #1d4ed8 !important;
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.08) !important;
  }

  .zr_menu .dropdown-menu > li:hover > a::after,
  .zr_menu .dropdown-menu > li.active > a::after,
  .zr_menu .dropdown-menu > li.current-menu-item > a::after {
    content: none !important;
  }
}

/* mobile menu color override based on current live files */
@media (max-width: 991px) {
  .zr-mb-top > .inner-wrap a,
  .zr-mb-top > .inner-wrap a:link,
  .zr-mb-top > .inner-wrap a:visited {
    color:#234fb8 !important;
    border:1px solid rgba(35,79,184,.24) !important;
    background:#ffffff !important;
    box-shadow:0 8px 20px rgba(16,41,96,.08) !important;
  }

  a.nv-menu,
  a.nv-menu:link,
  a.nv-menu:visited,
  .mb-background,
  .sb-icon-search,
  .sb-icon-search-border {
    background:linear-gradient(135deg,#2855cc 0%,#173a8f 100%) !important;
    background-color:#234fb8 !important;
    border-color:rgba(18,43,105,.14) !important;
    color:#ffffff !important;
    box-shadow:0 10px 22px rgba(17,40,93,.18) !important;
  }

  a.nv-menu i,
  a.nv-menu span,
  a.nv-menu p,
  .sb-icon-search i,
  .sb-icon-search:before,
  .sb-icon-search:after {
    color:#ffffff !important;
  }

  .sb-search,
  .mb-search-full input {
    border:1px solid rgba(35,79,184,.22) !important;
    box-shadow:0 10px 22px rgba(17,40,93,.10) !important;
    background:#ffffff !important;
  }

  .mb-search:hover,
  .mb-search:focus,
  .mb-search-full input:focus,
  .sb-search.sb-search-open,
  .sb-search.sb-search-open .sb-icon-search {
    background:linear-gradient(135deg,#2855cc 0%,#173a8f 100%) !important;
    background-color:#234fb8 !important;
    border-color:rgba(18,43,105,.22) !important;
  }

  .sb-search.sb-search-open {
    background:#ffffff !important;
  }

  .sb-search.sb-search-open .sb-icon-search {
    color:#ffffff !important;
  }

  .sb-search-input {
    color:#17357d !important;
  }

  .zr-main-menu ul li a,
  .zr-main-menu ul li a:link,
  .zr-main-menu ul li a:visited {
    color:#17357d !important;
  }

  .zr-main-menu ul li:hover > a,
  .zr-main-menu ul li.active > a,
  .zr-main-menu ul li.current-menu-item > a,
  .zr-main-menu ul li a:focus {
    background:#f4f7ff !important;
    color:#17357d !important;
  }

  .zr-main-menu ul li a.zr-subopen:after,
  .zr-main-menu ul li a.zr-subopen,
  .zr-main-menu ul li a.zr-subopen:link,
  .zr-main-menu ul li a.zr-subopen:visited {
    color:#234fb8 !important;
  }

  .zr-main-menu ul li ul li > a {
    color:#17357d !important;
    background:#f8fbff !important;
  }
}
