/* .scroll-container {
    overflow-x: auto;
    white-space: nowrap;
} */
.border-wrapper {
    position: relative;
    /* width: 100%; */
    overflow-x: auto;
    /* border-top: dotted 2px #184341; */
}

/* .scroll-container {
    display: inline-block;
    white-space: nowrap;
} */

/* .scroll-content {
    display: inline-block;
    white-space: nowrap;
} */


.scroll-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.top-scroll,
.bottom-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

.top-scroll {
    height: 20px;
    /* Adjust based on your design */
    position: absolute;
    top: 0;
    left: 0;
}

.bottom-scroll {
    height: 20px;
    /* Adjust based on your design */
    position: absolute;
    bottom: 0;
    left: 0;
    display: none;
}

.scroll-content {
    height: 1px;
    /* Just to enable horizontal scrolling */
}

nav.secondary {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    margin-top: 20px;
    /* Same as .top-scroll height */
    margin-bottom: 20px;
    /* Same as .bottom-scroll height */
}

nav.secondary ul {
    display: inline-block;
}

/* ---------- */

.primary ul ul {
    white-space: nowrap;
}

.primary ul ul li {
    position: relative;
    vertical-align: top;
    padding-top: 20px;
    margin-right: 20px;
    white-space: normal;
    width: 100%;
}

.primary ul li ul li {
    display: block;
    position: relative;
    width: 100%;
    padding-left: 30px;
    margin-right: 0;
}

.primary ul ul li:before {
    border-top-style: solid;
    width: 30px;
    top: 50px;
    margin: 0 0 0 -30px;
}

.primary ul li ul li:before,
.primary ul li ul li:first-child:before {
    border-top-style: solid;
    border-left-style: solid;
    height: 100%;
    top: 0;
    left: 45px;
}

.primary ul li ul li:last-child:before {
    height: 50px;
}

.primary ul li ul li:before,
.primary ul li ul li:first-child:before {
    border-top-style: none;
    border-left-style: solid;
    height: 100%;
    top: 0;
    left: 45px;
}

.primary ul li:before,
.primary ul li:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-color: #184341;
    border-width: 1px;
    z-index: 0;
}

.primary ul li ul {
    display: block;
    white-space: normal;
}

.primary ul li ul li {
    display: block;
    position: relative;
    width: 100%;
    padding-left: 30px;
    margin-right: 0;
}

.primary ul li ul li:before,
.primary ul li ul li:first-child:before {
    border-top-style: none;
    border-left-style: solid;
    height: 100%;
    top: 0;
    left: 45px;
}

.primary ul li ul li:last-child:before {
    height: 50px;
}

.primary ul li ul li:after {
    border-top-style: solid;
    top: 50px;
    left: 15px;
    width: 15px;
}

.primary ul li ul li a {
    border-top-color: #a2c8cc;
    width: auto;
}

.primary ul li ul li a:before,
.primary ul li ul li .fa-solid {
    color: #a2c8cc;
}

/* ---------- */
.primary,
.secondary,
.tertiary {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.primary ul,
.secondary ul,
.tertiary ul {
    display: flex;
    padding: 0;
    margin: 0;
}

.primary ul li,
.secondary ul li,
.tertiary ul li {
    display: inline-block;
    padding: 0 20px 0 0;
}

/* .primary ul li:last-child,
.tertiary ul li:last-child {
    padding: 0;
} */

.list a,
.list a.multi:after {
    position: relative;
    display: block;
    margin: 0;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    line-height: 16px;
    white-space: normal;
    color: #333;
    background-color: white;
    border: 1px solid #f5f5f5;
    border-top: 4px solid #95a5a6;
    border-radius: 5px;
    box-shadow: 1px 1px 2px rgba(106, 113, 127, 0.2);
    z-index: 1;
}

.list a.multi:after {
    content: " ";
    position: absolute;
    left: 6px;
    top: 6px;
    width: 100%;
    height: 100%;
    border-width: 2px;
    border-color: #184341;
    border-top-width: 0 !important;
    border-left-width: 0 !important;
    background-color: transparent;
    border-radius: 6px;
    z-index: -1;
}

.list a:before {
    display: block;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: bold;
    word-wrap: break-word;
    color: #95a5a6;
}

.list a small {
    display: block;
    font-weight: normal;
    font-size: 12px;
    margin-top: 10px;
}

.sitemap .fa-solid {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 16px;
    vertical-align: middle;
}

ul,
.list {
    display: inline-block;
}

.secondary {
    display: flex;
    margin-top: 20px;
    padding-top: 20px;
    /* border-top: dotted 2px #184341; */
}

.secondary ul .second {
    margin-top: 4%;
}

.secondary ul .multi {
    content: "";
    position: absolute;
    left: 42%;
}

.secondary ul .multi:before,
.secondary ul .multi:after {
    content: "";
    position: absolute;
    border-color: #184341;
    border-width: 1px;
    z-index: 0;
    border-top-style: none;
    border-left-style: solid;
    height: 105%;
    top: 0;
    left: 30%;
}

.secondary ul li:before,
.secondary ul li:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-color: #184341;
    border-width: 1px;
    z-index: 0;
}

.secondary ul li a {
    border-top-color: #184341;
    width: auto;
}

.secondary ul li a:before,
.secondary ul li .fa-solid {
    color: #184341;
}

/* --- Level 1 --- */
.secondary ul ul {
    white-space: nowrap;
}

.secondary ul ul li {
    position: relative;
    vertical-align: top;
    padding-top: 20px;
    margin-right: 20px;
    white-space: normal;
    width: 100%;
}

/* .secondary ul ul li:last-child {
    padding-right: 0;
} */
.secondary ul ul li:before {
    border-top-style: solid;
    width: 30px;
    top: 50px;
    margin: 0 0 0 -30px;
}

.secondary ul ul li:first-child:before {
    border-top-style: solid;
    border-left-style: solid;
    width: 0;
    height: 30px;
    top: 0;
    left: 50%;
    margin: 0 0 0 -30px;
    width: 109%;
}

.secondary ul ul li:before {
    border-top-style: solid;
    border-left-style: solid;
    width: 0;
    height: 30px;
    top: 0;
    left: 50%;
    margin: 0 0 0 -30px;
    width: 109%;
}

.secondary ul ul li:last-child:before {
    border-top-style: none;
    border-left-style: solid;
    width: 0;
    height: 30px;
    top: 0;
    /* left: 50%; */
    margin: 0 0 0 -30px;
}

.secondary ul ul li a {
    border-top-color: #f37435;
    width: auto;
}

.secondary ul ul li a:before,
.secondary ul ul li .fa-solid {
    color: #f37435;
}

/* --- Level 2 --- */
.secondary ul ul ul {
    display: block;
    white-space: normal;
}

.secondary ul ul ul li {
    display: block;
    position: relative;
    width: 100%;
    padding-left: 30px;
    margin-right: 0;
}

.secondary ul ul ul li:before,
.secondary ul ul ul li:first-child:before {
    border-top-style: none;
    border-left-style: solid;
    height: 100%;
    top: 0;
    left: 45px;
}

.secondary ul ul ul li:last-child:before {
    height: 50px;
}

.secondary ul ul ul li:after {
    border-top-style: solid;
    top: 50px;
    left: 15px;
    width: 15px;
}

.secondary ul ul ul li a {
    border-top-color: #FFCD28;
    width: auto;
}

.secondary ul ul ul li a:before,
.secondary ul ul ul li .fa-solid {
    color: #FFCD28;
}

/* --- Level 3 --- */
.secondary ul ul ul ul li a {
    border-top-color: #e67e22;
}

.secondary ul ul ul ul li a:before,
.secondary ul ul ul ul li .fa-solid {
    color: #e67e22;
}

/* --- Level 4 --- */
.secondary ul ul ul ul ul li a {
    border-top-color: #9b59b6;
}

.secondary ul ul ul ul ul li a:before,
.secondary ul ul ul ul ul li .fa-solid {
    color: #9b59b6;
}

.tertiary {
    display: flex;
    margin-top: 20px;
    padding-top: 20px;
    border-top: dotted 2px #184341;
}

.tertiary ul {
    white-space: nowrap;
}

.tertiary ul li {
    display: inline-block;
    white-space: normal;
    padding: 0 20px 0 0;
}

.tertiary ul li:before,
.tertiary ul li:after {
    display: none;
}

.tertiary ul li:last-child {
    padding: 0;
}

.secondary>ul>li>a,
.secondary>ul>li>ul>li {
    width: 230px;
    margin-bottom: 30px;
}

.primary>ul>li>a {
    width: 230px;
}

/* Responsive CSS */

@media (max-width: 767px) {

    .list a,
    .list a.multi:after {
        position: relative;
        display: block;
        margin: 0;
        padding: 15px;
        font-size: 10px;
        font-weight: bold;
        line-height: 12px;
        white-space: normal;
        color: #333;
        background-color: white;
        border: 1px solid #f5f5f5;
        border-top: 4px solid #95a5a6;
        border-radius: 5px;
        box-shadow: 1px 1px 2px rgba(106, 113, 127, 0.2);
        z-index: 1;
    }

    .secondary ul .multi {
        content: "";
        position: absolute;
        left: 27%;
    }

    .secondary>ul>li>a,
    .secondary>ul>li>ul>li {
        width: 187px;
    }

    .secondary ul ul li:first-child:before {
        border-top-style: solid;
        border-left-style: solid;
        width: 0;
        height: 30px;
        top: 0;
        left: 50%;
        margin: 0 0 0 -30px;
        width: 111%;
    }

    .secondary ul ul li:before {
        border-top-style: solid;
        border-left-style: solid;
        width: 0;
        height: 30px;
        top: 0;
        left: 50%;
        margin: 0 0 0 -30px;
        width: 111%;
    }

    .secondary ul .multi:before,
    .secondary ul .multi:after {
        content: "";
        position: absolute;
        border-color: #184341;
        border-width: 1px;
        z-index: 0;
        border-top-style: none;
        border-left-style: solid;
        height: 93%;
        top: 0;
        left: 30%;
    }
}

/* Responsive Css */