
/* Back to Top Button */
.back-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    display: none;
    z-index: 9999 !important;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: rgba(54, 84, 255, 0.8); /* Primary blue with opacity */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0; /* Reset padding for centering */
    border-radius: 50% !important; /* Ensure it is round */
    margin: 0 !important;
}

.back-to-top i {
    font-size: 20px;
    line-height: 50px; /* Vertically center icon */
    color: #fff;
    display: block; /* Ensure icon behaves as block for centering */
}

.back-to-top:hover {
    background: #3654ff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(54, 84, 255, 0.5);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    
    .back-to-top i {
        line-height: 40px;
        font-size: 16px;
    }
}
