/* styles for nav and footer */

.nav {
    position: fixed;
    width: 100%;
    /* max-width: var(--max-width); */
    height: var(--nav-height);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 1000;
    margin: 0 auto;
    background: inherit;
}

.nav-home {
    color: #676d6c;
    text-decoration: none;
    margin: 0 16px 0 5px;
    border: 2px solid #676d6c;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.nav-home:hover {
    color: #34dbb7;
    background-color: #f0f0f0;
    border-color: #34dbb7;
}

.nav-links > a {
    color: #405871;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    font-size: 16px;
    position: relative;
}

.nav-links .btn-login {
    margin-right: 5px;
}

.nav-links > a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    right: 0;
    background-color: #405871;
    transition: width 0.3s ease;
}

.nav-links > a:hover::after {
    width: 100%;
    left: 0;
}

.nav-links > a.active {
    color: #34dbb7;
}

.nav-links > a.active::after {
    width: 100%;
    background-color: #34dbb7;
    transition: none;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #405871;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.dropdown-trigger:hover,
.dropdown:hover .dropdown-trigger {
    color: #34dbb7;
}

.dropdown-chevron {
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

ul.dropdown-content {
    list-style: none;
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 11rem;
    margin: 0;
    padding: 0.35rem 0;
    background-color: #fff;
    border: 1px solid #e4e8ec;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(64, 88, 113, 0.12);
    overflow: hidden;
    z-index: 1100;
}

.dropdown-padding {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

ul.dropdown-content li {
    margin: 0;
    padding: 0;
    border-bottom: none;
}

ul.dropdown-content li a {
    display: block;
    margin: 0;
    padding: 0.65rem 1rem;
    color: #405871;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

ul.dropdown-content li a::after {
    display: none;
}

ul.dropdown-content li a:hover {
    background-color: rgba(52, 219, 183, 0.1);
    color: #2a9d86;
}

ul.dropdown-content li:last-child a {
    border-top: 1px solid #eef1f4;
    color: #5c6b7a;
}

ul.dropdown-content li:last-child a:hover {
    background-color: rgba(231, 76, 60, 0.08);
    color: #c0392b;
}

.dropdown:hover ul.dropdown-content,
.dropdown:focus-within ul.dropdown-content {
    display: block;
}

.footer {
    position: fixed;
    width: 100%;
    font-size: medium;
    /* max-width: var(--max-width); */
    height: var(--footer-height);
    padding: 5px 10px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    z-index: 1000;
    background: inherit;
    bottom: 0;
}

.footer-content {
    text-align: center;
}
