footer {
    background-color: #0087cb; /* Matches the blue background */
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 50px 40px 40px;
}

/* Top Navigation Links & Newsletter */
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* gap: 30px; */
    margin-bottom: 30px;
    /* padding-left: 20px; */
    flex-direction: row-reverse; /* Newsletter left, Links right on desktop */
}

.footer-links {
    display: flex;
    /* gap: 50px; */
    flex-wrap: wrap;
    align-content: center;
    width: 50%; 
    /* On desktop, this will be to the right of the newsletter */
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s ease;
    /* comment by mehul */
    /* font-weight: 400; */
    padding: 15px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Newsletter Section */
.footer-newsletter {
    width: 35%;
    padding-left: 10px;
    /* On desktop, this will be to the left of the links */
}
.footer-newsletter-container{
   width: 100%;
    /* align-items: end; */
}

.footer-newsletter h4 { /* "Get the latest Bitsware offer and news" */
    font-size: 20px;
    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;
}
.form-input{
    /* width: 80%; */
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    border: none; /* Border is on the parent .newsletter-form */
    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: 18px;
    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 { /* "By cheking the box..." */
    display: flex;
    align-items: center;
    font-size: 18px; /* Adjusted to potentially smaller if needed for mobile */
}

.newsletter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

/* --- Existing Main Divider --- */
/* This divider is between footer-top and footer-bottom */
.footer-divider {
    border-top: 2px solid #ffffff;
    margin: 30px 0; /* Desktop margin */
}

/* --- Mobile-Only Divider Style --- */
/* This class will be used for the additional dividers visible only on mobile */
.mobile-only-divider {
    display: none; /* Hidden by default on desktop */
    width: 100%;   /* Ensure it spans the container */
    border-top: 1px solid #ffffff; /* Slightly thinner to match images more closely */
    margin: 20px 0;
}

/* Policy & Sitemap Section */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    /* align-items: center;
    flex-wrap: wrap; */
    gap: 20px;
    font-size: 18px;
}

.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;
}

/* Desktop pipe separator for policy links */
.footer-policies a:not(:last-child)::after {
    content: "|";
    /* position: absolute;
    right: -15px; Adjust based on gap */
    color: white;
    font-weight: lighter;
    padding-left:8px ;
}

/* Social Icons */
.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social span { /* "Follow us" */
    margin-right: 5px;
    font-size: 18px;
}

.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: 20px;
    margin-top: 20px;
    color: #ffffff;
}




@media (max-width: 1200px) {

.footer-newsletter {
    
    /* padding-left: 50px; */
    /* On desktop, this will be to the left of the links */
    padding-left: 0px;
    width: 40%;
}
}
@media (max-width: 900px) {

.footer-newsletter {
    
    width: 50%;
    /* padding-left: 0px; */
    /* On desktop, this will be to the left of the links */
}
}


/* ------------------------- */
/* --- MOBILE STYLES --- */
/* ------------------------- */
@media (max-width: 768px) {
    footer {
        padding: 30px 20px 20px; /* Adjusted padding for mobile */
    }

    .footer-top {
        flex-direction: column; /* Stack newsletter and links vertically */
        gap: 0; /* Gap will be controlled by margins/dividers */
        margin-bottom: 0; /* Will be handled by divider */
    }

    .footer-newsletter {
        order: 1; /* Newsletter first */
        width: 100%;
        /* font-size: 16px; */
        max-width: none; /* Allow full width on mobile */
        margin-bottom: 0; /* Divider will create space */
    }

    /* First mobile-only divider: After Newsletter */
    /* Add <hr class="mobile-only-divider"> in HTML after .footer-newsletter div, before .footer-links div */
    /* If .footer-newsletter and .footer-links are direct children of .footer-top, this divider would be inside .footer-top too. */
    
    .footer-links {
        order: 2; /* Links second */
        flex-direction: column;
        gap: 0px; /* Space between each link like "About", "Contact" */
        /* width: 50%;  */
        align-items: flex-start; /* Left-align links as per image */
     /* Space from divider if divider is outside, or newsletter */
    }
    
    .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"] {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border: 1px solid white; /* Add border directly to input */
        border-radius: 5px; /* Rounded corners for input */
        text-align: left;
    }

    .newsletter-form button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border-radius: 5px; /* Rounded corners for button */
    }

    .newsletter-checkbox {
        font-size: 16px; /* Smaller text for checkbox line */
        margin-bottom: 0; /* Space controlled by upcoming divider */
    }
    .newsletter-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }


    /* --- Styling for ALL dividers on mobile --- */
    .footer-divider, /* Existing divider */
    .mobile-only-divider { /* New mobile-only dividers */
        display: block; /* Ensure they are visible */
        border-top: 1px solid #ffffff; /* Consistent thin line */
        margin: 15px 0; /* Consistent spacing */
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start; /* Align items to the start (left) */
        gap: 0; 
        justify-content: space-around;
        text-align: center;/* Space will be handled by dividers */
    }

    .footer-policies {
        flex-direction: row; /* Stack policy groups */
        align-items: flex-start; /* Left-align policy text */
        /* gap: 8px; Space between "Terms..." line and "Help..." line */
        /* /width: 100%; comment now......../ */
        justify-content: center;
        text-align: center;
    }

   
    /* Remove desktop pipe separator logic for mobile */
    .footer-policies a {
    /* position: relative;
    padding-right: 10px; space before the pipe */
    margin-right: 10px;  /* space after the pipe */
    /* border-right: 1px solid #ffffff; white pipe */
}



    .footer-social {
        width: 100%;
        margin-top: 0; /* Space handled by divider */
        gap: 15px; /* Increased gap for social icons */
        justify-content: center; /* Align "Follow us" and icons to the left */
    }
    .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; /* Space handled by preceding divider */
        padding-bottom: 10px; /* Some padding at the very bottom */
    }
}