/* ==========================
   NEWSPAPER HERO
========================== */

.newspaper-hero {
    padding: 40px 0 0;
}

.newspaper-hero__container {
    max-width: 1920px;

    margin: 0 auto;

    padding: 0 40px;
}

.newspaper-hero__row {
    display: flex;

    align-items: center;

    gap: 40px;

    margin-bottom: 10px;
}


/* ==========================
   КНОПКА НАЗАД
========================== */

/* Кнопка назад */
.newspaper-hero__back {
    font-family: "Manrope-Regular", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    align-self: flex-start;

    height: fit-content;

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(0, 0, 0, .05);

    color: #555;
    text-decoration: none;

    font-size: 14px;

    transition: .3s ease;
}

.newspaper-hero__back:hover {
    background: rgba(0, 0, 0, .1);
}


/* ==========================
   ЗАГОЛОВОК
========================== */

.newspaper-hero__title {
    font-family: "AV Fontimer-SemiBold", sans-serif;

    font-size: 80px;

    font-weight: 700;

    line-height: .95;

    color: #202020;

    margin: 0;
}


/* ==========================
   NEWSPAPER LIST
========================== */

.newspaper-list {
    padding: 40px 0 80px;

    font-family: "Manrope-Regular", sans-serif;
}

.newspaper-list__container {
    max-width: 1920px;

    margin: 0 auto;

    padding: 0 40px;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* ==========================
   NEWSPAPER CARD
========================== */

.newspaper-card {
    display: block;

    text-decoration: none;

    background: #ffffff;

    border-radius: 16px;

    overflow: hidden;

    transition: .3s ease;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.newspaper-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}


/* ==========================
   ОБЛОЖКА
========================== */

.newspaper-card__image {
    height: 420px;

    overflow: hidden;

    background: #f4f4f4;
}

.newspaper-card__image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .4s ease;
}

.newspaper-card:hover .newspaper-card__image img {
    transform: scale(1.03);
}


/* ==========================
   КОНТЕНТ
========================== */

.newspaper-card__content {
    padding: 18px;
}

.newspaper-card__title {
    color: #303030;

    font-size: 22px;

    font-weight: 500;

    line-height: 1.35;

    word-break: break-word;

    overflow-wrap: break-word;

    margin: 0;

    overflow: hidden;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    transition: color .3s ease;
}


/* Зеленый цвет заголовка при наведении */

.newspaper-card:hover .newspaper-card__title {
    color: rgba(16, 128, 34, 1);
}


/* ==========================
   FADE IN
========================== */

.fade-in-section {
    opacity: 0;

    transform: translateY(40px);

    transition: all .8s ease;
}

.fade-in-section.visible {
    opacity: 1;

    transform: translateY(0);
}


/* ==========================
   TABLET
========================== */

@media (max-width: 1024px) {

    .newspaper-hero__container {
        padding: 0 16px;
    }

    .newspaper-hero__row {
        gap: 40px;
    }

    .newspaper-hero__title {
        font-size: 56px;
    }


    .newspaper-list__container {
        padding: 0 30px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }


    .newspaper-card__image {
        height: 360px;
    }

    .newspaper-card__title {
        font-size: 18px;
    }
}


/* ==========================
   MOBILE
========================== */

@media (max-width: 480px) {

    .newspaper-hero {
        padding: 20px 0 0;
    }

    /*.newspaper-hero__container {*/
    /*    padding: 0 15px;*/
    /*}*/
    .newspaper-hero__row {
        gap: 20px;

        margin-bottom: 10px;
    }


    .newspaper-hero__back {
        font-size: 14px;

        padding: 6px 12px;
    }


    .newspaper-hero__title {
        font-size: 32px;

        margin-bottom: 20px;
    }


    .newspaper-list {
        padding: 20px 0 40px;
    }

    .newspaper-list__container {
        padding: 0 15px;

        grid-template-columns: 1fr;

        gap: 16px;
    }


    .newspaper-card__image {
        height: 420px;
    }


    .newspaper-card__content {
        padding: 14px;
    }


    .newspaper-card__title {
        font-size: 16px;

        line-height: 1.4;
    }


    .back-text {
        display: none;
    }

    .back-icon {
        font-size: 18px;
    }
}
