/* Section container */
.funded-section {
    display: flex !important;
    align-items: flex-start;
    text-align: right;
    padding: 20px;
    background-color: #fff;
    /* Background color */

    border: 1px solid red;
}

.funded-section h3 {
    font-size: 20px;
    color: #033264;
    /* Blue color for header */
    font-weight: bold;
    margin: 0 20px 20px 0;
    /* Spacing for the header */
    border-right: 4px solid #033264;
    /* Blue vertical line */
    padding: 12px;
    text-align: left;
}

/* Ribbon container */
.logo-ribbon {
    width: 100%;
    overflow: hidden;
    /* Hide content outside bounds */
    position: relative;
}

/* Scrolling logos container */
.scrolling-logos {
    display: flex;
    gap: 50px;
    /* Space between logos */
    animation: scrollLogos 15s linear infinite;
    /* Scrolling animation */
}

/* Logo styling */
.scrolling-logos img {
    height: 50px;
    /* Adjust logo size */
    object-fit: contain;
    filter: grayscale(100%);
    /* Optional: desaturate logos */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.scrolling-logos img:hover {
    filter: grayscale(0);
    /* Bring back original color on hover */
    transform: scale(1.1);
    /* Slight zoom on hover */
}

/* Animation for scrolling */
@keyframes scrollLogos {
    from {
        transform: translateX(100%);
        /* Start off-screen to the right */
    }

    to {
        transform: translateX(-100%);
        /* End off-screen to the left */
    }
}

/* Utility class for testing */
.test {
    border: 1px solid red;
}

/* Footer styling */
.footer {
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-image: url('background-fade-image.jpg');
    /* Optional fade background */
    background-repeat: no-repeat;
    background-position: right;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 220px;
    margin-bottom: 20px;
}

.footer-heading {
    color: #002366;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.footer-list li a:hover {
    color: #004a99;
}

/* Newsletter input and button */
.newsletter-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    border-color: #004a99 !important;
}

.newsletter-button {
    display: block;
    background-color: #004a99 !important;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.newsletter-button:hover {
    background-color: #003366 !important;
}

/* Main footer container */
.main-footer {
    display: flex;
    flex-direction: column;
    position: relative;
    top: -8vh;
    align-items: center;

}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-section {
        min-width: 100%;
        margin-bottom: 20px;
    }

    .funded-section {
        flex-direction: column;
        text-align: center;
    }

    .funded-section h3 {
        margin: 0 0 20px 0;
        border-right: none;
        border-bottom: 4px solid #033264 !important;
        padding-bottom: 10px;
    }

    .scrolling-logos {
        gap: 20px;
    }
}