/* =========================================
   RESET ESPECÍFICO PARA NOTÍCIAS
   ========================================= */
/* Importando a mesma fonte do site principal */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@10..48,400;10..48,700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

/* Variáveis de Cor (baseadas no seu site) */
:root {
    --primary-color: #2B543C; /* Verde Escuro */
    --accent-color: #88B04B;  /* Verde Claro */
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f4f4f4;
    --white: #ffffff;
    --red-news: #c0392b; /* Cor para tags de destaque */
}

/* Ajuste do Body para esta página */
body {
    background-image: none; /* Remove a imagem de fundo da home para facilitar leitura */
    background-color: var(--bg-light); 
    color: var(--text-dark);
}
a {
    color: var(--terra);
    text-decoration: none;
}

/* =========================================
   HEADER (CABEÇALHO)
   ========================================= */
header {
    padding: 20px 0;
}

.container-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.titulo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.titulo h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.titulo img {
    width: 40px;
    height: auto;
}


/* Breadcrumb */
.breadcrumb {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
    color: var(--text-light);
}

.container-news {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb a {
    color: var(--primary-color);
    font-weight: bold;
}

.breadcrumb .current {
    color: var(--text-light);
}

/* Cabeçalho da Página */
.page-header {
    grid-column: 1 / -1; /* Ocupa toda a largura */
    margin: 30px 0 20px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Bricolage Grotesque', sans-serif;
}

/*
 * NAVBAR STYLING (AJUSTADO PARA O HAMBÚRGUER)
 */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center; /* Alinha o menu/ícone ao centro no desktop */
    padding: 10px 5%; 
    color: #ffffff00;
    position: relative; /* Para o posicionamento absoluto do menu no mobile */
    background-color: var(--accent-color);
}

.nav-links a {
    color: #ffffff;
}

.menu {
    display: flex; /* Padrão Desktop: Menu visível e em linha */
    gap: 0.8em;
    font-size: clamp(1rem, 2vw + 0.5rem, 1.2rem);
    flex-wrap: wrap;
    justify-content: center;
}

.menu li:hover {
    background-color: #113100;
    border-radius: 5px;
    transition: 0.3s ease;
}

.menu li {
    padding: 10px 40px;
    border: 1px solid rgb(33, 93, 42);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    white-space: nowrap;
}

/*
 * ESTILOS DO HAMBÚRGUER
 */

/* Esconde o checkbox */
#menu-toggle {
    display: none; 
}

/* Esconde o ícone hambúrguer no desktop */
.menu-icon {
    display: none; 
    cursor: pointer;
    font-size: 30px;
    padding: 5px;
    z-index: 11;
}

/* DROPDOWN MENU */
.services {
    position: relative; 
}

.dropdown {
    background-color: transparent;
    padding: 1em 0;
    position: absolute;
    display: none;
    border-radius: 8px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 8em;
    z-index: 10;
}

.dropdown li {
    background-color: rgb(7, 84, 26);
    padding: 0.5em 1em;
    width: 100%;
    text-align: center;
}

.services:hover .dropdown {
    display: block;
}

/* =========================================
   GRID LAYOUT PRINCIPAL (O segredo do estilo Globo.com)
   ========================================= */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Manchete (2 partes), Feed (1 parte), Sidebar (1 parte) */
    gap: 30px;
    margin-bottom: 50px;
}

/* Tags de Categoria */
.tag, .category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: 'Helvetica', sans-serif;
}

.tag-destaque {
    background-color: var(--red-news);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
}

.category {
    color: var(--primary-color);
}

/* Manchete Principal (Hero) */
.manchete-principal {
    grid-column: 1 / 2; /* Ocupa a primeira coluna larga */
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.manchete-principal figure {
    height: 400px;
    overflow: hidden;
}

.manchete-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.manchete-principal:hover img {
    transform: scale(1.05);
}

.manchete-principal .content {
    padding: 20px;
}

.manchete-principal h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.manchete-principal .resumo {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Coluna do Meio (Feed Secundário) */
.feed-secundario {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-horizontal {
    display: flex;
    gap: 15px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.card-horizontal:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-horizontal .img-wrapper {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.card-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.card-horizontal h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.card-horizontal time, .manchete-principal time {
    font-size: 0.8rem;
    color: #999;
}

/* Sidebar (Mais Lidas) */
.sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.sidebar-header h3 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.lista-numerada {
    list-style: none;
    counter-reset: news-counter;
}

.lista-numerada li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.lista-numerada a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.lista-numerada .numero {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.lista-numerada p {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-dark);
}

.lista-numerada a:hover p {
    color: var(--primary-color);
}

.banner-sidebar {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-top: 20px;
}

.banner-sidebar button {
    margin-top: 10px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* Grid Inferior (4 colunas) */
.grid-inferior {
    grid-column: 1 / -1;
    margin-top: 40px;
}

.section-title {
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card-vertical {
    background: white;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-vertical img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.card-vertical h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* =========================================
   RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    .main-grid {
        display: flex;
        flex-direction: column; /* Empilha tudo um embaixo do outro */
    }

    .manchete-principal figure {
        height: 250px; /* Imagem menor no celular */
    }

    .manchete-principal h2 {
        font-size: 1.5rem;
    }

    .grid-cards {
        grid-template-columns: 1fr; /* 1 coluna de cards */
    }
    
    .sidebar {
        order: 3; /* Joga a sidebar para o final no mobile */
    }
}
/* =========================================
   FOOTER (RODAPÉ) - Otimizado e Responsivo
   ========================================= */
footer {
    background-color: #2B543C;
    color: #E0D4B8;
    padding: 60px 0 0;
    font-family: 'Lora', serif;
    border-top: 5px solid #88B04B;
    margin-top: 80px;
    width: 100%;
}

.container-floresta {
    display: flex;
    justify-content: space-between; /* Distribui melhor o espaço */
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    gap: 40px;
}

.coluna-contato, .coluna-navegacao, .coluna-legal-social {
    flex: 1 1 300px; /* Garante base de 300px antes de quebrar */
    min-width: 250px;
}

footer h4 {
    color: #fff;
    border-bottom: 2px solid #88B04B;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

footer ul {
    padding: 0;
}

footer li {
    margin-bottom: 10px;
}

footer a {
    color: #A4CC68;
    transition: 0.3s;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Ajuste do Formulário (Newsletter/Contato) */
.newsletter-signup form {
    display: flex;
    flex-direction: column; /* Itens um embaixo do outro */
    gap: 15px;
}

.newsletter-signup label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.newsletter-signup input[type="email"],
.newsletter-signup textarea {
    padding: 12px;
    border-radius: 8px;
    background-color: #f5f5dc;
    border: 1px solid #88B04B;
    width: 100%; /* Ocupa toda a largura da coluna */
    font-family: inherit;
}

.newsletter-signup button {
    padding: 12px 25px;
    border-radius: 25px;
    background-color: #88B04B;
    color: #1A3626;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    align-self: flex-start; /* Botão alinhado à esquerda no desktop */
}

.newsletter-signup button:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

.copyright-bar {
    background-color: #1A3626;
    color: #88B04B;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    width: 100%;
}