* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --header-height: 80px;
}

header {
    display: flex;
    justify-content: space-between;
    height: var(--header-height);
    flex-direction: row;
}

.heading {
    position: sticky;
    top: 0;
    z-index: 2;
}

nav {
    display: flex;
    width: 100%;
    margin: 0 10px;
    align-items: center;
}

.header-logo {
    height: calc(.50 * var(--header-height));
    display: flex;
    align-items: center;
    padding-right: 10px;
    border-right: 1px solid #0057b8;
}

.header-title {
    padding-left: 10px;
    h3{
        font-size: 22px;
    }
    a{
        color: var(--cl-secondary);
    }
    a:visited{
        color: var(--cl-secondary);
    }
}


.hamburger-wrapper {
    display: flex;
    margin-left: auto;
    align-items: center;
    
    
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 10;
        margin-top: -5px;
    }

    .hamburger div {
        width: 25px;
        height: 3px;
        background-color: var(--cl-secondary);
        margin: 5px 0;
        transition: 0.4s;
    }
}

.header-actions {
    display: none;
}

.header-actions-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: calc(var(--header-height) - 2px);
    left: 0px; /* nav has margin 10px on left side */
    background-color: var(--bk-primary);
    width: 100%;
    margin: 0;
    /* padding-bottom: .5em; */
}

.header-actions-mobile.show{
    display: flex;
}

.action {
    padding: 10px;
    width: 100%;
    color: var(--cl-primary);
    margin: 0;
}

#action{
    margin: 0;
    color: var(--cl-primary);
}

summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;

    list-style: none;
}

summary::after {
    content: "";
    border-bottom: 1px solid var(--cl-primary);
    border-right: 1px solid var(--cl-primary);
    width: 8px;
    height: 8px;

    margin-right: 10px;
    transform: rotate(45deg);
    transform-origin: calc(var(--width)*.75) calc(var(--width)*.75);
    margin-left: .75em;
    transition: 0.2s;
}

details[open] > summary::after {
    transform: rotate(225deg);
}

.dropdown{
    margin-left: 20px;

    a{
        display: block;
        text-decoration: none;
        padding: 8px 0;
    }

    li{
        margin: 0;
    }

}

#btn-mobile{
    width: 100%;
    border-radius: 0; 
    color: var(--cl-secondary);
    text-align: center;

    a:visited{
        color: var(--cl-secondary);
    }
}

.header-title{
    display: flex;
    align-items: center;
}


.header-link{
display: flex;
align-items: center;
justify-content: space-between;
font-size: 16px;
list-style: none;
width: 100%;
padding: 10px;

    a{
        display: block;
        width: 100%;
        
        &:visited{
            color: var(--cl-primary);
        }
    }
}   

#mobile-header-link{
    font-size: 16px;
    margin: 0;
    line-height: 32px;
}

@media only screen and (width > 1000px) {
    .hamburger-wrapper{
        display: none;
    }

    .header-link{
        padding-inline: 25px;

        a:visited{
            color: var(--cl-secondary);
        }   
    }
    

    .header-actions{
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-left: auto;

        p{
            a{
                font-size: 16px;
                color: var(--cl-secondary);
            }
        }

        .action {
            position: relative;
        }
        
        .action a {
            text-decoration: none;
            padding: 10px 15px;
            display: block;
        }
    }

    .dropdown{
        margin-left:0px;
        --margin-top: -14px;

        border-radius: 12px;
        display: none;
        position: absolute;
        background-color: var(--cl-secondary);
        color: #002E5D;
        list-style: none;
        min-width: 170px;
        margin-top: var(--margin-top);

        transform: translateX(-50%);
        left: 50%;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);


        &::before {
            content: "";
            position: absolute;
            width: 20px;
            aspect-ratio: 1 / 1;
            display: block;
            background-color: var(--cl-secondary);
            left: 50%;
            transform: translateX(-50%) rotate(45deg);
            top: -10px;
            z-index: -1;
        }

        &::after {
            content: "";
            position: absolute;
            top: calc(var(--margin-top) * -1);
            height: var(--margin-top);
            width: 100%;
            background-color: transparent;
        }
    }

    .dropdown li  {
        background-color: var(--cl-secondary);
        font-size: 16px;

        a {
            color: var(--cl-primary);
        }

        a:visited{
            color: var(--cl-primary);
        }
    
        &:first-child {
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
        }
        &:last-child {
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
        }
    }
    
    .action:hover .dropdown,
    .action:focus .dropdown {     
        display: block;
    }       
    
    .dropdown li:hover {
        background-color: #ced0d3;
    }

    #btn {
        margin-left: 8px;
        background-color: #0085FF;
        color: white;
        border: none;
        padding: .6em 1.6em;
        border-radius: 10em;
        font-family: "Noto Sans", sans-serif;
        font-size: 16px;
        white-space: nowrap;
        a{
            color: white;
        }
    
        a:visited{
            color: white;
        }
    } 
}
