@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

/* Footer Styles */
.footer {
    background-color: #ba1b18;
    padding: 50px 0;
    margin-top: 3em;
    min-height: 35vh;
    position: relative;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #faa81e;
}

.footer-container {
    max-width: 85%;
    width: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-logo {
    width: 20%;
    text-align: center;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-col {
    width: 22%;
    padding: 0 15px;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: #ffffff;
    text-transform: capitalize;
    margin-bottom: 15px;
    font-weight: 500;
    position: relative;
    display: inline-block; /* Ensures proper alignment */
    width: fit-content; /* Prevents the underline from misaligning */
}


.footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 1rem;
    text-transform: capitalize;
    color: #bbbbbb;
    text-decoration: none;
    font-weight: 300;
    display: block;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 8px;
}

/* Social Media Links */
.footer-col .social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255,255,255,0.2);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-col .social-links a:hover {
    background-color: #ffffff;
    color: #24262b;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 15px; /* Prevent overflow */
        display: flex; /* Ensure items stack vertically */
        gap: 30px; /* Space between columns */
    }

    .footer-logo {
        width: 100%;
        text-align: center;
        margin-bottom: 20px; /* Add space below the logo */
    }

    .footer-col {
        width: 100%; /* Make each column take full width */
        text-align: center;
        margin-bottom: 20px; /* Add space between columns */
    }

    .footer-col h4 {
        font-size: 1.4rem;
    }

    .footer-col ul li a {
        font-size: 1.1rem;
    }
    
    .footer-col .social-links {
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0;
    }

    .footer-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .footer-col {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-col h4 {
        font-size: 1.3rem;
    }

    .footer-col ul li a {
        font-size: 1rem;
    }

    .footer-col .social-links {
        justify-content: center;
        align-items: center;
    }
}
