/* Footer Styles */

.main-footer {
    background-color: #fdf8ed;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}


/* Decorative Gradient Left Side */

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Full width if you want it across top-bottom */
    height: 100%;
    /* Adjust height to show top strip only */
    background: linear-gradient(to bottom, #d3cceb, rgba(255, 255, 255, 0));
    z-index: 1;
}


/* Main Footer Content */

.footer-main {
    position: relative;
    z-index: 2;
    display: flex;
    padding: 60px 0 40px;
    background-color: #FFF2DD;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--font-khula)
}


/* Logo Section */

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 30%;
}

.footer-logo-img {
    max-width: 150px;
}

.social-media {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #e9e4d9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #332F91;
    color: #fff;
    transform: translateY(-2px);
}


/* Footer Links */

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
}

.footer-heading {
    color: #dc3545;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.footer-nav li {
    flex: 0 0 calc(33.333% - 16px);
    /* 3 items per row, accounting for horizontal gap */
}

.footer-nav li a {
    position: relative;
    display: inline-block;
    /* ensures ::after is relative to the link */
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}


/* Underline effect (hidden by default) */

.footer-nav li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #332F91;
    transition: width 0.3s ease;
}


/* On hover: text color + underline expands */

.footer-nav li a:hover {
    color: #332F91;
}

.footer-nav li a:hover::after {
    width: 100%;
}


/* Active link styles */

.footer-nav li a.active {
    color: #332F91;
}

.footer-nav li a.active::after {
    width: 100%;
    animation: underline-grow 0.4s ease-in-out;
}


/* Optional underline-grow animation */

@keyframes underline-grow {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}


/* Contact Info */

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 30%;
}

.contact-item {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-end;
}

.contact-label {
    color: #dc3545;
    font-weight: 600;
    /* text-transform: uppercase; */
    font-size: 16px;
}

.contact-value {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    gap: 4px;
    text-decoration: none;
}


/* Footer Bottom */

.footer-bottom {
    background-color: transparent;
    padding: 25px 0;
    position: relative;
    z-index: 2;
    align-items: center;
    display: flex;
    justify-content: space-between;
    max-width: 59%;
    margin: 0 0 0 auto;
}

.footer-policies {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.footer-policies a {
    color: #8b8680;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-policies a:hover {
    color: #332F91;
}

.copyright {
    color: #8b8680;
    font-size: 14px;
    font-weight: 500;
    text-align: end;
}


/* Responsive Styles */

@media (max-width: 991.98px) {
    .footer-main {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
        padding: 24px;
    }
    .footer-logo-section,
    .footer-links,
    .footer-contact {
        max-width: 100%;
    }
    .footer-policies {
        justify-content: center;
    }
    .copyright {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .footer-nav {
        justify-content: space-around;
    }
    .footer-policies {
        flex-direction: column;
        gap: 10px;
    }
    .footer-policies a,
    .copyright {
        font-size: 12px;
    }
    .contact-info,
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .footer-policies {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}