body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

.illustrative {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url("/assets/images/midias-imagem.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-attachment: fixed;

    overflow: hidden;

    .illustrative-title {
        position: relative;
        z-index: 2;
        color: var(--primary-text-color);
        font-size: 80px;
        font-weight: 600;

        width: 100%;
        max-width: 1200px;

        margin: 0 auto;
        padding-left: 10vw;

        text-align: left;
    }
}

.illustrative-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.news {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    .news-header {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;

        padding-top: 16px;
        padding-bottom: 16px;

        width: 100%;
        background: var(--secondary-color);

        span {
            font-size: 48px;
            font-weight: 600;
            color: var(--primary-text-color);
            text-align: center;
        }
    }

    .news-body {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        box-sizing: border-box;

        width: 100%;

        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 32px;

        .news-title {
            padding-top: 16px;

            span {
                font-size: 36px;
                font-weight: 600;
                color: var(--overlay-text-color);
            }
        }

        .news-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            width: 100%;
            padding-top: 16px;
            padding-bottom: 16px;
            box-sizing: border-box;

            gap: 8px;

            justify-items: center;

            .card {
                display: flex;
                flex-direction: column;
                border-radius: 12px;
                width: 100%;
                max-width: 460px;
                background: #fff;
                box-shadow: 0 2px 8px rgba(0,0,0,0.08);
                overflow: hidden;
                transition: box-shadow 0.2s;
                min-height: 380px;
                margin: 0;
                align-self: stretch;
            }

            .card:hover {
                box-shadow: 0 4px 16px rgba(0,0,0,0.16);
            }

            .card-header {
                width: 100%;
                aspect-ratio: 16/9;
                min-height: 260px;
                overflow: hidden;
                background: #f5f5f5;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .card-header img {
                width: 110%;
                height: 110%;
                object-fit: cover;
                display: block;
                transform: scale(1.04);
                transition: transform 0.45s ease, width 0.45s ease, height 0.45s ease;
            }

            .card:hover .card-header img {
                transform: scale(1.12);
                width: 115%;
                height: 115%;
            }

            .card-body {
                padding: 16px;
                color: var(--overlay-text-color);
                display: flex;
                flex-direction: column;
                justify-content: center;
            }

            .card-title {
                font-size: 22px;
                font-weight: 600;
                margin-bottom: 8px;
                text-decoration: underline;
                cursor: pointer;
            }
        }
    }

}

@media (max-width: 768px) {
    .news-body {
        max-width: 100%;
        
            .news-container {
            grid-template-columns: 1fr;
            gap: 8px;
        }
    }

}

@media (max-width: 900px) {
    .news-body {
        .news-container {
            grid-template-columns: repeat(2, minmax(260px, 1fr));
            gap: 8px;
        }

        .news-container .card {
            width: 100%;
            height: auto;
            min-height: 420px;
            margin-bottom: 0;
        }

        .news-container .card .card-header {
            min-height: 200px;
            max-height: 260px;
        }

        .news-container .card .card-title {
            font-size: 20px;
        }

        .news-container .card .card-description {
            font-size: 14px;
        }
    }
}

@media (max-width: 768px) {
    .news-body .news-container .card {
        aspect-ratio: auto;
        min-height: auto;
        max-width: 100%;
        width: 100%;
    }
    .news-body .news-container .card .card-header {
        min-height: 180px;
    }
}