/* Footer styling */
footer {
    background-color: white;
    color: black;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Logo at left, nav at right */
    width: 100%;
    box-sizing: border-box !important;
}

/* Flex container for logo & nav */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-logo{
    margin-left: 0;
}

/* Logo styling */
.footer-logo img {
    width: 170px; 
    height: auto; /* Maintain aspect ratio */
}

/* Navigation menu aligned to extreme right */
footer nav {
    margin-left: auto; /* Pushes the nav to the right */
}

/* Navigation links */
footer nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

footer nav ul li {
    margin-left: 20px;
}

footer nav ul li a {
    color: black;
    text-decoration: none;
    padding: 5px;
    transition: 0.3s;
}

footer nav ul li a:hover {
    color: #0073e6; 
}


footer nav ul li a.active {
    border-bottom: 1px solid black; 
}


.footer-copyright{
    margin-top: 2%;
}

/* Scroll-to-top Button */
#scrollToTopBtn {
    display: none; 
    position: fixed;
    bottom: 0;
    right: 3px;
    width: 50px;
    height: 40px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #0073e6;
}

 /*Show button when scrolled */
#scrollToTopBtn.show {
    display: block;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    footer nav{
        margin-left: 0;
    }

    footer nav ul {
        flex-direction: column;
        padding-top: 10px;
    }

    footer nav ul li {
        margin: 5px 0;
    }
}
