/* Slider Wrapper */
.mtfs-slider-wrapper {
    width: 100%;
    margin: auto;
    padding: 20px 0 60px 0;
    /* Increased bottom padding for shadows */
    overflow: hidden;
    position: relative;
    /* Gradient Mask for fading edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Slider Container */
.mtfs-slider {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    /* Changed from visible to hidden to cut off overflow */
    position: relative;
}

/* Slide Track Loop */
.mtfs-slide-track {
    display: flex;
    align-items: stretch;
    animation: mtfs-scroll 40s linear infinite;
    /* Slower for more items */
    /* 16 items * (220px width + 20px margin) = 240px * 16 */
    width: calc(240px * 16);
    /* Ensure smooth stopping */
    will-change: transform;
}

/* PAUSE ON HOVER & TOUCH */
.mtfs-slide-track:hover,
.mtfs-slider-wrapper:active .mtfs-slide-track,
.mtfs-slide-track:focus-within {
    animation-play-state: paused;
}

/* Individual Slide */
.mtfs-slide {
    width: 220px;
    /* Reduced for 5 items (1200 / 5 = 240 space -> 220 + 20 margin) */
    margin: 0 10px;
    flex-shrink: 0;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    /* Prevent text selection while scrolling */
    user-select: none;
    -webkit-user-select: none;
}

.mtfs-slide:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
    /* Bring to front on hover */
    /* Ensure proper color on hover */
    background-color: #ffffff;
}

/* Slide Elements */
.mtfs-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
}

.mtfs-slide h3 {
    margin: 10px 0;
    font-size: 16px;
    /* Slightly smaller for tighter layout */
    color: #ff6600;
    /* Use specific color or fallback */
    font-weight: 600;
}

.mtfs-slide p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.mtfs-slide p b {
    color: #333;
}

/* Animation Keyframes */
@keyframes mtfs-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move half: 8 items * 240px */
        transform: translateX(calc(-240px * 8));
    }
}

/* Container & Title (from existing theme styles) */
.mtfs-container {
    padding: 20px 20px;
    /* Reduced padding since title is gone */
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.mtfs-title {
    display: none;
    /* Just in case */
}

/* Responsiveness */
@media (max-width: 1024px) {
    .mtfs-slide {
        width: 200px;
        margin: 0 10px