﻿/* Core desktop styles */
.merix-nav {
    background: #FFF;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
}

.top-nav-inner {
    display: flex;
    align-items: center;
    justify-content: end;
    width: 100%;
    gap: 12px;
}

.npx-contain {
    margin-top: -3px;
    margin-left: 2px;
}

.top-nav-inner a {
    font-family: DINMedium;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    color: #000;
    text-decoration: none;
    display: flex;
}

.nav-hover-zone {
    margin-bottom: -5px;
}

.my-merix {
    display: flex;
    align-items: start;
    gap: 4px;
}

.merix-nav-main-links {
    font-family: DinMedium;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    display: flex;
    margin-right: 10px;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.nav-links-contain {
    display: flex;
    align-items: center;
    gap: 10px;
}

.merix-nav-top {
    background-color: #F5F6F7;
}

.merix-nav-container {
    padding: 15px 120px;
    margin: auto;
    max-width: 1800px;
    display: flex;

    @media only screen and (max-width: 600px) {
        padding: 10px 20px;
    }

    @media only screen and (min-width: 600px) {
        padding: 10px 30px;
    }

    @media only screen and (min-width: 980px) {
        padding: 15px 70px;
    }

    @media only screen and (min-width: 1300px) {
        padding: 15px 120px;
    }
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-main-links {
    display: flex;
    gap: 1.5rem;
}

.nav-category {
    position: relative;
    padding-left: 20px;
    cursor: pointer;
    padding-top: 10px;
    padding-bottom: 10px;
    color: black;
}

    .nav-category:hover {
        text-decoration: underline;
        text-decoration-color: #FF0098;
        text-underline-offset: 5px;
        color: black;
    }


.nav-left-title {
    color: white;
    font-family: DINBold;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 40px;
    margin-top: 10px;
    max-width: 200px;
}

.nav-link-active {
    padding-left: 20px;
    background-image: url("../Images/nav-arrow.svg");
    background-position: left top -1px;
    background-repeat: no-repeat;
    background-size: 14px;
}

.nav-link-flex:hover {
    padding-left: 20px;
    background-image: url("../Images/nav-arrow.svg");
    background-position: left top -1px;
    background-repeat: no-repeat;
    background-size: 14px;
}

.nav-section {
    position: absolute;
    color: white;
    top: 0;
    left: 0;
    background: #3A39FF;
    padding: 40px;
    min-width: 438px;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0px 16px 24px 0px rgba(0, 0, 0, 0.14), 0px 6px 30px 0px rgba(0, 0, 0, 0.12), 0px 8px 10px 0px rgba(27, 1, 19, 0.11);
    border-bottom: 50px solid #26D07C;
}

.btm-triangle {
    position: absolute; 
    bottom: 0;
    left: 0;
}

.nav-section-inner {
    display: flex;
    align-items: flex-start;
}

.nav-left {
    display: flex;
    min-width: 200px;
    gap: 20px;
}

    .nav-left .nav-link-flex {
        display: block;
        width: 100%;
        color: white;
        font-family: DinMedium;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 130%;
        cursor: pointer;
        margin-bottom: 24px;
        text-decoration: none;
    }


.nav-right {
    margin-left: 40px;
    flex-grow: 1;
    position: relative;
    border-left: 1px white solid;
    padding-left: 40px;
    margin-top: 75px;
}

.top-child-nav-secondary {
    margin-top: 0;
    position: relative;
    min-width: 260px;
}

.sub-nav-link {
    margin-bottom: 24px;
}

.sub-nav-link a {
    color: white;
    font-family: DINMedium;
    font-size: 18px;
    font-style: normal;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    padding-bottom: 24px;
    text-decoration: none;
}

    .sub-nav-link a:hover {
        color: #EBEBFF;
    }

.hidden {
    display: none !important;
}

.search-trigger {
    cursor: pointer;
    background: transparent; 
    border: none;
}

/* Minimal Search Modal Styles - Functionality Only */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: 100%;
    background: white;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    overflow-y: auto;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}

.search-modal.open {
    display: flex;
}

.search-header {
    display: flex;
    justify-content: center; 
    margin: auto;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    align-items: center;
}

    .search-header input[type="text"] {
        flex-grow: 1;
        font-size: 1rem;
        border-bottom: 1.35px solid #3A39FF;
        border-top: none;
        border-left: none; 
        border-right: none;
        width: 456px;
    }

        .search-header input[type="text"]:focus {
            outline: none;
            border: none;
            border-bottom: 1.35px solid #3A39FF !important;
        }
        

.search-submit {
    cursor: pointer;
}

.search-close {
    background: none;
    border: none;
    font-size: 1rem;
    color: #000;
    cursor: pointer;
    padding: 0.5rem;
    margin-bottom: 1rem;
    align-self: flex-end;
    display: inline-block; /* Critical line */
}

.merix-search-title {
    color: #000;
    text-align: center;
    font-family: DINMedium;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; 
}

.search-body {
    margin-top: 2rem;
    width: 100%;
}

    .search-body h2 {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 700px;
    margin: auto;
}

.tag {
    display: inline-block;
    color: #000;
    text-align: center;
    font-family: DINMedium;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    border-radius: 999px;
    border: 1px solid #3A39FF;
    padding: 16px 21px 14px 21px;
}

.tag:hover {
    background-color: #3A39FF;
    color: white;
}

.tag span {
    font-size: 1rem;
}

@media only screen and (max-width: 980px) {
    .search-header input[type="text"] {
        flex-grow: 1;
        font-size: 1rem;
        border-bottom: 1.35px solid #3A39FF;
        border-top: none;
        border-left: none;
        border-right: none;
        width: 100%;
    }

    .search-header form {
        width: 100%;
    }

    .search-modal {
        padding: 20px;
    }
}



    /* Mobile styles */
@media only screen and (max-width: 1495px) {
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #3A39FF;
        color: white;
        z-index: 999;
        padding: 20px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        background-image: url("../Images/inside-menu.svg");
        background-position: bottom;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .mobile-nav-main,
    .mobile-nav-sub {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .sub-header {
        display: flex;
        justify-content: end;
        align-items: center;
        margin-bottom: 16px;
    }

    .nav-category-mobile {
        font-size: 18px;
        padding: 12px 0;
        cursor: pointer;
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: DinMedium;
        font-style: normal;
        font-weight: 500;
        line-height: 130%;
    }

    .accordion-item {
        background: transparent;
        border: none;
        color: white;
        font-family: DINMedium;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 130%;
    }

    .accordion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 12px 0;
    }

    .sub-link-title {
        text-decoration: none;
        color: white;
        font-family: DINMedium;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 130%;
        font-size: 18px;
        flex-grow: 1;
    }

        .sub-link-title:hover {
            color: #EBEBFF;
        }

        .sub-link-title.static-title {
            cursor: default;
        }

    .accordion-toggle {
        background: none;
        border: none;
        font-size: 18px;
        color: white;
        padding-left: 8px;
        cursor: pointer;
    }

        .accordion-toggle:focus {
            outline: 2px solid #ccc;
        }

    .accordion-body {
        padding-left: 1rem;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 6px;
    }

    .sub-mobile-link {
        font-size: 16px;
        color: white;
        font-family: DINMedium;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 130%;
        text-decoration: none;
        padding: 8px 0;
        display: block;
    }

        .sub-mobile-link:hover {
            color: #EBEBFF;
        }

    .mobile-menu-toggle,
    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #21272A;
    }

    .mobile-menu-close {
        display: flex;
        justify-content: end;
    }

    .mobile-nav-footer {
        padding-top: 24px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: start;
    }

    .mobile-broker-button {
        display: inline-block;
        font-size: 16px;
        text-decoration: none;
        color: #21272A;
        font-weight: 600;
        padding: 12px;
        background: #eaeaea;
        border-radius: 6px;
        text-align: center;
    }

    .mobile-lang-toggle {
        display: flex;
        gap: 2px;
        justify-content: center;
        border: 1px solid white;
        border-radius: 10000px;
    }

    .back-to-main {
        background-color: transparent;
        border: none;
        color: white;
        font-family: DINMedium;
        display: flex;
    }

    .lang-button {
        font-size: 14px;
        padding: 10px 16px;
        border-radius: 10000px;
        background: transparent;
        color: white;
        text-decoration: none;
    }

        .lang-button:hover {
            color: white;
        }

        .lang-button.active {
            background: #26D07C;
            color: white;
            border-color: white;
        }
}

    @media only screen and (max-width: 1200px) {
        .merix-nav-top {
            display: none;
        }

        .merix-mobile-nav-inner {
            display: flex;
            justify-content: space-between;
            width: 100%;
            align-items: center;
        }
    }

.top-child-nav-secondary .sub-columns {
    display: flex;
    gap: 2rem;
}

.top-child-nav-secondary .sub-col {
    flex: 1;
    min-width: 240px; /* adjust as needed */
}
