/* ============================================
   MARQUEE SCROLLING ANIMATION
   ============================================ */

/* Divider between static grid and marquee */
.marquee-divider {
    width: 100%;
    height: 1px;
    background: rgba(10, 36, 99, 0.1);
    margin: 50px 0 40px;
    position: relative;
}

.marquee-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), transparent);
    border-radius: 2px;
}

/* Marquee Row Container - Full Width */
.marquee-row {
    overflow: hidden;
    width: 100vw;
    margin: 20px 0;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: inherit;
}

/* Marquee Content Wrapper */
.marquee-content {
    display: flex;
    gap: 10px;
    width: fit-content;
    will-change: transform;
}

/* Right to Left Animation */
.marquee-rtl {
    animation: scrollRTL 40s linear infinite;
}

@keyframes scrollRTL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Left to Right Animation */
.marquee-ltr {
    animation: scrollLTR 40s linear infinite;
}

@keyframes scrollLTR {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Pause animation on hover over the entire row */
.marquee-row:hover .marquee-rtl,
.marquee-row:hover .marquee-ltr {
    animation-play-state: paused;
}

/* Why Card Modern - Ultra Compact for Marquee */
.marquee-content .why-card-modern {
    height: 48px;
    flex-shrink: 0;
    background: white;
    padding: 10px 16px;
    border-radius: 24px;
    box-shadow: 0 2px 6px rgba(10, 36, 99, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.marquee-content .why-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.12);
}

.marquee-content .why-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin: 0;
}

.marquee-content .why-card-modern h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.marquee-content .why-card-modern p {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .marquee-content .why-card-modern {
        min-width: 240px;
        max-width: 240px;
        padding: 25px 20px;
    }

    .marquee-content .why-icon {
        font-size: 40px;
    }

    .marquee-content .why-card-modern h3 {
        font-size: 18px;
    }

    .marquee-content .why-card-modern p {
        font-size: 13px;
    }

    /* Faster animation on mobile */
    .marquee-rtl {
        animation-duration: 20s;
    }

    .marquee-ltr {
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .marquee-content .why-card-modern {
        min-width: 200px;
        max-width: 200px;
        padding: 20px 15px;
    }

    .marquee-row {
        margin: 15px 0;
    }
}