/* --- KHUNG LƯỚI (GRID) --- */
.list-goi-pro {
    display: grid;
    /* Tăng kích thước tối thiểu lên 300px để thẻ to, thoáng hơn (sẽ tự nhảy xuống 3 cột thay vì 4 cột chật chội) */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; /* Tăng khoảng cách giữa các thẻ */
  
}

/* --- THẺ CARD PRO --- */
.card-v2 {
    background: #fff;
    /* Viền mỏng màu xám nhạt cho sang */
    border: 1px solid #f0f0f0;
    /* ĐIỂM NHẤN PRO: Vạch đỏ trên đầu thẻ */
    border-top: 4px solid #e4233a; 
    border-radius: 12px; /* Bo góc vừa phải, nam tính hơn */
    padding: 24px 20px;
    position: relative;
    /* Đổ bóng xịn hơn: 2 lớp bóng để tạo độ sâu */
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 10px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hiệu ứng khi di chuột vào: Nổi lên rõ rệt */
.card-v2:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(217, 35, 21, 0.15);
    border-color: #ffe4e6; /* Viền chuyển hồng nhạt */
}

/* --- BADGE (NHÃN) --- */
.card-v2 .badge-top {
    position: absolute;
    top: -12px; /* Đẩy nhãn lên cạnh trên cùng */
    right: 20px;
    background: #ffe4e6; /* Nền đỏ nhạt */
    color: #b91c1c; /* Chữ đỏ đậm */
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 4px; /* Bo góc vuông vức hơn */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Biến thể màu cho badge (nếu dùng style inline trong HTML) */
.card-v2 .badge-top[style*="background"] {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* --- TYPOGRAPHY (CHỮ) --- */
.card-v2 .pack-name {
    font-size: 16px;
    font-weight: 700;
    color: #3f3f46; /* Màu xám đậm sang trọng */
    margin-bottom: 8px;
    text-transform: uppercase; /* Viết hoa tên gói */
    letter-spacing: -0.5px;
}

/* SỐ GB KHỔNG LỒ */
.card-v2 .data-hero {
    font-size: 42px; /* To hơn nữa */
    font-weight: 900; /* Cực đậm */
    color: #e4233a;
    line-height: 1;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    letter-spacing: -1px;
}
.card-v2 .data-hero span {
    font-size: 16px;
    font-weight: 600;
    color: #52525b;
    margin-left: 6px;
    text-transform: lowercase;
}

/* KHU VỰC THÔNG TIN (GIÁ & TỔNG DATA) */
.card-v2 .sub-info {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Đẩy 2 bên ra xa nhau */
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5e7eb;
}

.card-v2 .price-tag {
    font-size: 20px;
    font-weight: 800;
    color: #18181b; /* Đen đậm */
}

.card-v2 .cycle {
    font-size: 13px;
    color: #71717a;
    font-weight: 500;
}

/* Box tổng data bên phải */
.card-v2 .total-data {
    font-size: 12px;
    font-weight: 700;
    color: #059669; /* Màu xanh lá đậm (Tin cậy) */
    background: #ecfdf5; /* Nền xanh nhạt */
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #d1fae5;
}

/* --- DANH SÁCH LỢI ÍCH --- */
.card-v2 .benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}
.card-v2 .benefit-list li {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}
.card-v2 .benefit-list li svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: #16a34a; /* Icon check màu xanh */
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- NÚT BẤM (BUTTON) --- */
.card-v2 .action-area {
    margin-top: auto;
}

.btn-reg-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Gradient đỏ mượt mà hơn */
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    padding: 9px;
    border-radius: 8px;
    text-decoration: none;
    /* Bóng đổ cho nút */
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.4);
    transition: all 0.2s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reg-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.5);
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
}

.link-detail {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    text-decoration: none;
    display: block;
    margin-top: 12px;
    transition: color 0.2s;
}

.link-detail:hover {
    color: #e4233a;
    text-decoration: underline;
}

/* --- FIX LỖI DẤU CHẤM ĐỎ THỪA --- */
.card-v2 .benefit-list,
.card-v2 .benefit-list li {
    list-style: none !important; /* Tắt dấu chấm mặc định */
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Ẩn luôn nếu dấu chấm được tạo ra bởi theme cũ (pseudo-element) */
.card-v2 .benefit-list li::before {
    content: none !important;
    display: none !important;
}

/* Chỉnh lại icon dấu tích cho thẳng hàng đẹp hơn */
.card-v2 .benefit-list li svg {
    min-width: 16px; /* Cố định chiều rộng để không bị méo */
    margin-right: 8px;
    transform: translateY(2px); /* Căn chỉnh icon xuống xíu cho ngang hàng với chữ */
}

/* --- CSS MOBILE: 2 CỘT + TAG NHỎ + GIỮ NÚT CHI TIẾT --- */
@media (max-width: 768px) {
    /* 1. Chia 2 cột */
    .list-goi-pro {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0px;
		margin-top:8px;
    }

    /* 2. Card: Căn chỉnh lại khoảng cách */
    .card-v2 {
        padding: 12px 6px 8px 6px !important; /* Tăng padding trên để né cái Tag */
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* 3. XỬ LÝ TAG (BADGE) - THU NHỎ */
    .badge-top {
        font-size: 9px !important;       /* Chữ bé lại */
        padding: 2px 6px !important;     /* Giảm độ dày */
        top: -8px !important;            /* Đẩy lên cao hơn chút */
        right: 8px !important;           /* Căn lề phải */
        border-radius: 4px !important;   /* Bo góc nhẹ */
        line-height: 1.2 !important;
        letter-spacing: 0.5px;           /* Dãn chữ xíu cho dễ đọc */
    }

    /* 4. Font chữ nội dung */
    .pack-name {
        font-size: 12px !important;
        margin-bottom: 2px !important;
        margin-top: 5px !important; /* Cách Tag ra */
    }
    .data-hero {
        font-size: 18px !important; 
    }
    .data-hero span {
        font-size: 11px !important;
    }
    .price-tag {
        font-size: 13px !important;
    }
    .total-data {
        font-size: 9px !important; 
        padding: 2px 4px !important;
    }

    /* 5. NÚT ĐĂNG KÝ (Giữ nguyên độ đẹp, không vỡ) */
    .action-area .btn-reg-v2 {
        width: 100% !important;
        padding: 6px 0 !important;   /* Mỏng lại xíu */
        font-size: 11px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        white-space: nowrap !important; /* Cấm xuống dòng */
    }
    
    .action-area .btn-reg-v2 svg {
        width: 10px !important;
        height: 10px !important;
    }

    /* 6. HIỆN LẠI NÚT CHI TIẾT (Nhỏ gọn) */
    .link-detail {
        display: block !important;       /* Hiện lại */
        text-align: center !important;
        font-size: 11px !important;      /* Chữ nhỏ */
        color: #666 !important;
        margin-top: 6px !important;      /* Cách nút đăng ký ra */
        text-decoration: none !important;
    }
    /* Thêm icon mũi tên nhỏ vào sau chữ Chi tiết cho đẹp */
    .link-detail::after {
        content: ' ›';
        font-size: 14px;
        line-height: 1;
    }
}

/* 1. Thiết lập thẻ cha (Card) làm mốc tọa độ */
.card-v2 {
    position: relative !important; /* Quan trọng để link phủ căn theo khung này */
    transition: transform 0.2s, box-shadow 0.2s; /* Hiệu ứng mượt */
}

/* Hiệu ứng khi di chuột vào cả khối (Cho khách biết là bấm được) */
.card-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #d92315; /* Viền đỏ lên cho đẹp */
}

/* 2. Biến link "Chi tiết" thành lớp màng phủ kín Card */
.link-detail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Nằm ở lớp 1 */
    cursor: pointer;
}

/* 3. [QUAN TRỌNG NHẤT] Đưa nút ĐĂNG KÝ nổi lên trên cùng */
.action-area .btn-reg-v2 {
    position: relative !important;
    z-index: 2 !important; /* Lớp 2: Cao hơn lớp phủ kia */
    pointer-events: auto;  /* Đảm bảo vẫn nhận click */
}

/* 3. TỐI ƯU MOBILE */
@media (max-width: 768px) {
    .list-goi-pro {

        gap: 20px; /* Tăng khoảng cách thẻ trên mobile */
    }
    
    h2, .section-title {
        font-size: 18px !important; /* Mobile thì chữ vừa phải thôi */
    }
	h2, .seo-heading 
	{
		margin:15 !important;
	}
}
