.single-news-body {
    background-color: rgb(230, 230, 230);
}

img {
    height: auto;
    width: auto;
}

.wp-block-image img {
    min-width: 100%;
}

figure {
    text-align: center;
    /* Выравнивание по центру для всего содержимого figure, включая изображение и подпись */
}

.single-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: justify;
}


iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Соотношение сторон 16:9 */
    border: none;
}

figcaption {
    font-style: italic;
    /* Курсив для текста подписи */
    text-align: center !important;
    /* Выравнивание подписи по центру (на случай, если ширина подписи меньше ширины изображения) */
    margin-top: 8px;
    /* Отступ сверху для подписи, чтобы отделить её от изображения */
}



.single-news {
    font-family: Averta;
}

.single-content a {
    text-decoration: underline;
    color: #1e2754;
}

.single-news-container {
    margin: 0 auto;
    padding: 20px 0;
    margin-bottom: 20px;
}

.title-news {
    text-align: center;
    font-size: 30px;
    line-height: 33px;
    margin-bottom: 20px;
}

.article {
    margin-bottom: 50px;
}

.single-img {
    margin: 0 auto;
    margin-bottom: 20px;
}

.single-content {
    margin-top: 30px;
    padding: 0 40px;
    margin: auto;
}

.swiper {
    text-rendering: auto;
    width: 400px;
}



.swiper-button-next,
.swiper-button-prev {
    border-radius: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    width: 40px;
    /* padding: 3px; */
    height: 40px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #f51e0e;

}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 28px !important;
    color: #f51e0e !important;
}

@media (max-width:700px) {
    .swiper {
        width: 100%;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 18px !important;

    }

    .swiper-button-next,
    .swiper-button-prev {
        border-radius: 100%;
        padding: 20px;
        background: rgba(255, 255, 255, 0.4);
        width: 20px;
        /* padding: 3px; */
        height: 40px;
    }
}

.has-text-align-center {
    text-align: center;
    margin-top: 25px;
}

figcaption {
    text-align: center;
    font-size: 12px;
}



.footer__mobile {}


@media screen and (min-width: 760px) {
    .swiper-wrapper .swiper-slide {
        width: 400px !important;
    }

}

ul[class],
ol[class] {
    list-style: disc;
    padding-left: 20px;
}

.top60 {
    top: 60%;
}

.main_content__news__info__title {
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #fff;
    display: -webkit-box;
    cursor: pointer;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news__header {
    position: relative;
    width: 100%;
    border-radius: 5%;
    overflow: hidden;
}

.news__header img {
    width: 100%;

    object-fit: cover;
    transition: transform 0.3s ease;

}

.overflow_news {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
}

@media (max-width: 1160px) {
    .news__header img {
        height: 20vw;
    }
}

@media (max-width: 1100px) {
    .news__header img {
        height: 27vw;
    }
}

@media (max-width: 600px) {
    .news__header img {
        height: 60vw;
    }
}

.date-filter {
    overflow-x: hidden;
    white-space: nowrap;
    flex: 1;
    position: relative;
    transition: width 0.3s ease;
}



.date-list {
    list-style: none;
    padding-top: 5px !important;
    display: inline-flex;
    gap: 10px;
    margin: 0;
}

.date-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    width: 80px;
}

/* Стили для выходных */
.weekend {
    color: red;
    /* Красный цвет текста */
    border-color: red;
    /* Красная рамка */
}

.weekend .day-name {


    color: red;
    /* Красный цвет для текста дня недели */
}

.month-name {
    font-size: 0.9rem;
    font-weight: bold;
}

.day-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 5px 0;
}


.day-name {
    font-size: 0.9rem;
}

.date-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    width: 80px;
}

.reset-date {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e2754;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
    border: 2px solid white;
}

.date-list li a.active {
    border: 2px solid #1e2754;
}

.date-item.active {
    border: 2px solid #1e2754;
    position: relative;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 25px;
}

.slider-prev,
.slider-next {
    background: none;
    border: none;

    cursor: pointer;
}

.slider-prev img {
    transform: rotate(0deg);
    width: 24px;
}

.slider-next img {
    transform: rotate(180deg);
    width: 24px;
}

.slider-prev {
    margin-right: 5px;
}

.slider-next {
    margin-left: 5px;
}

.hidden {
    display: none;
}

@media (max-width:600px) {
    .day-number {
        font-size: 1rem;
        margin: 0px;
    }

    .day-name,
    .month-name {
        font-size: 0.6rem;
    }

    .date-list li a {
        width: 40px;
        padding: 0px 20px;
    }

    .date-list {
        gap: 4px;
    }

    .reset-date {
        width: 15px;
        height: 15px;
        font-size: 10px;
        top: -9px;
        right: -7px;
    }
}

.news__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.news-post__card {
    width: 100%;
    border: 1px solid #e2e2e3;
    border-radius: 16px;
    background-color: #f8f8ff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-post__image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.news-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.news-post__card:hover .news-post__image img {
    transform: scale(1.1);
}

.news-post__card:hover {
    border: none;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
}

.news-post__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.news-post__excerpt {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.9rem;
    color: #666;
}

.news-post__image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.news-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.news-post__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
}

.news-post__date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
}

.news-post__price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
}

.news-post__title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.news-post__location {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
    .news__wrap {
        grid-template-columns: 1fr 1fr;
    }

    .single-content {
        padding: 0;
    }
}

@media (max-width: 600px) {
    .news__wrap {
        grid-template-columns: 1fr;
    }
}

.afisha-post__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.afisha-post__wrapper .card__img {
    height: 200px;
    border-radius: 4%;
}

.afisha-post__wrapper .card {
    margin: 0;
}

.afisha-post__wrapper .news__header {
    border-radius: 4%;
}


@media (max-width:900px) {
    .afisha-post__wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;

        gap: 10px;
    }

    .afisha-post__wrapper .card__img {
        height: 150px;
        border-radius: 12px;
    }

    .afisha-post__wrapper .card {
        margin: 0;
    }

    .afisha-post__wrapper .news__header {
        border-radius: 12px;
    }
}

@media (max-width:500px) {
    .afisha-post__wrapper {
        display: block;

        gap: 10px;
    }

    .afisha-post__wrapper .card__img {
        height: 150px;
        border-radius: 12px;
    }

    .afisha-post__wrapper .card {
        margin: 0;
    }

    .afisha-post__wrapper .news__header {
        border-radius: 12px;
    }
}

.wp-block-button {
    display: flex;
    justify-content: center;
    margin: 10px 0px;
}

.wp-block-button__link {
    padding: 6px 14px;
    background: red;
    border-radius: 6px;
    color: white !important;
    text-decoration: none !important;
}

.wp-block-image {
    margin: 10px 0px;
}


ul {
    list-style-type: none;
    /* Убирает стандартные маркеры */
    padding: 0;
    /* Убирает внутренние отступы у ul */
    margin: 0;
    /* Убирает внешние отступы у ul */
}

li {
    padding: 10px;
    /* Отступ внутри каждого элемента списка */
    margin-bottom: 10px;
    /* Отступ между элементами списка */

}

/* Дополнительные стили для отступов */
ul {
    padding-left: 20px;
    /* Добавляет отступ слева у ul */
}

.wp-block-media-text {
    display: grid;
    gap: 10px;
}

@media (max-width:600px) {
    .wp-block-media-text {
        grid-template-columns: 40% auto !important;

    }
}

.wp-block-quote {
    box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.2);
    margin: 16px 16px 30px 16px;
    padding: 16px 24px;
    position: relative;
    font-size: 16px;
    background: #efefef;
    color: #000;
    font-style: italic;
}

.wp-block-heading {
    padding: 15px 0;
}

.wp-block-list {
    padding-left: 25px;
}