
/* ---------- Swiper ---------- */
.trending-articles {
    position: relative;
    margin-top: 30px;
}

.ta-swiper {
    overflow: hidden;
}

/* ---------- Slide: 50 / 50 ---------- */
.ta-slide__inner {
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: 320px;
}

.ta-slide__thumb-link {
    display: block;
    overflow: hidden;
    height: 100%;
}

.ta-slide__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.ta-slide__thumb-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden; /* Ä‘á»ƒ bo gÃ³c (náº¿u cÃ³) khÃ´ng bá»‹ áº£nh trÃ n ra khi scale hover */
}

.ta-slide__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.ta-slide__inner:hover .ta-slide__thumb {
    transform: scale(1.03);
}

.ta-slide__content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 30px 60px;
    background: #f6f6f6;
}

.ta-slide__meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ta-slide__meta a {
    color: #7d7d7d;
}

.ta-slide__meta-sep {
    color: #ccc;
}

.ta-slide__cat {
    color: #777;
    text-decoration: none;
    transition: color 0.15s;
}

.ta-slide__cat:hover {
    color: #111;
}

.ta-slide__heading {
    font-size: 22px;
}

.ta-slide__heading a {
    color: inherit;
    text-decoration: none;
}

.ta-slide__heading a:hover {
    opacity: 0.7;
    color: #111;
}

.ta-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 2px; */
    position: absolute;
    bottom: 2em;
    width: 45%;
    margin-left: auto;
    right: 2em;
    z-index: 9;
}

.ta-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ta-pagination .swiper-pagination-bullet {
    width: 45px;
    height: 2px;
    border-radius: 2px;
    background: #ccc;
    opacity: 1;
    margin: 0 !important;
    transition: background 0.2s, width 0.2s;
    display: inline-block;
}

.ta-pagination .swiper-pagination-bullet-active {
    background: #111;
}

.ta-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ta-btn-prev,
.ta-btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #111 !important;
    transition: opacity 0.2s;
    line-height: 1;
}

.ta-btn-prev:hover,
.ta-btn-next:hover {
    opacity: 1;
}

.ta-btn-prev.swiper-button-disabled,
.ta-btn-next.swiper-button-disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}
.ta-btn-next svg,
.ta-btn-prev svg{
    color: var(--secondary-color)
}
.ta-nav button {
    background:transparent
}
.category-page-wrapper{
    margin-top: 1.5em
}
.post-card{
    margin-bottom: 1.5em;
    border-radius: 1em;
    border: 1px solid var(--black-line, #d9d9d9);
    cursor: pointer;
}
.thumb-feature-bg {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    width: 100%;
}
.card-body {
    padding: 1em;
}
.post-card:hover {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    transition: box-shadow 0.3s ease-in-out;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .ta-slide__inner {
        grid-template-columns: 1fr;
        grid-template-rows: 220px auto;
    }

    .ta-slide__content {
        padding: 15px 20px;
        min-height: 180px;
    }
        .ta-footer {
        width: 90%;
        /* right: 5%; */
        left: 0%;
        position: relative;
        margin: 0 auto;
        padding: 1em 0px;
        bottom: 0px;
    }

}