/* 
 * COMPREHENSIVE FOOTER STYLING 
 * Consolidated from multiple files to reduce CSS size and improve performance
 */

/* Base styles for full viewport width */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Full-width footer styling */
.vh-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 3rem 0 !important;
    position: relative !important;
    display: block !important;
    clear: both !important;
    left: 0 !important;
    right: 0 !important;
}

/* Create full-width effect breaking out of containers */
.vh-footer::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    right: 50% !important;
    bottom: 0 !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    background-color: #212529 !important;
    z-index: -1 !important;
}

/* Unified footer selector targeting all footer variations */
footer,
footer.py-5.bg-dark.text-white.mt-auto,
footer.py-4.bg-dark.text-white,
footer#main-footer {
    background-color: #212529 !important;
    color: #fff !important;
    padding: 3rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    display: block !important;
    clear: both !important;
    margin: 0 !important;
    margin-top: 1rem !important; /* Small space above footer */
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
    position: relative;
    left: 0;
    right: 0;
}

footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: normal;
    color: #ffffff;
}

footer p {
    color: #ffffff !important;
    opacity: 0.8;
    line-height: 1.6;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    color: #0d6efd;
    text-decoration: none;
}

footer .text-info {
    color: #0dcaf0 !important;
}

footer .social-icons a {
    margin-right: 1rem;
    font-size: 1.25rem;
}

/* Basic footer styles to ensure all content is displayed properly */
footer {
    display: block !important;
    width: 100% !important;
    padding: 3rem 0 !important;
    margin-top: 0 !important;
    background-color: #212529 !important;
}

footer h5 {
    display: block !important;
    margin-bottom: 1rem !important;
    font-weight: 500 !important;
    font-size: 1.25rem !important;
}

footer .list-unstyled {
    display: block !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 1rem !important;
}

footer .list-unstyled li {
    display: block !important;
    margin-bottom: 0.5rem !important;
}

footer a.text-muted {
    display: inline-block !important;
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
}

footer a.text-muted:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Exact text positioning to match the red line */
footer .philippines-text {
    padding-right: 0 !important;
    margin-right: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* Remove right padding from column */
footer .row .col-md-6.text-md-end.pe-0 {
    padding-right: 0 !important;
}

/* Container adjustments to maintain consistency with design guidelines */
footer .container {
    max-width: 1320px !important;
    padding-right: 0 !important;
}

/* Ensure footer stays within width requirements in the modular design */
footer.py-5.bg-dark {
    overflow: hidden !important;
}

footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

footer address {
    font-style: normal;
}

footer .footer-divider {
    border-color: #444;
    margin: 2rem 0;
}

footer .copyright {
    text-align: center;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

footer .footer-container {
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
}

footer .footer-row {
    width: 100%;
    margin: 0;
}

/* Ensure all footer content has proper contrast */
footer p,
footer a,
footer .list-unstyled li a,
footer address p {
    color: #ffffff !important;
}

/* Icons in footer */
footer i.ri-links-line,
footer i.ri-building-line,
footer i.ri-customer-service-2-line,
footer i.ri-arrow-right-s-line,
footer i.ri-map-pin-line,
footer i.ri-mail-line,
footer i.ri-phone-line {
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    footer {
        padding: 2rem 0;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    footer .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
