@charset "UTF-8";

/* ================= BASE ================= */
body {
    font-family: "Poppins", sans-serif;
    background: #f4f6f9;
    color: #222;
}

/* ================= HEADER ================= */
.news-header {
    padding: 0px 20px 20px 20px;
    text-align: center;
}

.news-header h1 {
    font-size: 2.8rem;
    color: #0a2a66;
}

.news-header p {
    max-width: 700px;
    margin: 15px auto 0;
    color: #555;
}

/* ================= GRID ================= */
.news-section {
    padding: 0 6% 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

/* ================= CARD ================= */
.news-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(0,0,0,.2);
}

/* ================= MEDIA ================= */
.news-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #000;
}

/* imagens */
.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* vídeos (não cortam) */
.news-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* ================= CONTENT ================= */
.news-content {
    padding: 25px;
}

.news-content h3 {
    color: #0a2a66;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-content p {
    color: #555;
    font-size: .95rem;
}

/* ================= MODAL ================= */
.news-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 30px;
}

.news-modal.active {
    display: flex;
}

.modal-box {
    background: #fff;
    max-width: 900px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    animation: zoomIn .4s ease;
}

@keyframes zoomIn {
    from { transform: scale(.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ================= MODAL MEDIA ================= */
.modal-media {
    background: #000;
}

/* imagem no modal */
.modal-media img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* vídeo no modal */
.modal-media video {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: #000;
}

/* ================= MODAL CONTENT ================= */
.modal-content {
    padding: 35px;
}

.modal-content h2 {
    color: #0a2a66;
    margin-bottom: 15px;
}

.modal-content p {
    color: #444;
    line-height: 1.8;
}

/* botão fechar */
.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 768px) {

    .modal-media img,
    .modal-media video {
        height: 260px;
    }

}
