/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #023324 0%, #8CC053 100%);
    padding: 120px 0 80px;
    margin-top: var(--HeaderHeight);
    color: white;
}

.blog-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease forwards;
}

.blog-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.blog-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.blog-search input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

.blog-search button {
    background: var(--Orange);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.blog-search button:hover {
    background: #a04a25;
}

/* Blog Main Content */
.blog-main {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.category-btn {
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover, .category-btn.active {
    background: var(--LightGreen);
    color: white;
}

.blog-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.post-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    transform: translateZ(0); /* Aceleração por hardware */
}
.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out; /* ease-out pode ajudar */
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    will-change: transform; /* Prepara o navegador para animação */
}
/* Garantir que imagens carregadas mantenham qualidade */
.post-image[src] {
    image-rendering: auto;
}


.site-container {
    background-color: #F4F4F4;
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.blog-post-card:hover .post-image {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 20px;
    right: 15px;
    background: var(--LightGreen);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.post-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-excerpt {
    font-family: 'Inter', sans-serif;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--Orange);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.post-read-more:hover {
    color: #a04a25;
}

.post-read-more i {
    font-size: 14px;
    transition: transform 0.3s;
}

.post-read-more:hover i {
    transform: translateX(5px);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover, .pagination-btn.active {
    background: var(--LightGreen);
    color: white;
    border-color: var(--LightGreen);
}

/* Newsletter */
.blog-newsletter {
    background: #f9f9f9;
    padding: 60px 0;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.newsletter-content {
    text-align: center;
}

.newsletter-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.newsletter-text {
    font-family: 'Inter', sans-serif;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 30px 0 0 30px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

.newsletter-form button {
    background: var(--LightGreen);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    padding: 0 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #7aa84a;
}

/* Responsividade */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 36px;
    }
    
    .blog-hero-subtitle {
        font-size: 16px;
    }
    
    .blog-posts-container {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        border-radius: 30px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 28px;
    }
    
    .blog-categories {
        justify-content: flex-start;
    }
}
/* Single Post Styles */
.single-post {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.post-article {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 40px;
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #777;
}

.post-category {
    background: var(--LightGreen);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.post-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.post-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    display: block;
    font-weight: 600;
    color: #333;
}

.author-title {
    font-size: 14px;
    color: #777;
}

.post-featured-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #444;
}

.post-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    color: #333;
    margin: 40px 0 20px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-image-left {
    float: left;
    width: 50%;
    margin: 0 30px 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.image-caption {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin-top: 10px;
}

.post-tip {
    background: #f9f9f9;
    border-left: 4px solid var(--LightGreen);
    padding: 20px;
    margin: 30px 0;
    display: flex;
    gap: 15px;
    border-radius: 0 8px 8px 0;
}

.tip-icon {
    font-size: 24px;
}

.tip-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--LightGreen);
    margin-bottom: 10px;
}

.post-cta {
    background: linear-gradient(135deg, #023324 0%, #8CC053 100%);
    padding: 30px;
    border-radius: 10px;
    margin: 50px 0;
    color: white;
    text-align: center;
}

.post-cta h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
}

.post-cta p {
    max-width: 600px;
    margin: 0 auto 20px;
    opacity: 0.9;
}

.btn-cta {
    background: white;
    color: var(--Green);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 50px 0 30px;
    font-size: 14px;
}

.post-tags span {
    font-weight: 600;
    color: #333;
}

.post-tags a {
    background: #f5f5f5;
    color: #555;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: var(--LightGreen);
    color: white;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-share span {
    font-weight: 600;
    color: #333;
}

.social-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s;
}

.social-share:hover {
    transform: translateY(-3px);
}

.facebook { background: #3b5998; }
.whatsapp { background: #25d366; }

/* Related Posts */
.related-posts {
    margin: 80px 0 50px;
}

.related-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.related-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.related-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    padding: 20px;
    color: #333;
}

/* Responsividade */
@media (max-width: 768px) {
    .post-article {
        padding: 25px;
    }
    
    .post-title {
        font-size: 26px;
    }
    
    .post-image-left {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .related-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .post-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .post-title {
        font-size: 22px;
    }
    
    .post-content h2 {
        font-size: 20px;
    }
}
/* blog/css/blog.css */
.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #666;
}
/* Tabelas em posts */
.post-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-table th, .post-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.post-table th {
    background-color: #f5f5f5;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Listas ordenadas em posts */
.post-content ol {
    counter-reset: item;
    padding-left: 0;
}

.post-content ol > li {
    counter-increment: item;
    margin-bottom: 15px;
    list-style-type: none;
    position: relative;
    padding-left: 30px;
}

.post-content ol > li:before {
    content: counter(item);
    background: var(--LightGreen);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    text-align: center;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 14px;
    line-height: 22px;
}

/* Responsividade para tabelas */
@media (max-width: 600px) {
    .post-table {
        display: block;
        overflow-x: auto;
    }
}
/* blog/css/blog.css */
.post-toc {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.toc-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--Green);
    margin-top: 0;
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.toc-list a:hover {
    color: var(--LightGreen);
}

.highlight {
    animation: highlightFade 2s ease-out;
}

@keyframes highlightFade {
    0% { background-color: rgba(187, 211, 110, 0.5); }
    100% { background-color: transparent; }
}
/* Espaçamento abaixo do header */
.back-button-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #023324;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.3s;
    margin-top: 30px;
}

.back-button:hover {
    color: #8CC053;
}

/* Ajuste de espaçamento do conteúdo */
.single-post {
    padding-top: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #023324;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.back-button:hover {
    color: #8CC053;
}

.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.post-header {
    margin-bottom: 30px;
}

.post-title {
    font-size: 28px;
    color: #023324;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.post-category {
    font-weight: 600;
    text-transform: uppercase;
}

.post-content {
    line-height: 1.8;
}

.post-content h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #023324;
}

.post-content p {
    margin-bottom: 15px;
}

.post-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-tip {
    background: #f8f8f8;
    border-left: 3px solid #8CC053;
    padding: 15px;
    margin: 20px 0;
}

.tip-content h3 {
    color: #8CC053;
    margin-bottom: 5px;
    font-size: 16px;
}

/* Responsivo */
@media (max-width: 768px) {
    .post-title {
        font-size: 24px;
    }
    
    .post-content h2 {
        font-size: 20px;
    }
}
.post-article a {
    text-decoration: none;
}

.post-article a:hover {
    text-decoration: none; /* Ou mantenha sem sublinhado se preferir */
}