/* General button styles */
.whatsapp-button, .back-to-top {
    position: fixed;
    right: 20px;
    width: 60px; /* Same width */
    height: 60px; /* Same height */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Ensures the button is on top */
    transition: background-color 0.3s ease;
}

/* Specific styles for WhatsApp button */
.whatsapp-button {
    bottom: 100px; /* Position above Back to Top button */
    background-color: #25D366; /* WhatsApp green */
}

.whatsapp-button img {
    width: 50%;
    height: auto;
}

.whatsapp-button:hover {
    background-color: #8bc53f; /* Darker shade on hover */
    transform: scale(1.1);
}

.back-to-top {
    bottom: 20px; /* Position at the bottom */
    background-color: #46498f; /* Use your specified color */
    color: #fff; /* Text color */
    font-size: 24px; /* Font size for the arrow */
    text-decoration: none;
    opacity: 1; /* Fully visible by default */
    transform: translateY(0); /* Ensure it's in place */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition for opacity and transform */
}

.back-to-top.hidden {
    opacity: 0; /* Hidden state */
    pointer-events: none; /* Prevent clicks when hidden */
    transform: translateY(20px); /* Move it down slightly when hidden */
}

.back-to-top img {
    width: 50%;
}

.back-to-top:hover {
    background-color: #8bc53f; /* Change to your second specified color */
    transform: scale(1.1);
    color: whitesmoke;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .whatsapp-button, .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 100px; /* Ensure both buttons are at least 100px from the bottom */
    }

    .whatsapp-button {
        bottom: 160px; /* Position above Back to Top button */
    }

    .whatsapp-button img {
        width: 35%;
    }

    .back-to-top {
        bottom: 100px; /* Position the Back to Top button above the 100px from bottom */
    }
}
