/* styles-2026.css - VERSÃO FINAL (Refinada & Corrigida) */

:root {
    --bg-deep: #1a2e29;
    --text-light: #f1f8e9;
    --text-dark: #263238;
    --radius: 20px;
    
    /* Largura Máxima do Site - Aumentada para telas modernas */
    --site-width: 1600px;
    
    --color-brown: #8d5524;
    --color-yellow: #fec10e;
    --color-orange: #CB7245;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    background-color: #1a2e29;
    background-image: 
        linear-gradient(rgba(26, 46, 41, 0.92), rgba(26, 46, 41, 0.88)),
        url('imagens/fundo.png');
    background-size: cover, 2500px auto; 
    background-repeat: no-repeat, repeat;
    background-position: center top, center 0px;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* --- ESTRUTURA GLOBAL --- */
main {
    flex: 1;
    max-width: var(--site-width); 
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* --- HEADER OTIMIZADO --- */
.main-header {
    width: 100%;
    background: rgba(26, 46, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: center; /* Centraliza o container interno */
}

/* Container para alinhar o conteúdo do Header com o Main */
.header-container {
    width: 100%;
    max-width: var(--site-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

/* 1. ESQUERDA: Logo */
.header-left {
    flex: 0 0 auto;
    position: relative;
    width: 220px;
    height: 220px;
}

.logo-wrapper { width: 100%; height: 100%; position: relative; }
.logo-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 20px;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}
.logo-wrapper img:hover { transform: scale(1.02); }

/* 2. CENTRO */
.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    gap: 15px;
}

.header-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin: 0;
    line-height: 1;
    text-align: center;
}

.header-center nav ul {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; list-style: none;
}

/* BOTÕES NEUMORPHISM */
.neu-btn {
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #d1d9e6 100%);
    color: #2d3748;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #fff;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);    
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.neu-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
    color: #000;
}

/* BOTÃO CURSISTAS (Estilo Glass) */
.cursista-wrapper { margin-top: 5px; }

.btn-metal {
    display: inline-block;
    padding: 14px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 1px;
    
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    transition: all 0.3s ease;
}

.btn-metal:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(255, 202, 40, 0.2);
    border-color: var(--color-yellow);
    color: var(--color-yellow);
}

/* 3. DIREITA */
.header-right {
    flex: 0 0 auto;
    text-align: right;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.edition-label {
    display: block; font-size: 0.8rem; color: #80cbc4; text-transform: uppercase;
    margin-bottom: 8px; letter-spacing: 1px; font-weight: 700;
}

.header-right ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.header-right a {
    color: var(--text-light); text-decoration: none; font-size: 0.9rem; font-weight: 600;
    opacity: 0.7; transition: 0.3s; display: block;
}
.header-right a:hover { opacity: 1; color: var(--color-yellow); transform: translateX(-3px); }


/* --- SEÇÕES E GTS (AJUSTADO: FLEXBOX + CLIQUE GRANDE) --- */
.section-title {
    text-align: center; font-size: 2.5rem; font-weight: 700; margin: 80px 0 60px;
    color: #fff; text-transform: uppercase; letter-spacing: 4px;
    position: relative; display: inline-block; width: 100%;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.section-title::after {
    content: ''; display: block; width: 80px; height: 4px;
    background: #81c784; margin: 20px auto 0; border-radius: 2px;
}

.gt-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; /* Centraliza a última linha */
    gap: 40px; 
    width: 100%;
}

.card-gt {
    background-color: var(--card-bg, #4caf50); 
    color: white; 
    border-radius: var(--radius); 
    padding: 40px 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    
    flex: 1 1 350px;
    max-width: 400px;
    min-width: 300px;
    
    transition: all 0.4s; 
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.card-gt:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); z-index: 10; }

.gt-icon-circle {
    width: 100px; height: 100px; background: rgba(0, 0, 0, 0.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-bottom: 25px;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 20;
}
.gt-icon-circle h2 { font-size: 1.4rem; font-weight: 900; margin: 0; }

/* MODAL TOOLTIP REMOVIDO DAQUI */

.card-gt h3 {
    margin-bottom: 60px;
    font-size: 1.2rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.card-gt p { margin-bottom: 50px; }

/* Botão Card Expandido (Link Invisível Melhorado) */
.card-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%; 
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 25px;
    
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    z-index: 5;
}

.card-btn:hover {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: #ffca28;
    padding-bottom: 30px;
}


/* --- NOTÍCIAS E POSTAGENS (Corrigido) --- */
.news-container { margin-bottom: 60px; display: flex; flex-direction: column; gap: 50px; }

.news-card {
    background: #263238; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
    display: flex; flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
}

@media(min-width: 900px) {
    .news-card { flex-direction: row; min-height: 450px; }
    .news-card.layout-inverted { flex-direction: row-reverse; }
}

/* GALERIA COM RESPIRO */
.news-gallery { 
    width: 100%; 
    background: #1e2b27;
    position: relative; 
    padding: 20px; /* Borda interna */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media(min-width: 900px) { 
    .news-gallery { width: 50%; flex-shrink: 0; } 
}

.gallery-grid { 
    display: grid; 
    width: 100%; height: 100%; 
    gap: 10px;
    border-radius: 10px; overflow: hidden;
}
.gallery-grid.count-1 { grid-template-columns: 1fr; }
.gallery-grid.count-2 { grid-template-columns: 1fr 1fr; }
.gallery-grid.count-3, .gallery-grid.count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 50% 50%; }

.gallery-item { 
    width: 100%; height: 100%; min-height: 300px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: transparent; 
    transition: transform 0.5s; 
}
.gallery-item:hover { transform: scale(1.05); }

/* CONTEÚDO CENTRALIZADO */
.news-content { 
    padding: 50px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    text-align: center;
}

.news-content h3 { 
    color: #ffe082; font-size: 2rem; margin-bottom: 20px; line-height: 1.2;
}
.news-content p { 
    font-size: 1.1rem; color: #cfd8dc; margin-bottom: 30px; 
    max-width: 90%; margin-left: auto; margin-right: auto;
}

/* BOTÕES CENTRALIZADOS */
.btn-group { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    justify-content: center;
    width: 100%;
}

.btn-modern {
    display: inline-block; background: #ffb300; color: #3e2723; padding: 12px 30px; border-radius: 50px;
    text-decoration: none; font-weight: 800; box-shadow: 0 5px 15px rgba(255, 179, 0, 0.3); transition: all 0.3s;
    border: none; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;
}
.btn-modern:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 179, 0, 0.5); background: #ffca28; }

.btn-small { 
    padding: 10px 25px; background: rgba(255,255,255,0.05); color: #fff; 
    border: 1px solid rgba(255,255,255,0.3); box-shadow: none; 
}
.btn-small:hover { background: #fff; color: #1a2e29; }


/* --- RODAPÉ --- */
footer { 
    background: #10201d !important; 
    color: #80cbc4 !important; 
    border-top: 1px solid #2e4a40 !important; 
    padding: 1rem 0;
}

/* Animação do Instagram */
@keyframes pulse-insta {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(128, 203, 196, 0.6)); color: #fff; }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
}

.insta-pulse {
    animation: pulse-insta 3s infinite ease-in-out;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1100px) {
    .header-container { flex-direction: column; gap: 20px; padding: 30px 15px; }
    .header-left { width: 180px; height: 180px; }
    .header-right { border: none; padding: 0; width: 100%; text-align: center; }
    .header-right ul { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    
    .news-card { flex-direction: column !important; }
    .news-gallery { width: 100%; min-height: 300px; }
}