/* ===============================
   FOOTER STYLES - UNMI Bogor
   ABSOLUTE STYLES - NO OVERRIDE
   =============================== */

/* Force footer styles with !important to prevent conflicts */
#footer-container .footer,
.footer {
    background: linear-gradient(to right, white, orange) !important; /* ⬅ warna kembali */
    color: #1a237e !important;
    font-weight: bold !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ===============================
   LANDSCAPE MODE OPTIMIZATION
   =============================== */
@media (orientation: landscape) and (max-width: 900px) {
    #footer-container .footer,
    .footer {
        padding: 15px !important; /* Padding lebih kecil untuk landscape */
        gap: 8px !important; /* Gap lebih kecil */
    }
    
    #footer-container .footer-logo,
    .footer-logo {
        width: 18% !important; /* Logo lebih kecil */
        min-width: 150px !important; /* Min width lebih kecil */
    }
    
    #footer-container .contact-info,
    .contact-info {
        width: 80% !important; /* Lebar lebih besar */
        margin-top: 15px !important; /* Margin top lebih kecil */
        gap: 8px !important; /* Gap antar section lebih kecil */
    }
    
    #footer-container .footer-section,
    .footer-section {
        min-width: 150px !important; /* Min width lebih kecil */
        padding: 8px !important; /* Padding lebih kecil */
    }
    
    #footer-container .section-title,
    .section-title {
        font-size: 1.3em !important; /* Font size lebih kecil */
        margin-bottom: 12px !important; /* Margin bottom lebih kecil */
    }
    
    #footer-container .footer-section p,
    #footer-container .footer-link,
    .footer-section p,
    .footer-link {
        margin: 8px 0 !important; /* Margin lebih kecil */
        font-size: 0.9em !important; /* Font size lebih kecil */
    }
    
    #footer-container .map-container,
    #footer-container .footer-section iframe,
    .map-container,
    .footer-section iframe {
        height: 120px !important; /* Height lebih kecil */
        margin-top: 8px !important; /* Margin top lebih kecil */
    }
    
    #footer-container .social-media-section,
    .social-media-section {
        margin-top: 8px !important; /* Margin top lebih kecil */
        padding: 3px 0 !important; /* Padding lebih kecil */
    }
    
    #footer-container .social-media-icon,
    .social-media-icon {
        width: 28px !important; /* Size lebih kecil */
        height: 28px !important; /* Size lebih kecil */
        margin: 0 3px !important; /* Margin lebih kecil */
    }
    
    #footer-container .social-media-img,
    .social-media-img {
        width: 16px !important; /* Size lebih kecil */
        height: 16px !important; /* Size lebih kecil */
    }
}

/* Logo - Force styles */
#footer-container .footer-logo,
.footer-logo {
    width: 20% !important;
    min-width: 200px !important;
    height: auto !important;
}

/* Info - Force styles */
#footer-container .contact-info,
.contact-info {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 77% !important;
    margin-top: 20px !important;
}

/* Section - Force styles */
#footer-container .footer-section,
.footer-section {
    flex: 1 !important;
    min-width: 200px !important;
    padding: 10px !important;
    text-align: left !important;
}

#footer-container .section-title,
.footer-section .section-title {
    font-weight: bold !important;
    font-size: 1.5em !important;
    border-bottom: 3px solid #1a237e !important;
    padding-bottom: 5px !important;
    margin-bottom: 15px !important;
    color: #1a237e !important;
}

#footer-container .footer-section p,
#footer-container .footer-link,
.footer-section p,
.footer-link {
    font-weight: bold !important;
    color: #1a237e !important;
    margin: 10px 0 !important;
    line-height: 1.4 !important;
}

#footer-container .footer-link a,
.footer-link a {
    color: #1a237e !important;
    text-decoration: none !important;
}

#footer-container .footer-link a:hover,
.footer-link a:hover {
    text-decoration: underline !important;
}

/* Map - Force styles */
#footer-container .map-container,
#footer-container .footer-section iframe,
.map-container,
.footer-section iframe {
    width: 100% !important;
    height: 150px !important;
    border: 0 !important;
    margin-top: 10px !important;
}

/* Sosmed - Force styles */
#footer-container .social-media-section,
.social-media-section {
    width: 100% !important;
    text-align: center !important;
    margin-top: 10px !important;
    padding: 5px 0 !important;
}

#footer-container .social-media-icon,
.social-media-icon {
    margin: 0 5px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: #00000010 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#footer-container .social-media-icon:hover,
.social-media-icon:hover {
    background: #e0e0e0 !important;
}

#footer-container .social-media-img,
.social-media-img {
    width: 18px !important;
    height: 18px !important;
}

/* Responsive - Force styles */
@media (max-width: 768px) {
    #footer-container .footer,
    .footer {
        flex-direction: column !important;
        align-items: center !important;
    }

    #footer-container .footer-logo,
    .footer-logo {
        width: 60% !important;
        margin: 0 auto !important;
    }

    #footer-container .contact-info,
    .contact-info {
        width: 100% !important;
        flex-direction: column !important;
        margin-top: 0 !important;
    }

    #footer-container .footer-section,
    .footer-section {
        width: 100% !important;
        border-bottom: 1px solid #e0e0e0 !important;
    }

    #footer-container .footer-section:last-child,
    .footer-section:last-child {
        border-bottom: none !important;
    }

    #footer-container .social-media-section,
    .social-media-section {
        margin-top: 15px !important;
    }
}

/* ===============================
   ADDITIONAL ISOLATION STYLES
   =============================== */

/* Prevent any other CSS from affecting footer */
#footer-container *,
.footer * {
    box-sizing: border-box !important;
}

/* Override any conflicting styles from other CSS files */
#footer-container .section-title,
.footer .section-title {
    /* Override any section-title styles from berita-page.css */
    color: #1a237e !important;
    border-bottom: 3px solid #1a237e !important;
    background: none !important;
    padding-bottom: 5px !important;
    margin-bottom: 15px !important;
    font-size: 1.5em !important;
    font-weight: bold !important;
    display: inline-block !important;
    position: static !important;
}

#footer-container .section-title::after,
.footer .section-title::after {
    /* Remove any pseudo-elements from other CSS */
    display: none !important;
}

/* Ensure footer links don't inherit other styles */
#footer-container a,
.footer a {
    text-decoration: none !important;
    color: inherit !important;
}

#footer-container a:hover,
.footer a:hover {
    text-decoration: underline !important;
}

/* Force footer container isolation */
#footer-container {
    position: relative !important;
    z-index: 1000 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Prevent footer from inheriting page styles */
#footer-container .footer {
    margin: 0 !important;
    padding: 20px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}
