.main-footer {
    /* Background Image setup */
    background-image: linear-gradient(rgba(239, 239, 239, 0.92), rgba(239, 239, 239, 0.92)), 
                      url('../uploads/batanggapan.png'); 
    background-color: #efefef;
    background-repeat: no-repeat;
    background-position: center; 
    background-size: 450px;
    
    padding: 30px 0;
    width: 100%;
    border-top: 1px solid #ddd;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 900px !important; 
    margin: 0 auto !important;
    display: grid !important;
    /* Desktop layout */
    grid-template-columns: 100px 100px 1.2fr 1fr 1fr !important; 
    gap: 20px !important; 
    padding: 0 20px !important;
    text-align: left !important;
    align-items: start !important;
}

.footer-col {
    text-align: left !important;
    display: block !important;
}

/* Seals / Logos styling */
.logo-col img {
    max-width: 85px !important;
    height: auto !important;
    display: block !important;
    margin-top: 5px;
}

.footer-col h3 {
    font-size: 0.8rem !important;
    font-weight: bold !important;
    margin-bottom: 12px !important;
    color: #333 !important;
    text-transform: uppercase !important;
}

.footer-col p {
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.footer-links li {
    display: block !important;
    margin-bottom: 6px !important;
}

.footer-links a {
    text-decoration: none !important;
    color: #333 !important;
    font-size: 0.75rem !important;
    display: inline-block !important;
}

.footer-links a:hover {
    text-decoration: underline !important;
}

/* ================================================
   MOBILE RESPONSIVE BREAKPOINT
   ================================================ */
@media (max-width: 768px) {
    .main-footer {
        padding: 24px 0;
        background-size: 280px; /* Adjust watermark size for mobile */
    }

    .footer-container {
        /* Single column layout for mobile */
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        text-align: center !important;
        padding: 0 16px !important;
    }

    .footer-col {
        text-align: center !important;
    }

    /* Wrap seals horizontally side-by-side on mobile */
    .footer-col.logo-col {
        display: inline-block !important;
        margin: 0 8px;
    }

    /* Center both logo columns in a single row */
    .footer-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Keep content columns full width */
    .footer-col:not(.logo-col) {
        width: 100% !important;
    }

    .logo-col img {
        margin: 0 auto !important;
        max-width: 75px !important; /* Slightly smaller seal for phone screens */
    }
}