/* Title */
.sepay-tax-title {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

/* Tag list */
.sepay-tag-scroll {
    display: flex;
    gap: 10px;
}

/* Tag chip */
.sepay-tag-chip,
div.mg-sidebar .mg-widget .mg-widget-tags a,
div.mg-sidebar .mg-widget .tagcloud a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0px 14px;
    border-radius: 999px;
    border: 1px solid rgba(45, 107, 207, .2);
    color: #1f2937;
    font-size: 14px !important;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all .18s ease;
    background: none;
}

div.mg-sidebar .mg-widget .tagcloud a {
    margin-bottom: 10px;
}

@media (hover: hover) {
    .sepay-tag-chip:hover {
        background: #2D6BCF;
        border-color: #2D6BCF;
        color: #fff;
    }

    .sepay-tag-chip:hover .count {
        color: rgba(255, 255, 255, .85);
    }
}

/* 📱 Mobile – scroll ngang Shopee */
@media (max-width: 768px) {
    .sepay-tax-row {
        align-items: flex-start;
    }

    .sepay-tag-chip {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

/* ===============================
   Sepay – Loa thanh toán cards
   =============================== */

.sepay-loa-widget {
    margin-bottom: 10px;
}

/* Grid layout */
.sepay-loa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    padding: 1px;
    background:#eee;
}

/* Card */
.sepay-loa-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    background: #fff;
    text-decoration: none;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.25s ease;
}

/* Image */
.sepay-loa-card img {
    width: 64px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

/* Hover effects */
.sepay-loa-card:hover {
    background: #3d7bf7;
    color: #fff;
}

.sepay-loa-card:hover img {
    transform: scale(1.05);
}

/* Text */
.sepay-loa-card span {
    line-height: 1.35;
}

.sepay-loa-widget {
    border-radius: 8px;
}

@media (max-width: 768px) {
    .sepay-loa-card {
        padding: 12px 10px;
        font-size: 13px;
    }

    .sepay-loa-card img {
        width: 56px;
    }
}

@media (max-width: 1024px) {
    
}

/* ===============================
   API Bank – Grid style
   =============================== */

.api-bank-widget {
    margin-bottom: 10px;
}

.api-bank-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.api-bank-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    padding: 12px 8px;
    transition: all .2s ease;
}

.api-bank-item:hover {
    border-color: #2d6bcf;
    box-shadow: 0 4px 14px rgba(45, 107, 207, .12);
    transform: translateY(-2px);
}

.bank-icon-wrap {
    position: relative;
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
}

.bank-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bank-name {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.bank-verified {
    position: absolute;
    top: -6px;
    right: -16px;
    font-size: 16px;
    color: #1151d3;
}

/* ===============================
   Recent Posts – List style
   =============================== */

/* List */
.sepay-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

.sepay-recent-item {
    margin-bottom: 12px;
}

.sepay-recent-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sepay-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

.sepay-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sepay-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.sepay-recent-link:hover .sepay-title {
    color: #2d6bcf;
}

.post-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    text-align: left;
}

div.mg-sidebar .widget_block {
    border: 0;
    padding: 0;
}

/* ===============================
   Related Post – Card v2 (Compact)
================================ */
.sepay-related-card-v2-list{
    gap: 1px;
    background:#eee;
    padding: 1px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.sepay-related-card-v2-item{
    padding: 0;
}

.sepay-related-card-v2 {
    background: #fff;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}

/* Thumbnail */
.sepay-related-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* Body */
.sepay-related-body {
    padding: 12px 14px 8px;
    /* ⬅ gọn hơn */
    flex-grow: 1;
}

/* Title */
.sepay-related-title {
    font-size: 17px;
    /* ⬅ giảm từ 20 */
    line-height: 1.45;
    margin-bottom: 6px;
}

.sepay-related-title a {
    color: #111;
    text-decoration: none;
}

.sepay-related-title a:hover {
    color: #2d6bcf;
}

/* Excerpt */
.sepay-related-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.55;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sepay-related-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
}

.sepay-related-meta i {
    margin-right: 3px;
    font-size: 12px;
}

.sepay-related-meta .author a {
    color: inherit;
    text-decoration: none;
}

.sepay-related-meta .author a:hover,
.sepay-related-meta .edit a:hover {
    color: #2d6bcf;
}

.sepay-related-meta .edit a {
    font-size: 12px;
    color: #999;
}

/* Mobile */
@media (max-width: 768px) {
    .sepay-related-thumb img {
        height: 140px;
    }

    .sepay-related-title {
        font-size: 16px;
    }

    .mg-sidebar .mg-widget ul li a.sepay-recent-link{
        grid-template-columns: 1fr;
    }

    .mg-sidebar .mg-widget ul li.sepay-recent-item:last-child{
        border-bottom: 1px solid #eee;
    }
    .sepay-related-card-v2-list{
        grid-template-columns: repeat(1, 1fr);
    }
    div.sepay-front-row2{
        grid-template-columns: 1fr;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .sepay-recent-posts{
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .sepay-tag-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .sepay-tag-scroll::-webkit-scrollbar {
        display: none;
    }
    .api-bank-grid{
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile  */
@media (max-width: 576px) {
    .sepay-recent-posts{
        grid-template-columns: repeat(1, 1fr);
    }
    .api-bank-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}
