.back-to-top-anchor {
    position: sticky;
    bottom: 2rem;
    height: 0;
    display: flex;
    justify-content: flex-end;
    z-index: 10;
    pointer-events: none;
}

.back-to-top {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background-color: var(--medium-blue);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    margin-right: 1rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-blue);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--dark-blue);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
    }
}
