/* ==============================================================================
   NAC PORTAL - OFFICIAL GIGW 3.0 FOOTER STYLESHEET
   Theme: Government Deep Blue (#002244) & Saffron Accent (#FF9933)
   ============================================================================== */

/* 1. Master Footer Container */
footer.gigw-footer,
.gigw-footer {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    background-color: #002244 !important; /* Matches the exact dark navy tone from image */
    color: #ffffff !important;
    margin-top: auto !important;
    padding: 0 !important;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 99 !important;
}

/* Ensure no child elements inherit unwanted white backgrounds */
.gigw-footer *,
.gigw-footer .container,
.gigw-footer .container-fluid,
.gigw-footer .row,
.gigw-footer div[class*="col-"] {
    background-color: transparent !important;
}

/* 2. Top Content Section (Matches 4-column layout in image) */
.gigw-footer .footer-top-section {
    padding: 40px 5% 30px 5% !important;
    background-color: #002244 !important;
}

/* 3. Section Headings (USEFUL LINKS, POLICY LINKS, REACH US) */
.gigw-footer .footer-heading {
    color: #FF9933 !important; /* Saffron Accent */
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 18px !important;
    padding-bottom: 6px !important;
    border-bottom: 2px solid #FF9933 !important;
    display: inline-block !important;
}

/* 4. Link Lists & Unbulleted Items */
.gigw-footer .footer-list {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.gigw-footer .footer-list li {
    list-style: none !important;
    margin-bottom: 10px !important;
}

.gigw-footer .footer-list a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: color 0.2s ease, opacity 0.2s ease !important;
    opacity: 0.9;
}

.gigw-footer .footer-list a:hover {
    color: #FF9933 !important;
    text-decoration: underline !important;
    opacity: 1;
}

.gigw-footer .footer-list a:focus-visible {
    outline: 2px solid #FF9933 !important;
    outline-offset: 3px !important;
}

/* 5. Contact Text & Email Links */
.gigw-footer .footer-text,
.gigw-footer .footer-text p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    margin-bottom: 10px !important;
}

.gigw-footer .footer-mail-link,
.gigw-footer a[href^="mailto:"] {
    color: #64b5f6 !important;
    text-decoration: none !important;
}

.gigw-footer .footer-mail-link:hover,
.gigw-footer a[href^="mailto:"]:hover {
    text-decoration: underline !important;
    color: #90caf9 !important;
}

/* 6. NIC Branding Section (Right aligned as seen in screenshot) */
.gigw-footer .nic-brand-container {
    text-align: right !important;
}

.gigw-footer .nic-brand {
    max-height: 38px !important;
    width: auto !important;
    filter: brightness(0) invert(1) !important;
    display: inline-block !important;
    margin-bottom: 6px !important;
}

.gigw-footer .managed-by-text {
    font-size: 12px !important;
    color: #cbd5e1 !important;
    line-height: 1.4 !important;
}

/* 7. Saffron Accent Line Divider */
.gigw-footer .footer-accent-line {
    height: 4px !important;
    background-color: #FF9933 !important;
    width: 100% !important;
    border: none !important;
    margin: 0 !important;
    display: block !important;
}

/* 8. Dark Navy Copyright Strip at Bottom */
.gigw-footer .footer-credit-bar {
    background-color: #001529 !important; /* Deep contrast bottom bar */
    padding: 12px 5% !important;
    font-size: 12px !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.gigw-footer .copyright-info {
    color: #ffffff !important;
}

.gigw-footer .copyright-info strong {
    color: #ffffff !important;
}

.gigw-footer .last-updated {
    color: #cbd5e1 !important;
}

/* 9. Visitor Counter Badge */
.gigw-footer .v-badge {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    font-size: 12px !important;
    vertical-align: middle !important;
    margin-left: 10px !important;
}

.gigw-footer .v-label {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 4px 8px !important;
}

.gigw-footer .v-digit {
    background: #ffffff !important;
    color: #000000 !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
}

/* 10. Responsive Tweaks */
@media (max-width: 992px) {
    .gigw-footer .nic-brand-container {
        text-align: left !important;
        margin-top: 20px !important;
    }
}

@media (max-width: 768px) {
    .gigw-footer .footer-credit-bar {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
}