/* Blog Moderno */
.blog-area {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.blog-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.section-intro .badge {
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 8px 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.section-intro h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.text-gradient {
    background: linear-gradient(90deg, #1d4e68, #5da4af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards Modernos */
.blog-post {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-post img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover img {
    transform: scale(1.05);
}

.blog-post .content {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.blog-post .content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 70%);
    z-index: -1;
}

.blog-post h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #1a1a1a;
}

.blog-post .meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.blog-post .meta i {
    margin-right: 8px;
    color: #1d4e68;
}

.blog-post p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.blog-post a {
    display: inline-flex;
    align-items: center;
    color: #1d4e68;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-post a:hover {
    color: #5da4af;
    transform: translateX(5px);
}

.blog-post a i {
    margin-left: 8px;
    transition: all 0.3s ease;
}

.blog-post:hover a i {
    transform: translateX(3px);
}

/* Efeito de tag */
.blog-post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #1d4e68, #5da4af);
    transition: all 0.3s ease;
}

.blog-post:hover::after {
    width: 6px;
}

/* Responsividade */
@media (max-width: 992px) {
    .blog-area {
        padding: 80px 0;
    }
    
    .section-intro h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-area {
        padding: 60px 0;
    }
    
    .blog-post {
        margin-bottom: 30px;
    }
    
    .blog-post img {
        height: 200px;
    }
}

/* Página individual do post */
.blog-post-page {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.blog-post-page .post-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    padding: 50px;
    position: relative;
}

.blog-post-page .post-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #1d4e68, #5da4af);
    border-radius: 16px 0 0 16px;
}

.blog-post-page .post-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.blog-post-page .post-content .meta {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: #6c757d;
    font-size: 0.95rem;
}

.blog-post-page .post-content .content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.blog-post-page .post-content .content p {
    margin-bottom: 1.5rem;
}

.blog-post-page .back-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: linear-gradient(90deg, #1d4e68, #5da4af);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px #5da4af;
}

.blog-post-page .back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px #5da4af;
}

.blog-post-page .back-button i {
    margin-right: 8px;
}

/* Espaçamento entre os cards */
#blog-posts .blog-post {
    margin: 5px !important; /* Espaçamento de 5px em todos os lados */
    flex: 0 0 calc(33.333% - 10px) !important; /* Mantém 3 cards por linha considerando o margin */
    max-width: calc(33.333% - 10px) !important; /* Mantém 3 cards por linha considerando o margin */
}

/* Ajuste para telas menores */
@media (max-width: 992px) {
    #blog-posts .blog-post {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

@media (max-width: 768px) {
    #blog-posts .blog-post {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #1d4e68;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-button:hover {
    background: #5da4af;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.back-button i {
    margin-right: 8px;
}

.blog-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.blog-image-container img {
  width: 100%;
  display: block;
  transition: opacity 0.4s ease-in-out;
}

.blog-image-container .img-color {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.blog-post:hover .img-color {
  opacity: 1;
}

.blog-post:hover .img-duo {
  opacity: 0;
}
