/*
Theme Name: VClima Observatório
Theme URI: https://projetovclima.com
Author: Equipe VClima
Description: Tema customizado para o projeto de pesquisa e extensão VClima.
Version: 1.0
Text Domain: vclima
*/

:root {
    --musgo-profundo: #233d00;
    --verde-floresta: #2e6417;
    --marrom-escuro: #5d3828;
    --marrom-intenso: #3d2500;
    --marrom-acinzentado: #433128;
    --laranja-apagado: #c2a394;
    --laranja-claro: #fffdf9;
    --shadow-soft: 0 5px 15px rgba(61, 37, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--laranja-claro);
    color: var(--marrom-intenso);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

header {
    background-color: #fff;
    padding: 1.5rem 1rem 0;
    text-align: center;
    border-bottom: 4px solid var(--marrom-escuro);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container { margin-bottom: 1rem; display: flex; flex-direction: column; align-items: center; }
.project-logo { max-width: 300px; height: auto; margin-bottom: 0.5rem; }
.subtitle { color: var(--marrom-acinzentado); font-style: italic; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 1rem; }

.main-menu { border-top: 1px solid var(--laranja-apagado); padding: 1rem 0; background-color: #fff; }
.main-menu ul { list-style: none; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.main-menu button {
    background-color: transparent; color: var(--marrom-escuro); border: 1px solid transparent; 
    padding: 8px 16px; font-size: 0.95rem; cursor: pointer; font-family: 'Lato', sans-serif; 
    font-weight: 700; border-radius: 20px; transition: 0.3s;
}
.main-menu button:hover, .main-menu button.active { background-color: var(--verde-floresta); color: #fff; transform: translateY(-2px); }

main { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; min-height: 60vh; }
.content-section { animation: fadeIn 0.6s ease-out; }
.hidden { display: none; }
.section-title { color: var(--marrom-intenso); border-left: 5px solid var(--verde-floresta); padding-left: 15px; margin-bottom: 30px; font-size: 2rem; }

.hero {
    background: linear-gradient(rgba(93, 56, 40, 0.85), rgba(61, 37, 0, 0.9)), url('https://via.placeholder.com/1200x400'); 
    background-size: cover; background-position: center; color: var(--laranja-claro);
    padding: 4rem 2rem; text-align: center; border-radius: 12px; margin-bottom: 3rem;
    box-shadow: var(--shadow-soft); border: 1px solid var(--marrom-escuro);
}
.hero h2 { font-size: 3rem; margin-bottom: 1rem; color: #fff; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.news-card {
    background: #fff; border-radius: 12px; overflow: hidden; transition: transform 0.3s; 
    box-shadow: var(--shadow-soft); border: 1px solid rgba(194, 163, 148, 0.3); display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); border-color: var(--verde-floresta); }
.news-img { width: 100%; height: 200px; object-fit: cover; }
.news-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.news-date {
    display: inline-block; background: var(--laranja-apagado); color: #fff;
    padding: 4px 10px; font-size: 0.75rem; border-radius: 20px; margin-bottom: 10px; font-weight: bold; width: fit-content;
}
.news-card h3 { color: var(--marrom-escuro); margin-bottom: 10px; font-size: 1.3rem; line-height: 1.3; }

.btn-ler-mais {
    background: none; border: none; color: var(--verde-floresta); font-weight: bold;
    font-size: 1rem; cursor: pointer; margin-top: auto; padding-top: 10px; text-align: left; font-family: 'Lato', sans-serif;
}
.btn-ler-mais:hover { color: var(--musgo-profundo); text-decoration: underline; }

#leitor-noticia { background: #fff; padding: 2.5rem; border-radius: 12px; box-shadow: var(--shadow-soft); max-width: 900px; margin: 0 auto; border-top: 5px solid var(--marrom-escuro); }
.btn-voltar { background-color: transparent; border: 1px solid var(--marrom-escuro); color: var(--marrom-escuro); padding: 8px 20px; border-radius: 20px; cursor: pointer; font-weight: bold; margin-bottom: 20px; transition: 0.3s; font-family: 'Lato', sans-serif; }
.btn-voltar:hover { background-color: var(--marrom-escuro); color: #fff; }
.news-full-content h1 { font-size: 2.5rem; color: var(--marrom-intenso); line-height: 1.2; margin-bottom: 0.5rem; }
.leitor-meta { font-size: 0.9rem; color: var(--verde-floresta); font-weight: bold; border-bottom: 1px solid #eee; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.leitor-hero-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 8px; margin-bottom: 2rem; border: 1px solid var(--laranja-apagado); }
.leitor-body-text { font-size: 1.1rem; line-height: 1.8; color: var(--marrom-acinzentado); text-align: justify; }
.leitor-body-text p { margin-bottom: 1.5rem; }

.split-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.event-card { display: flex; gap: 15px; background: #fff; padding: 20px; margin-bottom: 20px; border-radius: 10px; align-items: center; box-shadow: var(--shadow-soft); border-left: 4px solid var(--verde-floresta); }
.event-date-box { background-color: var(--marrom-escuro); color: #fff; padding: 10px; border-radius: 8px; text-align: center; min-width: 80px; }
.event-day { display: block; font-size: 1.8rem; font-weight: bold; line-height: 1; }
.event-month { display: block; font-size: 0.8rem; text-transform: uppercase; margin-top: 5px; }

.link-btn {
    display: block; background-color: var(--marrom-escuro); color: #fff;
    text-align: center; padding: 15px; margin-bottom: 15px; text-decoration: none;
    border-radius: 8px; font-weight: bold; transition: background 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.link-btn:hover { background-color: var(--verde-floresta); transform: translateY(-2px);}
.link-desc { font-size: 0.85rem; color: #ddd; display: block; font-weight: normal; margin-top: 5px;}

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.team-card { text-align: center; padding: 2rem 1rem; background: #fff; border-radius: 12px; box-shadow: var(--shadow-soft); border-bottom: 3px solid var(--laranja-apagado); }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--laranja-apagado); margin-bottom: 15px;}

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery-item { background: #fff; padding: 10px; border-radius: 8px; box-shadow: var(--shadow-soft); }
.gallery-img { width: 100%; height: 220px; object-fit: cover; border-radius: 6px; }

.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; align-items: center; margin-top: 2rem; }
.partner-logo { max-height: 80px; filter: grayscale(100%); opacity: 0.7; transition: all 0.4s; }
.partner-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

.pubs-list-container .pub-item { background: #fff; padding: 1.5rem; border-radius: 8px; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; border: 1px solid #eee; transition: 0.3s; }
.pubs-list-container .pub-item:hover { border-color: var(--marrom-escuro); }
.btn-download { display: inline-flex; align-items: center; gap: 8px; color: var(--verde-floresta); border: 2px solid var(--verde-floresta); padding: 5px 15px; border-radius: 20px; text-decoration: none; font-weight: bold; font-size: 0.85rem; }
.btn-download:hover { background: var(--verde-floresta); color: #fff; cursor: pointer; }

.text-card { background: #fff; padding: 2rem; border-radius: 12px; box-shadow: var(--shadow-soft); border-left: 4px solid var(--laranja-apagado); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

footer { background-color: #fff; margin-top: 4rem; border-top: 8px solid var(--verde-floresta); }
.sponsors-area { padding: 2rem; text-align: center; border-bottom: 1px solid #eee; }
.sponsors-area h4 { color: var(--marrom-acinzentado); margin-bottom: 1.5rem; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.sponsors-grid { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; align-items: center; }
.sponsors-grid img { max-height: 60px; filter: grayscale(100%); opacity: 0.6; }
.copyright { background-color: var(--marrom-intenso); color: var(--laranja-apagado); text-align: center; padding: 1.5rem; font-size: 0.85rem; }

.btn-link { background: none; border: 2px solid var(--marrom-escuro); color: var(--marrom-escuro); padding: 10px 25px; cursor: pointer; font-weight: bold; border-radius: 25px; transition: 0.3s; }
.btn-link:hover { background: var(--marrom-escuro); color: #fff; }

.lightbox { position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(61, 37, 0, 0.95); display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-content { text-align: center; max-width: 90%; max-height: 90%; position: relative; }
#lightbox-img { max-width: 100%; max-height: 80vh; border: 2px solid var(--laranja-claro); border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
#lightbox-desc { color: var(--laranja-claro); margin-top: 10px; font-size: 1.1rem; font-family: 'Lato', sans-serif; }
.close-btn { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 10001; }
.close-btn:hover { color: var(--laranja-apagado); }
.nav-btn { background: none; border: none; color: #fff; font-size: 3rem; font-weight: bold; cursor: pointer; padding: 0 20px; transition: 0.3s; user-select: none; z-index: 10000; }
.nav-btn:hover { color: var(--laranja-apagado); transform: scale(1.1); }
.prev { position: absolute; left: 20px; }
.next { position: absolute; right: 20px; }

@media (max-width: 768px) {
    .split-layout { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .hero h2 { font-size: 2rem; }
    .project-logo { max-width: 200px; }
    #leitor-noticia { padding: 1.5rem; }
    .news-full-content h1 { font-size: 1.8rem; }
    .nav-btn { font-size: 2rem; padding: 0 10px; }
    .prev { left: 5px; }
    .next { right: 5px; }
}

/* AJUSTE BOLSISTAS - FOTO QUADRADA 1:1 */
.team-photo {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 8px !important; /* Deixa as pontas levemente arredondadas, se quiser quadrado reto, mude para 0 */
}

/* AJUSTE AGENDA - ORGANIZACAO DE LOCAL E HORA */
.event-info span {
    display: flex;
    align-items: center;
    gap: 8px; /* Dá um espacinho entre o ícone e o texto */
    margin-bottom: 5px;
}

.event-info p {
    margin-top: 10px;
    line-height: 1.5;
}

/* ========================================================
   DESIGN EXCLUSIVO DA AGENDA (CARD COM BORDA VERDE)
======================================================== */
.event-card {
    background-color: #FFFFFF !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border-left: 6px solid #1A531A !important; /* A barra verde lateral */
    padding: 20px 25px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
}

.event-date-box {
    background-color: #4B2E1D !important; /* Fundo castanho escuro */
    border-radius: 8px !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.event-day {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #FFFFFF !important; /* Força o texto a ficar branco puro */
}

.event-month {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    margin-top: 4px !important;
    color: #FFFFFF !important; /* Força o texto a ficar branco puro */
}

.event-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-info h4 {
    font-size: 1.4rem !important;
    color: #4B2E1D !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
}

.event-details {
    font-size: 1.05rem !important;
    color: #444444 !important;
    margin: 0 0 12px 0 !important;
}

.btn-ver-programacao {
    background: none !important;
    border: none !important;
    color: #1A531A !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    padding: 0 !important;
    text-align: left !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Corrige o erro do quadradinho e força a exibição do ícone de olho */
.btn-ver-programacao i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif !important;
    font-weight: 900 !important;
}

/* DESCONGELA O CABEÇALHO */
header {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
}