/* =====================================================
   MOBILE FOOTER - Guaranteed Visibility
   Created to ensure footer is always visible on mobile
===================================================== */

/* Hide desktop footer on mobile, show mobile footer */
@media (max-width: 768px) {
    /* Hide the original desktop footer components */
    .footer-top-section,
    .pbmit-footer-wrapper {
        display: none !important;
    }
    
    /* Show mobile footer only */
    .footer-mobile-section {
        display: block !important;
        background: linear-gradient(135deg, #0a1628 0%, #1a2844 100%);
        padding: 40px 0 20px;
        position: relative;
        z-index: 10;
        margin-top: 50px;
        width: 100%;
    }
    
    .footer-mobile-content {
        text-align: center;
        padding: 0 20px;
    }
    
    .footer-mobile-section .pbmit-footer-logo {
        margin-bottom: 25px;
    }
    
    .footer-mobile-section .pbmit-footer-logo img {
        max-width: 120px;
        height: auto;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    }
    
    .footer-mobile-section .pbmit-footer-text {
        color: #e0e6ed;
        font-size: 15px;
        line-height: 1.7;
        margin: 20px auto 30px;
        max-width: 90%;
        font-weight: 300;
    }
    
    .footer-mobile-section .pbmit-social-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        list-style: none;
        padding: 0;
        margin: 0 0 30px 0;
        flex-wrap: wrap;
    }
    
    .footer-mobile-section .pbmit-social-links li {
        margin: 0;
    }
    
    .footer-mobile-section .pbmit-social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: #fff;
        font-size: 18px;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .footer-mobile-section .pbmit-social-links a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    }
    
    .footer-mobile-section .pbmit-social-facebook a:hover {
        background: #1877f2;
        border-color: #1877f2;
    }
    
    .footer-mobile-section .pbmit-social-youtube a:hover {
        background: #ff0000;
        border-color: #ff0000;
    }
    
    .footer-mobile-section .pbmit-social-instagram a:hover {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        border-color: #bc1888;
    }
    
    .footer-mobile-section .pbmit-social-linkedin a:hover {
        background: #0077b5;
        border-color: #0077b5;
    }
    
    .footer-mobile-section .pbmit-footer-copyright {
        color: #b0b8c3;
        font-size: 13px;
        padding-top: 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        line-height: 1.6;
    }
    
    .footer-mobile-section .pbmit-footer-copyright b {
        color: #fff;
        font-weight: 600;
    }
    
    /* Ensure footer copyright area is hidden on mobile */
    .pbmit-footer-text-area {
        display: none !important;
    }
}

/* Desktop - hide mobile footer, show desktop footer */
@media (min-width: 769px) {
    .footer-mobile-section {
        display: none !important;
    }
}

/* Force clear any floats before footer */
.site-footer::before {
    content: "";
    display: table;
    clear: both;
}

/* Ensure page wrapper allows footer to be visible */
@media (max-width: 768px) {
    .page-wrapper {
        overflow: visible !important;
        min-height: auto !important;
    }
    
    /* Ensure no section pushes footer off-screen */
    section {
        max-height: none !important;
    }
    
    /* Override any sticky/fixed positioning that might hide footer */
    body {
        padding-bottom: 0 !important;
    }
}
