/* blog.css - VERSÃO CORRIGIDA E MELHORADA */
:root {
    --primary-color: #1D360C;
    --secondary-color: #F7F31C;
    --accent-color: #2E5C1D;
    --text-light: #F0F0F0;
    --text-dark: #333333;
    --background-light: #FFFFFF;
    --background-dark: #0A1A05;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* RESET E CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TIPOGRAFIA */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

/* SEÇÃO HEADER - CONSISTENTE COM O SITE PRINCIPAL */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* SEÇÃO 1: CABEÇALHO DO BLOG - IDÊNTICO AO SITE PRINCIPAL */
.header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--background-light);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    background: transparent !important;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(247, 243, 28, 0.3);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.55);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 1001;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 60px;
    margin-right: 15px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    z-index: 1001;
}

.nav-item {
    margin-left: 30px;
    position: relative;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-investimento {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-investimento:hover {
    background: #e6e219;
    transform: translateY(-2px);
}

.btn-investimento::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* CONTEÚDO DO HERÓI DO BLOG */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
    padding: 0 20px;
    margin-top: 80px;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
    color: var(--secondary-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle p {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 243, 28, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* SEÇÃO 2: DESTAQUES DO BLOG */
.featured-posts {
    padding: 100px 0;
    background: var(--background-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.main-featured {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.main-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.featured-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-featured:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-content {
    padding: 40px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.category {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category.sustainability {
    background: #e8f5e8;
    color: #2e7d32;
}

.category.carbon {
    background: #e3f2fd;
    color: #1565c0;
}

.category.investment {
    background: #fff3e0;
    color: #ef6c00;
}

.date {
    color: #666;
    font-size: 0.9rem;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--primary-color);
}

.featured-content h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.featured-content h2 a:hover {
    color: var(--accent-color);
}

.featured-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.post-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    color: #888;
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 1rem;
}

.read-more:hover {
    color: var(--accent-color);
    gap: 12px;
}

/* DESTAQUES SECUNDÁRIOS */
.secondary-featured {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .card-image img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.5px;
}

.category-tag.carbon {
    background: #2196f3;
}

.category-tag.investment {
    background: #ff9800;
}

.category-tag.sustainability {
    background: #4caf50;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--primary-color);
}

.card-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.card-content h3 a:hover {
    color: var(--accent-color);
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.8rem;
}

/* SEÇÃO 3: CATEGORIAS DO BLOG */
.categories-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: white;
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card:hover::before {
    left: 0;
}

.category-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 1rem;
}

.post-count {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--primary-color);
    padding: 5px 15px;
    border-radius: 15px;
    display: inline-block;
}

/* SEÇÃO 4: ARTIGOS RECENTES */
.recent-posts {
    padding: 100px 0;
    background: var(--background-light);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.5px;
}

.category-badge.carbon {
    background: #2196f3;
}

.category-badge.sustainability {
    background: #4caf50;
}

.category-badge.bioeconomy {
    background: #8bc34a;
}

.category-badge.technology {
    background: #9c27b0;
}

.category-badge.investment {
    background: #ff9800;
}

.category-badge.community {
    background: #e91e63;
}

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.author img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--primary-color);
}

.post-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-content h3 a:hover {
    color: var(--accent-color);
}

.post-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.post-stats {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.85rem;
}

/* SEÇÃO 5: NEWSLETTER */
.newsletter-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23f7f31c' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.newsletter-text h2 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 2.5rem;
}

.newsletter-text p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    line-height: 1.6;
    opacity: 0.9;
}

.newsletter-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.feature i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.15);
    padding: 50px 40px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.subscribe-form .form-group {
    margin-bottom: 25px;
}

.subscribe-form input,
.subscribe-form select {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Open Sans', sans-serif;
}

.subscribe-form input:focus,
.subscribe-form select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(247, 243, 28, 0.5);
    transform: translateY(-2px);
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
}

.form-consent input[type="checkbox"] {
    margin-top: 3px;
}

.form-consent label {
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
    opacity: 0.9;
}

.subscribe-btn {
    width: 100%;
    padding: 18px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subscribe-btn:hover {
    background: #e6e219;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(247, 243, 28, 0.4);
}

/* SEÇÃO 6: ESTATÍSTICAS DO BLOG */
.blog-stats {
    padding: 80px 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* SEÇÃO 7: AUTORES DESTAQUE */
.featured-authors {
    padding: 100px 0;
    background: var(--background-light);
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.author-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.author-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.author-card:hover::before {
    transform: scaleX(1);
}

.author-avatar {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.author-card:hover .author-avatar img {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.author-social {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 10px;
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.author-social a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.author-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.author-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1rem;
}

.author-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
}

/* SEÇÃO 8: RECURSOS EXCLUSIVOS */
.resources-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.resource-card {
    background: white;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.resource-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    transition: var(--transition);
}

.resource-card:hover .resource-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.resource-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.resource-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.download-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.3);
}

/* BOTÃO CARREGAR MAIS */
.load-more-container {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    padding: 18px 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(45, 80, 22, 0.3);
}

/* BOTÃO VOLTAR AO TOPO - CONSISTENTE COM O SITE PRINCIPAL */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #e6e219;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


/* ANIMAÇÕES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ANIMAÇÕES DE ENTRADA */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* RODAPÉ */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    margin-right: 20px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.footer-desc {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #ccc;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3,
.parceiros h3 {
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.parceiros h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.parceiros-logos {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
} 

.parceiro-logo {
    background: white;
    padding: 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.parceiro-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.parceiro-logo img {
    height: 80px;
    width: 80px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.parceiro-logo:hover img {
    filter: grayscale(0%);
}

.company-info p {
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.company-info strong {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid rgba(247, 243, 28, 0.2);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
}

.footer-links-bottom a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links-bottom a:hover {
    color: var(--secondary-color);
}

/* RESPONSIVIDADE - IMPORTANTE PARA DISPOSITIVOS MÓVEIS */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .posts-grid,
    .categories-grid,
    .authors-grid,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 30px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .posts-grid,
    .categories-grid,
    .authors-grid,
    .resources-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links-bottom {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .featured-content {
        padding: 30px 25px;
    }
    
    .featured-content h2 {
        font-size: 1.6rem;
    }
    
    .newsletter-form {
        padding: 30px 25px;
    }
    
    .author-card,
    .resource-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle p {
        font-size: 1.1rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .featured-posts,
    .categories-section,
    .recent-posts,
    .newsletter-section,
    .blog-stats,
    .featured-authors,
    .resources-section {
        padding: 60px 0;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .post-stats {
        gap: 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ESTILOS PARA ESTADOS DE CARREGAMENTO E INTERAÇÃO */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* MELHORIAS DE ACESSIBILIDADE */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* FOCO VISÍVEL PARA ACESSIBILIDADE */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ESTILOS PARA IMPRESSÃO */
@media print {
    .navbar,
    .hero-buttons,
    .footer,
    .back-to-top,
    .newsletter-section {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* CORREÇÕES ESPECÍFICAS PARA O BLOG */
.nav-link.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* ESTILOS PARA FORMULÁRIOS MELHORADOS */
.subscribe-form input:invalid,
.subscribe-form select:invalid {
    border: 1px solid #ff6b6b;
}

.subscribe-form input:valid,
.subscribe-form select:valid {
    border: 1px solid #51cf66;
}

/* ESTILOS PARA PAGINAÇÃO FUTURA */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid #e9ecef;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ESTILOS PARA MODAIS FUTURAS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}


/* BANDEIRAS NO RODAPÉ */
.footer-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.flag-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.flag-container:hover {
    transform: translateY(-3px);
}

.flag-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.flag-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.flag-text {
    font-size: 12px;
    color: #e0e0e0;
    font-weight: 500;
    text-align: center;
}

/* RESPONSIVIDADE DAS BANDEIRAS */
@media (max-width: 768px) {
    .footer-flags {
        gap: 12px;
        margin-top: 15px;
    }
    
    .flag-img {
        width: 35px;
        height: 24px;
    }
    
    .flag-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .footer-flags {
        flex-direction: column;
        gap: 10px;
    }
    
    .flag-container {
        flex-direction: row;
        gap: 10px;
    }
    
    .flag-img {
        width: 30px;
        height: 21px;
    }
    
    .flag-text {
        font-size: 10px;
    }
}



/* SELETOR DE IDIOMA  */
.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-light);
    transition: var(--transition);
}

.lang-link {
    color: inherit;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.lang-link:hover,
.lang-link:focus {
    background: rgba(247, 243, 28, 0.2);
    color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* Em telas maiores, o seletor de idiomas aparece fora do menu hambúrguer, alinhado à direita */
@media (min-width: 769px) {
    .language-selector {
        margin-left: 30px;
        position: static;
    }
}

/* Em telas menores, o seletor de idiomas aparece dentro do menu hambúrguer */
@media (max-width: 768px) {
    .language-selector {
        margin: 15px 0;
        justify-content: center;
        font-size: 0.9rem;
    }

    .lang-link {
        padding: 6px 10px;
    }

    /* Garante que o seletor de idiomas siga o estilo do menu hambúrguer quando aberto */
    .hamburger-menu .language-selector {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .language-selector {
        font-size: 0.85rem;
    }
}