.container{
  width: 100%;
}
.topgear-header-banner, .topgear-header-nav, .header-main-ad-row, .container-header-outer {
    width: 100%;
    max-width: 1330px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 36px;
    padding-right: 36px;
    box-sizing: border-box;
  }
  @media (max-width: 1200px) {
    .topgear-header-banner, .topgear-header-nav, .header-main-ad-row, .container-header-outer {
      max-width: 100%;
      padding-left: 16px;
      padding-right: 16px;
    }
  }
  img.header-banner-image {
    width: 80%;
    right: 0 !important;
    position:absolute;
    top:0;
    width:100%;
    height:128px;
    object-fit:cover;
    z-index:1;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
  }
  
  .topgear-header-banner {
    position: relative;
    width: 100%;
    height: 127px;
    overflow: hidden;
  }
  .topgear-header-banner img {
    width: 100%;
    height: 127px;
    object-fit: contain;
    display: block;
    margin: 0;
  }
  .logo-nav-row {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 127px;
    display: flex;
    align-items: center;
    z-index: 11;
  }
  .logo-nav-row .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }
  .logo-nav-row .logo img {
    height: 59px;
    max-width: 100px;
    object-fit: contain;
  }
  .topgear-header-nav {
    background: var(--tg-bg);
    border-bottom: 1.2px solid #223649;
  }
  .header-main-ad-row {
    background: #173b4d;
    border-bottom: 1.2px solid #223548;
    padding-bottom: 12px;
  }
  .site-banner-container {
    position: relative;
    background: var(--tg-bg);
    width: 100%;
    overflow: hidden;
    height: 118px;
    min-height: 105px;
    z-index: 2;
  }
  .site-header .custom-logo-link img,
  .site-header .custom-logo,
  .logo img {
    height: 59px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 0;
  }
  .logo-nav-row {
    position: absolute;
    top: 23px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    z-index: 11;
  }
  /* TOP BANNER AD SECTION */
.top-banner-ads {
    background: #173b4d;
    width: 100%;
    border-bottom: 1.2px solid #223548;
  }
  .top-banner-container {
    max-width: 1238px;
    margin: 0 auto;
    padding-bottom: 24px;
  }
  .top-ad-wrapper {
    text-align: center;
  }
  .top-ad-label {
    text-align: center;
    color: var(--tg-muted);
    font-size: 0.94em;
    letter-spacing: 0.08em;
    padding: 10px;
  }
  .top-banner-image {
    width: 100%;
    max-width: 970px;
    height: 181px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 24px #0e182744;
    margin: 10px auto 0;
    display: block;
  }
  picture.top-ad-image img {
    height: 100px;
    width: auto;
  }
  
/* Search form in header */
.search-form {
    margin-left: 30px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .search-icon-btn {
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
  }
/* Nav container flex for centering */
.topgear-header-nav nav > div {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .topgear-header-nav .nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 0;
    margin-left: auto;
  }
/* Nav menu inner list styling (center, bold, highlight Subscribe) */
.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .menu .menu-item {
    font-size: 0.98em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
    display: flex;
    position: relative;
    align-items: center;
  }
  .menu .menu-item a {
    color: #fff;
    padding: 6px 9px;
    transition: color .14s, background .16s;
    background: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    display: block;
  }
  .menu .menu-item a:hover,
  .menu .menu-item.current-menu-item > a {
    color: var(--tg-main-accent);
  }
  .menu .menu-item:last-child a,
  .menu .menu-item .cta,
  .menu .menu-item-cta a {
    background: #78c7d4;
    color: #0e212e;
    border-radius: 5px;
    margin-left: 3px;
    font-weight: bold;
    text-transform: uppercase;
  }
  .menu .menu-item:last-child a:hover,
  .menu .menu-item .cta:hover,
  .menu .menu-item-cta a:hover {
    background: #b1f5f1;
    color: #1e263c;
  }
  
  /* Dropdown navigation menu */
  .menu .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 170px;
    background: #16374a;
    box-shadow: 0 10px 18px #0015;
    border-radius: 0 0 9px 9px;
    z-index: 50;
  }
  ul .sub-menu {
    padding: 0;
  }
  .menu > li:hover > .sub-menu,
  .menu > li:focus-within > .sub-menu {
    display: block;
  }
  .menu .sub-menu li {
    display: block;
    padding: 10px;
  }
  .menu .sub-menu a {
    font-size: 0.8em;
    border-radius: 0 !important;
    color: #cbe8ff !important;
    background: none !important;
  }
  .menu .sub-menu a:hover {
    background: var(--tg-main-accent) !important;
    color: #11202b !important;
    border-radius: 0 0 9px 9px !important;
  }

/* media css responsiveness */
@media (max-width: 992px) {
  .logo-nav-row .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .search-form {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .search-form input[type="search"] {
    width: 100%;
    max-width: 100%;
  }

  .menu .menu-item a {
    padding: 6px 8px;
    font-size: 0.85em;
  }

  .top-ad-wrapper,
  .top-banner-image,
  .top-banner-container {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .top-banner-image {
    height: auto;
  }

  .header-main-ad-row {
    padding-bottom: 6px;
  }

  .topgear-header-banner img {
    width: 50%!important;
    height: auto;
  }

  .logo-nav-row {
    top: 10px;
    position: relative;
  }
}

@media (max-width: 576px) {
  .logo-nav-row .logo img {
    height: 42px;
    max-width: 140px;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu .menu-item {
    width: 100%;
  }

  .menu .menu-item a {
    width: 100%;
    padding: 10px;
  }

  .search-form {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .search-form input[type="search"] {
    width: 100%;
  }

  .top-ad-label {
    font-size: 0.8em;
  }

  .top-banner-image {
    border-radius: 4px;
    box-shadow: none;
  }
}
/* hambuger menu toggle */
/* 🔘 Hamburger toggle hidden by default */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  color: #fff;
  padding: 6px 12px;
  cursor: pointer;
}

/* ✅ Responsive Hamburger and Menu */
/* Hide hamburger on desktop */
.mobile-menu-toggle {
  display: none;
}

/* Keep desktop styles as-is */
/* No override for .main-navigation, .container, .search-form, etc. */

/* Mobile-only layout (≤ 768px) */
@media (max-width: 768px) {
  .header-bar-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto;
  }
  a.custom-logo-link {
    width: 80%;
    margin: auto;
    padding-top: 40px;
  }
  .mobile-menu-toggle {
    display: block;
    font-size: 1.8em;
    background: none;
    border: none;
    color: #fff;
    padding: 6px 12px;
    cursor: pointer;
    align-self: flex-start;
  }

  .main-navigation {
    display: none !important;
    flex-direction: column;
    width: 100%;
    background: var(--tg-bg);
    padding: 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 56px;
    left: 0;
    z-index: 999;
  }

  .main-navigation.menu-open {
    display: flex !important;
  }

  .mainnav-topgear.menu {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 0;
    margin: 0;
  }

  .mainnav-topgear.menu li {
    width: 100%;
  }

  .mainnav-topgear.menu li a {
    display: block;
    padding: 12px 14px;
    width: 100%;
    color: #fff;
    background: transparent;
  }

  .header-actions {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }

  .search-form {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
  }

  .search-form input {
    width: 100%;
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    font-size: 0.95em;
  }
  button.search-submit {
    display: none!important;
  }
  .search-submit {
    background: none;
    border: none;
    color: #ededed;
    font-size: 1.13em;
    opacity: 0.86;
    cursor: pointer;
  }

  .account-icon {
    display: inline-flex;
    color: #ededed;
    font-size: 1.13em;
    opacity: 0.86;
  }
}
/* ✅ Default (desktop) — show the banner */
@media (max-width: 768px) {
  .topgear-header-banner img {
      width: 100% !important;
      height: auto;
  }
}
