/* Main Footer Responsive - Tablet & Mobile */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 50px 5% 30px;
    }

    .newsletter-section {
        margin-bottom: 40px;
        max-width: 100%;
    }

    .newsletter-form {
        display: flex;
        flex-direction: row;
        /* Keep pill shape */
        background: #E8EDF0;
        border-radius: 50px;
        padding: 5px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        align-items: center;
    }

    .newsletter-form input {
        flex: 1;
        background: transparent;
        padding: 10px 15px;
        font-size: 14px;
        text-align: left;
        border: none;
        outline: none;
        color: #333;
    }

    .newsletter-form button {
        padding: 8px 18px;
        font-size: 14px;
        background: #FFFFFF;
        color: #1a2a32;
        border-radius: 40px;
        font-weight: 700;
        border: none;
        white-space: nowrap;
        margin-left: 5px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px 20px;
        /* Tightened vertical gap */
        text-align: left;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-col h4 {
        font-size: 20px;
        margin-bottom: 6px;
        /* Tightened header spacing */
        font-family: 'Forum', serif;
        /* Image shows a more serif-like title */
        font-weight: 400;
    }

    .footer-col p,
    .footer-col a {
        font-size: 15px;
        margin-bottom: 2px;
        /* Minimal gap between links */
        line-height: 3;
        color: rgba(255, 255, 255, 0.85);
    }

    .footer-col a:hover {
        text-decoration: underline;
    }

    .footer-contact-btn {
        padding: 10px 22px;
        font-size: 15px;
        margin-top: 15px;
        margin-bottom: 5px;
        border: 1.5px solid #FFFFFF;
        border-radius: 8px;
        background: transparent;
        color: #FFFFFF;
        display: inline-block;
        text-decoration: none;
        font-weight: 600;
    }

    .social-links {
        justify-content: flex-start;
        gap: 20px;
        /* Balanced spacing between icons */
        margin-top: 5px;
    }

    .social-links a {
        background: none;
        width: auto;
        height: auto;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
        color: #FFFFFF;
    }

    .social-links a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-3px);
    }

    .social-links a svg {
        width: 20px;
        height: 20px;
    }

    /* Specific spacing for sections that follow other content */
    .footer-col h4:not(:first-child) {
        margin-top: 5px;
        /* Close the gap between sections in the same column */
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px 15px;
    }

    .newsletter-form input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .newsletter-form button {
        padding: 6px 14px;
        font-size: 13px;
    }
}