/* Footer Styles */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.site-footer {
    background: linear-gradient(-45deg, #0a0a0a, #1a1a2e, #16213e, #0f0f0f);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #b0b0b0;
    padding: 80px 0 0;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    margin-top: auto;
    border-top: 1px solid rgba(65, 105, 225, 0.3);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Optional: Add subtle floating particles effect */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(65, 105, 225, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(65, 105, 225, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.footer-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    gap: 40px;
}

/* Columns */
.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Column 1: Logo & About */
.footer-col-1 {
    flex: 1.5;
}

.custom-footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 25px;
    display: block;
}

.footer-about-text p {
    line-height: 1.8;
    color: #888;
    max-width: 90%;
}

/* Column 2: Quick Links */
.footer-col-2 {
    flex: 0.8;
}

.footer-title {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color, #4169e1);
    /* Use dynamic variable */
    border-radius: 2px;
}

/* Quick Links Styling */
.footer-col-2 div,
.footer-col-2 nav,
.footer-col-2 ul,
.footer-links ul,
.menu-footer-menu-container ul {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.footer-col-2 li,
.footer-links li,
.menu-footer-menu-container li {
    list-style-type: none !important;
    margin-bottom: 12px;
    padding: 0 !important;
    margin-left: 0 !important;
    display: block !important;
    background: none !important;
}

/* Remove bullets specifically targetting nested elements that might add them */
.footer-col-2 li::before,
.footer-links li::before {
    content: none !important;
    display: none !important;
}

.footer-col-2 a,
.footer-links a,
.menu-footer-menu-container a {
    color: #b0b0b0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 15px;
    padding-left: 0;
}

.footer-col-2 a:hover,
.footer-links a:hover,
.menu-footer-menu-container a:hover {
    color: var(--primary-color, #4169e1) !important;
    transform: translateX(8px);
}

/* Add FontAwesome Fix globally for footer */
.site-footer .fa-brands,
.site-footer .fab,
.social-link i {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal;
}

.site-footer .fa,
.site-footer .fas {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome", sans-serif !important;
    font-weight: 900 !important;
}

.social-link i::before {
    display: inline-block;
}

/* Column Extra: Footer 3 (Dynamic Menu) */
.footer-col-extra {
    flex: 0.8;
}

.footer-col-extra div,
.footer-col-extra nav,
.footer-col-extra ul {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.footer-col-extra li {
    list-style-type: none !important;
    margin-bottom: 12px;
    padding: 0 !important;
    margin-left: 0 !important;
    display: block !important;
    background: none !important;
}

.footer-col-extra li::before {
    content: none !important;
    display: none !important;
}

.footer-col-extra a {
    color: #b0b0b0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 15px;
    padding-left: 0;
}

.footer-col-extra a:hover {
    color: var(--primary-color, #4169e1) !important;
    transform: translateX(8px);
}

/* Column 3: Contact Info & Socials */
.footer-col-3 {
    flex: 1.2;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-label {
    min-width: 70px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.contact-value,
.contact-value a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.6;
}

.contact-value a:hover {
    color: var(--primary-color, #4169e1);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: #222;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    background-color: var(--primary-color, #4169e1);
    /* Dynamic background hover */
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(65, 105, 225, 0.4);
    /* Glow effect, adjusted roughly to blue but acceptable */
}

/* Footer Bottom */
.footer-bottom {
    background-color: #0d0d0d;
    padding: 25px 20px;
    border-top: 1px solid #222;
    font-size: 13px;
    color: #666;
}

.site-info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-info-left {
    text-align: left;
}

.site-info-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-info-right {
    text-align: right;
}

/* Footer Bottom Menu */
.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-links li a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-links li a:hover {
    color: var(--primary-color, #4169e1);
}

.egateweb-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.egateweb-link:hover {
    color: var(--primary-color, #4169e1);
}

/* Guarantor Company Logo */
.guarantor-section {
    margin-top: 25px;
}

.guarantor-section a {
    display: inline-block;
    text-decoration: none;
}

.guarantor-logo {
    width: 200px;
    height: auto;
    transition: opacity 0.3s ease;
}

.guarantor-logo:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        padding-bottom: 40px;
        gap: 30px;
    }

    .footer-col {
        min-width: 100%;
        margin-bottom: 10px;
    }

    .footer-title {
        margin-bottom: 20px;
    }

    .site-info-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .site-info-left,
    .site-info-right {
        text-align: center;
        width: 100%;
    }

    .site-info-center {
        width: 100%;
        order: -1;
        /* Menu first? Or maybe last. Let's keep distinct. */
        margin-bottom: 10px;
    }

    .contact-row {
        flex-direction: row;
        /* Keep row even on mobile unless text is huge */
    }
}

@media (max-width: 480px) {
    .contact-label {
        min-width: 60px;
    }
}