/* footer.css */

/* ====== Footer Container & Background ====== */
.footer-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

footer {
    background-color: #111632;
    /* Deep Blue Gradient matching previous brand identity */
    background: linear-gradient(180deg, #2342bc 0%, #021048 100%);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    color: #bac4e5; /* Light blue-grey text */
    padding: 80px 0 40px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* ====== Grid Layout ====== */
.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

footer .footer-grid {
    display: grid;
    /* 5 Columns: First column is 1.5x wider than the others */
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

/* Materialize Override: Ensure columns don't float and take full width of grid cell */
footer .col {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ====== Typography & Logo ====== */
.footer-logo {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

footer .col h5 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

footer .col p {
    color: #bac4e5;
    margin-bottom: 24px;
    max-width: 300px;
    font-size: 15px;
}

/* ====== Links & Lists ====== */
/* General Link Styling */
footer .col a {
    color: #bac4e5;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s ease, transform 0.2s ease;
    font-size: 15px;
}

footer .col a:hover {
    color: #ffffff;
    transform: translateX(4px); /* Subtle slide effect */
}

/* Handling Lists (ul) and loose List Items (li) */
footer .col ul,
footer .col li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Specific styling for the li elements used in Contact/Legal columns */
footer .col li {
    margin-bottom: 12px;
}
footer .col li a {
    margin-bottom: 0; /* Reset margin since the li handles spacing */
}

/* ====== Social Icons ====== */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1); /* Glassmorphism background */
    color: #ffffff;
    transition: all 0.3s ease;
    margin-bottom: 0 !important; /* Override general link margin */
}

.social-icons a:hover {
    background-color: #0D63F3; /* Brand Blue */
    color: #ffffff;
    transform: translateY(-3px); /* Lift up effect */
}

/* Fix SVG sizing within the circle */
.social-icons svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* ====== Copyright Section ====== */
.footer-copyright {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(186, 196, 229, 0.15);
    text-align: center;
    color: #bac4e5;
    font-size: 14px;
    opacity: 0.8;
}

/* ====== Responsive Styles ====== */

/* Tablet (Portrait) */
@media (max-width: 1024px) {
    footer .footer-grid {
        /* Reduce to 3 columns: Brand takes full top row, links below */
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 40px 20px;
    }

    /* Make the first column (Brand/Logo) span 2 columns */
    footer .col:first-child {
        grid-column: span 4;
        text-align: center;
        margin-bottom: 20px !important;
    }

    .social-icons {
        justify-content: center;
    }

    footer .col p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 24px;
    }

    footer .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    /* Center align items in flex column */
    footer .col {
        align-items: center;
    }

    footer .col h5 {
        margin-bottom: 16px;
    }

    /* Reset hover transform on mobile to prevent accidental layout shifts */
    footer .col a:hover {
        transform: none;
    }

    .footer-copyright {
        margin-top: 40px;
    }
}