/* Variáveis de Identidade Visual */
:root {
    --primary: #5D2A18;      /* Marrom Logo - Terra/Seriedade */
    --secondary: #1E510B;    /* Verde Logo - Agroecologia/Natureza */
    --accent: #8C5B3F;
    --light-green: #f1f8e9;
    --off-white: #fdfcfb;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* Reset e Estrutura Base */
body {
    background-color: var(--off-white);
    color: #333;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding-top: 90px; /* Espaço para o header fixo não cobrir o conteúdo */
}

/* Header Fixo e OPACO (Correção de Legibilidade) */
.navbar {
    background-color: #ffffff !important; /* Branco sólido para não vazar conteúdo */
    border-bottom: 4px solid var(--secondary);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 1030; /* Garante que fique acima de tudo */
}

.nav-link {
    color: var(--primary) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    padding: 0.5rem 1rem !important;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--secondary) !important;
    background-color: var(--light-green);
    border-radius: 5px;
}

/* Estilo para o link ativo (Opcional) */
.nav-item.active .nav-link {
    color: var(--secondary) !important;
}

/* Títulos das Seções */
.section-title {
    color: var(--primary);
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 35px;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 5px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Tags de Temas de Atuação */
.tema-tag {
    display: inline-block;
    background: var(--light-green);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 4px;
    border: 1px solid rgba(30, 81, 11, 0.15);
    transition: 0.3s;
}

.tema-tag:hover {
    background: var(--secondary);
    color: white;
}

/* Responsividade do Vídeo no Desktop */
@media (min-width: 992px) {
    .video-container {
        max-width: 90%;
        margin: 0 auto;
        padding: 10px;
        background: white;
        box-shadow: var(--shadow);
        border-radius: 8px;
    }
}

/* Ajustes Mobile */
@media (max-width: 991px) {
    body { padding-top: 80px; }
    .navbar-collapse {
        background: white;
        margin-top: 10px;
        padding: 20px;
        border-radius: 8px;
        box-shadow: var(--shadow);
    }
}

/* Centralização e Uniformidade de Capas */
.card-img-top, .img-fluid {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Garante que o container de livros na home seja um flexbox vertical centralizado */
.col-lg-4 .sticky-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}