:root {
    --primary-blue: #0056b3;
    --light-blue: #e3f2fd;
    --accent-orange: #ff9800;
    --text-dark: #333;
    --white: #ffffff;
}

/* Reset básico para tirar margens indesejadas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f4f7f6;
    overflow-x: hidden;
}

header {
    background: linear-gradient(135deg, var(--primary-blue), #003366);
    color: white;
    padding: 20px 5% 60px 5%; /* Aumentamos o padding inferior por causa do clip-path */
    display: flex;
    flex-direction: column; /* Faz os itens ficarem um embaixo do outro */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    min-height: auto;
}

/* Alinha Logo e Menu na mesma linha */
.nav-container {
    display: flex;
    justify-content: space-between; /* Logo na esquerda, Menu na direita */
    align-items: center;
    width: 100%;
    margin-bottom: 20px; /* Espaço entre o menu e o título h1 */
}

.nav-links {
    list-style: none;
    display: flex;    
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase; /* Estilo mais moderno para menus */
    letter-spacing: 1px; /*esse estava no cod. anterior e decidi deixar */
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

/* Centraliza o H1 e o P */
.hero-content {
    
    text-align: center;
    padding-bottom: 20px;
}

.hero-content h1 {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem); /* Fonte fluida */;
    margin-bottom: 10px;
}

.hero-content p{
    font-size: 1.2rem;
    opacity: 0.9;
}
/* --- ESTILO DO MENU HAMBÚRGUER --- */

#menu-check {
    display: none; /* Esconde o checkbox */
}

.menu-btn {
    display: none; /* Esconde o botão hambúrguer no desktop */
    cursor: pointer;
    padding: 10px;
}

/* Responsividade (Mobile) */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        order: -1;
        width: 100px;
        height: 100px;
    }

    .about-text {
        text-align: left;
        margin: 50px;
        margin-top: 10px;
    }
    .menu-btn {
        display: block; /* Mostra o hambúrguer no mobile */
        z-index: 10;
    }

    /* Cria as 3 linhas do hambúrguer */
    .menu-btn span, .menu-btn span::before, .menu-btn span::after {
        display: block;
        background: white;
        height: 3px;
        width: 25px;
        position: relative;
        transition: 0.3s;
    }

    .menu-btn span::before, .menu-btn span::after {
        content: '';
        position: absolute;
    }

    .menu-btn span::before { top: -8px; }
    .menu-btn span::after { bottom: -8px; }

    /* Estiliza a lista como um menu suspenso */
    .nav-links {
        position: absolute;
        top: 80px;
        right: 5%;
        background: rgba(0, 51, 102, 0.95);
        flex-direction: column;
        width: 200px;
        padding: 20px;
        border-radius: 8px;
        display: none; /* Escondido por padrão */
        text-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    .nav-links li {
        margin: 15px 0;
    }

    /* Quando o checkbox estiver marcado, mostra o menu */
    #menu-check:checked ~ .nav-links {
        display: flex;
    }
    
    /* Animação simples do ícone X ao clicar */
    #menu-check:checked + .menu-btn span { background: transparent; }
    #menu-check:checked + .menu-btn span::before { transform: rotate(45deg); top: 0; }
    #menu-check:checked + .menu-btn span::after { transform: rotate(-45deg); bottom: 0; }
}

/* Container Geral */
.container {
    max-width: 1000px;
    margin: 50px auto;
    display: flex;
    gap: 50px;
    align-items: center;    
}

.section-title {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
}

/* Criando a Grade de Posts */
.posts-grid {
    display: grid;
    /* Cria colunas automáticas de no mínimo 300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Estilo do Card individual */
.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px); /* Efeito de flutuar ao passar o mouse */
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Garante que a imagem não distorça */
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-content h3 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.post-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Botão Ler Mais */
.btn-read {
    margin-top: auto;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-block;
    transition: 0.3s;
}

.btn-read:hover {
    color: var(--accent-orange);
}

/*remove linha de links*/
a {
    text-decoration: none;
    color: var(--primary-blue);
}

a:hover {
    color: var(--accent-orange);
}

footer {
    background: #eee;
    text-align: center;
    padding: 30px 15px;
    font-size: 0.8rem;
    font-weight: bold;
}