/* ============================================
   KHÁCH HÀNG SLIDER STYLES
   ============================================ */

.khachhang-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.khachhang-slider-container {
    max-width: 100%;
    overflow: hidden;
}

.khachhang-slider {
    display: flex;
    gap: 20px;
    will-change: transform;
    transition: transform .45s ease;
}

/* Khi có item active */
.khachhang-slider-wrapper.has-active .khachhang-slider {
    gap: 12px;
}

/* ============================================
   ITEM
   ============================================ */
.khachhang-item {
    flex: 0 0 300px;
    cursor: pointer;
    height: 580px;
    transition: all .45s ease;
    opacity: 1;
}

/* Các item khác mờ đi khi có active */
.khachhang-slider-wrapper.has-active .khachhang-item {
    opacity: 0.5;
}

.khachhang-item.active {
    flex: 0 0 640px !important;
    opacity: 1 !important;
}

/* ============================================
   CARD
   ============================================ */
.khachhang-card {
    height: 100%;
    display: flex;
    flex-direction: row; 
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #F8AD11;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all .35s ease;
}

/* Chưa active - nền trong suốt + không border */
.khachhang-item:not(.active) .khachhang-card {
    background: transparent;
    box-shadow: none;
    border-color: transparent;
}

/* Hover */
.khachhang-item:hover .khachhang-card {
    border-color: #F8AD11;
}

/* Active */
.khachhang-item.active .khachhang-card {
    border-color: #F8AD11;
}

/* Tắt hover khi slider dừng */
.khachhang-slider-wrapper.has-active .khachhang-item:not(.active):hover .khachhang-card {
    border-color: transparent;
}

/* ============================================
   LEFT COLUMN - ẢNH BÌA (KHI CHƯA ACTIVE)
   ============================================ */
.khachhang-left {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    transition: .35s ease;
}

/* Khi active - ẩn cột trái, chỉ dùng layout bên phải */
.khachhang-item.active .khachhang-left {
    display: none;
}

.khachhang-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    
}

.khachhang-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   RIGHT COLUMN - THÔNG TIN (KHI ACTIVE)
   ============================================ */
.khachhang-right {
    flex: 0 0 0;
    opacity: 0;
    overflow: hidden;
    transition: .45s ease;
    padding: 0;
}

/* Active → bung ra FULL */
.khachhang-item.active .khachhang-right {
    flex: 1;
    opacity: 1;
}

.khachhang-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    
}

/* Tên khách hàng */
.khachhang-ten {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin: 0 0 2px 0;
}

/* ======================================================
   TOPBOX – NỀN VÀNG GIỐNG MẪU
====================================================== */

.khachhang-item.active .kh-topbox {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* KHÔNG VIỀN – KHÔNG BO GÓC */
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 10px 0 0px; /* giống mẫu */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0; 
}


/* ======================================================
   TÊN KHÁCH HÀNG – GIỮNG GIỮA, FONT TO
====================================================== */

.khachhang-item.active .kh-topbox-name {
    font-size: 25px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
    text-align: center;
}


/* ======================================================
   ẢNH ĐIỀU TRỊ – ĐÚNG 504×332 (MẪU FIGMA)
====================================================== */

.khachhang-item.active .kh-topbox-imgwrap {
    width: 524px;
    height: 332px;
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.khachhang-item.active .kh-topbox-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ======================================================
   HỘP THÔNG TIN CARD TRẮNG – CHUẨN MẪU
====================================================== */

.khachhang-item.active .kh-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 32px;
    margin-top: 10px;
    margin-left: 40px;
    margin-right: 40px;
    border-left: 5px solid #1a01ff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* GRID 2 CỘT */
.khachhang-item.active .kh-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 40px;
}

/* TITLE */
.khachhang-item.active .kh-row h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.khachhang-item.active .kh-col:nth-child(2) h4 {
    color: #F8AD11;
}

/* CONTENT */
.khachhang-item.active .kh-row p {
    font-size: 15px;
    color: #000000;
    margin: 0;
}
.khachhang-item.active .kh-col:nth-child(1) h4 {
    color: #F8AD11 !important;     /* đổi sang cam */
    text-transform: uppercase !important; /* CHỮ HOA */
    font-weight: 800;
}

/* ============================================
   CHỮ HOA ĐẦU CHO NỘI DUNG (p)
   ============================================ */
.khachhang-item.active .kh-row p {
    text-transform: capitalize;   /* Viết hoa chữ cái đầu */
}
/* CHỮ HOA CHỮ CÁI ĐẦU CHO TÊN KHÁCH HÀNG */
.khachhang-item.active .kh-topbox-name {
    text-transform: capitalize !important;
}

/* ======================================================
   FIX LỖI KHOẢNG TRỐNG DƯ THỪA
====================================================== */

.khachhang-content {
    padding: 0 !important;
    background: transparent !important;
}

/* ============================================
   PAGINATION BULLETS - DASHES (SPACED)
============================================ */
.khachhang-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.khachhang-bullet {
    width: 30px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.khachhang-bullet:hover {
    background: #F8AD11;
    transform: scaleX(1.2);
}

.khachhang-bullet.active {
    background: #F8AD11;
    transform: scaleX(1.3);
}

/* ============================================================
   MOBILE FIX – CHỈ ẢNH HƯỞNG ĐIỆN THOẠI
   SỬA LỖI AVATAR BỊ CẮT / KHÔNG FULL
   ============================================================ */
/* ============================================================
   MOBILE FIX – CHỈ ẢNH HƯỞNG ĐIỆN THOẠI (<768px)
   CHỈ SỬA GIAO DIỆN KHI ACTIVE
============================================================ */
@media (max-width: 768px) {

    /* ITEM KHI ACTIVE TRÊN MOBILE */
    .khachhang-item.active {
        flex: 0 0 100% !important;
        height: auto !important;
        opacity: 1 !important;
    }

    /* KHÔNG HIỂN THỊ AVATAR BÊN TRÁI */
    .khachhang-item.active .khachhang-left {
        display: none !important;
    }

    /* RIGHT COLUMN FULL WIDTH */
    .khachhang-item.active .khachhang-right {
        width: 100% !important;
        flex: unset !important;
        opacity: 1 !important;
        display: block !important;
    }

    .khachhang-item.active .khachhang-content {
        width: 100% !important;
        padding: 0 !important;
        background: transparent !important;
        display: block !important;
    }

    /* ===========================
       KHỐI TRÊN – BACKGROUND VÀNG
       =========================== */
    .khachhang-item.active .kh-topbox {
        width: 100% !important;
        padding: 20px 12px !important;
        border-radius: 0 !important;
        border: none !important;
        background-size: cover !important;
        background-position: center !important;
        margin-bottom: 18px !important;
        text-align: center !important;
    }

    /* Tên khách hàng */
    .khachhang-item.active .kh-topbox-name {
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #000 !important;
        margin-bottom: 12px !important;
        text-transform: capitalize !important;
    }

    /* Ảnh điều trị – giữ đúng Figma */
    .khachhang-item.active .kh-topbox-imgwrap {
        width: 100% !important;
        aspect-ratio: 504/332 !important;
        height: auto !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        margin: 0 auto !important;
    }

    .khachhang-item.active .kh-topbox-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* ===========================
       INFO CARD – KHỐI TRẮNG
       =========================== */
    .khachhang-item.active .kh-info-card {
        background: #fff !important;
        border-radius: 16px !important;
        padding: 20px 18px !important;
        margin: 18px 12px !important;
        border-left: 5px solid #1a01ff !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
    }

    /* GRID 1 CỘT TRÊN MOBILE */
    .khachhang-item.active .kh-info-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    /* TITLE */
    .khachhang-item.active .kh-row h4 {
        font-size: 13px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        margin-bottom: 4px !important;
    }

    /* Title màu cam */
    .khachhang-item.active .kh-col:nth-child(1) h4,
    .khachhang-item.active .kh-col:nth-child(2) h4 {
        color: #F8AD11 !important;
    }

    /* CONTENT chữ hoa đầu */
    .khachhang-item.active .kh-row p {
        font-size: 14px !important;
        color: #000 !important;
        margin: 0 !important;
        text-transform: capitalize !important;
    }

    /* ===========================
       PADDING & GIAO DIỆN TỔNG
       =========================== */
    .khachhang-slider-wrapper.has-active .khachhang-slider {
        gap: 10px !important;
    }

}
