/**
 * Footer – includes/footer.php (#bel-footer) ile eşleşir.
 * Hero’daki gibi bulanık / yarı saydam arka plan (backdrop-filter + overlay).
 */
/* Footer altında boşluk kalmasın */
html {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
#bel-anasayfa {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
/* Scroll-to-top butonu akışta yer kaplamasın (footer altı boşluğu önler) */
#scrollToTopBtn {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    margin: 0 !important;
    padding: 0 !important;
    border: none;
    background: transparent;
    cursor: pointer;
}
#scrollToTopBtn img {
    display: block;
    width: auto;
    height: 44px;
}

/* WhatsApp FAB ile çakışmasın: altta WhatsApp, hemen üstünde yukarı çık */
body:has(.contact-button) #scrollToTopBtn,
body.has-whatsapp-fab #scrollToTopBtn {
    bottom: 86px;
    right: 18px;
}

/* Hero’daki gibi: arka planda görsel + üzerinde koyu mavi overlay */
#bel-footer {
    position: relative;
    width: 100%;
    color: #fff;
    padding: 2.5rem 0 2.5rem 0;
    margin-top: 0;
    margin-bottom: 0 !important;
    overflow: hidden;
    background-color: #02345f; /* fallback */
    min-height: auto;
}
/* Arka plan görseli (hero ile aynı) – bulanık. Özel görsel varsa PHP’den .bel-footer-bg gelir, ::before gizlenir */
#bel-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.siverek.bel.tr/Content/assets/images/index-image.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    transform: scale(1.01);
}
#bel-footer.bel-footer-has-custom-bg::before {
    display: none;
}
.bel-footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
/* Hero’daki .slider-taban-opacity gibi koyu mavi katman */
#bel-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #02345f;
    opacity: 0.7;
    z-index: 1;
}
/* İçerik overlay’in üstünde */
#bel-footer .bel-tutucuwrap {
    position: relative;
    z-index: 2;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}
#bel-footer a {
    color: #fff;
    text-decoration: none;
}
#bel-footer a:hover {
    text-decoration: underline;
    opacity: 0.9;
}
#bel-footer .footer-flex-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
#bel-footer .footer-contack-icon {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.4;
}
#bel-footer .footer-contack-icon img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}
#bel-footer .footer-adress-flex.footer-contack-icon span {
    max-width: 100%;
}
#bel-footer .bel-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}
#bel-footer .bel-footer-social a img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
#bel-footer .bel-footer-social-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
#bel-footer .bel-footer-social-v2 a img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
# Quick compact contact block (small icons + social)
.footer-quick{
    display:flex;
    gap:12px;
    align-items:center;
    flex-wrap:wrap;
}
.footer-quick .quick-contact{
    display:flex;
    gap:8px;
    align-items:center;
    color:#fff;
    text-decoration:none;
    font-size:0.9rem;
}
.footer-quick .quick-contact img{
    width:20px;
    height:20px;
    object-fit:contain;
}
.footer-quick .social-small{
    display:flex;
    gap:8px;
    align-items:center;
}
.footer-quick .social-small img{
    width:24px;
    height:24px;
    object-fit:contain;
}
#bel-footer .footer-bize-ulasin {
    display: inline-block;
    background-color: #fff;
    color: #004784;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.2s, color 0.2s;
}
#bel-footer .footer-bize-ulasin:hover {
    background-color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* Eski menü (İngilizce) scrollbar – aynı dosyada kalabilir */
#en .menu-container .content #content-area ul::-webkit-scrollbar {
    width: 5px;
    background-color: transparent;
    border-radius: 10px;
}

#en .menu-container .content #content-area ul::-webkit-scrollbar-thumb {
    border-radius: 10px;
    border: 5px solid rgba(64, 150, 223, 1);
    background: linear-gradient(90deg, #004784 0%, #479FEB 10%);
}

#en .menu-container .content #content-area ul {
    max-height: 300px;
    display: flex;
    flex-direction: row;
    overflow: auto;
    margin-right: 7.5px;
    flex-wrap: wrap;
    padding-left: 0;
    padding-right: 15px;
}
#en .menu-container .content #content-area ul li {
    width:100%
}

#en .menu-container {
    max-width:900px;
}

/* Mobil Responsive CSS */
@media (max-width: 768px) {
    #bel-footer {
        padding: 1.5rem 0 !important;
    }
    
    #bel-footer .bel-tutucuwrap {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #bel-footer .footer-flex-col {
        margin-bottom: 1.5rem;
        align-items: center;
        text-align: center;
    }
    
    #bel-footer .footer-flex-col:last-child {
        margin-bottom: 0;
    }
    
    /* Atatürk resmi mobilde küçült */
    #bel-footer .footer-flex-col img.img-fluid {
        width: 200px !important;
        max-width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }
    
    /* İletişim ikonları mobilde düzenle */
    #bel-footer .footer-contack-icon {
        justify-content: center;
        text-align: center;
        margin-bottom: 0.75rem;
        font-size: 0.875rem;
    }
    
    #bel-footer .footer-contack-icon img {
        width: 20px;
        height: 20px;
    }
    
    #bel-footer .footer-adress-flex.footer-contack-icon {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    #bel-footer .footer-adress-flex.footer-contack-icon span {
        margin-top: 0.5rem;
        line-height: 1.5;
    }
    
    /* Sosyal medya ikonları mobilde düzenle */
    #bel-footer .bel-footer-social {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    #bel-footer .bel-footer-social a img {
        width: 32px;
        height: 32px;
    }
    
    /* Uygulama indirme linkleri mobilde düzenle - yan yana */
    #bel-footer .bel-footer-social-v2 {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    #bel-footer .bel-footer-social-v2 a img {
        height: 36px;
        width: auto;
    }
    
    /* Bize Ulaşın butonu mobilde yan yana değil altında */
    #bel-footer .bel-footer-social-v2 .footer-bize-ulasin {
        width: 100%;
        margin-top: 0.75rem;
    }
    
    /* Bize Ulaşın butonu mobilde düzenle */
    #bel-footer .footer-bize-ulasin {
        width: 100%;
        text-align: center;
        padding: 0.625rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    /* Scroll to top butonu mobilde küçült */
    #scrollToTopBtn {
        bottom: 15px;
        right: 15px;
    }
    
    #scrollToTopBtn img {
        height: 36px;
    }

    body:has(.contact-button) #scrollToTopBtn,
    body.has-whatsapp-fab #scrollToTopBtn {
        bottom: 86px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    #bel-footer {
        padding: 1.25rem 0 !important;
    }
    
    #bel-footer .footer-flex-col img.img-fluid {
        width: 160px !important;
    }
    
    #bel-footer .footer-contack-icon {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }
    
    #bel-footer .footer-contack-icon img {
        width: 18px;
        height: 18px;
    }
    
    #bel-footer .bel-footer-social a img {
        width: 28px;
        height: 28px;
    }
    
    #bel-footer .bel-footer-social-v2 {
        gap: 0.4rem;
    }
    
    #bel-footer .bel-footer-social-v2 a img {
        height: 32px;
    }
    
    /* Bize Ulaşın butonu küçük ekranlarda */
    #bel-footer .bel-footer-social-v2 .footer-bize-ulasin {
        margin-top: 0.5rem;
    }
    
    #bel-footer .footer-bize-ulasin {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }
    
    #scrollToTopBtn {
        bottom: 12px;
        right: 12px;
    }
    
    #scrollToTopBtn img {
        height: 32px;
    }

    body:has(.contact-button) #scrollToTopBtn,
    body.has-whatsapp-fab #scrollToTopBtn {
        bottom: 86px;
        right: 12px;
    }
}

/* Küçük ekranda WhatsApp 56px; yukarı çık onun üstünde */
@media (max-width: 480px) {
    body:has(.contact-button) #scrollToTopBtn,
    body.has-whatsapp-fab #scrollToTopBtn {
        bottom: 76px;
        right: 12px;
    }
}