body {
    background-color: #fff;
}



.blog-section-block {
    width: 100%;
    padding: 40px 0;
}

.wrapper-section {
    max-width: 1260px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}


.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  
    column-gap: 30px; 
    row-gap: 0; 
}

.blog-card-link {
    text-decoration: none;   
    color: inherit;          
    display: block;        
  }
  

.card-wrapper-blog {
    width: 400px;
    height: 391px; 
}

.blog-card {
    background: #F4F4F4;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-area {
    position: relative;
    width: 380px;
    height: 255px;
    margin: 0 auto;
    overflow: hidden;
}

.image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 15px 20px;
    flex: 1;
}

.meta-info {
    display: flex;
    gap: 0px;
    bottom: 50px;    
    left: 50%;
    transform: translateX(-6%);
    margin-top: -51px;
}

.category-badge {
    background: #ffa500;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    text-decoration: none;
    width: 155px;
    height: 36px;
    white-space: nowrap;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 13px;
    width: 174px;
    height: 36px;
    white-space: nowrap;
}

.article-title {
    font-size: 22px;
    font-weight: 700;
    margin-top: -10px;
    line-height: 1.4;
    text-align: left;
}

.article-title a {
    color: #222222;
    text-decoration: none;
}

@media (max-width: 1024px) {

    .grid-layout {
        gap: 20px;
    }

    .main-content {
        width: 100%;
    }

    .sidebar-area {
        width: 350px;
    }

    .posts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        justify-content: center;
    }

    .blog-post-card {
        width: 100%;
    }

    .post-thumbnail-container {
        width: 100%;
    }
}

@media (max-width: 768px) {

    .grid-layout {
        flex-direction: column;
        align-items: center;
    }

    .main-content {
        width: 100%;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        justify-items: center; 
    }

    .card-wrapper-blog {
        width: 100%;
        max-width: 400px; /
    }

    .blog-post-card {
        width: 100%;
    }

    .post-thumbnail-container {
        width: 100%;
        height: auto;
    }

  

}

@media (max-width: 480px) {

    .blog-post-card {
        padding: 8px;
    }

    .post-thumbnail-container {
        width: 100%;
        height: 200px;
    }

    .category-badge-container {
        padding-left: 0;
        margin-left: 0;
    }

    .category-badge {
        font-size: 13px;
        padding: 6px 10px;
        width: 172px;
    }

    .post-heading a {
        font-size: 18px;
        line-height: 1.3;
    }

    .post-meta-list {
        flex-direction: column;
        gap: 6px;
    }

    .page-link {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

}

@media (max-width: 375px) {

    .blog-post-card {
        padding: 6px;
    }

    .post-thumbnail-container {
        height: 180px;
    }

    .post-heading a {
        font-size: 16px;
    }

    .category-badge {
        font-size: 12px;
        padding: 5px 8px;
    }

    .date-day {
        font-size: 18px;
        width: 45px;
    }

    .date-month {
        font-size: 10px;
        width: 45px;
    }
}
