/* ============================================
   FOOTER TEXT VISIBILITY FIX
   Global Drishti WordPress Site
   ============================================ */

/* Footer Container - Improve contrast */
footer,
[class*="footer"],
.site-footer,
.footer-widget-area,
.footer-bottom,
.elementor-section-wrap > section:last-child {
    background: #001a4d !important;
    color: #ffffff !important;
}

/* Footer Text - Make visible */
footer p,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer span,
footer div,
[class*="footer"] p,
[class*="footer"] h1,
[class*="footer"] h2,
[class*="footer"] h3,
[class*="footer"] h4,
[class*="footer"] h5,
[class*="footer"] h6,
[class*="footer"] span,
[class*="footer"] div,
.site-footer p,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer span,
.site-footer div {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Footer Links */
footer a,
[class*="footer"] a,
.site-footer a,
.footer-widget-area a {
    color: #64b5f6 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

footer a:hover,
[class*="footer"] a:hover,
.site-footer a:hover,
.footer-widget-area a:hover {
    color: #ffeb3b !important;
    text-decoration: underline !important;
}

/* Footer Nav Links - Override */
.footer-links a {
    color: #7EC8E3 !important;
    font-weight: 500 !important;
}

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

/* Footer Heading */
footer h1,
footer h2,
[class*="footer"] h1,
[class*="footer"] h2,
.site-footer h1,
.site-footer h2,
.footer-widget-area h2 {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    margin-bottom: 15px !important;
}

/* Footer Copyright Text */
.copyright,
.site-info,
[class*="copyright"],
[class*="site-info"],
footer .copyright,
footer .site-info,
[class*="footer"] .copyright,
[class*="footer"] .site-info {
    color: #b3b3b3 !important;
    font-size: 12px !important;
    text-align: center !important;
    padding: 15px 0 !important;
    border-top: 1px solid #333333 !important;
}

/* Footer Widget Area */
.footer-widget-area,
.footer-widgets,
[class*="footer-widget"],
footer .widget-area,
footer .widgetized-footer {
    background: #001a4d !important;
    color: #ffffff !important;
}

.footer-widget-area .widget,
.footer-widgets .widget,
[class*="footer-widget"] .widget,
footer .widget-area .widget,
footer .widgetized-footer .widget {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
}

.footer-widget-area .widget h3,
.footer-widgets .widget h3,
[class*="footer-widget"] .widget h3,
footer .widget-area .widget h3,
footer .widgetized-footer .widget h3 {
    color: #ffffff !important;
    font-size: 16px !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
}

/* Footer Lists */
footer ul,
footer ol,
[class*="footer"] ul,
[class*="footer"] ol,
.site-footer ul,
.site-footer ol,
.footer-widget-area ul,
.footer-widget-area ol {
    color: #ffffff !important;
}

footer li,
[class*="footer"] li,
.site-footer li,
.footer-widget-area li {
    color: #ffffff !important;
    margin-bottom: 8px !important;
}

footer li a,
[class*="footer"] li a,
.site-footer li a,
.footer-widget-area li a {
    color: #64b5f6 !important;
}

footer li a:hover,
[class*="footer"] li a:hover,
.site-footer li a:hover,
.footer-widget-area li a:hover {
    color: #ffeb3b !important;
}

/* Global Drishti Footer Branding */
footer .site-title,
footer .site-description,
[class*="footer"] .site-title,
[class*="footer"] .site-description,
.site-footer .site-title,
.site-footer .site-description {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Footer Background Gradient */
footer,
[class*="footer"],
.site-footer {
    background: linear-gradient(135deg, #001a4d 0%, #003366 100%) !important;
}

/* Remove any dark text styles in footer */
footer {
    color: #ffffff !important;
}

footer * {
    color: #ffffff !important;
}

footer a {
    color: #64b5f6 !important;
}

/* Elementor Footer Fixes */
.elementor-element[data-element_type="footer"] *,
.elementor-element[data-element_type="section"] > .elementor-container > .elementor-column:last-child * {
    color: #ffffff !important;
}

/* High Contrast - Improve readability */
footer p {
    line-height: 1.6 !important;
    font-size: 14px !important;
}

/* Footer Divider/Separator */
footer hr,
footer .divider,
[class*="footer"] hr,
[class*="footer"] .divider,
.site-footer hr,
.site-footer .divider {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Ensure footer icons are visible */
footer .icon,
footer i,
footer [class*="icon"],
[class*="footer"] .icon,
[class*="footer"] i,
[class*="footer"] [class*="icon"],
.site-footer .icon,
.site-footer i,
.site-footer [class*="icon"] {
    color: #64b5f6 !important;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    footer h1,
    footer h2,
    [class*="footer"] h1,
    [class*="footer"] h2,
    .site-footer h1,
    .site-footer h2 {
        font-size: 18px !important;
    }

    footer p,
    [class*="footer"] p,
    .site-footer p {
        font-size: 12px !important;
    }

    .footer-widget-area .widget,
    .footer-widgets .widget,
    [class*="footer-widget"] .widget {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
}

/* Print Styles */
@media print {
    footer,
    [class*="footer"],
    .site-footer {
        background: #ffffff !important;
        color: #000000 !important;
    }

    footer a,
    [class*="footer"] a,
    .site-footer a {
        color: #0000ff !important;
    }
}
