.container.divider {
    margin-top: 164px;
}

.double-gallery__wrapper__swiper {
    margin-top: 120px;
}

.more-btn:not(:hover) {
    background: transparent;
}

.news-title {
    font-size: 64px;
    font-family: 'Playfair Display';
    font-weight: 700;
    color: var(--main-text-color);
    margin: 0px;
    padding: 0px;
    line-height: 60px;
}

.news-categories__wrapper {
    overflow-x: scroll;
}

.news-categories__wrapper::-webkit-scrollbar {
    display: none;
}

.news-categories {
    padding: 4px 2px 8px 4px; /* top right bottom left */
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 64px;
    width: 1332px;
    overflow: hidden;
}

.news-category {
    padding: 10px 16px;
    border-radius: 10px;
    transition: .2s;
    font-size: 18px;
    line-height: 38px;
    color: var(--main-text-color);
    text-decoration: none;
}

.news-category:hover {
    background: #F4EBE0;
    color: #14151C;
    cursor: pointer;
}

.news-category.active {
    background: #F4EBE0;
    color: #14151C;
}


.news-buttons__list {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
}

.news-item {
    width: 100%;
    text-decoration: none;
}

.news-item img {
   width: 100%;
  height: 243px;          
  aspect-ratio: 378 / 243;
  object-fit: cover;      
  border-radius: 10px;
  display: block;         
}

.news-item__date {
    color: #F2DFC8B0;
}

.news-item__title {
    font-weight: 400;
    font-size: 24px;
    color: white;
}
.news-item.archive-item {
    max-width: 100%;
}
/* .news-item.archive-item img {
    aspect-ratio: 328 / 200;
    height: auto;
    width: 100%;
} */
.news-item.archive-item .news-item__title,
.news-item.archive-item .news-item__date {
    max-width: 378px;
}

.news-single {
    margin-top: 64px;
}

.news-single__head {
    display: flex;
    gap: 90px;
    margin-bottom: 64px;
}

.news-single__head-left {
    max-width: 785px;
}

.news-single__head-right {
    flex: 1;
    flex-shrink: 0;
}

.news-single__head-swiper-image {
    height: 505px;
    width: 100%;
    object-fit: cover;
}

.news-single__head-swiper-caption {
    color: #6B6969;
    font-size: 16px;
    font-weight: 400;
    margin-top: 16px;
}


.news-single__head-title {
    margin: 0;
    margin-bottom: 32px;
    font-weight: 400;
    font-family: 'Libre Franklin';
    color: #F4EBE0;
    line-height: 38px;
}

.news-single__head-desc {
    font-size: 18px;
    font-family: 'Libre Franklin';
    font-weight: 400;
    color: #F4EBE0;
    line-height: 38px;
}

.news-single__head-info {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 72px;
    row-gap: 8px;
}

.news-single__head-info-item {
    color: #F4EBE0;
    font-family: Playfair Display;
    font-weight: 700;
    font-size: 18px;
    line-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-single__content {
    color: #F4EBE0;
    display: flex;
    font-family: 'Libre Franklin';
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    gap: 134px;
    margin-bottom: 120px;
}

.news-single__content p:not(:last-child) {
    margin: 0;
    margin-bottom: 32px;
}

.news-single__content-left, .news-single__content-right {
    flex: 1;
    flex-shrink: 0;
}
.news-single__content-left .wysiwyg-content, 
.news-single__content-right .wysiwyg-content {
    margin: 0px;
}

.news-single__content-left ul li {
    line-height: 30px;
}

.news-single__content-left .wysiwyg-content ul li::after {
    top: -5px;
}

.news-single__gallery {
    margin-bottom: 120px;    
}

.news-single__gallery img {
    width: 100%;
    height: 100%;
}

.news-single__content .right-btn {
    display: none;
}

.news-single .global-main__prev-slide,
.news-single .global-main__next-slide {
    display: none!important;
}

.news__wrapper {
    display: flex;
    gap: 64px;
    margin-top: 64px;
}
.news__wrapper:nth-child(1) {
    min-width: 103px;
    color: var(--second-text-color);
}
.container.divider[data-category="active"] .news-filter__wrapper {
    display: none
}
.news-filter__wrapper {
    max-width: 103px;
    min-width: 103px;
    width: 103px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* Обертка секции */
.news-filter__section {
    color: #F4EBE0; /* цвет текста в закрытом состоянии */
    background: transparent; /* убираем белый бокс */
    transition: color 0.2s ease;
}

/* Заголовок года */
.news-filter__section-title {
    font-size: 18px;
    line-height: 30px;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s ease, font-size 0.2s ease;
    background: transparent;
    border: none;
    color: #F4EBE0; /* закрытое состояние — белый */
}

/* Стрелка при закрытом состоянии */
.news-filter__section-title::after {
    content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDE0IDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjI4OCA3LjE1Ny42MzEgMS41IDIuMDQ1LjA4Nmw0Ljk1IDQuOTUgNC45NS00Ljk1TDEzLjM2IDEuNSA3LjcwMiA3LjE1N2ExIDEgMCAwIDEtMS40MTQgMCIgZmlsbD0iI0Y0RUJFMCIvPgo8L3N2Zz4K");
    display: flex;
    align-items: flex-end;
    height: 25px;
    transition: transform 0.2s ease;
}

/* Скрытое состояние списка */
.news-filter__section-body {
    display: none;
    background: transparent; /* полностью прозрачный фон */
}

/* Активное состояние секции (открыто) */
.news-filter__section.active {
    color:  #D84B55; /* общий цвет для текста */
}

.news-filter__section.active .news-filter__section-title {
    font-size: 24px;
    color:  #D84B55; /* активный (открытый) цвет заголовка */
}

/* Измененная стрелка при открытии */
.news-filter__section.active .news-filter__section-title::after {
/*     content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDE0IDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjcxMi44NDMgMTMuMzY5IDYuNWwtMS40MTQgMS40MTQtNC45NS00Ljk1LTQuOTUgNC45NUwuNjQgNi41IDYuMjk4Ljg0M2ExIDEgMCAwIDEgMS40MTQgMCIgZmlsbD0iIzZDMEQxNiIvPgo8L3N2Zz4K"); */
	content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEzIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjA3MSAwLjI5Mjc3TDEyLjcyOCA1Ljk0OTc3TDExLjMxNCA3LjM2Mzc3TDYuMzY0IDIuNDEzNzdMMS40MTQgNy4zNjM3N0wuMDAwMDE2ODYxOCA1Ljk0OTc3TDUuNjU3IDAuMjkyNzdDNS44NDQ1MyAwLjEwNTI5OSA2LjA5ODg0IC0wLjAwMDAxNjgyIDYuMzY0IC0wLjAwMDAxNjgxNkM2LjYyOTE2IC0wLjAwMDAxNjgwMiA2Ljg4MzQ3IDAuMTA1Mjk5IDcuMDcxIDAuMjkyNzd6IiBmaWxsPSIjRDg0QjU1Ii8+PC9zdmc+");
    height: 20px;
    height: 20px;
    display: flex;
    align-items: flex-end;
    color: #D84B55;
}

/* Контейнер списка при открытии */
.news-filter__section.active .news-filter__section-body {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 1;
    pointer-events: all;
    position: static;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Элементы списка */
.news-filter__section-body li {
    line-height: 30px;
    font-size: 16px;
    transition: color 0.2s ease;
    color: #F4EBE0; /* цвет текста по умолчанию */
}

/* Неактивные (нет новостей) */
.news-filter__section-body li.inactive {
    color: rgba(255, 255, 255, 0.23);
    pointer-events: none;
}

/* При наведении или выбранном месяце */
.news-filter__section-body li:hover,
.news-filter__section-body li.active {
    color:  #D84B55;
    cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.double-gallery__wrapper__swiper .global-main__next-slide,
.double-gallery__wrapper__swiper .global-main__prev-slide  {
    position: static!important;
    background: none!important;
    transform: none!important;
    padding: 0px!important;
    width: fit-content!important;
    height: fit-content!important;
    display: flex!important;
}
.double-gallery__wrapper__swiper .global-main__prev-slide {
    transform: rotate(180deg) !important;
}



.alt-filter__buttons {
    display: flex;
    align-items: center;
    gap: 8px; 
} 



#desktop_filter_reset.alt-filter__button.border {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 162px;
    height: 48px;

    background: linear-gradient(0deg, #541319 0%, #36060A 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;

    font-family: 'Libre Franklin', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 38px;  
    color: #fff;

    white-space: nowrap;      
    overflow: hidden;          
}

#desktop_filter_reset.alt-filter__button.border span {
    display: inline-block;
    width: 130px;
    height: 38px;
    line-height: 38px;     
    overflow: hidden;
}


#desktop_filter_reset .reset-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
}
#month_filter_placeholder {
    margin-left: auto;  
}


/* Accessibility */
body.accessibility-mode #desktop_filter_reset.alt-filter__button.border {
    background: #34ADAD !important;
    color: #fff !important;
    
}

body.accessibility-mode .news-filter__wrapper {
  display: flex;
  flex-wrap: wrap;       /* ✅ дозволяємо перенос */
  gap: 16px;
  align-items: flex-start;
}

#desktop_filter_reset.alt-filter__button.border {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 162px;
  height: auto; /* замість фіксованої висоти */
  background: linear-gradient(0deg, #541319 0%, #36060A 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;  
  overflow: hidden;
  padding: 8px 16px;    
}

body.accessibility-mode #desktop_filter_reset.alt-filter__button.border {
  flex: 0 1 auto;
  min-width: 162px;
  max-width: 100%;
  white-space: normal; 
  text-align: center;
  height: auto !important; 
  line-height: 1.3;
}
body.accessibility-mode .alt-filter__body-checkbox:focus-visible {
  outline: none !important;         
  background-color: #000 !important; 
  border: 2px solid #000 !important;  
  border-radius: 50%;               
}

body.accessibility-mode .news-category.active
 {
    background: #ffffff;
    color: #14151C;
}
body.accessibility-mode .news-category {
  pointer-events: auto;
  display: inline-block;
  visibility: visible;
  cursor: pointer;
}

body.accessibility-mode .news-category:focus-visible {
  outline: 2px solid #1e6969;
  outline-offset: 2px;
}




/* Tablet*/
@media (max-width: 1200px) and (min-width: 769px) {

    .news-single {
        margin-top: 50px; 
    }

    /* HEAD */
    .news-single__head {
        display: flex;
        flex-direction: row; 
        gap: 50px; 
        margin-bottom: 40px;
    }

    .news-single__head-left {
        max-width: clamp(400px, 43vw, 540px);
        flex: 1 1 60%; 
    }

    .news-single__head-right {
        flex: 1 1 35%;
    }

    .news-single__head-swiper-image {
        height: 350px; 
        width: 100%;
        object-fit: cover;
        border-radius: 4px;
    }

    .news-single__head-swiper-caption {
        font-size: 15px;
        color: #6B6969;
        margin-top: 12px;
    }

    .news-single__head-title {
        font-size: 22px; 
        margin-bottom: 24px;
        font-family: 'Playfair Display';
        font-weight: 700;
        line-height: 32px;
    }

    .news-single__head-desc {
        font-size: 17px;
        line-height: 32px;
        font-family: 'Libre Franklin';
    }

    .news-single__head-info {
        margin-top: 24px;
        display: flex;
        flex-wrap: wrap;
        gap: 50px;
        row-gap: 8px;
    }

    .news-single__head-info-item {
        font-size: 16px;
        line-height: 36px;
    }
    .news-item.archive-item {
        max-width: 100%;    
        flex: 1 1 48%;
    }

    .news-item.archive-item img {
        width: 100%;       
        height: auto;    
        aspect-ratio: 378 / 243; 
        object-fit: cover; 
        border-radius: 8px;
    }

    .news-item.archive-item .news-item__title,
    .news-item.archive-item .news-item__date {
        max-width: 100%;    
    }
    /* CONTENT */
    .news-single__content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .news-single__content-left,
    .news-single__content-right {
        flex: 1 1 45%;
    }

    .news-single__content-left .wysiwyg-content,
    .news-single__content-right .wysiwyg-content,
    .news-single__content-left .wysiwyg-content ul li,
    .news-single__content-right .wysiwyg-content ul li {
        font-size: 16px;
        line-height: 30px;
    }

    .news-single__content p:not(:last-child) {
        margin-bottom: 24px;
    }

    .news-single__content .right-btn {
        display: flex;
        margin-top: 20px;
        padding-top: 20px;
    }

    /* GALLERY */
    .news-single__gallery {
        margin-bottom: 80px;
    }

    .news-single__gallery img {
        width: 100%;
        height: auto;
    }

    .double-gallery__wrapper__swiper.mobile {
        padding: 0 10px;
        margin-top: 0 !important;
    }
    .double-gallery__wrapper__swiper {
        margin-top: 90px;
    }

    /* Стрелки галереи */
    .double-gallery__wrapper__swiper .global-main__next-slide,
    .double-gallery__wrapper__swiper .global-main__prev-slide {
        display: flex !important;
        width: 30px;
        height: 30px;
        padding: 0;
        background: none !important;
        transform: none !important;
    }

    .double-gallery__wrapper__swiper .global-main__prev-slide {
        transform: rotate(180deg) !important;
    }

    .alt-filter__body-input__wrapper {
        flex-direction: row!important;
    }
        .container.divider {
        margin-top: 138px; 
    }

    .news-title {
        font-size: 50px; 
        line-height: 48px;
    }

    .news__wrapper {
        display: flex;
        flex-direction: row; 
        gap: 32px;
        margin-top: 50px;
        flex-wrap: wrap;
    }

  .news {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}

/* Кожна новина */
.news-item {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-decoration: none; /* якщо це <a> */
}

/* Зображення новини */



    .news-item__date {
        font-size: 15px;
        margin-top: 12px;
    }

    .news-item__title {
        font-size: 17px;
        margin-top: 8px;
    }

    /* Категории */
    .news-categories {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
        margin-top: 50px;
        overflow: hidden;
    }

    .news-category {
        font-size: 16px;
        padding: 6px 16px;
        border-radius: 10px;
    }

    /* Фильтры */
    .news-filter__wrapper {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 118px;
    }

    .news-filter__section-title {
        font-size: 20px;
        line-height: 28px;
    }

    .news-filter__section.active .news-filter__section-title {
        font-size: 22px;
    }

    .news-filter__section-body li {
        font-size: 15px;
        line-height: 28px;
    }

    /* Кнопка сброса фильтров */
    /* #desktop_filter_reset.alt-filter__button.border {
        width: 140px;
        height: 40px;
        font-size: 15px;
        line-height: 36px;
    } */
/* 
    #desktop_filter_reset.alt-filter__button.border span {
        width: 110px;
        height: 36px;
        line-height: 36px;
    } */

    #desktop_filter_reset .reset-btn__icon {
        width: 18px;
        height: 18px;
    }

    /* Прочие элементы */
    .alt-filter__buttons {
        gap: 6px;
    }

    .news__wrapper {
        display: flex;
        flex-direction: row;
        gap: 60px;
        margin-top: 50px;
        flex-wrap: wrap;
    }
}
@media (max-width: 1054px) {
    #desktop_filter_reset.alt-filter__button.border,
    .news-filter__wrapper {
        display: none !important;
    }
}
@media (max-width: 972px) {
    .news-single__head {
        flex-wrap: wrap; 
    }

    .news-single__head-left {
        flex: 1 1 100%;   
        max-width: 100%;
    }

    .news-single__head-swiper-image {
        width: 100%;
        height: auto;
        aspect-ratio: 338/217; 
    }

    .news-single__head-right {
        flex: 1 1 100%;   
        max-width: 100%;
    }
}

    @media (max-width: 768px){
        .double-gallery__wrapper__swiper .global-main__next-slide,
        .double-gallery__wrapper__swiper .global-main__prev-slide {
            display: none!important;
        }
		.container.divider {
        margin-top: 104px;
    }
        .news__wrapper {
            margin-top: 40px;
            display: flex;
            flex-direction: column;
            gap: 40px;
        }
        .news-title {
            font-size: 40px;
        }

       .news-categories {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
        overflow: hidden;
        margin-top: 40px;
        height: 48px;
    }

        .news-category {
            font-size: 14px;
            line-height: 100%;
            padding: 15.5px 16px;
        }

        .news-filter__wrapper {
            display: none;
        }

        .news {
            gap: 24px;
            display: flex;
            flex-direction: column;
            padding: 0px 16px;
        }

          .news-item {
        width: 100%; 
    }


        .news-item__date {
            font-size: 14px;
            margin-top: 17px;
        }

        .news-item__title {
            font-size: 16px;
            margin-top: 8px;
        }

        .news-single {
            margin-top: 40px;
        }

        .news-single__head {
            flex-direction: column;
            gap: 40px;
            margin-bottom: 24px;
        }
            
        .news-single__head-swiper-image {
            height: auto;
            border-radius: 4px;
        }

        .news-single__head-swiper-caption {
            font-size: 14px;
        }

        .news-single__head-title {
            font-size: 18px;
            margin-bottom: 16px;
            font-family: 'Playfair Display';
            font-weight: 700;
        }

        .news-single__head-desc {
            font-size: 16px;
        }

        .news-single__content {
            flex-direction: column;
            gap: 10px;
        }

        .news-single__content-left .wysiwyg-content ul li,
        .news-single__content-left .wysiwyg-content,
        .news-single__content-right .wysiwyg-content ul li,
        .news-single__content-right .wysiwyg-content {
            font-size: 16px;
            line-height: 30px;
        }

        .news-single__head-right,
        .news-single__content {
            padding: 0px 9px;
        }

        .double-gallery__wrapper__swiper.mobile {
            padding: 0px 12px;
            margin-top: 0px !important;
        }

        .news-single__content {
            margin-bottom: 40px;
        }

        .news-single__content .right-btn {
            display: flex;
            margin-bottom: 0px;
            padding-top: 30px;
        }

        .news-single__content-left, 
        .news-single__content-right,
        .news-single__content {
            font-size: 16px;
            line-height: 30px;
        }

        .alt-filter__body-input__wrapper {
            flex-direction: row!important;
        }

        /* ----- */

    #month_filter_placeholder {
            display: none;
        }

        body.accessibility-mode .news-category.active {
    background: #ffffff;
    color: #14151C;
        }


    }