.section-center {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.container-blog {
    max-width: 1090px;
    padding-left: 15px;
    padding-right: 15px;
}

.badge-latest {
    background-color: var(--tr-primary); 
    color: #fff;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title-custom {
    font-size: 32px;
    font-weight: 800;
    color: #484848;
    line-height: 1.3;
    margin-bottom: 0px !important;
}


.custom-card-post {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

.custom-card-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.img-container-wrapper {
    position: relative;
    width: 100%;
    padding: 25px 25px 0 25px; 
}

.card-img-top-custom {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.category-badge-floating {
    position: absolute;
    bottom: -14px;
    right: 34px;
    background-color: var(--tr-accent-green); 
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 5px;
    z-index: 2;
}


.post-content-custom {
    padding: 20px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 190px;
}

.post-meta-inline {
    display: flex;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    align-items: center;
}

.post-meta-inline .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title-custom {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-title-custom a {
    color: var(--tr-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.post-title-custom a:hover {
    color: var(--tr-primary); 
}

.post-desc-custom {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 0;
}

.webkit-line-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.webkit-line-3 {
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;  
    overflow: hidden;
}


@media (max-width: 1280px){
    .container-blog {
    max-width: 750px;
    
}
}

@media (max-width: 900px){
    .container-blog {
     padding-left:0px;
    padding-right:0px;
}
}

@media (max-width: 768px) {
    .container-blog {
    max-width: 330px;
    
}
    .section-title-custom {
        font-size: 26px;
    }
    .card-img-top-custom {
        height: 200px;
    }
    .post-content-custom {
        padding: 15px 20px 20px 20px;
    }
}