/* ============================================
   MARQUEE TEXT VISIBILITY FIX
   Global Drishti Homepage
   ============================================ */

/* Fix for news/marquee section text visibility */

/* Marquee container - ensure full width and proper height */
.sarkari-marquee-container,
.marquee-section,
.marquee,
.news-ticker-container {
    width: 100% !important;
    overflow: hidden !important;
    background: #001a4d !important;
    padding: 10px 0 !important;
}

/* Marquee text styles - ensure visibility */
.sarkari-marquee-container *,
.marquee-section *,
.marquee-item,
.marquee-text {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Marquee badge/tag styling */
.marquee-badge,
[class*="marquee"] .badge,
[class*="news-scroll"] .badge,
.news-ticker .badge,
[class*="marquee"] span:first-child,
[class*="news-scroll"] span:first-child,
.news-ticker span:first-child {
    background: #ff1744 !important;
    color: #ffffff !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    margin-right: 10px !important;
    display: inline-block !important;
}

/* Animated marquee - smooth scrolling text */
@keyframes marquee-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee-text,
[class*="marquee"] .marquee-text,
[class*="news-scroll"] .marquee-text,
.news-ticker .marquee-text {
    animation: marquee-scroll 25s linear infinite !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

/* Ensure text is visible inside containers */
.marquee-section > *,
[class*="marquee"] > *,
[class*="news-scroll"] > *,
[class*="latest-update"] > *,
.news-ticker > * {
    overflow: visible !important;
    color: #ffffff !important;
}

/* Elementor-specific fixes for text visibility */
/* Scope elementor text editors to ONLY apply inside news/marquee sections */
[class*="marquee"] .elementor-widget-text-editor .elementor-widget-container > p,
[class*="news"] .elementor-widget-text-editor .elementor-widget-container > p,
[class*="update"] .elementor-widget-text-editor .elementor-widget-container > p {
    color: #ffffff !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* Remove any opacity or visibility hidden styles */
.marquee-section *,
[class*="marquee"] *,
[class*="news-scroll"] *,
[class*="latest-update"] *,
.news-ticker * {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Fix for dark text on dark background */
.marquee-section,
[class*="marquee"],
[class*="news-scroll"],
[class*="latest-update"],
.news-ticker {
    background: linear-gradient(90deg, #001a4d 0%, #003366 100%) !important;
}

/* Text inside marquee - high contrast */
.marquee-section .marquee-text,
.marquee-section .news-text,
[class*="marquee"] .marquee-text,
[class*="marquee"] .news-text,
[class*="news-scroll"] .marquee-text,
[class*="news-scroll"] .news-text,
[class*="latest-update"] .marquee-text,
[class*="latest-update"] .news-text,
.news-ticker .marquee-text,
.news-ticker .news-text {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .marquee-section h3,
    .marquee-section p,
    .marquee-section span,
    [class*="marquee"] h3,
    [class*="marquee"] p,
    [class*="marquee"] span {
        font-size: 12px !important;
    }

    .marquee-badge,
    [class*="marquee"] .badge,
    .news-ticker .badge {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}

/* Ensure links in marquee are visible */
.marquee-section a,
[class*="marquee"] a,
[class*="news-scroll"] a,
[class*="latest-update"] a,
.news-ticker a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.marquee-section a:hover,
[class*="marquee"] a:hover,
[class*="news-scroll"] a:hover,
[class*="latest-update"] a:hover,
.news-ticker a:hover {
    color: #ffeb3b !important;
    text-decoration: underline !important;
}
