/**
 * Secondary Navigation (Main Pages Menu)
 * Located below the primary header
 * Uses parent header gradient shadow - no own gradient needed
 */

.header__secondary-list {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
}

.header__secondary-list > li {
    position: relative;
}

.header__secondary-list > li > a {
    display: block;
    padding: 8px 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.header__secondary-list > li.current-menu-item > a,
.header__secondary-list > li.current_page_item > a {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Mobile styles */
@media (max-width: 1024px) {
    .header__secondary-nav {
        display: none; /* Hide on mobile, use hamburger menu instead */
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .header__secondary-list a {
        padding: 14px 16px;
        font-size: 14px;
    }
}

.header__secondary-list > .menu-item.menu-item-has-children > a {
    border-radius: 16px 16px 0 0;
}

.header__secondary-list > .menu-item.menu-item-has-children:hover > a {
    color: #0A797E;
    background-color: #ffffff;
}

.header__secondary-list > .menu-item > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-radius: 0 16px 16px 16px;
    padding: 1rem 0 1.5rem;
    margin: 0;
    width: calc(120% + 4.5rem);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 20;
    list-style: none;
}

.header__secondary-list > .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.header__secondary-list .sub-menu a {
    color: #0A797E;
    display: block;
    padding: 0.5rem 1rem;
}

.header__secondary-list .sub-menu a::after {
    content: "❯";
    display: inline-block;
    font-size: 0.9rem;
    color: #E78C85;
    margin-left: 8px;
    font-weight: 800;
}

.header__secondary-list .mega > .sub-menu > li > .sub-menu {
    list-style: none;
    position: initial;
    padding-left: 0;
    margin: 0;
}

.header__secondary-list .mega > .sub-menu {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 700px;
    left: -150%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    border-radius: 16px;
}

.header__secondary-list .mega > .sub-menu > li > a {
    font-weight: 700;
    padding: 4px 0;
}

.header__secondary-list .mega > .sub-menu > li > a::after {
    content: none;
}

.header__secondary-list .mega > .sub-menu > li > ul > li > a {
    padding: 4px 0;
    font-size: 14px;
}