/**
 * Footer Styles - UPA TIK UNTAD
 * Optimized for Navy Theme & 4 Column Widget Integration
 */

.site-footer {
    background: #001f3f; 
    color: #ffffff;
    padding: 80px 0 0;
    font-family: 'Inter', sans-serif;
    position: relative;
    width: 100%;
}

/* Penyesuaian Grid Desktop - Menjadi 4 Kolom Seimbang */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr; /* Penyesuaian proporsi 4 kolom */
    gap: 30px;
    padding-bottom: 50px;
    align-items: start;
}

/* --- 1. LOGO & ABOUT --- */
.footer-logo img {
    max-width: 140px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* --- 2. TYPOGRAPHY & WIDGET TITLES --- */
/* Menambahkan selector .widgettitle agar sinkron dengan widget bawaan WP */
.footer-title, 
.footer-widget .widget-title,
.footer-widget h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid #2ecc71; /* Aksen Hijau UPA TIK */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1.2;
}

.footer-links,
.footer-widget ul {
    list-style: none;
    padding: 0; 
    margin: 0;
}

.footer-links li,
.footer-widget ul li { margin-bottom: 12px; }

.footer-links a,
.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links a:hover,
.footer-widget ul li a:hover {
    color: #2ecc71;
    padding-left: 8px;
}

/* --- 3. NEWSLETTER --- */
.newsletter-form-wrapper {
    margin-top: 10px;
}

#upa-newsletter-form .form-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#upa-newsletter-form .form-group:focus-within {
    border-color: #2ecc71;
    background: rgba(255, 255, 255, 0.1);
}

#upa-newsletter-form input.form-control {
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 10px 15px !important;
    outline: none !important;
    flex: 1;
}

#upa-newsletter-form button {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#upa-newsletter-form button:hover {
    background: #27ae60;
}

/* --- 4. MAP & LOCATION INTEGRATION (UNIVERSAL STYLE) --- */
.footer-map-wrapper,
.info-block-map-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important; /* Sudut melengkung lebih modern */
    overflow: hidden !important;
    line-height: 0 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 15px !important;
    background: #fff;
}

/* Pengaturan Iframe agar pas di Footer maupun Page */
.footer-map-wrapper iframe,
.info-block iframe {
    filter: grayscale(0.1) contrast(1.05); /* Sedikit filter agar elegan */
    width: 100% !important;
    border: none !important;
    display: block !important;
}

/* Tinggi Peta Spesifik: Footer (Pendek) vs Page (Tinggi) */
.footer-map-wrapper iframe {
    height: 150px !important; 
}

.info-block iframe {
    height: 400px !important; 
}

.map-address {
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.6) !important;
    line-height: 1.5 !important;
    margin-top: 10px;
}

/* Efek Hover Universal */
.footer-map-wrapper:hover,
.info-block-map-wrapper:hover {
    border-color: #2ecc71 !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.2) !important;
}

/* --- RESPONSIVE FIX UNTUK MAPS --- */
@media screen and (max-width: 768px) {
    .info-block iframe {
        height: 250px !important; /* Peta di halaman kontak mengecil di HP */
    }
    
    .footer-map-wrapper {
        margin-top: 20px !important;
    }
}

/* --- 5. SOCIALS --- */
.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;      
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: #2ecc71;
    color: #001f3f;
    transform: scale(1.1);
}

/* --- 6. FOOTER BOTTOM --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 40px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Responsif untuk Tablet dan Mobile */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* --- 5. VISITOR STATS STYLE --- */
.footer-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-stats i {
    color: #2ecc71; /* Warna hijau biar kontras */
}

.footer-stats strong {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 5px;
}

/* Poles Statistik agar lebih jelas */
.footer-visitor-stats {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-visitor-stats strong {
    color: #2ecc71 !important; /* Warna hijau agar menonjol */
    font-size: 1rem;
}