/*news*/
.news-hero {
    padding-block: 354px 210px;
    position: relative;
    overflow: hidden;
}

.news-hero::before,
.news-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: opacity 0.9s;
    pointer-events: none;
}

.news-hero::before {
    background-image: url('../images/background/paralax-2.png');
    opacity: 1;
}

.news-hero::after {
    background-image: url('../images/background/paralax-1.png');
    opacity: 0;
}


.news-hero > .container, .news-hero__content {
    position: relative;
    z-index: 1;
}

.news-hero > .container {
    display: flex;
    justify-content: center;
}

.news-hero__title {
    background: var(--gradient-light);
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    text-align: center;
    margin-bottom: 64px;
}

.news-hero__button {
    padding: 18px 64px;
    background-color: #222222;
}

.news-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 921px;
    width: 100%;
}

.parallax {
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}

.parallax-1 {
    background-image: url('../images/background/paralax-1.png');
}

.parallax-2 {
    background-image: url('../images/background/paralax-2.png');
}

/*news list*/
.news {
    padding: 100px 66px;
    background: #1D1D1D;
    border-radius: 32px;
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 407px);
    gap: 24px;
    justify-content: center;
}

.news-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 274px;
    padding: 24px 61px 24px 13px;
}

.news-card__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform .7s ease;
}

.news-card:hover .news-card__bg-image {
    transform: scale(1.25);
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.news-card__content {
    z-index: 2;
    max-width: 100%;
}

.news-card__title {
    color: var(--neutral-500);
    text-overflow: ellipsis;
    overflow: hidden;
}

.news-card__arrow {
    position: absolute;
    top: 24px;
    right: 13px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.23);
    border-radius: 16px;
    transition: all 0.3s ease;
    padding: 20px;
}

.news-card__arrow-img {
    width: 17px;
    height: 18px;
    transition: transform .5s ease-in-out;
}

.news-card:hover .news-card__arrow-img {
    transform: rotate(60deg);
}

.news__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

@media (max-width: 768px) {
    .news {
        padding: 22px 25px;
    }

    .news__title {
        font-size: 32px;
    }

    .news__grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        min-height: 150px;
    }

    .news-card__title {
        font-size: 18px;
    }
}


/*details Hero*/
.news-details__hero {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}


.news-details__gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../images/background/news-bg.png') no-repeat bottom center;
    opacity: 0;
    animation: gradientIn 1.3s forwards;
    border-radius: 24px;
    pointer-events: none;
    background-size: cover;

}

.news-details__hero > .container {
    background: #242424;
    padding: 32px;
    border-radius: 24px;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.news-details__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 457px;
    position: relative;
    z-index: 1;
    transform: translateX(-150%);
    animation: slideLeft 1.2s forwards 0.8s;
}

@keyframes slideLeft {
    0% {
        transform: translateX(-150%);
    }
    100% {
        transform: translateX(0%);
    }
}

.news-details__img {
    border-radius: 32px;
    max-width: 685px;
    width: 100%;
    min-height: 457px;
    object-position: 30% center;
}

.news-details__title {
    color: var(--neutral-500);
    max-width: 579px;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
}

.news-details__breadcrumbs {
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    color: var(--neutral-500);
    border-radius: 42px;
}

.news-details__breadcrumbs > .container {
    padding-block: 8px;
    max-width: 100%;
    display: flex;
}

.news-details__link {
    position: relative;
    max-width: 194px;
    background-color: var(--neutral-700);
    border-radius: 42px;
    padding: 8px 16px;
    z-index: 2;
    transition: all .3s ease-in-out;
}

.news-details__link:hover {
    background: var(--neutral-900);
    border: 1px solid var(--gradient-light);
}

.news-details__current {
    position: relative;
    background: var(--gradient-dark);
    padding: 8px 16px 8px 65px;
    margin-left: -63px;
    border-radius: 42px;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*Main*/

.news-details__main {
    background-color: var(--neutral-50);
    border-radius: 32px;
    padding: 64px 285px;
}

.news-details__text {
    color: #5E5E5E;
}

.news-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: -26px;
}

@media (max-width: 1399px) {
    .news-details__content {
        flex-direction: column;
        gap: 20px;
    }

    .news-details__title {
        order: 2;
        max-width: 100%;
    }

    .news-details__img {
        max-width: 100%;
    }

    .news-details__link {
        font-size: 16px;
        padding: 8px 20px;
    }

    .news-details__current {
        font-size: 16px;
        padding: 8px 8px 8px 67px;
    }
}

@media (max-width: 1000px) {
    .news-details__main {
        padding: 20px 25px;
    }

    .news-details__img {
        min-height: 200px;
    }

    .news-details__hero > .container {
        padding: 20px 25px;
    }

    .news-details__title {
        font-size: 24px;
    }

    .news-details__content {
        min-height: auto;
    }

    .news-details__text {
        font-size: 16px;
    }
}
