/* ===========================
   Página Em Alta
   =========================== */

/* Título principal */
.ea-heading {
    text-align: center;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid #d2d2d2;
    margin-bottom: 3rem;
}

.ea-heading h1 {
    font-size: 5rem;
    line-height: 1;
    font-weight: 500;
    font-family: 'Work Sans', sans-serif;
    color: #cd1719;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Seção de cada tag */
.ea-tag-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #d2d2d2;
}

/* Heading da tag com arrows */
.ea-tag-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.ea-tag-heading__left h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 700;
    font-family: 'Newsreader', sans-serif;
    color: #0b0b0b;
    margin: 0 0 0.5rem;
}

.ea-tag-heading__left h2 span {
    font-weight: 400;
}

.ea-tag-heading__left p {
    font-size: 1.4rem;
    line-height: 1.6rem;
    color: #929292;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    margin: 0;
}

.ea-tag-heading__arrows {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-shrink: 0;
}

.ea-tag-heading__arrows button {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    border: 1px solid #d2d2d2;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color .2s;
}

.ea-tag-heading__arrows button:hover {
    border-color: #0b0b0b;
}

/* Cards do carrossel de tags */
.ea-card {
    display: flex;
    flex-direction: column;
}

.ea-card__image {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0;
}

.ea-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ea-card__text {
    margin-top: 1.2rem;
}

.ea-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.ea-card__categ {
    display: inline-block;
    background-color: #cd1719;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 0.4rem 0.8rem;
}

.ea-card__time {
    font-size: 1.1rem;
    line-height: 1;
    color: #929292;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
}

.ea-card__text h2 {
    font-size: 1.6rem;
    line-height: 2rem;
    font-weight: 600;
    color: #0b0b0b;
    margin: 0 0 0.6rem;
    font-family: 'Newsreader', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ea-card__text p {
    font-size: 1.3rem;
    line-height: 1.6rem;
    color: #0b0b0b;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 0.8rem;
}

.ea-card__source {
    font-size: 1.1rem;
    line-height: 1;
    color: #cd1719;
    font-weight: 700;
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Desktop: Grid de cards */
@media (min-width: 801px) {
    .ea-tags__slider {
        display: flex;
        flex-wrap: nowrap;
        gap: 2.4rem;
    }

    .ea-card {
        flex: 1 1 0;
        min-width: 0;
    }

    .ea-card__image {
        height: 16rem;
    }
}

/* Mobile: Slick ativo */
@media (max-width: 800px) {
    .ea-heading h1 {
        font-size: 3.5rem;
    }

    .ea-tag-heading__left h2 {
        font-size: 2.2rem;
    }

    .ea-tag-heading__arrows {
        display: none;
    }

    .ea-tags__slider .ea-card {
        width: 26rem;
        margin-right: 1.5rem;
    }

    .ea-card__image {
        height: 17rem;
    }

    .ea-card__text h2 {
        font-size: 1.5rem;
        line-height: 1.9rem;
    }
}

/* ===========================
   Mais notícias (nc-opening)
   =========================== */
.ea-mais-noticias {
    margin-top: 2rem;
    padding-bottom: 4rem;
}

.ea-mais-noticias__title {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Newsreader', sans-serif;
    color: #0b0b0b;
    margin: 0 0 0rem;
    position: relative;
    padding-left: 1.5rem;
}

h2.ea-mais-noticias__title::after {
    content: '';
    display: block;
    background: #cd1719;
    height: 3rem;
    width: 0.3rem;
    position: absolute;
    top: 0;
    left: 0;
}

/* Container nc-opening dentro de "Mais notícias" */
.ea-noticias__container {
    padding-top: 2rem;
    border-top: none;
}

.ea-page .nc-opening__posts {
    display: flex;
    justify-content: space-between;
    gap: 5rem;
}

/* Lista lateral: itens com imagem */
.nc-opening__list.ea-noticias__list a.nc-opening__item {
    display: flex;
    padding: 1rem 0;
    gap: 2rem;
    border-bottom: 0.1rem solid #cccaca;
    margin: 0 0 0.5rem 0;
}

.ea-noticias__item-img {
    flex: 0 0 10rem;
    width: 10rem;
    height: 7rem;
    overflow: hidden;
}

.ea-noticias__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ea-noticias__list .nc-opening__text .ea-card__categ {
    margin-bottom: 0.5rem;
}

.ea-noticias__list .nc-opening__text h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.ea-noticias__list .nc-opening__text .ea-card__time {
    display: block;
    margin-top: 0.3rem;
}

/* Post destacado */
.nc-opening__highlight a.nc-opening__item a div img {
    display: none;
}

.nc-opening__highlight a div img {
    height: auto;
}

.ea-page .nc-opening__highlight .nc-opening__text h2 {
    font-size: 2.8rem;
}

.ea-noticias__container .nc-opening__highlight .nc-opening__text .ea-card__categ {
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

.ea-noticias__container .nc-opening__highlight .nc-opening__text span {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.2rem;
    color: #929292;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Grid inferior: 4 cards em linha */
.ea-noticias__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.4rem;
    padding-top: 3rem;
    margin-top: 2rem;
    border-top: 1px solid #d2d2d2;
}

.ea-noticias__grid .ea-card {
    flex: 1 1 calc(25% - 1.8rem);
    min-width: 0;
}

.ea-noticias__grid .ea-card__image {
    height: 16rem;
}

@media (max-width: 800px) {
    .ea-mais-noticias__title {
        font-size: 2.4rem;
    }

    .ea-noticias__container {
        flex-direction: column;
        gap: 2rem;
    }

    .ea-noticias__list .nc-opening__item {
        flex-direction: row;
    }

    .ea-noticias__grid {
        flex-direction: column;
    }

    .ea-noticias__grid .ea-card {
        flex: 0 0 100%;
    }
}
