/* =========================================
   Listagem + barra lateral
========================================= */
.news {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 0 24px;
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    flex: 1 1 794px;
    min-width: 0;
}

.news__load-more {
    grid-column: 1 / -1;
    justify-self: center;
    min-height: 52px;
    padding: 14px 32px;
    border: 0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--cor-branca);
    background: var(--gradiente-botao);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.news__load-more:hover {
    transform: translateY(-2px);
}

.news__load-more:disabled {
    cursor: progress;
    opacity: 0.72;
    transform: none;
}

.news__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 385px;
}

/* Filtro sem resultado */
.news__empty {
    grid-column: 1 / -1;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 1.4;
    color: var(--cor-secundaria);
    padding: 40px 0;
}

.news__empty a {
    color: var(--cor-primaria);
    text-decoration: underline;
}

/* --- Widgets da barra lateral --- */
.news-widget {
    background-color: var(--cinza);
    border: 1px solid var(--borda-tan);
    border-radius: 21px;
    box-shadow: var(--sombra-card);
    padding: 31px;
}

.news-widget__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    color: var(--cor-secundaria);
    margin-bottom: 10px;
}

.news-widget__list,
.news-widget__recent {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-widget__list li {
    border-bottom: 1px dashed var(--borda-clara);
}

.news-widget__list li:last-child {
    border-bottom: none;
}

.news-widget__link {
    display: block;
    padding: 11px 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    color: #777;
    transition: color 0.2s ease;
}

.news-widget__link:hover,
.news-widget__link--active {
    color: var(--cor-primaria);
}

/* --- Post recente --- */
.news-widget__recent li {
    border-bottom: 1px dashed var(--borda-clara);
}

.news-widget__recent li:last-child {
    border-bottom: none;
}

.recent-post {
    display: flex;
    align-items: center;
    gap: 21px;
    padding: 17px 0;
}

.recent-post__image {
    flex: 0 0 122px;
    height: 91px;
    border-radius: 16px;
    overflow: hidden;
}

.recent-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.recent-post__title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: var(--cor-secundaria);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post:hover .recent-post__title {
    color: var(--cor-primaria);
}

.recent-post__date {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    color: #999;
}

@media (max-width: 1199px) {
    .news {
        flex-direction: column;
    }

    .news__grid,
    .news__sidebar {
        flex: 1 1 auto;
        width: 100%;
    }

    .news__sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .news-widget {
        flex: 1 1 320px;
    }
}

@media (max-width: 767px) {
    .news {
        margin-top: 80px;
    }

    .news__grid {
        grid-template-columns: 1fr;
    }

    .news__sidebar {
        flex-direction: column;
    }
}

/* =========================================
   Conhecimento também faz parte do cuidado
========================================= */
.knowledge {
    max-width: 1200px;
    margin: 100px auto 100px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.knowledge__card {
    width: 100%;
    background-color: var(--cinza);
    border: 1px solid var(--borda-tan);
    border-radius: 20px;
    box-shadow: var(--sombra-card);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.knowledge__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    max-width: 990px;
    width: 100%;
}

.knowledge__desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.4;
    max-width: 794px;
    width: 100%;
}

.knowledge__closing {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
    max-width: 794px;
}

@media (max-width: 767px) {
    .knowledge {
        margin: 80px auto;
    }

    .knowledge__card {
        padding: 48px 24px;
    }

    .knowledge__title {
        font-size: 32px;
    }

    .knowledge__desc,
    .knowledge__closing {
        font-size: 18px;
    }
}
