/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 170px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(11, 106, 50, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
}

[dir="rtl"] .scroll-to-top {
    left: auto;
    right: 30px;
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(11, 106, 50, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 106, 50, 0.4);
}

.scroll-to-top i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 200px;
        left: 20px;
        font-size: 18px;
    }

    [dir="rtl"] .scroll-to-top {
        left: auto;
        right: 20px;
    }

    .scroll-to-top i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 190px;
        left: 15px;
        font-size: 16px;
    }

    [dir="rtl"] .scroll-to-top {
        left: auto;
        right: 15px;
    }

    .scroll-to-top i {
        font-size: 14px;
    }
}

