/*
 * Desktop header layout:
 * logo on the left, navigation in the center, partner logos on the right.
 */
@media (min-width: 1200px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .main-header,
  .main-header.header-style-2 {
    width: 100% !important;
    height: 78px !important;
    margin-bottom: 0 !important;
    padding: 0 24px !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
  }

  /* Home page: place the header over the hero section. */
  .main-header.header-style-2:not(.is-fixed) {
    margin-bottom: -80px !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .main-header .header-lower,
  .main-header .header-lower .row,
  .main-header .header-lower .col-lg-12,
  .main-header .inner-header {
    width: 100% !important;
    height: 78px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-header .inner-header {
    display: flex !important;
    align-items: center !important;
  }

  /*
   * The actual markup places all three regions inside inner-header-left.
   * Use grid instead of absolute positioning so the regions cannot overlap
   * or create horizontal overflow.
   */
  .main-header .inner-header-left {
    display: grid !important;
    grid-template-columns: 180px minmax(0, 1fr) 210px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 0 !important;
  }

  .main-header .logo-box {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 180px !important;
    margin: 0 !important;
  }

  .main-header .logo-box .logo img {
    display: block !important;
    width: auto !important;
    max-width: 166px !important;
    height: auto !important;
    max-height: 48px !important;
  }

  .main-header .nav-outer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 78px !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
  }

  .main-header .main-menu,
  .main-header .main-menu .navbar-collapse {
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .main-header .main-menu .navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  .main-header .main-menu .navigation > li {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    position: relative !important;
  }

  .main-header .main-menu .navigation > li.dropdown2 > ul {
    z-index: 1000 !important;
  }

  .main-header .main-menu .navigation > li > a {
    display: block !important;
    height: 78px !important;
    padding: 0 10px !important;
    line-height: 78px !important;
    font-size: 13px !important;
    color: #161e2d !important;
    white-space: nowrap !important;
  }

  .main-header .main-menu .navigation > li:hover > a,
  .main-header .main-menu .navigation > li.current > a {
    color: #1563df !important;
  }

  .main-header.header-style-2:not(.is-fixed) .main-menu .navigation > li > a,
  .main-header.header-style-2:not(.is-fixed) .main-menu .navigation > li:hover > a,
  .main-header.header-style-2:not(.is-fixed) .main-menu .navigation > li.current > a {
    color: #ffffff !important;
  }

  .main-header .inner-header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: 210px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-header .inner-header-right .flat-bt-top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .main-header .inner-header-right img {
    display: block !important;
    width: auto !important;
    max-width: 64px !important;
    height: 30px !important;
    object-fit: contain !important;
  }

  .main-header .header-account {
    position: static !important;
    transform: none !important;
  }
}

@media (min-width: 1200px) and (max-width: 1400px) {
  .main-header {
    padding: 0 16px !important;
  }

  .main-header .inner-header-left {
    grid-template-columns: 155px minmax(0, 1fr) 180px !important;
  }

  .main-header .logo-box {
    width: 155px !important;
  }

  .main-header .logo-box .logo img {
    max-width: 145px !important;
  }

  .main-header .main-menu .navigation > li > a {
    padding: 0 7px !important;
    font-size: 12px !important;
  }

  .main-header .inner-header-right {
    width: 180px !important;
    gap: 6px !important;
  }

  .main-header .inner-header-right img {
    max-width: 56px !important;
    height: 27px !important;
  }
}
