.elementor-1523 .elementor-element.elementor-element-a2f8c87{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-1523 .elementor-element.elementor-element-4d0346d{width:var( --container-widget-width, 1000px );max-width:1000px;--container-widget-width:1000px;--container-widget-flex-grow:0;}.elementor-1523 .elementor-element.elementor-element-4d0346d.elementor-element{--align-self:center;}/* Start custom CSS */.next-season-stories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-tile {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

/* Нечетные плитки: текст слева */
.story-tile.odd {
    flex-direction: row;
    text-align: left;
}

/* Четные плитки: текст справа */
.story-tile.even {
    flex-direction: row;
    text-align: right;
}

.story-tile.even .text-block {
    margin-left: auto; /* Сдвигает текстовый блок вправо */
    text-align: right;
}

/* Блок изображения */
.image-block {
    width: 20%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Блок текста */
.text-block {
    width: 80%;
}

.text-block > .title-excerpt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    flex-wrap: nowrap; /* Не переносит title */
    justify-content: flex-start;
}

.story-tile.even .text-block > .title-excerpt {
    justify-content: flex-end; /* Центрирует title и excerpt справа */
}

/* Заголовок */
.text-block h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
    white-space: nowrap; /* Не переносит заголовок */
}

.text-block h3 a {
    color: inherit;
    text-decoration: none;
}

/* Описание */
.text-block .excerpt {
    white-space: normal; /* Разрешает перенос описания */
    overflow: visible;
    color: #555;
}

/* Разделитель */
.text-block .separator {
    user-select: none;
    color: #999;
}

/* Контент */
.text-block .content {
    margin-top: 10px;
}

.tags {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 640px) {
    .story-tile {
        flex-direction: column !important;
        align-items: flex-start;
    }

    .image-block {
        width: 100%;
        aspect-ratio: auto;
        max-height: 300px;
    }

    .image-block img {
        height: auto;
    }

    .text-block {
        width: 100%;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .text-block > .title-excerpt {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


/*Filter*/

    .search-row {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    .search-input-wrapper {
        position: relative;
        flex: 1;
    }
    .search-input-wrapper input {
        width: 100%;
        padding: 10px 35px 10px 10px;
        font-size: 16px;
    }
    .search-icon {
        position: absolute;
        top: 50%;
        right: 10px;
        width: 20px;
        transform: translateY(-50%);
        cursor: pointer;
    }
    .tag-select-wrapper {
        flex: 1;
    }
    .tag-pill {
        display: inline-block;
        border: 1px solid #000;
        padding: 4px 8px;
        margin: 3px 5px 3px 0;
        border-radius: 3px;
        font-size: 14px;
        background: #f4f4f4;
        cursor: default;
    }
    .tag-pill .remove-tag {
        margin-left: 5px;
        font-weight: bold;
        cursor: pointer;
    }
    .filter-button {
        padding: 10px 20px;
        background: #0073aa;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
    .filter-button:hover {
        background: #005177;
    }/* End custom CSS */