/* =========================================================
   VIETTEAM COUNTER SECTION - EQUAL HEIGHT WITH CSS GRID
   ========================================================= */

/* 1. SECTION & ROW CONTAINER (SỬ DỤNG GRID ENGINE) */
.vt-counter-section {
    background-color: #0f172a !important; /* Nền xám đen sang trọng */
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    position: relative !important;
}

/* Ép Row trong Flatsome biến thành CSS Grid 4 cột trên Desktop */
.vt-counter-section .vt-counter-row {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    
    /* Chuyển từ Flex sang Grid */
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 16px !important; /* Khoảng cách giữa các ô */
    align-items: stretch !important; /* Ép độ cao các ô bằng đúng ô cao nhất */
}

/* 2. ĐỊNH DẠNG CỘT ([COL]) & KHỐI TRONG (.col-inner) */
.vt-counter-section .vt-counter-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important; /* Xóa padding mặc định của Flatsome col */
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Bắt buộc .col-inner chèn kín 100% chiều cao của .vt-counter-col */
.vt-counter-section .vt-counter-col > .col-inner {
    height: 100% !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 28px 16px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* Căn giữa nội dung theo chiều dọc */
    align-items: center !important;     /* Căn giữa nội dung theo chiều ngang */
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* 3. ĐỒNG BỘ PHẦN TỬ CHỮ VÀ CON SỐ */
.vt-counter-section .vt-counter-number,
.vt-counter-section .vt-counter-label {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* CON SỐ (NUMBER) */
.vt-counter-section .vt-counter-number p,
.vt-counter-section .vt-counter-number * {
    font-size: clamp(34px, 3.5vw, 46px) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.0 !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -1px !important;
    font-family: inherit !important;
}

/* Thanh gạch ngang nhỏ trang trí giữa con số và chữ */
.vt-counter-section .vt-counter-number::after {
    content: "" !important;
    display: block !important;
    width: 28px !important;
    height: 2px !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
    margin: 14px auto !important;
    border-radius: 2px !important;
}

/* CHỮ MÔ TẢ (LABEL) */
.vt-counter-section .vt-counter-label p,
.vt-counter-section .vt-counter-label * {
    font-size: 15px !important;
    line-height: 1.45 !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
}

/* ---------------------------------------------------------
   4. RESPONSIVE DÀNH CHO MOBILE (<= 767px) - 2 CỘT / HÀNG
   --------------------------------------------------------- */
@media (max-width: 767px) {
    .vt-counter-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    /* Chuyển Grid thành 2 cột trên Mobile */
    .vt-counter-section .vt-counter-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .vt-counter-section .vt-counter-col > .col-inner {
        padding: 20px 10px !important;
        border-radius: 10px !important;
    }

    .vt-counter-section .vt-counter-number p,
    .vt-counter-section .vt-counter-number * {
        font-size: 28px !important;
    }

    .vt-counter-section .vt-counter-number::after {
        margin: 10px auto !important;
    }

    .vt-counter-section .vt-counter-label p,
    .vt-counter-section .vt-counter-label * {
        font-size: 13.5px !important;
    }
}