﻿/* ================================
   Scroll To Top Button
   ================================ */

.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #08aaa6;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.20);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 9999;
}


    /* ================================
   Show Button
   ================================ */

    .scroll-to-top-btn.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }


    /* ================================
   Hover
   ================================ */

    .scroll-to-top-btn:hover {
        background-color: #078f8c;
        color: #ffffff;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.30);
        transform: translateY(-5px);
    }


    /* ================================
   SVG Icon
   ================================ */

    .scroll-to-top-btn svg {
        width: 20px;
        height: 20px;
        display: block;
        stroke: currentColor;
        fill: none;
        pointer-events: none;
    }


    /* ================================
   Focus / Accessibility
   ================================ */

    .scroll-to-top-btn:focus {
        outline: none;
    }

    .scroll-to-top-btn:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 3px;
    }


/* ================================
   Tablet / Mobile
   ================================ */

@media (max-width: 768px) {

    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

        .scroll-to-top-btn svg {
            width: 18px;
            height: 18px;
        }
}


/* ================================
   Small Mobile
   ================================ */

@media (max-width: 480px) {

    .scroll-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
    }

        .scroll-to-top-btn svg {
            width: 17px;
            height: 17px;
        }
}
