.posmain-banner-card {
    background: linear-gradient(135deg, #163A6B 0%, #1F4E8C 50%, #1565c0 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 20px 0 15px 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(31, 78, 140, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.posmain-banner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.posmain-banner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(31, 78, 140, 0.35);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Banner Domain & Hosting Styles */
.dh-banner-card {
    background: linear-gradient(135deg, #0d9488 0%, #0284c7 50%, #2563eb 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 0 0 25px 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dh-banner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dh-banner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.35);
    border-color: rgba(255, 255, 255, 0.3);
}

.posmain-banner-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.posmain-banner-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.posmain-banner-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.posmain-banner-badge {
    align-self: flex-start;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.posmain-banner-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

.posmain-banner-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    line-height: 1.4;
}

.posmain-banner-action {
    padding-left: 20px;
}

.posmain-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #1976d2 !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.posmain-banner-card:hover .posmain-banner-btn,
.dh-banner-card:hover .posmain-banner-btn {
    background: #f0f7ff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Container quản lý hiển thị danh sách Banners */
/*
.banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;                             
    margin: 20px 0 25px 0;                 
}

.banners-grid > a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
*/

.banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;                             
    margin: 20px 0 25px 0;                 
}
/* Khi có lẻ banner, phần tử cuối trải dài hết 2 cột */
.banners-grid > a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Bỏ margin cũ của các thẻ card để không trùng đè với gap của grid */
.posmain-banner-card,
.dh-banner-card {
    margin: 0 !important;
}

/* RESPONSIVE CSS */
@media (max-width: 767px) {
	/*
	.banners-grid {
        grid-template-columns: 1fr; 
    }
    */
    .banners-grid {
        margin-top: 0 !important; /* Loại bỏ margin-top 20px gây hở ở phía trên banner */
        margin-bottom: 20px;
        grid-template-columns: 1fr; /* Tự động chuyển banner về 1 cột trên mobile */
        gap: 15px;
    }

    /* Reset lại cột cho banner lẻ trên mobile */
    .banners-grid > a:last-child:nth-child(odd) {
        grid-column: auto;
    }
    .posmain-banner-card,
    .dh-banner-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 18px 20px;
    }

    .posmain-banner-content {
        gap: 14px;
    }

    .posmain-banner-title {
        font-size: 1.05rem;
    }

    .posmain-banner-desc {
        font-size: 0.83rem;
    }

    .posmain-banner-action {
        padding-left: 0;
        width: 100%;
    }

    .posmain-banner-btn {
        width: 100%;
        justify-content: center;
    }
}
