footer {
    background-color: #0087cb;
    /* Matches the blue background */
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 50px 40px 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
    flex-direction: row-reverse;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    width: 50%;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    transition: 0.3s ease;
    padding: 15px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-newsletter {
    width: 35%;
    padding-left: 10px;
}

.footer-newsletter-container {
    width: 100%;
}

.footer-newsletter h4 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    border-radius: 10px;
    /* This might be the border seen around "Your Email here" in the image */
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid white;
}


.newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    outline: none;
    background-color: #008acf;
    color: #fff;
    text-align: left;
    /* Changed from center to match image placeholder */
}

.newsletter-form input[type="email"]::placeholder {
    color: #eee;
    /* Lighter placeholder text */
    opacity: 0.8;
}

.newsletter-form button {
    /* Subscribe Button */
    background: #fff;
    color: #0098da;
    font-size: 1.1rem;
    padding: 0 16px;
    border: none;
    cursor: pointer;
    /* font-weight: 500; */
    border-radius: 0.5rem;
    text-align: center;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

.newsletter-checkbox {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    /* Adjusted to potentially smaller if needed for mobile */
}

.newsletter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 30px;
    height: 20px;
}

.footer-divider {
    border-top: 1px solid #ffffff;
    margin: 30px 0;
    /* Desktop margin */
}

.mobile-only-divider {
    display: none;
    width: 100%;
    border-top: 1px solid #ffffff;
    margin: 20px 0;
}

/* Policy & Sitemap Section */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 1.1rem;
}

.footer-policies {
    display: flex;
    gap: 10px;
    /* Desktop gap between policy links if they are in a row */
    flex-wrap: wrap;
    align-items: center;
}

.footer-policies a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    font-size: 1.15rem;
}

.footer-policies a:not(:last-child)::after {
    content: "|";
    color: white;
    font-weight: lighter;
    padding-left: 8px;
}

/* Social Icons */
.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social span {
    margin-right: 5px;
    font-size: 1.25rem;
}

.footer-social img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    background-color: white;
    border-radius: 5px;
    padding: 4px;
    cursor: pointer;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    font-size: 1.25rem;
    margin-top: 20px;
    color: #ffffff;
}


@media (max-width: 1200px) {
    .footer-newsletter {
        padding-left: 0px;
        width: 40%;
    }
}

@media (max-width: 900px) {
    .footer-newsletter {
        width: 50%;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 30px 20px 20px;
        /* Adjusted padding for mobile */
    }

    .footer-top {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .footer-newsletter {
        order: 1;
        /* Newsletter first */
        width: 100%;
        max-width: none;
        margin-bottom: 0;
    }
    .footer-links {
        order: 2;
        /* Links second */
        flex-direction: column;
        gap: 0px;
        align-items: flex-start;
    }

    .footer-links a {
        font-size: 18px;
        /* Slightly smaller font for mobile links */
    }

    .footer-newsletter {
        padding-left: 0px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
        border: none;
        /* Remove the form's own border */

    }

    .newsletter-form input[type="email"] {
        padding: 15px;
        font-size: 16px;
        border: 2px solid white;
        border-radius: 10px;
        text-align: left;
    }

    .newsletter-form button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border-radius: 5px;
        /* Rounded corners for button */
    }

    .newsletter-checkbox {
        font-size: 18px;
        /* Smaller text for checkbox line */
        margin-bottom: 0;
        /* Space controlled by upcoming divider */
    }

    .newsletter-checkbox input[type="checkbox"] {
        width: 40px;
        height: 20px;
    }

    .footer-divider,
    .mobile-only-divider {
        display: block;
        border-top: 1px solid #ffffff;
        margin: 15px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        justify-content: space-around;
        text-align: center;
    }

    .footer-policies {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        text-align: center;
    }
    .footer-policies a {
        margin-right: 10px;
    }

    .footer-social {
        width: 100%;
        margin-top: 0;
        gap: 15px;
        justify-content: center;
    }

    .footer-social span {
        font-size: 16px;
    }

    .footer-social img {
        width: 28px;
        /* Slightly smaller icons */
        height: 28px;
    }

    .footer-copyright {
        font-size: 16px;
        text-align: center;
        width: 100%;
        margin-top: 40px;
        padding-bottom: 10px;
    }
}