
.blog-hero {
    background: linear-gradient(to right, rgba(242, 231, 225, 0.9), rgba(242, 231, 225, 0.9)), url('image/blog-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
}

.blog-hero-content h1 {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.blog-hero-content p {
    font-size: 1.3rem;
    color: var(--dark-text);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s both;
}


.article-hero {
    background: linear-gradient(to right, rgba(242, 231, 225, 0.9), rgba(242, 231, 225, 0.9));
    padding: 140px 0 60px;
    position: relative;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    color: var(--secondary);
    transform: translateX(-5px);
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-date, .article-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary);
    font-size: 0.9rem;
}

.article-hero-content h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--dark-text);
    font-style: italic;
    max-width: 800px;
}

.texto-justificado{
     text-align: justify;
}


.single-article {
    padding: 60px 0;
}

.article-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--dark-text);
}

.article-tags {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--light);
}

.article-tags span {
    font-weight: 600;
    color: var(--primary);
    margin-right: 15px;
}

.article-tags a {
    display: inline-block;
    background: var(--light);
    color: var(--dark-text);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    margin: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: var(--primary);
    color: var(--white);
}

.article-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--light);
}

.next-article {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.next-article span {
    font-size: 0.9rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.next-article h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 10px;
    transition: all 0.3s ease;
}

.next-article:hover h3 {
    color: var(--secondary);
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}


.featured-posts {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 -15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.featured-post {
    flex: 0 0 calc(33.333% - 30px);
    min-width: calc(33.333% - 30px);
    margin: 0 15px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.featured-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-post-image img {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-post-content {
    padding: 25px;
}

.featured-post-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
    line-height: 1.4;
}

.featured-post-content p {
    color: var(--dark-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary);
}

.read-more:hover::after {
    transform: translateX(5px);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}


.all-posts {
    padding: 80px 0;
    background-color: #faf9f8;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.blog-post {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.post-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 40px;
}

.post-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h2 a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-content h2 a:hover {
    color: var(--secondary);
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.post-meta i {
    margin-right: 5px;
}

.post-content p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--dark-text);
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 1200px) {
    .featured-post {
        flex: 0 0 calc(50% - 30px);
        min-width: calc(50% - 30px);
    }
}

@media (max-width: 992px) {
    .blog-hero-content h1 {
        font-size: 3rem;
    }
    
    .article-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .post-content, .article-content {
        padding: 30px;
    }
    
    .post-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .blog-hero, .article-hero {
        padding: 120px 0 80px;
    }
    
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .article-hero-content h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .featured-post {
        flex: 0 0 calc(100% - 30px);
        min-width: calc(100% - 30px);
    }
    
    .post-image, .article-image img {
        height: 250px;
    }
    
    .post-content, .article-content {
        padding: 25px;
    }
    
    .post-content h2 {
        font-size: 1.6rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .article-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .featured-post-content {
        padding: 20px;
    }
    
    .featured-post-content h3 {
        font-size: 1.2rem;
    }
    
    .article-tags a {
        margin: 3px;
        padding: 4px 12px;
        font-size: 0.8rem;
    }
}