#our-blog-section {
    padding: 80px 0;
    background-color: #fdeee8;
}

.container-blog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-blog {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    position: relative;
}

.subtitle-blog {
    color: #ff7b54;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 14px;
}

.subtitle-blog p {
    margin: 0;
}

.tittle-area {
    width: 100%;
}

.tittle-area h2 {
    font-size: 38px;
    color: #0a2d4d;
    margin: 10px 0 0;

}

.view-all-blog {
    background-color: #fff;
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all-blog:hover {
    background-color: #ff7b54;
    color: #fff;
}

.grid-blog {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    max-width: 1060px; 
    grid-auto-rows: 360px;
    gap: 20px;
    margin: 0 auto;
    place-content: center;
}

.card-blog {
    position: relative;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.card-blog:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.img-wrapper-blog {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.img-wrapper-blog img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overlay-blog {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 1;
}

.img-wrapper-blog::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: 0.3s;
    z-index: 1;
}

.card-blog:hover .img-wrapper-blog img {
    transform: scale(1.1);
}

.card-blog:hover .img-wrapper-blog::after {
    opacity: 1;
}

.info-blog {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    z-index: 2;
    text-align: left;
    pointer-events: none;
}

.description-blog {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(10px);
}

.description-blog p {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-blog:hover .description-blog {
    opacity: 1;
    max-height: 100px;
    visibility: visible;
    transform: translateY(0);
}

.card-blog:hover .overlay-blog {
    height: 80%;
}

.info-blog h3 {
    font-size: 19px;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.3;
    font-weight: bold;
}

.meta-blog {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

.meta-blog p {
    margin: 0%;
    color: #fff;
    background-color: #EFEFEF1A;
    padding: 4px 8px 4px 8px;
    border-radius: 4px 4px 4px 4px;
}

.date-blog,
.tags-blog {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.tags-blog {
    color: #fff;
    background-color: #efefef1f;
    padding: 4px 8px 4px 8px;
    border-radius: 4px 4px 4px 4px;
    text-align: center;
}


@media (max-width: 1280px) {
    .grid-blog {
        grid-template-columns: repeat(2, 1fr); 
        max-width: 700px;
    }

    .container-blog {
        width: 100%; 
        max-width: 772px;
    }

    .header-blog {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-blog h2 {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .grid-blog {
        grid-template-columns: 1fr; 
        max-width: 340px;
    }

    .container-blog {
        width: 100%;
        padding: 0 20px;
    }

    .card-blog {
        height: 100%;

    }

    .description-blog p {

        -webkit-line-clamp: 2;

    }
    .info-blog h3 {
    font-size: 17px;
   
}
}