/* ✅ Footer Base */
footer {
    background: #fbfbfb;
    color: #000000;
    padding: 10px 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

/* ✅ Footer Layout */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch; 
    width: 100%;
    gap: 20px;
}

.footer-section {
    flex: 1 1 180px; 
    min-width: 160px;
    max-width: 220px; 
}

.footer-section h3 {
    margin-bottom: 10px;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: bold;
}

.footer-section p,
.footer-section a {
    margin: 5px 0;
    color: #000000;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    text-decoration: underline;
    color: #90caf9;
}

/* ✅ Newsletter Inline Form */
.footer-section .newsletter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap; 
    max-width: 350px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.footer-section .newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px;
    border: none;
    font-size: 14px;
    outline: none;
    color: #333;
    width: calc(100% - 120px);
}

.footer-section .newsletter-form button {
    background-color: #2e7d32;
    color: #ffffff;
    padding: 10px 16px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 100px;
}

.footer-section .newsletter-form button:hover {
    background-color: #1b5e20;
}

/* ✅ Social + Payment Wrapper */
.social-payment-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
    width: 100%;
}

.social-payment-wrapper > .footer-sub {
    flex: 1;
}

/* Social Section -> aligned left */
.social-section {
    text-align: left;
}

/* Payment Section -> aligned right */
.payment-section {
    text-align: right;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    margin-top: 10px;
}

.social-icons a {
    color: #000;
    font-size: 32px; /* Increased base size */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #053291;
    transform: scale(1.2); /* Grow effect */
}

/* Payment Icons */
.payment-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: nowrap; /* 🔒 stay in one line */
    overflow-x: auto;  /* allow scroll if too small screen */
}

.payment-icons img {
    width: 70px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0; /* prevent shrinking weirdly */
}

/* Headings inside Social + Payment */
.social-section h3 {
    text-align: left;   /* Force left alignment */
    margin: 0;
}

.payment-section h3 {
    text-align: right;  /* Force right alignment */
    margin: 0;
}

/* ✅ Bottom Section (Copyright) */
.bottom-section {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #555;
    padding: 10px 20px;
}

/* 📱 Responsive Adjustments */
@media (max-width: 768px) {
    .bottom-section {
        font-size: 12px;
        padding: 8px 15px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .bottom-section {
        font-size: 11px;
        padding: 6px 10px;
        margin-top: 10px;
    }
}


/* ✅ Responsive Adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin: 10px 0;
    }

    /* Newsletter stacked on mobile */
    .footer-section .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }

    .footer-section .newsletter-form input[type="email"],
    .footer-section .newsletter-form button {
        width: 100%;
        border-radius: 0;
    }

    .footer-section .newsletter-form button {
        border-top: 1px solid #ccc;
    }

    /* ✅ Keep socials + payment inline on mobile */
    .social-payment-wrapper {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .payment-icons {
        justify-content: flex-end;
        gap: 10px;
        overflow-x: auto; /* if too many logos, scroll instead of breaking */
    }
}
