.custom-posts-slider {
    max-width: 1689px;
    margin: 0 auto;
    position: relative;
    padding: 0 16px;
}

.custom-posts-slider .swiper {
    overflow: visible;
}

.custom-posts-slider__wrap {
    position: relative;
    overflow: hidden;
}

.custom-posts-slider .swiper-slide {
    height: auto;
}

.custom-post-card {
    position: relative;
    min-height: 632px;
    display: flex;
    align-items: flex-end;
    padding: 0px;
    overflow: hidden;
    cursor: pointer;
    margin: 0;
}

.custom-post-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.7s ease;
    z-index: 0;
    will-change: transform;
}

.custom-post-card__dark-overlay{
    position: absolute;
    inset: 0;
    background: #000000CC;
    z-index: 1;
    pointer-events: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    opacity: 1;
    transition: opacity 0.45s ease;
    will-change: opacity;
}

.custom-post-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 78.31%);
    z-index: 1;
    pointer-events: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s ease;
    will-change: opacity;
}

.custom-post-card.is-active .custom-post-card__dark-overlay {
    opacity: 0;
}

.custom-post-card.is-active .custom-post-card__overlay {
    opacity: 1;
}

.custom-post-card__content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.custom-post-card__title {
    margin: 0;
    letter-spacing: 0;
    font-family: "SF UI Display", sans-serif;
    font-weight: 200;
    font-size: 32px;
    line-height: 120%;
    text-transform: uppercase;
    color: #FFF;
    padding: 0 40px;
    transform: translateY(65px);
    transition: transform 0.35s ease;
}

.custom-post-card__hidden {
    opacity: 0;
    transform: translateY(65px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    padding: 0 40px 66px;
    visibility: hidden;
}

.custom-post-card__desc {
    margin-top: 20px;
    max-width: 580px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
}

.custom-post-card__btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #E51467;
    border: 1px solid #E51467;
    margin: 0;
    min-width: 225px;
    font-family: "SF UI Display", sans-serif;
    font-weight: 300;
    font-size: 16px !important;
    line-height: 24px;
    text-transform: math-auto;
    color: #FFF;
    transition: all 0.5s;
    cursor: pointer;
    padding: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-post-card__btn:hover {
    background: #fff;
    color: #E51467;
    border: 1px solid #FFF;
}

.custom-post-card.is-active .custom-post-card__title {
    transform: translateY(-16px);
}

.custom-post-card.is-active .custom-post-card__hidden {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.custom-post-card.is-active .custom-post-card__bg {
    transform: scale(1.06);
}

.custom-posts-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    cursor: pointer;
    background: #FFFFFF0D;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;
}

.custom-posts-slider__nav:hover {
    background: #E51467;
}

.custom-posts-slider__nav svg path {
    fill: #fff;
}

.custom-posts-slider__nav--prev {
    left: 16px;
}

.custom-posts-slider__nav--next {
    right: 16px;
}

.custom-post-card,
.custom-post-card__bg,
.custom-post-card__overlay,
.custom-post-card__content,
.custom-posts-slider .swiper-slide {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

.custom-posts-slider__pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.custom-posts-slider__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 0.4;
    transition: all 0.5s ease;
    margin: 0 !important;
    border-radius: 8px;
}

.custom-posts-slider__pagination .swiper-pagination-bullet-active {
    width: 30px;
    background: #E51467;
    opacity: 1;
}

@media (min-width: 1025px) {
    .custom-post-card:hover .custom-post-card__hidden,
    .custom-post-card:focus-within .custom-post-card__hidden {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
    }

    .custom-post-card:hover .custom-post-card__bg,
    .custom-post-card:focus-within .custom-post-card__bg {
        transform: scale(1.06);
    }
}

@media (max-width: 1024px) {
    .custom-post-card {
        min-height: 313px;
        padding: 0
    }

    .custom-post-card__title {
        font-size: 24px;
        line-height: 1.15;
        padding: 0 16px;
    }

    .custom-post-card__hidden {
        padding: 0px 16px 60px;
    }

    .custom-post-card__desc {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.5;
    }

    .custom-post-card__btn {
        margin-top: 20px;
        min-width: 160px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .custom-posts-slider__nav {
        display: none;
    }

    .custom-posts-slider__nav--prev {
        left: 12px;
    }

    .custom-posts-slider__nav--next {
        right: 12px;
    }
}

@media (min-width: 1025px) {
    .custom-post-card:hover .custom-post-card__title,
    .custom-post-card:focus-within .custom-post-card__title {
        transform: translateY(-16px);
    }

    .custom-post-card:hover .custom-post-card__hidden,
    .custom-post-card:focus-within .custom-post-card__hidden {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
    }

    .custom-post-card:hover .custom-post-card__bg,
    .custom-post-card:focus-within .custom-post-card__bg {
        transform: scale(1.06);
    }

    .custom-post-card:hover .custom-post-card__dark-overlay,
    .custom-post-card:focus-within .custom-post-card__dark-overlay {
        opacity: 0;
    }

    .custom-post-card:hover .custom-post-card__overlay,
    .custom-post-card:focus-within .custom-post-card__overlay {
        opacity: 1;
    }

    .custom-posts-slider__pagination {
        display: none;
    }
}




/* Блокировка скролла страницы */
.popup-lock {
    overflow: hidden;
}


/* POPUP ROOT */
.custom-post-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: opacity .35s ease, visibility .35s ease;
}


/* ACTIVE STATE */
.custom-post-popup.is-open {
    opacity: 1;
    visibility: visible;
}


/* BACKDROP */
.custom-post-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
}


/* DIALOG */
.custom-post-popup__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 890px;
    max-height: 90vh;
    overflow: hidden;
    background: #0E0E0E;
    color: #fff;
    border-radius: 6px;
    transform: translateY(30px);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
}

.custom-post-popup.is-open .custom-post-popup__dialog {
    transform: translateY(0);
    opacity: 1;
}

.custom-post-popup__body {
    max-height: 90vh;
    padding: 60px 60px 70px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-post-popup__body::-webkit-scrollbar {
    display: none;
}

.custom-post-popup__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease;
    z-index: 2;
    background-color: #0E070B;
}

.custom-post-popup__close svg path{
    fill: #FFF;
}

.custom-post-popup__close:hover {
    background: #E51467;
}


/* ARTICLE */
.custom-post-popup__article {
    max-width: 820px;
    margin: 0 auto;
}


/* IMAGE */
.custom-post-popup__image {
    margin-bottom: 32px;
}

.custom-post-popup__image img {
    width: 100%;
    height: auto;
    display: block;
}


/* TITLE */
.custom-post-popup__title {
    font-family: "SF UI Display", sans-serif;
    margin-bottom: 24px;
    font-weight: 200;
    font-size: 32px;
    line-height: 120%;
    text-transform: uppercase;
    color: #FFF;
}


/* CONTENT */
.custom-post-popup__content {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

.custom-post-popup__content p {
    margin-bottom: 18px;
}

.custom-post-popup__content img {
    max-width: 100%;
    height: auto;
}

.custom-post-popup__content h2,
.custom-post-popup__content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
}


@media (max-width: 1024px) {

    .custom-post-popup__dialog {
        max-width: 95vw;
        max-height: 95vh;
    }

    .custom-post-popup__body {
        padding: 30px 22px 40px;
    }

    .custom-post-popup__title {
        font-size: 28px;
        line-height: 1.3;
    }

    .custom-post-popup__content {
        font-size: 16px;
        line-height: 1.6;
    }

}



html[lang^="ar"] .custom-post-card__btn{
    right: auto;
    left: 0;
}

html[lang^="ar"] .custom-post-card__hidden{
    padding: 0 40px 80px;
}