header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
}

header .nav-links {
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    /* text-transform: uppercase; */
    color: #fff;
    font-family:var(--font-inter);
}

.header {
    padding: 16px 60px;
    /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(4px); */
    font-family:var(--font-inter);
}

.header-bottom-container{
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(4px);
}

.header .icon-link, .icon-link > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    /* text-transform: capitalize; */
}

.header .sign-in {
    width: 107px;
    height: 48px;
    opacity: 1;
    gap: 16px;
    border-radius: 30px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-menu svg {
    fill: var(--white);
}

.menu-bar {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
}

.icon-link {
    position: relative;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    color: white;
}

.icon-link img {
    width: 20px;
    height: 20px;
}

.masn-logo-only.icon-link img {
    width: 100px;
    height: 30px;
}

.menu-wrapper{
    display: flex;
    justify-content: space-between;
}

ul.links{
    /* margin-right: 40px; */
}
/* --------------------Custom Dropdown------------ */

.dropdown-wrapper{
    position: absolute;
    top: 20px;

    /* Center popup under link */
    left: 50%;
    transform: translateX(-50%);

    min-width: 680px;
    display: none;
    
    box-sizing: border-box;
    /* border: 2px solid red; */
    padding-top: 10px;
}

.dropdown-popup {
    position: relative;
    /* background: #051D36; */
    background: black;
    border-radius: 18px;
    padding: 32px;
    display: none;
    gap: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 50;
}

@media (min-width: 991px) {
.icon-link:hover .dropdown-popup,
.icon-link:hover .dropdown-wrapper,
.dropdown-popup:hover {
    display: flex;
}
}

.dropdown-content {
    display: flex;
    width: 100%;
    gap: 50px;
}

.menu-columns {
    display: flex;
    /* flex-direction: column; */
    gap: 20px;
    width: max-content;
}

.menu-group-title {
    font-size: 14px;
    opacity: 0.5;
    /* text-transform: uppercase; */
    margin-bottom: 8px;
    font-family: var(--font-inter);
    color: var(--white);
    font-weight: 100;
}

.menu-group a {
    color: white;
    text-decoration: none;
    margin-bottom: 6px;
    font-size: 18px;
}

.profiles {
    display: flex;
    gap: 20px;
}

.profile-card {
    width: 160px;
    height: max-content;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.profile-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.profile-name {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 12px;
    width: 100%;
    background: linear-gradient(to top, #EA6F27, transparent);
    font-size: 13px;
    font-weight: bold;
}


/* ----normal dropdown---------- */
.normal-dropdown {
    position: relative;
    display: inline-block; /* important fix */
}

.normal-dropdown-container {
    position: absolute;
    display: none;
    top: 100%; 
    left: 0;
    z-index: 9999999999;
    padding-top: 0.5rem;
}

.dropdown-menu {
    /* background: #051D36; */
     background: #000;
    padding: 12px 0;
    width: 180px;
    border-radius: 5px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    /* background: #051D36; */
     background: #000;
}

.normal-dropdown:hover .normal-dropdown-container {
    display: block;
}

.icon-link a{
    display: flex;
}

.masn-logo-only.icon-link a{
    background-image: var(--masn-plus-logo);;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100px;
    height: 30px;
    display: block;
    text-indent: -9999px;
}


.icon-link > a img{
    margin-right: 0.3rem;
}


.mobile-sidebar-logo{
    display: none;
}

@media (max-width: 1124px){
    .dropdown-wrapper {
    left: 0;
    transform: translateX(0%);
}
}


@media (max-width: 991px) {

    header{
        position: fixed;
        top: 0;
    }
    
    .header {
        padding: 16px 20px;
        position: fixed;
        top: 0px;
        left: 0px;
        right: 0px;
        background: black;
    }

    
header .sub-header{
display: none;
}

    .menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 40vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.966);
        backdrop-filter: blur(4px);
        flex-direction: column;
        justify-content: space-between;
        overflow-y: scroll;
        /* align-items: center; */
        gap: 30px;
        transition: left .3s ease;
        z-index: 200;
    }

    .menu-wrapper{
        padding-top: 3rem;
        width: 100%;
        flex-direction: column;
        justify-content: flex-start;
    }

     /* .menu >ul {
        padding: 0 20px;
        margin-top: 3rem;
    } */

    .menu-wrapper > .links > li{
        box-sizing: border-box;
        padding-left: 16px;
        padding-right: 16px;
        border-bottom: 0.5px solid #A3A3A3;
    }

    .menu.open {
        left: 0;
    }

    .menu .links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
        margin-right: 0;
    }

    .header .sign-in {
        margin: 10px;
    }

    /* hide nav top bar on mobile if you want */
   header .bg-primary {
        display: none;
    }

.dropdown-wrapper{
z-index: 1;
width: fit-content;
padding: 0;
min-width: unset;
}    
    
    .dropdown-popup {
    z-index: 1000;
    background: transparent;
}
}


@media (max-width: 991px) {

    /* ---------- TOP LEVEL (Orioles / Nationals) ---------- */

    .icon-link.menu-item-has-children {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
        /* border: 2px solid yellow; */
    }

    .icon-link.menu-item-has-children > div{
width: 100%;
    }

    /* Base styles */
.icon-link.menu-item-has-children > div:first-child {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 24px;
padding-top: 12px;
padding-bottom: 12px;
font-weight: 500;
font-size: 20px;
/* border-bottom: 1px solid #A3A3A3; */
}

.icon-link.menu-item-has-children > .dropdown-wrapper {
    display: none;
    position: relative;
    top: 0;
  }

  .icon-link.menu-item-has-children .dropdown-popup{
    display: flex;
    padding: 0;
    border-radius: 0;
    width: 100%;
  }

/* + / - toggle */
.icon-link.menu-item-has-children > div:first-child::after, .normal-dropdown.menu-item-has-children > .icon-link::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 100;
  transition: transform 0.2s ease;
}

.icon-link.menu-item-has-children > .dropdown-wrapper .menu-group-title{
position: relative;
opacity: 1;
margin-bottom: 0;
}

.icon-link.menu-item-has-children > .dropdown-wrapper .menu-group-title::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 100;
  transition: transform 0.2s ease;
}

.menu-columns{
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.profiles{
    display: none;
}

.icon-link.menu-item-has-children > .dropdown-wrapper .menu-group > li{
padding-top: 12px;
padding-bottom: 12px;
border-top: 0.5px solid #A3A3A3;
font-weight: 400;
font-size: 18px;
}

.icon-link.menu-item-has-children > .dropdown-wrapper .menu-group > li:not(.menu-group-title) {
  display: none; 
}

.menu-group a{
    margin: 0;
}

.menu-wrapper > ul > li:not(.menu-item-has-children){
padding-top: 12px;
padding-bottom: 12px;
width: 100%;
/* border-bottom: 1px solid #A3A3A3; */
font-weight: 500;
font-size: 20px;
}

/* --------------normal dropdown---------- */
.normal-dropdown{
    width: 100%;
}

.normal-dropdown.menu-item-has-children > .normal-dropdown-container {
    display: none;
    top: 0;
    padding: 0;
}

.normal-dropdown:hover .normal-dropdown-container {
    display: none;
}

.dropdown-menu{
    width: 100%;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.dropdown-menu a:hover {
    background: transparent;
}

.dropdown-menu a{
    padding: 0;
}

.normal-dropdown.menu-item-has-children > .icon-link{
padding-top: 12px;
padding-bottom: 12px;
/* border-bottom: 1px solid #A3A3A3; */
font-weight: 500;
font-size: 20px;
}

.normal-dropdown.menu-item-has-children ul.dropdown-menu a{
padding-top: 12px;
padding-bottom: 12px;
border-top: 0.5px solid #A3A3A3;
font-weight: 400;
font-size: 18px;
}
/* ----------normal dropdown ends------- */

/* Active (expanded) state */
.icon-link.menu-item-has-children.is-open > div:first-child::after, .normal-dropdown.menu-item-has-children.is-open > .icon-link::after, .icon-link.menu-item-has-children.is-open .menu-group.is-submenu-open .menu-group-title::after {
  content: "−";
}

.icon-link.menu-item-has-children.is-open > .dropdown-wrapper {
    display: flex;
}

/* ----submenu close & expand---- */
.icon-link.menu-item-has-children > .dropdown-wrapper .menu-group.is-submenu-open > li {
  display: flex; 
}

/* -----expanded normal dropdown------- */
.normal-dropdown.menu-item-has-children.is-open > .normal-dropdown-container {
    display: block;
    position: relative;
}

.mobile-sidebar-logo{
    display: block;
    position: relative;
    margin-bottom: 44px;
    margin-left: 20px;
    /* transform: translateX(-50%); */
}
}


/* @media (max-width: 768px) { */
    /* .dropdown-popup {
        width: fit-content;
        padding: 20px;
        
    }

    .dropdown-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .profiles {
        justify-content: center;
    }

    .menu-group{
        display: flex;
        flex-direction: column;
    } */

    /* -------------------normal dropdown------------- */
    /* .dropdown-menu {
        left: unset !important;
        margin-left: 0;
    } */
/* 
    .dropdown-arrow {
        border-left: none !important;
        border-right: 10px solid #0A5DAA !important;
        border-top: 10px solid transparent !important;
        border-bottom: 10px solid transparent !important;
        left: -10px !important;
        top: 10px !important;
    } */
/* } */


@media (max-width:550px) {
    .menu {
        width: 70vw;
    }
}

/* @media (max-width: 425px){ */
    /* .dropdown-popup {
    padding: 16px;
}

.profile-card {
    width: 100px;
}

.profile-card img {
    width: 100%;
    height: auto;
}

.profile-name {
    font-size: 10px;
} */
/* } */
