.home_blog_section{
    padding: 50px 0;
}
.latest-blog-section {
    padding: 60px 20px;
    background: #fdfdfd;
}

.latest-blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.latest-blog-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #0f2d52;
}
.latest-blog-grid+a{
    font-family: Inter;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    line-height: 24px;
    color: #3C4243;
    text-align: center;
    display: block;
    width: fit-content;
    margin: 20px auto 0;
}
.latest-blog-grid+a > img{
    vertical-align: middle;
}
.latest-blog-header p {
    font-size: 16px;
    color: #555;
}

/* Grid layout for desktop */
.latest-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns for the grid */
    grid-template-rows: auto;
    gap: 28px;
}

/* First two items join together */
.latest-blog-grid .blog-card:nth-child(1) {
    grid-column: span 2; /* takes 2 columns */
}

.latest-blog-grid .blog-card:nth-child(2) {
    grid-column: span 1; /* takes 1 column */
}

/* Remaining items (3,4,5) are normal 3-column layout */
.latest-blog-grid .blog-card:nth-child(n+3) {
    grid-column: span 1;
}

.latest-blog-grid .blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position:relative;
}

.latest-blog-grid .blog-card .blog-thumb img {
    width: 100%;
    display: block;
}

.latest-blog-grid .blog-card .blog-content {
    padding: 20px;
    /*position: absolute;*/
    position: relative;
    z-index: 1;
    bottom: 0;
    /*background: linear-gradient(180deg, rgba(180, 239, 209, 0) 2.29%, #000000ad 75.57%);;*/
    background: #fff;
    width: 100%;
}

.latest-blog-grid .blog-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.latest-blog-grid .blog-card h3 a{
    /*color:#fff;*/
    color: #0a2d59;
}
.latest-blog-grid .blog-card p {
    font-size: 15px;
    color: #555;
    /*color: #fff;*/
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .latest-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .latest-blog-grid .blog-card {
        grid-column: span 1;
    }
    .latest-blog-grid .blog-card .blog-thumb img {
        width: 100%;
        display: block;
        height: auto;
        object-fit: cover;
    }
    .latest-blog-grid .blog-card:nth-child(1) {
        grid-column: span 1;
    }
}

@media screen and (max-width: 767px) {
    .latest-blog-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0;
        row-gap: 20px;
    }
}
