/* Global reset */
* {
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.navigation {
    height: 70px;
    position: fixed; /* Fixed to the top */
    width: 100%;
    top: 0;
    z-index: 39; /* Higher z-index */
}
.navigation2 {
    top: 70px; 
    position: fixed; 
    background-color: var(--darker-primary-color); 
    width: 100%;
    z-index: 38;
}

.brand {
    position: absolute;
    padding-left: 20px;
    float: left;
    height: 70px;
    text-transform: uppercase;
    font-size: 1.4em;
}

.brand a, .brand a:visited {
    color: #1a1a1a;
    text-decoration: none;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
}
.navigation.open, .nav-list.open {
        background: #fff;
}
.nav-list.open {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); 
}

nav {
    float: right;
    font-size: .879rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    float: left;
    position: relative;
}

nav ul li > a, nav ul li > a:visited {
    display: block;
    padding: 0 20px;
    align-content: center;
    line-height: 70px;
    color: #455A64;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

nav ul .main_nav a:hover, nav ul .main_nav a:visited:hover {
    background: #b6cfdb;
    color: #ffffff;
}
nav ul #a_nav .nav-dropdown a:hover, nav ul #a_nav .nav-dropdown a:visited:hover {
    background: #b6cfdb;
    color: #ffffff;
}

nav ul .main_nav a:not(:only-child):after, nav ul .main_nav a:visited:not(:only-child):after {
    padding-left: 4px;
    content: ' ▾';
}

nav ul li ul li {
    min-width: max(100%, 190px);
}

nav ul li ul li span {
    padding: 10px 0;
    color: #455A64;
}
.nav-dropdown .container {
    padding: 7px 15px 0 15px;
    cursor: pointer;
}

nav ul li ul li a {
    padding: 15px;
    line-height: 20px;
}
.nav-dropdown {
    position: absolute;
    display: none;
    z-index: 40;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;

}

#n_nav .nav-dropdown {
    right: 0;
    width: max(100%, 193px);
}

#d_nav .nav-dropdown {
    left: 0;
}
#n_nav .nav-dropdown table {
    min-width: 190px;
}
/* Mobile navigation */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 70px;
    width: 70px;
    z-index: 40;
}

@media only screen and (max-width: 798px) {
    .nav-mobile {
        display: block;
    }
    nav {
        width: 100%;
        padding: 70px 0 1rem;
    }
    nav ul {
        display: none;
    }
    nav ul.open {
        display: block;
    }
    nav ul li {
        float: none;
    }
    nav ul li a {
        padding: 15px;
        line-height: 20px;
    }
    nav ul li ul li a {
        padding-left: 30px;
    }
    #n_nav .nav-dropdown {
        display: flex;
        overflow-x: auto;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    #n_nav .nav-dropdown table a {
        padding: 0;
    }
    .nav-dropdown {
        position: static;
    }
    .nav-dropdown.open {
        padding-left: 1rem;
    }

}

#nav-toggle {
    position: absolute;
    left: 18px;
    top: 22px;
    cursor: pointer;
    padding: 10px 35px 16px 0px;
}

#nav-toggle i {
    font-size: 35px;
    color: #b6cfdb;
    position: absolute;
    top: -5px;
}

#nav-toggle span, #nav-toggle span:before, #nav-toggle span:after {
    cursor: pointer;
    border-radius: 1px;
    height: 5px;
    width: 35px;
    background: #1a1a1a;
    position: absolute;
    display: block;
    content: '';
    transition: all 300ms ease-in-out;
}

#nav-toggle span:before {
    top: -10px;
}

#nav-toggle span:after {
    bottom: -10px;
}

#nav-toggle.active span {
    background-color: transparent;
}

#nav-toggle.active span:before, #nav-toggle.active span:after {
    top: 0;
}

#nav-toggle.active span:before {
    transform: rotate(45deg);
}

#nav-toggle.active span:after {
    transform: rotate(-45deg);
}

/*.viewtopic article {
    margin: 0 auto;
    padding: 1rem;
} */

.sticky-wrapper {
    height: 70px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    transition: all 0.3s ease;
    background-color: #fff;
    z-index: 39;
}

.is-stick-wrapper {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 39;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.nav_avatar {
    display: none;
}
.hidden_nav_item {
    display: block;
}

.nav_desc {
display: inline;
}

.nav_item {
    display: none;
}
.nav-dropdown .dfn {
  color: #aeaeae;
}
.nav-dropdown .dfn i {
    color: var(--darker-primary-color);
}
.nav-dropdown .dfn:hover {
  color: var(--darker-primary-color);
}
.nav-dropdown {
    /*padding: .5rem 1rem .25rem 1rem;*/
    font-size: .897rem;
    width: max(100%, 190px);
}

.sub_nav.unread_exists > a:first-child::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 12px;
    width: 10px;
    height: 10px;
    background-color: var(--error-color);
    border-radius: 50%;
}

.notifications-header {
    background-color: var(--error-color);
    border-color: var(--error-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-wrap: nowrap;
    padding: 0 20px 0 10px;
    color: #fff;
}

.notifications-header a:first-child {
    width: calc(100% - 2rem);
}

.notifications-header a {
    text-decoration: none;
    color: inherit;
    padding: 18px 0 18px 10px;
}

.notifications-header a i {
    font-size: 1.2em;
    color: #fff;
}

.breadcrumbs {
    grid-area: breadcrumbs;
    color: #f2f2f2;
    font-weight: 400;
    margin: 0;
    padding: 10px 0 7px 2rem;
    white-space: nowrap;
    overflow: hidden;
}
.breadcrumbs a, .breadcrumbs a:visited, .breadcrumbs a:hover {
    color: #f2f2f2;
    cursor: pointer;
}
.breadcrumbs a:last-child {
    font-weight: 400;
}
.breadcrumbs a:not(last-child) {
    font-weight: 200;
    padding-right: 4px;
}
.breadcrumbs:not(a) {
    color: #ccc;
}
.breadcrumbs a:visited, .breadcrumbs a:hover {
    text-decoration: underline;
}

.navigation2 .nav-container {
    display: grid;
    grid-template-areas: 
        "breadcrumbs"
        "search";
    grid-template-columns: auto;
    grid-template-rows: auto auto;
}

.fs_s1 {
    grid-area: search;
}
        
@media only screen and (min-width: 799px) {
    nav ul li > a, nav ul li > a:visited {
      text-align: left;
    }
    #n_nav .nav-dropdown {
      padding: 0;
      display: block;
      width: max(100%, 188.5px);
      overflow-x: unset;
    }
    #n_nav .nav-dropdown table {
        min-width: auto;
    }
    #d_nav.main_nav {
        min-width: 132px;
    }
    nav ul .sub_nav .nav-dropdown {
        top: 70px;
    }
    .nav-list {
        display: block !important;
    }
    .nav-list i {
      font-size: 1rem;
    }
    .nav-avatar {
        max-width: 78px;
        max-height: 78px;
        display: inline-block;
    }
    .hidden_nav_item {
    display: none;
    }
    .nav_desc {
    display: none;
    }
    .nav_item {
    display: inline;
    }
    .circle {
        position: fixed !important;
        margin: 10px 0;
    }
    #n_nav .notifications-header::after {
        content: '';
        position: absolute;
        top: -10px; /* Positions the triangle above the dropdown */
        right: 18px; /* Aligns the triangle with 10px padding from the right */
        width: 0;
        height: 0;
        border-left: 10px solid transparent; /* Left side of the triangle */
        border-right: 10px solid transparent; /* Right side of the triangle */
        border-bottom: 10px solid var(--error-color); /* Color of the triangle, matching the dropdown background */
        z-index: 1; /* Ensures it appears above other elements */
    }
    #a_nav .nav-dropdown::after {
        content: '';
        position: absolute;
        top: -10px; /* Positions the triangle above the dropdown */
        right: 35px; /* Aligns the triangle with 10px padding from the right */
        width: 0;
        height: 0;
        border-left: 10px solid transparent; /* Left side of the triangle */
        border-right: 10px solid transparent; /* Right side of the triangle */
        border-bottom: 10px solid #fff; /* Color of the triangle, matching the dropdown background */
        z-index: 1; /* Ensures it appears above other elements */
    }
    .nav-dropdown .trow {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #ddd;
        padding: 10px 10px 0 10px;
        font-size: .8795rem;
        font-weight: 200;
    }
    .nav-dropdown table:first-child {
        padding-top: 10px;
    }
    .nav-dropdown .trow:hover, .nav-dropdown .trow:hover .dfn, .nav-dropdown .trow:hover .dfn i {
        background: #b6cfdb;
        color: #ffffff;
    }
    .nav-dropdown li:last-child, .nav-dropdown table:last-child {
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        overflow: hidden;
    }
    #ndrp1.nav-dropdown {
        left: -188.5px;
        width: 283px;
    }
    .breadcrumbs {
        padding-left: 2rem;
        text-align: left;
        margin: auto 0
    }

    .navigation2 .nav-container {
        display: grid;
        grid-template-areas: 
            "breadcrumbs search";
        grid-template-columns: auto 325px;
        grid-template-rows: auto;
    }
}