/* Text Visibility Fix - Remove Muted Text Issues */

/* Override all muted text to be more visible */
.text-muted {
    color: #E8E8E8 !important;
}

small.text-muted,
.small.text-muted {
    color: #E8E8E8 !important;
}

/* Ensure all paragraph text is visible */
p {
    color: #E8E8E8 !important;
}

/* Card text should be visible */
.card-text {
    color: #E8E8E8 !important;
}

/* List items should be visible */
li {
    color: #E8E8E8 !important;
}

/* Ensure all text in cards is visible */
.card p,
.card li,
.card span:not([class*="badge"]) {
    color: #E8E8E8 !important;
}

/* Portfolio card text */
.portfolio-card p,
.portfolio-card .text-muted {
    color: #E8E8E8 !important;
}

/* Service card descriptions */
.service-card p,
.service-card .text-muted {
    color: #E8E8E8 !important;
}

/* Process step descriptions */
.process-step p,
.process-step .text-muted {
    color: #E8E8E8 !important;
}

/* Blog card text */
.blog-card p,
.blog-card .text-muted {
    color: #E8E8E8 !important;
}

/* Testimonial text */
.testimonial-card p,
.testimonial-card .text-muted {
    color: #E8E8E8 !important;
}

/* Contact information text */
.contact-info p,
.contact-info .text-muted {
    color: #E8E8E8 !important;
}

/* Override any remaining muted text in specific contexts */
section p,
section li,
section span:not([style*="background"]):not([class*="badge"]) {
    color: #E8E8E8 !important;
}

/* Pricing card small text */
.pricing-card small,
.pricing-card .text-muted {
    color: #E8E8E8 !important;
}

/* FAQ text */
.faq p,
.faq .text-muted {
    color: #E8E8E8 !important;
}

/* Timeline text */
.timeline p,
.timeline .text-muted {
    color: #E8E8E8 !important;
}

/* Feature list text */
.feature-list p,
.feature-list li,
.feature-list .text-muted {
    color: #E8E8E8 !important;
}

/* Ensure text in different section backgrounds */
.bg-light p,
.bg-light li,
.bg-light .text-muted {
    color: #E8E8E8 !important;
}

.bg-white p,
.bg-white li,
.bg-white .text-muted {
    color: #E8E8E8 !important;
}

/* Exception: Text on lime green backgrounds should be black */
.bg-primary p,
.bg-primary li,
.bg-primary .text-muted,
.bg-primary small,
[style*="background: #d3df37"] p,
[style*="background: #d3df37"] li,
[style*="background: #d3df37"] .text-muted,
[style*="background: #d3df37"] small {
    color: #000000 !important;
}

/* Accordion body text */
.accordion-body p,
.accordion-body li,
.accordion-body .text-muted {
    color: #E8E8E8 !important;
}

/* Modal body text */
.modal-body p,
.modal-body li,
.modal-body .text-muted {
    color: #E8E8E8 !important;
}

/* Dropdown text */
.dropdown-menu p,
.dropdown-menu li,
.dropdown-menu .text-muted {
    color: #E8E8E8 !important;
}

/* Offcanvas text */
.offcanvas-body p,
.offcanvas-body li,
.offcanvas-body .text-muted {
    color: #E8E8E8 !important;
}

/* Toast text */
.toast-body p,
.toast-body .text-muted {
    color: #E8E8E8 !important;
}

/* Popover text */
.popover-body p,
.popover-body .text-muted {
    color: #E8E8E8 !important;
}

/* Tooltip text */
.tooltip-inner {
    color: #FFFFFF !important;
}

/* Alert text */
.alert p,
.alert .text-muted {
    color: inherit !important;
}

/* Table text */
.table td,
.table th {
    color: #E8E8E8 !important;
}

/* Form help text */
.form-text,
.form-help {
    color: #E8E8E8 !important;
}

/* Validation feedback */
.valid-feedback,
.invalid-feedback {
    color: inherit !important;
}

/* Breadcrumb text (except on lime backgrounds) */
.breadcrumb-item {
    color: #E8E8E8 !important;
}

.bg-primary .breadcrumb-item {
    color: rgba(0, 0, 0, 0.7) !important;
}

/* Pagination text */
.page-link {
    color: #E8E8E8 !important;
}

/* Progress bar text */
.progress-bar {
    color: #000000 !important;
}

/* Badge text (context-aware) */
.badge {
    color: #000000 !important;
}

.badge.bg-dark,
.badge.bg-secondary {
    color: #FFFFFF !important;
}

/* List group text */
.list-group-item {
    color: #E8E8E8 !important;
}

/* Nav text */
.nav-link {
    color: #E8E8E8 !important;
}

.nav-link:hover,
.nav-link:focus {
    color: #d3df37 !important;
}

/* Tab content text */
.tab-content p,
.tab-content li,
.tab-content .text-muted {
    color: #E8E8E8 !important;
}

/* Carousel caption text */
.carousel-caption p,
.carousel-caption .text-muted {
    color: #FFFFFF !important;
}

/* Footer text */
footer p,
footer li,
footer .text-muted,
footer small {
    color: #E8E8E8 !important;
}

/* Sidebar text */
.sidebar p,
.sidebar li,
.sidebar .text-muted {
    color: #E8E8E8 !important;
}

/* Article text */
article p,
article li,
article .text-muted {
    color: #E8E8E8 !important;
}

/* Section text */
section p,
section li,
section .text-muted {
    color: #E8E8E8 !important;
}

/* Override for lime backgrounds */
section.bg-primary p,
section.bg-primary li,
section.bg-primary .text-muted,
.bg-primary section p,
.bg-primary section li,
.bg-primary section .text-muted {
    color: #000000 !important;
}

/* Ensure readability in all contexts */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-muted {
        color: #FFFFFF !important;
    }
    
    p, li {
        color: #FFFFFF !important;
    }
}

/* Print styles */
@media print {
    .text-muted,
    p,
    li {
        color: #000000 !important;
    }
}