/* ===================================================
   7. FOOTER
   =================================================== */

/* Footer General Styling */
.footer {
    background-color: #121212;
    color: #ffffff;
    padding: 40px 20px; /* Increased padding for spacing */
    font-family: Arial, sans-serif;
}

/* Footer Container - Desktop */
.footer-container {
    display: flex;
    justify-content: space-between; /* Spread content out */
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

/* Branding Section */
.footer-brand {
    text-align: center;
    max-width: 300px;
}

.footer-logo {
    width: 120px; 
}

.footer-heading {
    font-size: 1.8rem;
    margin-top: 10px;
}

/* Footer Sections */
.footer-links, .footer-contact, .footer-social {
    text-align: left;
    max-width: 250px;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: "Cabin", sans-serif;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li, .footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s ease;
    font-size: 0.9rem;
    font-family: "Poppins", sans-serif;
}

.footer-links a:hover {
    color: #F91229;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center; /* Centers on smaller screens */
}

/* Applying the rightheadings hover effect */
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease-in-out;
}

.social-icons img {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 2;
}

.social-icons a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 8px #C32B4F;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1.2);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.social-icons a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #F91229;
    border-radius: 50%;
    top: 100%;
    left: 0;
    transition: top 0.6s ease-in-out;
}

.social-icons a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.social-icons a:hover::after {
    top: 0;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding: 15px 0;
    margin-top: 30px;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Wrap links on smaller screens */
    gap: 10px;
}

.footer-bottom-links a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s ease color;
}

.footer-bottom-links a:hover {
    color: #F91229;
}

/* ============================
   8. Responsive Design
   ============================ */

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center; /* Center align sections */
        text-align: center;
    }

    .footer-links, .footer-contact, .footer-social {
        max-width: 100%; /* Full width on smaller screens */
        margin-bottom: 20px;
        text-align: center; /* Ensure all sections are centered */
    }

    .footer-contact ul {
        padding: 0; /* Remove any unintended padding */
        display: flex;
        flex-direction: column;
        align-items: center; /* Center items */
    }
}

/* Mobile Phones (Max 480px) */
@media (max-width: 480px) {
    .footer {
        padding: 30px 15px; /* Smaller padding */
    }

    .footer-heading {
        font-size: 1.5rem; /* Reduce font size */
    }

    .social-icons {
        flex-wrap: wrap; /* Allow wrapping */
        gap: 10px; /* Reduce gap */
    }

    .social-icons a {
        width: 35px;
        height: 35px;
    }

    .social-icons img {
        width: 18px;
        height: 18px;
    }
}
