/* 
 * Modern Institutional Layout (Overrides for Abrace Esperança style)
 */

:root {
    /* Modern Colors Override */
    --color-green: #2B7A5C;
    --color-green-dark: #1E5C44;
    --color-yellow: #FFC107;
    --bg-dark: #1A1D20;
    --bg-light: #f8fafc;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* 1. Header & Topbar */
.modern-topbar {
    background: var(--bg-dark);
    color: var(--color-white);
    padding: 8px 0;
    font-size: 0.85rem;
}
.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.topbar-left a, .topbar-right a {
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-associado {
    background: var(--color-yellow);
    color: var(--text-dark) !important;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.site-header {
    border-top: none;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-main-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.site-branding {
    flex-direction: row;
    gap: 15px;
}
.main-navigation {
    flex: unset;
}
.classic-nav a {
    color: var(--text-dark);
    font-weight: 600;
    font-family: var(--font-heading);
}
.classic-nav a:hover {
    color: var(--color-green);
}

/* 2. Full-Width Sections */
.section-full {
    width: 100%;
    padding: var(--space-xl) 0;
}
.section-light {
    background: var(--bg-light);
}
.section-white {
    background: var(--bg-white);
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

/* Hero Slider Section */
.modern-hero {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modern-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); /* Escurece imagem para leitura */
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}
.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.btn-hero {
    background: var(--color-green);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: background 0.3s;
}
.btn-hero:hover {
    background: var(--color-green-dark);
}

/* 3. Grid Moderno (3 Colunas) */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.modern-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.modern-card:hover {
    transform: translateY(-5px);
}
.modern-card > a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.modern-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.modern-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.modern-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.modern-card-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.btn-outline {
    display: inline-block;
    border: 2px solid var(--color-green);
    color: var(--color-green);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto; /* Alinha o botão na base do card */
    align-self: flex-start;
}
.btn-outline:hover {
    background: var(--color-green);
    color: white;
}

/* Publicacoes Adjustments */
.pub-card-img {
    width: 100%;
    height: 350px !important;
    object-fit: contain;
    background-color: #f8fafc;
    padding: 10px;
}

/* 4. Quem Somos */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* 5. Footer Moderno */
.modern-footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}
.footer-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: var(--color-white);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: var(--color-green-light);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .modern-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-modern-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .topbar-container { flex-direction: column; gap: 10px; }
    .hero-content h2 { font-size: 2rem; }
}
@media (max-width: 768px) {
    .modern-grid { grid-template-columns: 1fr; }
    .footer-modern-grid { grid-template-columns: 1fr; }
    .header-main-area { flex-direction: column; gap: 20px; }
}

/* Download Button Fix */
.btn-download {
    background: var(--color-green);
    color: white !important;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    border: none;
}
.btn-download:hover {
    background: var(--color-green-dark);
    color: white !important;
}
.btn-download:visited {
    color: white !important;
}
