.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    opacity: 0;
    pointer-events: none; /* Keeps it unclickable when invisible */
	background-color: #1a365d !important; /* Force deep blue fallback */
    color: #ffffff !important;
    opacity: 0;
    pointer-events: none;
    z-index: 99999 !important; /* Forces the button to float above everything else */
}

.back-to-top:hover {
    background-color: #319795 !important; /* Force teal hover fallback */
}


/* Class injected by JavaScript when the user scrolls down */
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}
  