/* Redesigned Back to Top button styles */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem; /* Aligned to the bottom right */
    background-color: var(--primary);
    color: var(--bg-white);
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--primary-dark);
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.35);
}

.back-to-top i {
    transition: var(--transition-fast);
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem; /* Aligned to the bottom right on mobile */
        width: 48px;
        height: 48px;
    }
    .back-to-top i {
        font-size: 20px !important;
    }
}
