.bellmont-marquee-track {
    display: flex;
    width: fit-content;
    animation: scroll-left var(--marquee-speed, 20s) linear infinite;
}

.child-bellmont-marquee-container {
    overflow: hidden;
    position: relative;
}

.child-bellmont-marquee-container .marquee-item {
    height: inherit;
}

.marquee-item {
    display: inline-block;
    width: 400px;
    min-width: 400px;
    margin-right: 1rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    overflow: hidden;
}

/* Pseudo-element for background image to enable zoom */
.marquee-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 0;
}

/* Zoom in on hover */
.marquee-item:hover::before {
    transform: scale(1.1);
}

/* Hide overlay by default */
.marquee-item-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Show overlay when hovering over the marquee item */
.marquee-item:hover .marquee-item-overlay {
    opacity: 1;
    cursor: pointer;
}

.marquee-item-content {
    padding: 1.25rem;
    pointer-events: auto;
    width: 100%;
}

.marquee-item span {
    display: inline-block;
    padding-right: 2em;
}

/* Pause animation when hovering over the track */
.bellmont-marquee-track:hover {
    animation-play-state: paused;
}

/* Paused state (controlled by button) */
.child-bellmont-marquee-container.is-paused .bellmont-marquee-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { 
        transform: translateX(0);
    }
    100% { 
        transform: translateX(-50%);
    }
}

.marquee-pagination-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.marquee-item-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    content: "";
}

/* Make sure content is above the link */
.marquee-item-content * {
    position: relative;
    z-index: 3;
}

/* CTA Button - hidden on desktop, shown on mobile */
.marquee-item-cta {
    visibility: hidden;
    border-radius: 9999px;
}

.marquee-item-cta:hover {
    /* Additional hover styles if needed */
}

/* Play/Pause Control Button */
.marquee-control-btn {
    z-index: 10;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 4px;
}

.marquee-control-btn:hover {
    background: #bf5700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.marquee-control-btn:hover svg {
    stroke: #ffffff;
    fill: #ffffff;
}

.marquee-icon {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

/* Show pause icon by default, hide play */
.marquee-icon-play {
    display: none;
}

.marquee-icon-pause {
    display: block;
}

/* When paused, show play icon and hide pause */
.is-paused .marquee-icon-play {
    display: block;
}

.is-paused .marquee-icon-pause {
    display: none;
}

/* Navigation Dots */
.marquee-dots-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 1rem 0;
}

.marquee-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(156, 173, 183);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.marquee-dot:hover,
.marquee-dot:focus {
    background: rgb(156, 173, 183, .5);
}

.marquee-dot.active {
    background: #BF5700;
    width: 8px;
    height: 8px;
}

.marquee-dot:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marquee-item {
        width: 300px;
        min-width: 300px;
    }
    
    /* Keep overlay visible on mobile but with different styling */
    .marquee-item-overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
        padding-bottom: 30px;
    }
    
    /* Hide zoom effect on mobile */
    .marquee-item:hover::before {
        transform: scale(1);
    }
    
    /* Show CTA button on mobile */
    .marquee-item-cta {
        visibility: visible;
    }
    
    /* Adjust control button for mobile */
    .marquee-control-btn {
        top: 15px;
        right: 15px;
    }
    
    .marquee-icon {
        width: 16px;
        height: 16px;
    }
    
    /* Adjust dots for mobile */
    .marquee-dots-container {
        bottom: 15px;
        gap: 6px;
    }
    
    .marquee-dot {
        width: 7px;
        height: 7px;
    }
    
    .marquee-dot.active {
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 480px) {
    .marquee-item {
        width: 250px;
        min-width: 250px;
    }
}
