.index_homepage a,
.index_homepage p {
    color: rgba(238, 228, 228, 0.897);
    font-size: 8px;
    line-height: 0.1;

}

.index_homepage {
    max-height: 100px;
    overflow: auto;
}

/*HomePage Like theme astra*/

.post-listing {
    flex-wrap: row wrap;
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
}

.homepage-entry-post {
    width: 32%;
    margin: 4px;
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: left;
    overflow: hidden;
}

.homepage-entry-categories {
    margin: 14px 0;
    font-size: 12px;
}

.homepage-entry-categories a {
    text-decoration: none !important;
    font-weight: 600;
}

.homepage-entry-title a, .homepage-entry-title {
    text-decoration: none !important;
    font-size: 20px;
}

.homepage-entry-modified-time {
    margin: 14px 0;
    font-size: 12px;
}

.homepage-entry-categories, .homepage-entry-header, .homepage-entry-modified-time, .homepage-entry-excerpt {
    padding: 0 14px!important;
}

.homepage-entry-excerpt {
    padding-bottom: 14px!important;
}


/*Responsive*/
@media only screen and (max-width: 767px) {
.homepage-entry-post {
        width: 100%;
    }
}


/* =========================================================
   NEW POSTS - CSS
   Style 1: Featured
   Style 2: Grid
   Style 3: List
   Style 4: Compact
   ========================================================= */


/* =========================================================
   CSS CHUNG
   ========================================================= */

.pe-new-posts {
    width: 100%;
}

.pe-new-posts *,
.pe-new-posts *::before,
.pe-new-posts *::after {
    box-sizing: border-box;
}

.pe-new-posts img.pe-np-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.pe-new-posts h2,
.pe-new-posts h3 {
    padding: 0;
}

.pe-new-posts h2 a,
.pe-new-posts h3 a {
    color: inherit;
    text-decoration: none !important;
}

.pe-new-posts h2 a:hover,
.pe-new-posts h3 a:hover {
    color: var(--global-palette1, #2563eb);
}

.pe-np-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #f3f4f6;
}


/* META */

.pe-np-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;

    margin-top: 11px;

    font-size: 12px;
    line-height: 1.5;
}

.pe-np-cats a {
    font-weight: 600;
    text-decoration: none !important;
}

.pe-np-date {
    color: #667085;
}


/* =========================================================
   STYLE 1
   1 bài lớn trái + 4 bài nhỏ phải
   + grid các bài còn lại
   ========================================================= */

.pe-np-style-1 .pe-np-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
    gap: 32px;
    align-items: start;
}


/* FEATURED */

.pe-np-style-1 .pe-np-featured {
    min-width: 0;
}

.pe-np-style-1 .pe-np-featured-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 868 / 496;

    overflow: hidden;

    border-radius: 8px;
    background: #f3f4f6;
}

.pe-np-style-1 .pe-np-featured-thumb:hover img {
    transform: scale(1.025);
}

.pe-np-style-1 .pe-np-featured-title {
    margin: 8px 0 8px;

    font-size: 25px;
    line-height: 1.35;
    font-weight: 700;
}

.pe-np-style-1 .pe-np-featured-excerpt {
    margin: 0;

    font-size: 15px;
    line-height: 1.65;

    color: #475467;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* 4 BÀI BÊN PHẢI */

.pe-np-style-1 .pe-np-side {
    display: flex;
    flex-direction: column;
}

.pe-np-style-1 .pe-np-side-item {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);

    gap: 16px;
    align-items: center;

    padding-bottom: 15px;
    margin-bottom: 15px;

    border-bottom: 1px solid #e5e7eb;

    min-width: 0;
}

.pe-np-style-1 .pe-np-side-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.pe-np-style-1 .pe-np-side-thumb {
    display: block;
    width: 100%;

    aspect-ratio: 3 / 2;

    overflow: hidden;

    border-radius: 7px;
    background: #f3f4f6;
}

.pe-np-style-1 .pe-np-side-thumb:hover img {
    transform: scale(1.03);
}

.pe-np-style-1 .pe-np-side-content {
    min-width: 0;
}

.pe-np-style-1 .pe-np-side-content .pe-np-meta {
    margin-top: 0;
}

.pe-np-style-1 .pe-np-side-title {
    margin: 6px 0 0;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* BÀI 6 TRỞ ĐI */

.pe-np-style-1 .pe-np-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 30px 22px;

    margin-top: 38px;
}

.pe-np-style-1 .pe-np-grid-item {
    min-width: 0;
}

.pe-np-style-1 .pe-np-grid-thumb {
    display: block;
    width: 100%;

    aspect-ratio: 868 / 496;

    overflow: hidden;

    border-radius: 8px;
    background: #f3f4f6;
}

.pe-np-style-1 .pe-np-grid-thumb:hover img {
    transform: scale(1.025);
}

.pe-np-style-1 .pe-np-grid-title {
    margin: 7px 0 7px;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.pe-np-style-1 .pe-np-grid-excerpt {
    margin: 0;

    font-size: 14px;
    line-height: 1.65;

    color: #475467;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   STYLE 2
   GRID 3 CỘT
   ========================================================= */

.pe-np-style-2 .pe-np-all-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 34px 24px;
}

.pe-np-style-2 .pe-np-all-grid-item {
    min-width: 0;
}

.pe-np-style-2 .pe-np-all-grid-thumb {
    display: block;
    width: 100%;

    aspect-ratio: 868 / 496;

    overflow: hidden;

    border-radius: 8px;
    background: #f3f4f6;
}

.pe-np-style-2 .pe-np-all-grid-thumb:hover img {
    transform: scale(1.03);
}

.pe-np-style-2 .pe-np-all-grid-title {
    margin: 8px 0 8px;

    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.pe-np-style-2 .pe-np-all-grid-excerpt {
    margin: 0;

    font-size: 14px;
    line-height: 1.65;

    color: #475467;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   STYLE 3
   LIST - ẢNH TRÁI / NỘI DUNG PHẢI
   ========================================================= */

.pe-np-style-3 .pe-np-list {
    display: flex;
    flex-direction: column;
}

.pe-np-style-3 .pe-np-list-item {
    display: grid;

    grid-template-columns:
        280px minmax(0, 1fr);

    gap: 24px;

    align-items: center;

    padding-bottom: 24px;
    margin-bottom: 24px;

    border-bottom: 1px solid #e5e7eb;

    min-width: 0;
}

.pe-np-style-3 .pe-np-list-item:last-child {
    margin-bottom: 0;
}

.pe-np-style-3 .pe-np-list-thumb {
    display: block;
    width: 100%;

    aspect-ratio: 868 / 496;

    overflow: hidden;

    border-radius: 8px;
    background: #f3f4f6;
}

.pe-np-style-3 .pe-np-list-thumb:hover img {
    transform: scale(1.03);
}

.pe-np-style-3 .pe-np-list-content {
    min-width: 0;
}

.pe-np-style-3 .pe-np-list-content .pe-np-meta {
    margin-top: 0;
}

.pe-np-style-3 .pe-np-list-title {
    margin: 7px 0 9px;

    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.pe-np-style-3 .pe-np-list-excerpt {
    margin: 0;

    font-size: 14px;
    line-height: 1.7;

    color: #475467;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   STYLE 4
   COMPACT
   Ảnh nhỏ + tiêu đề + meta
   ========================================================= */

.pe-np-style-4 .pe-np-compact {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 32px;
    row-gap: 0;
}

.pe-np-style-4 .pe-np-compact-item {
    display: grid;

    grid-template-columns:
        120px minmax(0, 1fr);

    gap: 16px;

    align-items: center;

    padding: 16px 0;

    border-bottom: 1px solid #e5e7eb;

    min-width: 0;
}

.pe-np-style-4 .pe-np-compact-thumb {
    display: block;

    width: 120px;

    aspect-ratio: 3 / 2;

    overflow: hidden;

    border-radius: 7px;

    background: #f3f4f6;
}

.pe-np-style-4 .pe-np-compact-thumb:hover img {
    transform: scale(1.04);
}

.pe-np-style-4 .pe-np-compact-content {
    min-width: 0;
}

.pe-np-style-4 .pe-np-compact-title {
    margin: 0;

    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.pe-np-style-4 .pe-np-meta {
    margin-top: 7px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    /* STYLE 1 */

    .pe-np-style-1 .pe-np-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pe-np-style-1 .pe-np-side {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

    .pe-np-style-1 .pe-np-side-item {
        grid-template-columns:
            130px minmax(0, 1fr);

        gap: 14px;

        margin: 0;
        padding-bottom: 18px;
    }

    .pe-np-style-1 .pe-np-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    /* STYLE 2 */

    .pe-np-style-2 .pe-np-all-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 30px 20px;
    }


    /* STYLE 3 */

    .pe-np-style-3 .pe-np-list-item {
        grid-template-columns:
            220px minmax(0, 1fr);

        gap: 20px;

        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .pe-np-style-3 .pe-np-list-title {
        font-size: 19px;
    }


    /* STYLE 4 */

    .pe-np-style-4 .pe-np-compact {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    /* META */

    .pe-np-meta {
        font-size: 11px;
        gap: 4px 8px;
    }


    /* =========================
       STYLE 1
       ========================= */

    .pe-np-style-1 .pe-np-top {
        gap: 25px;
    }

    .pe-np-style-1 .pe-np-featured-title {
        font-size: 22px;
    }

    .pe-np-style-1 .pe-np-side {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pe-np-style-1 .pe-np-side-item {
        grid-template-columns:
            115px minmax(0, 1fr);

        gap: 13px;

        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .pe-np-style-1 .pe-np-side-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .pe-np-style-1 .pe-np-grid {
        grid-template-columns: 1fr;

        gap: 28px;

        margin-top: 30px;
    }

    .pe-np-style-1 .pe-np-grid-title {
        font-size: 18px;
    }


    /* =========================
       STYLE 2
       ========================= */

    .pe-np-style-2 .pe-np-all-grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .pe-np-style-2 .pe-np-all-grid-title {
        font-size: 18px;
    }


    /* =========================
       STYLE 3
       ========================= */

    .pe-np-style-3 .pe-np-list-item {
        grid-template-columns:
            115px minmax(0, 1fr);

        gap: 14px;

        align-items: start;

        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .pe-np-style-3 .pe-np-list-thumb {
        aspect-ratio: 3 / 2;
        border-radius: 7px;
    }

    .pe-np-style-3 .pe-np-list-title {
        margin: 5px 0 0;

        font-size: 16px;
        line-height: 1.4;

        -webkit-line-clamp: 3;
    }

    .pe-np-style-3 .pe-np-list-excerpt {
        display: none;
    }


    /* =========================
       STYLE 4
       ========================= */

    .pe-np-style-4 .pe-np-compact {
        grid-template-columns: 1fr;
    }

    .pe-np-style-4 .pe-np-compact-item {
        grid-template-columns:
            100px minmax(0, 1fr);

        gap: 13px;

        padding: 13px 0;
    }

    .pe-np-style-4 .pe-np-compact-thumb {
        width: 100px;
    }

    .pe-np-style-4 .pe-np-compact-title {
        font-size: 15px;
        line-height: 1.4;
    }

    .pe-np-style-4 .pe-np-meta {
        margin-top: 5px;
    }

}
/* =========================================================
   STYLE 5 - MAGAZINE
   ========================================================= */

.pe-np-style-5 .pe-np-magazine {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr);
    gap: 32px;
    align-items: start;
}

.pe-np-style-5 .pe-np-magazine-main {
    min-width: 0;
}

.pe-np-style-5 .pe-np-magazine-main-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 868 / 496;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f4f6;
}

.pe-np-style-5 .pe-np-magazine-main-thumb:hover img {
    transform: scale(1.025);
}

.pe-np-style-5 .pe-np-magazine-main-title {
    margin: 8px 0;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
}

.pe-np-style-5 .pe-np-magazine-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #475467;

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

.pe-np-style-5 .pe-np-magazine-side {
    display: flex;
    flex-direction: column;
}

.pe-np-style-5 .pe-np-magazine-side-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 15px;
    align-items: center;

    padding: 0 0 15px;
    margin: 0 0 15px;

    border-bottom: 1px solid #e5e7eb;
}

.pe-np-style-5 .pe-np-magazine-side-item:last-child {
    margin-bottom: 0;
}

.pe-np-style-5 .pe-np-magazine-side-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 7px;
    background: #f3f4f6;
}

.pe-np-style-5 .pe-np-magazine-side-thumb:hover img {
    transform: scale(1.03);
}

.pe-np-style-5 .pe-np-magazine-side-content {
    min-width: 0;
}

.pe-np-style-5 .pe-np-magazine-side-content .pe-np-meta {
    margin-top: 0;
}

.pe-np-style-5 .pe-np-magazine-side-title {
    margin: 5px 0 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;

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


/* =========================================================
   STYLE 6 - CARD
   ========================================================= */

.pe-np-style-6 .pe-np-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.pe-np-style-6 .pe-np-card {
    min-width: 0;
    overflow: hidden;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #fff;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.pe-np-style-6 .pe-np-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

.pe-np-style-6 .pe-np-card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 868 / 496;
    overflow: hidden;
    background: #f3f4f6;
}

.pe-np-style-6 .pe-np-card-thumb:hover img {
    transform: scale(1.03);
}

.pe-np-style-6 .pe-np-card-content {
    padding: 16px 18px 19px;
}

.pe-np-style-6 .pe-np-card-content .pe-np-meta {
    margin-top: 0;
}

.pe-np-style-6 .pe-np-card-title {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;

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

.pe-np-style-6 .pe-np-card-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #475467;

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


/* =========================================================
   STYLE 7 - IMAGE OVERLAY
   ========================================================= */

.pe-np-style-7 .pe-np-overlay-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pe-np-style-7 .pe-np-overlay-item {
    min-width: 0;
}

.pe-np-style-7 .pe-np-overlay-link {
    position: relative;
    display: block;

    width: 100%;
    aspect-ratio: 868 / 496;

    overflow: hidden;
    border-radius: 10px;

    color: #fff !important;
    text-decoration: none !important;

    background: #111827;
}

.pe-np-style-7 .pe-np-overlay-image {
    position: absolute;
    inset: 0;
    display: block;
}

.pe-np-style-7 .pe-np-overlay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform .35s ease;
}

.pe-np-style-7 .pe-np-overlay-link:hover img {
    transform: scale(1.045);
}

.pe-np-style-7 .pe-np-overlay-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .78) 0%,
            rgba(0, 0, 0, .35) 48%,
            rgba(0, 0, 0, .04) 78%
        );
}

.pe-np-style-7 .pe-np-overlay-content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;

    display: block;

    padding: 20px;
}

.pe-np-style-7 .pe-np-overlay-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 7px;

    font-size: 11px;
    line-height: 1.4;

    color: rgba(255, 255, 255, .88);
}

.pe-np-style-7 .pe-np-overlay-date::before {
    content: "•";
    margin-right: 8px;
}

.pe-np-style-7 .pe-np-overlay-title {
    display: -webkit-box;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;

    color: #fff;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   STYLE 8 - NUMBERED LIST
   ========================================================= */

.pe-np-style-8 .pe-np-numbered {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
}

.pe-np-style-8 .pe-np-numbered-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    align-items: center;

    padding: 18px 0;

    border-bottom: 1px solid #e5e7eb;
}

.pe-np-style-8 .pe-np-number {
    font-size: 32px;
    line-height: 1;
    font-weight: 700;

    color: #d0d5dd;
}

.pe-np-style-8 .pe-np-numbered-content {
    min-width: 0;
}

.pe-np-style-8 .pe-np-numbered-content .pe-np-meta {
    margin-top: 0;
}

.pe-np-style-8 .pe-np-numbered-title {
    margin: 5px 0 0;

    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    /* STYLE 5 */

    .pe-np-style-5 .pe-np-magazine {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pe-np-style-5 .pe-np-magazine-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }


    /* STYLE 6 */

    .pe-np-style-6 .pe-np-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* STYLE 7 */

    .pe-np-style-7 .pe-np-overlay-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* STYLE 8 */

    .pe-np-style-8 .pe-np-numbered {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    /* STYLE 5 */

    .pe-np-style-5 .pe-np-magazine-main-title {
        font-size: 22px;
    }

    .pe-np-style-5 .pe-np-magazine-side {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pe-np-style-5 .pe-np-magazine-side-item {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 13px;
    }


    /* STYLE 6 */

    .pe-np-style-6 .pe-np-cards {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .pe-np-style-6 .pe-np-card-content {
        padding: 14px 15px 17px;
    }


    /* STYLE 7 */

    .pe-np-style-7 .pe-np-overlay-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pe-np-style-7 .pe-np-overlay-content {
        padding: 16px;
    }

    .pe-np-style-7 .pe-np-overlay-title {
        font-size: 17px;
    }


    /* STYLE 8 */

    .pe-np-style-8 .pe-np-numbered {
        grid-template-columns: 1fr;
    }

    .pe-np-style-8 .pe-np-numbered-item {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;

        padding: 15px 0;
    }

    .pe-np-style-8 .pe-np-number {
        font-size: 25px;
    }

    .pe-np-style-8 .pe-np-numbered-title {
        font-size: 16px;
    }
}