body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f7fa;
}

/* Cabeçalho */
header {
    background: #0a3d62;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo + título */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 130px;
    margin-right: 15px;
    filter: brightness(0) invert(1);
}

/* Menu */
nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

nav a:hover {
    border-bottom: 2px solid white;
}

nav a:hover {
    text-decoration: underline;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(10,61,98,0.7), rgba(10,61,98,0.7)),
                url("https://images.unsplash.com/photo-1580587771525-78b9dba3b914");
    background-size: cover;
    color: white;
    padding: 80px;
    text-align: center;
}

/* Conteúdo */
section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}

/* Cards */
.card {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Rodapé */
footer {
    background: #0a3d62;
    color: white;
    text-align: center;
    padding: 15px;
}

@media (max-width: 768px) {

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        margin-top: 10px;
    }

    .hero {
        padding: 40px 20px;
    }

    .logo-container img {
        width: 70px;
    }
}
``
h1, h2 {
    margin-top: 0;
}

/* Container de notícias */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
``
/* Cartões de notícias */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-5px);
}

/* Imagem */

.news-card {
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
}
}

/* Conteúdo */
.news-content {
    padding: 15px;
}

.news-content h3 {
    margin: 0;
}

/* Data */
.date {
    font-size: 14px;
    color: gray;
    margin: 5px 0 10px;
}
.news-content a {
    text-decoration: none;
    color: #0a3d62;
}

.news-content a:hover {
    text-decoration: underline;
}
section a {
    color: #0a3d62;
    font-weight: bold;
    text-decoration: none;
}

section a:hover {
    text-decoration: underline;
}

/* Slideshow */
.slideshow {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto em cima da imagem */
.slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 10px 15px;
    border-radius: 8px;
}

.slide-text a {
    color: white;
    text-decoration: none;
}

/* Botões do slideshow */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}
/* Imagem da notícia */
.news-image {
    width: 100%;
    max-width: 300px;  /* limita o tamanho */
    height: auto;
    display: block;
    margin: 20px auto; /* centra a imagem */
    border-radius: 10px;
}``
/* Título da notícia */
.news-title {
    text-align: center;
}
