<!-- Footer Start -->
<footer class="footer">
    <div class="footer-container">

        <!-- ABOUT -->
        <div class="footer-column">
            <img src="images/logo/mithu_library_logo.jpg" alt="Mithu Library">
            <p>
                Mithu Library is an educational platform created to make quality learning accessible, simple, and practical. We believe that knowledge should not be limited by cost, complexity, or lack of guidance.
            </p>
        </div>

        <!-- QUICK LINKS -->
        <div class="footer-column ">
            <h4>Quick Links</h4>
            <ul>
                <li><i class="fa-solid fa-square-arrow-up-right"></i><a href="index.php">Home</a></li>
                <li><i class="fa-solid fa-square-arrow-up-right"></i><a href="about.php">About Us</a></li>
                <li><i class="fa-solid fa-square-arrow-up-right"></i><a href="#">Class wise Course Details</a></li>
                <li><i class="fa-solid fa-square-arrow-up-right"></i><a href="contact.php">Contact Us</a></li>
            </ul>
        </div>

        <!-- SAP COURSES -->
        <div class="footer-column foot">
            <h4>Class wise Courses</h4>
            <ul>
                <li><i class="fa-solid fa-square-arrow-up-right"></i><a href="#">Class 3</a></li>
                <li><i class="fa-solid fa-square-arrow-up-right"></i><a href="#">Class 4</a></li>
                <li><i class="fa-solid fa-square-arrow-up-right"></i><a href="#">Class 5</a></li>
                <li><i class="fa-solid fa-square-arrow-up-right"></i><a href="#">Class 6</a></li>
                <li><i class="fa-solid fa-square-arrow-up-right"></i><a href="#">Class 7</a></li>
            </ul>
        </div>

        <!-- CONTACT -->
        <div class="footer-column">
            <h4>Contact</h4>
            <p>Address: Dakhin golaghatia basti, P.O - Hojai, Dist-Hojai (Assam)
                Pin - 782435</p>
            <p>Phone: +91 6913100780</p>
        </div>

    </div>
</footer>

<!-- COPYRIGHT -->
<div class="copyright-section">
    <p>
        © <?= date('Y'); ?> Mithu Library. All Rights Reserved |
        Designed by <a class="star_anchor" href="https://starinfolab.in/" target="_blank">Star Info Lab</a>
    </p>
</div>

<!-- WhatsApp Floating Button -->
<div class="Whatsapp_fixed_icon">
    <a href="https://wa.me/916913100780" target="_blank">
        <i class="fab fa-whatsapp"></i>
    </a>
</div>

<!-- Scroll To Top -->
<div class="scroll-to-top" onclick="scrollToTop()">
    <i class="fas fa-arrow-up"></i>
</div>

<!-- Footer CSS -->
<style>
/* footer_start */
/* Footer base (desktop unchanged) */
.footer {
    background: #6E1F0E;
    color: #fff;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

/* ===============================
   MOBILE FIX
================================ */
@media (max-width: 768px) {

    .footer-container {
        flex-direction: column;      /* stack columns */
        align-items: flex-start;     /* LEFT align everything */
        text-align: left;
        gap: 25px;
    }

    .footer-column {
        width: 100%;
    }

    .footer-column img {
        margin-left: 0;              /* prevent centering */
    }

    .footer-column h4 {
        text-align: left;
    }

    .footer-column ul {
        padding-left: 0;
    }

    .footer-column ul li {
        justify-content: flex-start;
    }

    .footer-column p {
        text-align: left;
    }
}

.footer-column a {
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
    margin-left: 6px;
}

.footer-column a:hover {
    color: #000000;
    font-weight: 600;
}


.social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.social-icons img {
    width: 18px;
    height: 18px;
    filter: brightness(1) invert(1);
    /* makes icons white */
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: left;
        text-align: left;
    }
    .footer-column {
    /* margin: 20px 0; */
    margin: 0;
    text-align: left;
}
.footer-column .foot {
    /* margin: 20px 0; */
    margin-left: -55px;
    text-align: left;
}
}

/* footer_End */
/* copyright */
.copyright-section {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #fff;
    font-size: 12px;
    background-color: #000000ff;
}

.copyright-section a {
    color: red;
    font-weight: 500;
    text-decoration: none;
    color: #fff;

}

.copyright-section p {
    font-size: 15px;
    font-weight: 500;
    color: rgb(255, 255, 255);
    margin-bottom: 0;
}

/* logo_mobile */

.Whatsapp_fixed_icon a {
    background: #25D366;
    color: #fff;
    font-size: 26px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    transition: 0.3s;
}

.Whatsapp_fixed_icon a:hover {
    transform: scale(1.1);
}

/* copyright */
.copyright-section {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #fff;
    font-size: 12px;
    background-color: #000000;
}

.copyright-section a {
    color: red;
    font-weight: 500;
    text-decoration: none;
    color: #fff;

}

.copyright-section p {
    font-size: 15px;
    font-weight: 500;
    color: rgb(255, 255, 255);
    margin-bottom: 0;
}

/* logo_mobile */

/* Fixed_whatsapp */

.Whatsapp_fixed_icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px;
    border-radius: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.Whatsapp_fixed_icon:hover {
    transform: scale(1.1);
}

.Whatsapp_fixed_icon a {
    color: white;
    font-size: 24px;
}

/* Tap_aarrow */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 80px;
    background-color: #00a51c;
    color: rgb(0, 0, 0);
    padding: 5px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top:hover {
    transform: scale(1.1);
}

.scroll-to-top i {
    font-size: 18px;
}

/* Tap_aarrow */

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
</style>

<!-- Footer JS -->
<script>
function scrollToTop() {
    window.scrollTo({
        top: 0,
        behavior: 'smooth'
    });
}

const scrollBtn = document.querySelector('.scroll-to-top');
window.addEventListener('scroll', () => {
    if (window.scrollY > 300) {
        scrollBtn.classList.add('show');
    } else {
        scrollBtn.classList.remove('show');
    }
});
</script>

<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
