/* ==================== SWEETALERT MINIMAL ==================== */
.swal-minimal {
    background: #fff !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.swal-minimal .swal2-title {
    color: #111827 !important;
    font-weight: 700 !important;
    font-size: 1.375rem !important;
}

.swal-minimal .swal2-html-container {
    color: #4b5563 !important;
    font-size: 1rem !important;
}

.swal-minimal .swal2-actions {
    margin-top: 28px !important;
    gap: 12px !important;
}

/* Nút xác nhận - đen chuẩn */
.swal-minimal button.swal2-confirm {
    background: #000 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 11px 28px !important;
    font-weight: 600 !important;
    font-size: 0.975rem !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
}

.swal-minimal button.swal2-confirm:hover {
    background: #111 !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px);
}

.swal-minimal button.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15) !important;
}

/* Nút hủy - xám đậm, phẳng, rõ ràng */
.swal-minimal button.swal2-cancel {
    background: #e5e7eb !important;
    color: #111827 !important;
    border-radius: 8px !important;
    padding: 11px 28px !important;
    font-weight: 600 !important;
    font-size: 0.975rem !important;
    border: none !important;
    box-shadow: none !important; /* XÓA BÓNG */
    transition: background 0.2s ease !important;
}

.swal-minimal button.swal2-cancel:hover {
    background: #d1d5db !important;
}

.swal-minimal button.swal2-cancel:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.3) !important;
}

/* ==================== SLIDER ==================== */
.slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 26px;
    padding: 0 1px; /* bù gap ở 2 đầu */
    will-change: transform;
    transition: transform 0.4s ease;
}

/* ==================== CARD ==================== */
.card {
    flex: 0 0 calc((100% - 3 * 26px) / 4);
    min-width: 0;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 24px;

    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    border-color: #9ca3af;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Icon bên trái */
.card-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: #000;
}

/* Nội dung chính */
.card-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-text {
    font-weight: 700;
    font-size: 18px;
    color: #111;
    cursor: pointer;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

.card-text::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2.5px;
    background: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.card-text:hover {
    color: #333;
}

.card-text:hover::after {
    width: 80%;
}

.card-desc {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .card {
        flex: 0 0 calc((100% - 2 * 26px) / 3);
    }
}

@media (max-width: 900px) {
    .card {
        flex: 0 0 calc((100% - 26px) / 2);
    }
}

@media (max-width: 600px) {
    .card {
        flex: 0 0 100%;
    }
    
    .card-icon {
        position: static;
        transform: none;
        margin-bottom: 16px;
        font-size: 42px;
    }
    
    .slider-track {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .slider-wrapper h2 {
        font-size: 1.25rem;
        line-height: 1.5;
    }
}






/* ===================== */
/* KHUNG HIỂN THỊ SLIDER */
/* ===================== */
.slider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 26px;
    padding-left: 1px;   /* nửa gap */
    padding-right: 1px;  /* nửa gap */
    will-change: transform;
    transform: translateX(0);
}


/* ===================== */
/* TRACK CHẠY CARD */
/* ===================== */
.slider-track{
    display: flex;
    gap: 26px;
    will-change: transform;
    transform: translateX(0);
}

/* ===================== */
/* CARD */
/* ===================== */
.card {
    position: relative;

    /* Co giãn theo số card hiển thị */
    flex: 0 0 calc((100% - (3 * 26px)) / 4); /* 4 card hiển thị, gap 26px */
    min-width: 0;      /* để flex shrink hoạt động */
    max-width: 100%;   /* không vượt quá slider */

    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 24px;

    box-sizing: border-box;
    user-select: none;
    transition: border-color .3s, box-shadow .3s;

    text-align: center; /* chữ chính giữa */
}

.card:hover {
    border-color: #9ca3af;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
}
/* icon sát trái, to ra */
.card-icon {
    position: absolute;     
    left: 16px;             
    top: 50%;               
    transform: translateY(-50%);
    font-size: 50px;        /* to hơn xíu */
    color: black;           
}

/* chữ chính giữa card */
.card-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-text {
    font-weight: bold;       
    font-size: 18px;
    cursor: pointer;
    color: #111;             /* màu chữ bình thường */
    position: relative;       /* cần để ::after căn chỉnh */
    transition: color 0.3s;
}

/* tạo thanh ngang */
.card-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1.5px;             /* cách chữ 4px */
    width: 0;                  /* lúc đầu không hiện */
    height: 2px;               /* độ dày thanh ngang */
    background-color: #555;    /* màu thanh ngang */
    transition: width 0.3s ease;
}

/* khi hover */
.card-text:hover {
    color: #333333;            /* đổi màu chữ khi hover */
}

.card-text:hover::after {
    width: 100%;               /* thanh ngang mở rộng hết chiều rộng chữ */
}



.card-desc {
    font-size: 12px;
    color: #6c757d;         /* màu chữ mô tả nhạt */
    margin-top: 4px;         /* khoảng cách giữa chữ chính và mô tả */
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */
@media (max-width: 1200px){
    .card {
        flex: 0 0 calc((100% - (2 * 26px)) / 3);
    }
}
@media (max-width: 900px){
    .card {
        flex: 0 0 calc((100% - 1 * 26px) / 2);
    }
}
@media (max-width: 600px){
    .card {
        flex: 0 0 100%;
    }
}
@media (max-width: 768px) {
    .slider-wrapper h2 {
        font-size: 1.25rem; /* khoảng 20px */
        line-height: 1.4;    /* tăng readability */
    }
}

