/* ==========================================================================
   DFSL Elite Footer Engine - Fixed Isolation Standard
   ========================================================================== */

/* Main layout wrapper */
.footer {
    box-sizing: border-box !important;
    width: 100% !important;
    background: #ffffff !important;
    border-top: 4px solid #d4af37 !important; /* Top gold trust identity bar */
    padding: 50px 0 0 0 !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    float: left !important; /* Forces layout tracking inside parent canvas */
    position: relative !important;
}

.footer .page {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* Master Flex Grid Architecture */
.footer .footer-con {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 20px !important;
    float: none !important; /* Resets legacy buggy float engines */
}

/* 4-Column Core Distribution */
.footer .box.size_25 {
    flex: 1 !important;
    min-width: 230px !important;
    box-sizing: border-box !important;
    padding: 10px !important;
    float: none !important;
}

.footer .box .box-con {
    width: 100% !important;
    float: none !important;
}

/* Logo Sizing Control */
.footer .box .box-con .footer-logo img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 75px !important;
    object-fit: contain !important;
    display: block !important;
    float: none !important;
}

/* ==========================================================================
   FIX: Heading Line Structure (Isolated via specific pseudo block)
   ========================================================================== */
.footer .box .box-con h2 {
    color: #0c2340 !important; /* Deep Corporate Navy */
    font-size: 1.05rem !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin: 0 0 22px 0 !important;
    padding: 0 0 10px 0 !important;
    letter-spacing: 0.5px !important;
    border-bottom: none !important; /* Removes dynamic line bleed leakage */
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

/* Precision line controller under titles */
.footer .box .box-con h2::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 35px !important; /* Perfect short lock matching wireframe */
    height: 3px !important;
    background-color: #1d70b8 !important; /* Crisp target highlight blue line */
    display: block !important;
}

/* ==========================================================================
   FIX: Navigation Links Alignment Structure
   ========================================================================== */
.footer .box .box-con ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    float: none !important;
    text-align: left !important;
}

.footer .box .box-con ul li {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Perfect Row Aligner for Icons + Text */
.footer .box .box-con ul li a {
    color: #334155 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    display: inline-flex !important; /* Enforces element flow containment */
    align-items: center !important;  /* Perfectly aligns icon and text vertically */
    justify-content: flex-start !important;
    width: auto !important;
    padding: 2px 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Micro-Icons Mapping Adjustments */
.footer .box .box-con ul li a i {
    color: #d4af37 !important; /* Balanced Gold Core color */
    font-size: 0.85rem !important;
    margin-right: 10px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: transform 0.2s ease !important;
}

/* Micro-interaction Hover Logic */
.footer .box .box-con ul li a:hover {
    color: #1d70b8 !important;
    padding-left: 5px !important;
}

.footer .box .box-con ul li a:hover i {
    transform: translateX(3px) !important;
}

/* ==========================================================================
   Bottom Metadata Ribbon Standard
   ========================================================================== */
.footer .bottom-footer {
    width: 100% !important;
    background: #f8fafc !important; /* Subtle divider accent tone separating page elements */
    border-top: 1px solid #e2e8f0 !important;
    margin-top: 45px !important;
    padding: 25px 0 !important;
    float: left !important;
    box-sizing: border-box !important;
}

.footer .right-bottom-footer {
    width: 100% !important;
    padding: 0 !important;
    float: left !important;
}

.footer .right-bottom-footer p {
    font-size: 0.82rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    text-align: center !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    font-weight: 400 !important;
    letter-spacing: 0.2px !important;
}

.footer .right-bottom-footer p:last-child {
    margin-bottom: 0 !important;
}

.footer .dev-author-signature a {
    color: #1d70b8 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.footer .dev-author-signature a:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   Responsive Logic Engine Controls (Breakpoints overrides)
   ========================================================================== */
@media (max-width: 992px) {
    .footer .box.size_25 {
        flex: calc(50% - 20px) !important; /* Converts beautifully into dual column pairs on smaller tablets */
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 40px 0 0 0 !important;
    }
    .footer .box.size_25 {
        flex: 1 1 100% !important; /* Unified stack grid rule on high density configurations */
        text-align: center !important;
    }
    .footer .box .box-con h2::after {
        left: 50% !important;
        transform: translateX(-50%) !important; /* Fine centers text underlines metrics */
    }
    .footer .box .box-con ul {
        text-align: center !important;
    }
    .footer .box .box-con ul li a {
        justify-content: center !important;
    }
}