/* =====================================================
   VÄ©nh XD Element â€” Frontend Styles
   ===================================================== */

/* â”€â”€â”€ POST WIDGET â”€â”€â”€ */

.vxd-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.vxd-post-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    transition: transform .35s cubic-bezier(.25, .46, .45, .94), box-shadow .35s cubic-bezier(.25, .46, .45, .94);
}

.vxd-post-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .14), 0 6px 12px rgba(0, 0, 0, .07);
}

.vxd-post-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vxd-post-thumb {
    position: relative;
    overflow: hidden;
}

.vxd-post-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.vxd-post-card:hover .vxd-post-thumb img {
    transform: scale(1.04);
}

.vxd-no-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #eee;
}

.vxd-post-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0066B1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.vxd-post-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vxd-post-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    display: block;
}

.vxd-post-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.4;
}

.vxd-post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin: 0 0 12px;
}

.vxd-post-readmore {
    font-size: 13px;
    font-weight: 600;
    color: #0066B1;
    margin-top: auto;
}

/* â”€â”€â”€ XE SHARED BASE â”€â”€â”€ */

.vxd-xe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.vxd-xe-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    transition: transform .35s cubic-bezier(.25, .46, .45, .94), box-shadow .35s cubic-bezier(.25, .46, .45, .94);
}

.vxd-xe-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .13), 0 6px 12px rgba(0, 0, 0, .07);
}

.vxd-xe-card.vxd-hide {
    display: none !important;
}

.vxd-xe-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* â”€â”€ Image wrap â”€â”€ */

.vxd-xe-image-wrap {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.vxd-xe-image-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
    /* contain = hiá»‡n full xe nhÆ° áº£nh máº«u */
    display: block;
    transition: transform .4s ease;
    padding: 8px;
}

.vxd-xe-card:hover .vxd-xe-image-wrap img {
    transform: scale(1.04);
}

/* â”€â”€ Body chung â”€â”€ */

.vxd-xe-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* â”€â”€ TÃªn xe â”€â”€ */

.vxd-xe-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* â”€â”€ ÄÆ°á»ng káº» phÃ¢n cÃ¡ch â”€â”€ */

.vxd-xe-divider {
    border: none;
    border-top: 1px solid #eeeeee;
    margin: 0 0 10px;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   LAYOUT BASIC (widget-xe) â€” giá»‘ng áº£nh 2
   TÃªn xe to + label/giÃ¡ dáº¡ng 2 dÃ²ng
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.vxd-xe-card--basic .vxd-xe-title {
    font-size: 17px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 12px;
}

/* DÃ²ng giÃ¡ / tráº£ gÃ³p */

.vxd-xe-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}

.vxd-xe-gia-label,
.vxd-xe-gop-label {
    color: #555;
    font-weight: 400;
    white-space: nowrap;
}

.vxd-xe-gia-value {
    color: #e53935;
    font-weight: 700;
    font-size: 15px;
}

.vxd-xe-gop-value {
    color: #0066B1;
    font-weight: 700;
    font-size: 15px;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   LAYOUT PLUS (widget-xe-plus) â€” giá»‘ng áº£nh 1
   áº¢nh ná»n tráº¯ng, tÃªn dÆ°á»›i, meta-row: dÃ²ng xe + nedc
â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.vxd-xe-card--plus .vxd-xe-image-wrap img {
    aspect-ratio: 4/3;
    object-fit: contain;
    padding: 12px;
}

.vxd-xe-card--plus .vxd-xe-title {
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
    color: #1a1a1a;
    margin: 0 0 8px;
}

/* HÃ ng meta: dÃ²ng xe (trÃ¡i) + NEDC (pháº£i) */

.vxd-xe-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.vxd-xe-dong-xe-text {
    color: #0066B1;
    font-size: 13px;
    font-weight: 600;
}

.vxd-xe-nedc-row {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 3px;
}

.vxd-xe-nedc-value {
    font-weight: 600;
    color: #1a1a1a;
}

.vxd-xe-nedc-label {
    color: #888;
    font-size: 12px;
}

/* DÃ²ng giÃ¡ trong Plus */

.vxd-xe-price-row--plus {
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: 4px;
    margin-bottom: 0;
}

.vxd-xe-price-row--plus .vxd-xe-gia-label,
.vxd-xe-price-row--plus .vxd-xe-gop-label {
    font-size: 13px;
}

.vxd-xe-price-row--plus .vxd-xe-gia-value,
.vxd-xe-price-row--plus .vxd-xe-gop-value {
    font-size: 14px;
}

/* â”€â”€ Báº£ng phiÃªn báº£n (Tab & GiÃ¡ Xe widgets) â”€â”€ */

.vxd-xe-versions-box {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-bottom: 12px;
    flex-grow: 1;
    text-align: left;
}

.vxd-xe-version-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
}

.vxd-xe-version-row:last-child {
    border-bottom: none;
}

.vxd-xe-version-row .v-name {
    color: #555;
    padding-right: 10px;
}

.vxd-xe-version-row .v-price {
    color: #333;
    font-weight: 600;
}

/* Badge tráº£ gÃ³p (Tab / GiÃ¡ Xe widgets) */

.vxd-xe-badge-gop {
    background: linear-gradient(135deg, #0066B1, #004b87);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 102, 177, .2);
    margin-top: auto;
}

.vxd-xe-badge-gop span {
    color: #ffeb3b;
    font-size: 15px;
    font-weight: 700;
    margin-left: 3px;
}

/* â”€â”€â”€ TAB FILTER â”€â”€â”€ */

.vxd-xe-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.vxd-xe-tab-btn {
    padding: 8px 20px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    color: #0066B1;
    transition: all .25s;
    line-height: 1;
}

.vxd-xe-tab-btn.active,
.vxd-xe-tab-btn:hover {
    background: #0066B1 !important;
    color: #fff !important;
    border-color: #0066B1 !important;
}

/* â”€â”€â”€ RESPONSIVE â”€â”€â”€ */

@media (max-width: 1024px) {
    .vxd-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vxd-xe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vxd-post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .vxd-xe-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .vxd-xe-card {
        padding: 10px;
    }
    .vxd-xe-title {
        font-size: 14px;
        margin: 10px 0 8px;
    }
    .vxd-xe-badge-gia {
        font-size: 11px;
        padding: 3px 8px;
        top: 6px;
        right: 6px;
    }
    .vxd-xe-version-row {
        font-size: 11px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .vxd-xe-version-row .v-price {
        font-weight: 700;
        color: #d0021b;
    }
    .vxd-xe-badge-gop {
        padding: 8px 6px;
        font-size: 12px;
        border-radius: 6px;
    }
    .vxd-xe-badge-gop span {
        font-size: 13px;
    }
    .vxd-xe-filter-tabs {
        gap: 6px;
    }
    .vxd-xe-tab-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
    .vxd-post-title {
        font-size: 14px;
    }
    .vxd-post-body {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .vxd-post-grid {
        grid-template-columns: 1fr;
    }
}