﻿/* General Footer Styles */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    display: block; /* Ensure the footer is always visible */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footerSection {
    width: 100%;
    padding: 10px;
}

/* Flexbox layout for footer links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

/* Logo Section */
.contact-info {
    flex-basis: 40%;
    margin-bottom: 10px;
    text-align: left; /* Align text and icons to the left */
}

.footer-logo {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    background-color: white;
    padding: 5px;
    border-radius: .44rem;
}

/* User Links, Education, Quick Links */
.footer-links div {
    flex-basis: 20%;
    padding: 10px;
    text-align: left; /* Align the content to the left */
}

.footer-links h4 {
    margin-bottom: 10px;
    text-align: left;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    text-align: left; /* Align list items to the left */
}

.footer-links li {
    margin: 5px 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

    .footer-links a:hover {
        text-decoration: underline;
    }

.footer p {
    color: white; /* Set text color to white */
    text-align: left; /* Align the paragraph text to the left */
}

/* Media Query for Smaller Screens (up to 768px) */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        align-items: flex-start; /* Align items to the left on small screens */
    }

    .contact-info {
        flex-basis: 100%;
        text-align: left; /* Align text and icons to the left */
    }

    .footer-links div {
        flex-basis: 100%;
        text-align: left; /* Align content to the left */
    }
}

@media (max-width: 480px) {
    .footer-logo {
        width: 60%;
    }
}

/* Add spacing between list items */
.footer-links ul li {
    margin: 10px 0; /* Increase margin between list items */
    line-height: 1.6; /* Adjust line height for better spacing */
}

/* Ensuring all icons are white */
.footer .fa, .footer h3 {
    color: white;
}

/* Additional rule for footer to display on all mobile devices */
@media (max-width: 480px) {
    .footer {
        padding: 15px 0;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-links div {
        flex-basis: 100%;
        text-align: center;
    }
}
