/* 
   Modern Marquee CSS 
   Replacement for obsolete <marquee> tag
*/

.modern-marquee {
    width: 100%;
    background: #000;
    color: #fff;
    overflow: hidden;
    padding: 12px 0;
    user-select: none;
    display: flex;
    align-items: center;
    position: relative;
    /* Premium fade effect on edges */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.modern-marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

/* Pause animation on hover for better UX */
.modern-marquee-content:hover {
    animation-play-state: paused;
}

.modern-marquee-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 30px;
    flex-shrink: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
}

/* Enhancing internal elements */
.modern-marquee-item i {
    color: #ffd700; /* Premium gold color for icons */
    margin-right: 5px;
}

.modern-marquee-item em {
    font-style: normal;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.modern-marquee-item span {
    font-weight: 400;
    opacity: 0.9;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .modern-marquee-content {
        animation-duration: 30s; /* Slightly faster on medium screens */
    }
    .modern-marquee-item {
        font-size: 14px;
        gap: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767px) {
    .modern-marquee {
        padding: 10px 0;
        mask-image: none; /* Simpler UI on small mobile */
        -webkit-mask-image: none;
    }
    .modern-marquee-content {
        animation-duration: 25s;
    }
    .modern-marquee-item {
        font-size: 13px;
        gap: 15px;
        padding-right: 15px;
    }
}
