.web-stories-section {
    margin: 3rem 0;
    background: var(--bg-card, transparent);
    padding: 2.5rem 0;
    border-radius: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible !important;
    /* Garantir que o scale não seja cortado na seção */
}

.web-stories-section .container {
    overflow: visible !important;
    /* Garantir que o scale não seja cortado no container */
}

/* Web Stories Slider Navigation */
.stories-slider-container {
    position: relative;
    width: 100%;
    overflow: visible !important;
    /* Garantir que o scale não seja cortado no slider container */
}

.stories-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Adaptado para a identidade JMV (primary color) */
    background: var(--primary-color, #E30613);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    /* Aumentado para nunca ficar abaixo do conteúdo */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    color: #fff;
    font-size: 1.1rem;
}

.stories-nav-btn:hover {
    background: var(--primary-color-hover, #B3000C);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.stories-nav-prev {
    left: -20px;
}

.stories-nav-next {
    right: -20px;
}

.web-stories-scroll {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem 2.5rem;
    /* Aumentado nas laterais para não cortar o scale do primeiro/último card */
    margin: 0 -1.25rem;
    /* Compensa o padding lateral maior */
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-padding: 0 1.25rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.story-card {
    min-width: calc((100% - (1.25rem * 4)) / 5);
    flex: 0 0 calc((100% - (1.25rem * 4)) / 5);
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    scroll-snap-align: start;
}

.story-card:hover {
    transform: scale(1.02);
    /* Reduzido de 1.03 para um efeito ainda mais sutil */
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.story-thumb {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.story-card:hover .story-thumb {
    transform: scale(1.1);
}

.story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0.8rem 1.2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

.story-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .web-stories-section {
        padding: 1.5rem 0;
        margin: 1.5rem 0;
    }

    .stories-nav-btn {
        display: none;
    }

    .story-card {
        min-width: 140px;
        flex: 0 0 140px;
        height: 230px;
    }

    .web-stories-scroll {
        padding-left: 15px;
        padding-right: 15px;
        margin: 0 -1.25rem;
    }
}