/* Mouse-Driven Carousel Section */
.mouse-scroll-section {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    margin-top: 5rem;
    /* Separated from section above */
    padding: 0;
    /* Full width, no padding */
}

.carousel-title {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    z-index: 2;
    color: #333;
}

.mouse-scroll-track {
    display: flex;
    gap: 0;
    /* No gap as per screenshot, or very subtle lines? Screenshot has lines. Let's use border */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.1s ease-out;
    /* Smooth follow */
    will-change: transform;
}

.mouse-card {
    width: 25vw;
    min-width: 25vw;
    max-width: 25vw;
    height: 55vh;
    /* Increased height */
    background: white;
    border-right: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    transition: all 0.3s ease;
    padding: 2rem;
    flex-shrink: 0;
    cursor: default;
    overflow: hidden;
    /* Ensure content stays inside */
    box-sizing: border-box;
}

.mouse-card:last-child {
    border-right: none;
}

.mouse-card h3 {
    font-size: 2.5rem;
    /* Slightly smaller to fit month names */
    font-family: var(--font-serif, serif);
    font-weight: 700;
    color: #333333;
    /* Black text */
    line-height: 1.2;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.mouse-card h4 {
    font-size: 1.2rem;
    color: var(--text-dark, #333);
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: none;
    /* Hidden by default */
}

.mouse-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
    /* Slight delay */
    display: none;
    /* Hidden by default */
}

/* Hover Effects */
.mouse-card:hover {
    background-color: var(--hover-color, #d32f2f);
    /* Dynamic Background */
}

.mouse-card:hover h3 {
    color: white;
    font-size: 2rem;
    /* Shrink slightly on hover */
    margin-bottom: 1.5rem;
}

.mouse-card:hover h4 {
    display: block;
    opacity: 1;
    transform: translateY(0);
    color: white;
}

.mouse-card:hover p {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Make it responsive */
@media (max-width: 1024px) {
    .mouse-card {
        min-width: 33.33vw;
        height: 50vh;
    }

    .mouse-card h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mouse-card {
        min-width: 75vw;
        /* Wider card to see content */
        height: auto;
        /* Allow height to fit content */
        min-height: 350px;
        scroll-snap-align: center;
        border-right: 1px solid #eee;
        /* Ensure separator is visible */
        padding: 1.5rem;
    }

    .mouse-scroll-section {
        height: auto;
        min-height: auto;
        overflow: hidden;
        /* static container */
        align-items: center;
        /* Center align items cross-axis */
        padding-bottom: 2rem;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .mouse-scroll-track {
        position: static;
        transform: none !important;
        width: 100%;
        display: flex;
        overflow-x: auto;
        /* Scroll ONLY the track */
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        margin-bottom: 0;
        -webkit-overflow-scrolling: touch;
    }

    /* Make text always visible and smaller on mobile */
    .mouse-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .mouse-card h4 {
        font-size: 1.1rem;
        display: block;
        opacity: 1;
        transform: none;
        margin-bottom: 0.5rem;
        color: var(--primary-red);
    }

    .mouse-card p {
        font-size: 0.9rem;
        display: block;
        opacity: 1;
        transform: none;
        color: #666;
        /* Visible text color */
        max-width: 100%;
    }

    /* Disable hover effects on mobile to prevent sticky states */
    .mouse-card:hover {
        background-color: white;
    }

    .mouse-card:hover h3 {
        color: #333;
        font-size: 1.5rem;
    }

    .mouse-card:hover h4 {
        color: var(--primary-red);
    }

    /* Mobile Layout Fixes - merged above */

    .carousel-title {
        position: static;
        transform: none;
        margin-bottom: 1.5rem;
        font-size: 2rem;
        text-align: center !important;
        /* Force center */
        width: 100%;
    }

    .mouse-scroll-track {
        margin-bottom: 0;
    }

    /* Hide Button on Mobile */
    .mouse-scroll-section .text-center {
        display: none !important;
    }
}