ul.posts-gv-1, ul.posts-gv-2, ul.posts-gv {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.posts-gv h2.post-title {
    margin-top: 0 !important; 
}

.posts-gv h2.post-title a {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

ul.posts-gv-1>li {
    padding: 20px 0;
    border-bottom: 1px solid #D5D5D5;
}

ul.posts-gv-1>li:first-child {
    padding-top: 0;
}
ul.posts-gv-1>li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.posts-gv .item.type_1 .content .post-title {
    margin: 10px 0;
}
.posts-gv .item.type_1 .content .post-title a {
    font-size: 18px;
    font-weight: 800;
    line-height: 26.1px;
    letter-spacing: 0.02em;
    text-align: justified;
    color: #051A53;
    -webkit-line-clamp: 3;
}

.posts-gv .item.type_1 .content .post-title a:hover {
    text-decoration: underline;
}

.posts-gv .item.type_1 .media img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
} 

.posts-gv .item.type_1 .content .post-date {
    font-size: 14px;
    font-weight: 400;
    line-height: 18.9px;
    letter-spacing: 0.03em;
    color: #828D9B;
}

/* card type 2 */
.posts-gv .item.type_2 {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}
.posts-gv .item.type_2 .content .post-title {
    margin: 10px 0;
}
.posts-gv .item.type_2 .content .post-title a {
    font-size: 16px;
    font-weight: 800;
    line-height: 21.6px;
    letter-spacing: 0.02em;
    text-align: justified;
    color: #051A53;
    -webkit-line-clamp: 3;
}
.posts-gv .item.type_2 .content {
    width: calc(100% - 80px);
}
.posts-gv .item.type_2 .content .post-title a:hover {
    text-decoration: underline;
}

.posts-gv .item.type_2 .media img {
    width: 80px;
    aspect-ratio: 1;
    object-fit: cover;
} 

.posts-gv .item.type_2 .content .post-date {
    font-size: 14px;
    font-weight: 400;
    line-height: 18.9px;
    letter-spacing: 0.03em;
    color: #828D9B;
}

/* card type 3 */
.posts-gv .item.type_3 {
    display: flex;
    gap: 24px;
}
.posts-gv .item.type_3 .content .post-title {
    margin: 10px 0;
}
.posts-gv .item.type_3 .content .post-title a {
    font-size: 16px;
    font-weight: 800;
    line-height: 21.6px;
    letter-spacing: 0.02em;
    text-align: justified;
    color: #051A53;
    -webkit-line-clamp: 3;
}
.posts-gv .item.type_3 .content {
    width: calc(100% - 230px);
}
.posts-gv .item.type_3 .content .post-title a:hover {
    text-decoration: underline;
}

.posts-gv .item.type_3 .media img {
    width: 230px;
    aspect-ratio: 23/17;
    object-fit: cover;
} 

.posts-gv .item.type_3 .content .post-date {
    font-size: 14px;
    font-weight: 400;
    line-height: 18.9px;
    letter-spacing: 0.03em;
    color: #828D9B;
}

/* card type 4 */
.posts-gv .item.type_4 {
    display: flex;
    gap: 10px;
}
.posts-gv .item.type_4 .content .post-title {
    margin: 10px 0;
}
.posts-gv .item.type_4 .content .post-title a {
    font-size: 16px;
    font-weight: 800;
    line-height: 21.6px;
    letter-spacing: 0.02em;
    text-align: justified;
    color: #051A53;
    -webkit-line-clamp: 3;
}
.posts-gv .item.type_4 .content {
    width: calc(100% - 70px);
}
.posts-gv .item.type_4 .content .post-title a:hover {
    text-decoration: underline;
}

.posts-gv .item.type_4 .media img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 90%;
    border: 2px solid #BC2626;
} 

.posts-gv .item.type_4 .content .post-date {
    font-size: 14px;
    font-weight: 400;
    line-height: 18.9px;
    letter-spacing: 0.03em;
    color: #828D9B;
}

ul.posts-gv-2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

ul.posts-gv-2>li {
    position: relative;
}

ul.posts-gv-2>li:not(:first-child) {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}
ul.posts-gv-2>li:not(:first-child):nth-child(2)::after,
ul.posts-gv-2>li:not(:first-child):nth-child(3)::after {
    position: absolute;
    width: 100%;
    height: 1px;
    content: '';
    bottom: -20px;
    background-color: #D5D5D5;
}

ul.posts-gv-2>li:not(:first-child) .content .post-title {
    margin: 10px 0;
}
ul.posts-gv-2>li:not(:first-child) .content .post-title a {
    font-size: 16px;
    font-weight: 800;
    line-height: 21.6px;
    letter-spacing: 0.02em;
    text-align: justified;
    color: #051A53;
    -webkit-line-clamp: 3;
}
ul.posts-gv-2>li:not(:first-child) .content {
    width: calc(100% - 80px);
}
ul.posts-gv-2>li:not(:first-child) .content .post-title a:hover {
    text-decoration: underline;
}
ul.posts-gv-2>li:not(:first-child) .content .post-des {
    display: none;
}
ul.posts-gv-2>li:not(:first-child) .media img {
    width: 80px;
    aspect-ratio: 1;
    object-fit: cover;
} 
ul.posts-gv-2>li:not(:first-child) .content .post-date {
    font-size: 14px;
    font-weight: 400;
    line-height: 18.9px;
    letter-spacing: 0.03em;
    color: #828D9B;
}
ul.posts-gv-2>li:first-child {
    grid-row: 1 / span 2;
    grid-column: 1 / span 2;
    display: flex;
    flex-direction: row-reverse;
    gap: 24px;
}

ul.posts-gv-2>li:first-child::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: #D5D5D5;
    top: 0;
    right: -20px;
}

ul.posts-gv-2>li:first-child .content .post-title {
    margin: 10px 0;
}
ul.posts-gv-2>li:first-child .content .post-des p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.03em;
    text-align: justified;
    color: #051A53;
    -webkit-line-clamp: 4;
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}
ul.posts-gv-2>li:first-child .content .post-title a {
    font-size: 18px;
    font-weight: 800;
    line-height: 26.1px;
    letter-spacing: 0.02em;
    text-align: justified;
    color: #051A53;
    -webkit-line-clamp: 3;
}
ul.posts-gv-2>li:first-child .content {
    width: calc(100% - 270px);
}
ul.posts-gv-2>li:first-child .content .post-title a:hover {
    text-decoration: underline;
}

ul.posts-gv-2>li:first-child .media img {
    width: 270px;
    height: 236px;
    object-fit: cover;
} 

ul.posts-gv-2>li:first-child .content .post-date {
    font-size: 14px;
    font-weight: 400;
    line-height: 18.9px;
    letter-spacing: 0.03em;
    color: #828D9B;
}

/* style for sticky post  */
.item-sticky .media .box-img img{
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.item-sticky ul.post-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.item-sticky ul.post-meta .post-category {
    padding: 0px 20px;
    border-radius: 30px;
    border: 1px solid var(--primary);
}

.item-sticky ul.post-meta .post-category span {
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--primary);
}

.item-sticky ul.post-meta .post-author{
    display: flex;
    gap: 10px;
    align-items: center;
}

.item-sticky ul.post-meta .post-author .label {
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.05em;
    color: #6B6C70;
}

.item-sticky ul.post-meta .post-author .value {
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.05em;
    color: var(--heading);
    text-transform: uppercase;
}

.item-sticky .content .post-title a{
    font-size: 34px;
    font-weight: 800;
    line-height: 42.5px;
    text-align: center;
    color: var(--heading);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.item-sticky .content .post-title a:hover {
    text-decoration: underline;
}

.item-sticky .content .post-des p{
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
    color: #373D4E;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 0;
}

ul.posts-gv.column-4 {
    gap: 40px;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    list-style-type: none;
}

ul.posts-gv.column-4 li.item {
    position: relative;
}

ul.posts-gv.column-4 li.item:not(:nth-child(4n)):after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: #D5D5D5;
    top: 0;
    right: -20px;
}

ul.posts-gv.posts-gv-3 .content .post-des p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin-bottom: 16px;
}

/* style for list bai viet 4 */
ul.posts-gv-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

ul.posts-gv-4>li:not(:first-child) {
    display: flex;
    gap: 20px;
}
ul.posts-gv-4>li {
    position: relative;
}
ul.posts-gv-4>li:not(:first-child):not(:nth-child(6)):not(:nth-child(7)):after {
    position: absolute;
    width: 100%;
    height: 1px;
    content: '';
    bottom: -20px;
    background-color: #D5D5D5;
}
ul.posts-gv-4>li:not(:first-child) .content .post-title {
    margin: 10px 0;
}
ul.posts-gv-4>li:not(:first-child) .content .post-title a {
    font-size: 16px;
    font-weight: 800;
    line-height: 21.6px;
    letter-spacing: 0.02em;
    text-align: justified;
    color: #051A53;
    -webkit-line-clamp: 3;
}
ul.posts-gv-4>li:not(:first-child) .content {
    width: calc(100% - 100px);
}
ul.posts-gv-4>li:not(:first-child) .content .post-title a:hover {
    text-decoration: underline;
}
ul.posts-gv-4>li:not(:first-child) .content .post-des {
    display: none;
}
ul.posts-gv-4>li:not(:first-child) .media img {
    width: 100px;
    height: 100px;
    object-fit: cover;
} 

ul.posts-gv-4>li:not(:first-child) .post-meta{
    display: none;
}

ul.posts-gv-4>li .post-meta {
    display: flex;
    gap: 24px;
}

ul.posts-gv-4>li ul.post-meta .post-category {
    padding: 0px 20px;
    border-radius: 30px;
    border: 1px solid var(--primary);
}

ul.posts-gv-4>li ul.post-meta .post-category span {
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--primary);
}

ul.posts-gv-4>li ul.post-meta .post-author .label {
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.05em;
    color: #6B6C70;
}

ul.posts-gv-4>li ul.post-meta .post-author{
    display: flex;
    gap: 10px;
    align-items: center;
}

ul.posts-gv-4>li ul.post-meta .post-author .value {
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.05em;
    color: var(--heading);
    text-transform: uppercase;
}


ul.posts-gv-4>li:first-child {
    grid-row: 1 / span 3;
    grid-column: 1 / span 2;
    display: flex;
    gap: 24px;
    align-items: center;
}

ul.posts-gv-4>li:first-child::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: #D5D5D5;
    top: 0;
    right: -20px;
}

ul.posts-gv-4>li:first-child .content .post-title {
    margin: 10px 0;
}
ul.posts-gv-4>li:first-child .content .post-des p {
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.03em;
    text-align: justified;
    color: #051A53;
    -webkit-line-clamp: 4;
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    margin-bottom: 0px;
}
ul.posts-gv-4>li:first-child .content .post-title a {
    font-size: 18px;
    font-weight: 800;
    line-height: 24px;
    letter-spacing: 0.02em;
    text-align: left;
    color: #051A53;
    -webkit-line-clamp: 4;
}
ul.posts-gv-4>li:first-child .content {
    width: calc(100% - 270px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
ul.posts-gv-4>li:first-child .content .post-title a:hover {
    text-decoration: underline;
}

ul.posts-gv-4>li:first-child .media img {
    width: 290px;
    height: 410px;
    object-fit: cover;
} 

ul.posts-gv-4>li:first-child .content .post-date {
    font-size: 14px;
    font-weight: 400;
    line-height: 18.9px;
    letter-spacing: 0.03em;
    color: #828D9B;
}

ul.posts-gv-4>li .content .read-more {
    display: flex;
    gap: 12px;
}

ul.posts-gv-4>li .content .read-more span {
    font-size: 14px;
    font-weight: 500;
    line-height: 18.9px;
    letter-spacing: 0.03em;
    text-align: center;
    color: #373D4E;
}

ul.posts-gv-4>li .content .read-more i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D5D5D5;
    border-radius: 90%;
    color: var(--heading);
    font-size: 10px;
}

.posts-gv.post-gv-5 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.posts-gv.post-gv-5>li:first-child {
    grid-row: 1 / span 2;
    grid-column: 1 / span 3;
}

.posts-gv.post-gv-5>li {
    position: relative;
}

.posts-gv.post-gv-5>li:first-child::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: #D5D5D5;
    top: 0;
    right: -20px;
}

.posts-gv.post-gv-5>li:nth-child(2)::after {
    position: absolute;
    width: 100%;
    height: 1px;
    content: '';
    bottom: -20px;
    background-color: #D5D5D5;
}

.posts-category {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.posts-category>li:first-child {
    grid-row: 1 / span 5;
    grid-column: 2 / span 2;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-direction: column;
    border-bottom: 0;
    position: relative;
    padding-bottom: 0;
}

.posts-category>li:first-child::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: #D5D5D5;
    top: 0;
    left: -20px;
}

.posts-category>li:first-child::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: #D5D5D5;
    top: 0;
    right: -20px;
}


.posts-gv.posts-category .item.type_2 {
    padding: 0;
    border: 0;
    position: relative;
}

/* Chọn tất cả các phần tử trừ hai phần tử cuối */
.posts-gv.posts-category .item.type_2:not(:nth-last-child(-n+2))::after {
    position: absolute;
    width: 100%;
    height: 1px;
    content: '';
    bottom: -20px;
    background-color: #D5D5D5;
}

@media screen and (max-width: 1024px) {
    ul.posts-gv-2,
    ul.posts-gv.column-4,
    .posts-gv.post-gv-5,
    ul.posts-gv-4,
    .posts-category {
        grid-template-columns: 1fr;
    }

    ul.posts-gv-2>li:first-child,
    .posts-category>li:first-child {
        grid-row: unset;
        grid-column: unset;
        flex-direction: column;
    }

    ul.posts-gv-4>li:first-child .media img {
        width: 100%;
    }
    .posts-gv.post-gv-5>li:first-child,
    ul.posts-gv-4>li:first-child {
        grid-row: unset;
        grid-column: unset;
    }

    ul.posts-gv-4>li:first-child .content {
        width: 100%;
    }

    ul.posts-gv-4>li:first-child {
        flex-direction: column;
    }

    ul.posts-gv-2>li:first-child .media img {
        width: 100%;
        aspect-ratio: 16/9;
    }

    ul.posts-gv-2>li:first-child .content {
        width: 100%;
    }

    .posts-gv .item.type_3 .media img {
        width: 150px;
    }

    .posts-gv .item.type_3 .content {
        width: calc(100% - 150px);
    }

    .item-sticky .content .post-title a,
    .posts-gv .item.type_3 .content .post-title a,
    ul.posts-gv-4>li:first-child .content .post-title a {
        line-height: 30px;
        font-size: 24px;
    }

    .mobile-order-1 {
        order: -1 !important;
    }

    ul.posts-gv-4>li:not(:first-child):not(:last-child):after {
        position: absolute;
        width: 100%;
        height: 1px;
        content: '';
        bottom: -20px;
        background-color: #D5D5D5;
    }

    ul.posts-gv.column-4 li.item:not(:nth-child(4n)):after {
        content: none;
    }
    
}