/* =========================================
           iD-4 Guide Center - CSS Section:
           Chăm sóc và hỗ trợ khách hàng với
           công nghệ VAT Chat
========================================= */


/* BACKGROUND NỀN */

:root {
    --id4-font-main: 'Open Sans';
    --id4-font-weight-big-bold: 900;
    --id4-font-weight-small-bold: 700;
    --id4-font-weight-title: 600;
    --id4-font-weight-desript: 400;
    --id4-container-color-xam: #f5f5f7;
    --id4-button-color: #2e3192;
    --id4-bordrer-color: #2e3192;
    --id4-unit: 1rem;
    --id4-font-size-title: calc(var(--id4-unit) * 2);
    --id4-font-size-desription: calc(var(--id4-unit) * 1);
    --id4-font-size-button: calc(var(--id4-unit) * 0.875);
    --id4-container-width: calc(var(--id4-unit) * 68.75);
    --id4-header-height: calc(var(--id4-unit) * 5);
    --id4-spacing-block: calc(var(--id4-unit) * 2.5);
    --id4-spacing-sm: calc(var(--id4-unit) * 0.5);
    --id4-spacing-md: calc(var(--id4-unit) * 1);
    --id4-spacing-lg: calc(var(--id4-unit) * 2);
    --id4-color-text-title: #2e3192;
    --id4-color-text-desription: #000000;
    --id4-border-radius-card: calc(var(--id4-unit) * 1.75);
    --id4-border-radius-card-small: calc(var(--id4-unit) * 1);
    --id4-text-indent: calc(var(--id4-unit) * 1.5625);
    --arrow-width: calc(var(--id4-unit) * 2.5);
    --arrow-height: calc(var(--id4-unit) * 2.1875);
    --arrow-border-width: 3px;
    --id4-padding-height-button: calc(var(--id4-unit) * 0.625);
    --id4-padding-width-button: calc(var(--id4-unit) * 2.5);
    --id4-gap: calc(var(--id4-unit) * 1.25);
    --id4tv-shadow: 0 calc(var(--id4-unit) * 0.625) calc(var(--id4-unit) * 0.625) rgba(0, 0, 0, .10);
    /* ==== STATS UI (theo ảnh) ==== */
    --id4-stats-bg: #ffffff;
    --id4-stats-sep: rgba(0, 0, 0, 0.10);
    --id4-stats-radius: calc(var(--id4-unit) * 0.75);
    --id4-stats-padding-y: calc(var(--id4-unit) * 0.9);
    --id4-stats-padding-x: calc(var(--id4-unit) * 1.0);
    --id4-stats-number-size: calc(var(--id4-unit) * 1.5);
    /* số lớn như ảnh */
    --id4-stats-label-size: calc(var(--id4-unit) * 0.85);
    /* chữ nhỏ */
}

@media (max-width: 768px) {
    :root {
        --id4-unit: 0.9375rem;
    }
}

@media (min-width: 1536px) {
    :root {
        --id4-unit: 1.0625rem;
    }
}


/* =========================================
           RESET & CORE STYLES
 ========================================= */

.iD-4-CSVC-wrapper {
    position: relative;
    top: -1px;
    bottom: -1px;
    width: 100%;
    position: relative;
    padding: 40px 0 30px 0;
    margin-top: 0 !important;
    overflow: hidden;
    background-color: #f7f9f9;
    /* border-bottom-left-radius: 50% 100px;
    border-bottom-right-radius: 50% 100px; */
}


/* Họa tiết trang trí nền (Hình tròn mờ phía sau) */


/* .iD-4-CSVC-bg-decoration {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(43, 58, 152, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
   
} */

.iD-4-CSVC-container {
    width: 100%;
    max-width: var(--id4-container-width);
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    /* Để nội dung nổi lên trên nền */
}


/* =========================================
           HEADER SECTION
 ========================================= */

.iD-4-CSVC-header {
    text-align: center;
    margin-bottom: var(--arrow-width);
}

.iD-4-CSVC-title {
    font-family: var(--id4-font-main);
    color: var(--id4-button-color);
    font-size: var(--id4-font-size-title);
    font-weight: var(--id4-font-weight-title);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.iD-4-CSVC-desc {
    font-family: var(--id4-font-main);
    font-size: var(--id4-font-size-desription);
    color: var(--id4-color-text-desription);
    max-width: var(--id4-container-width);
    line-height: 1.6;
    margin: 0 auto;
    text-align: center;
}


/* =========================================
           GALLERY SECTION (Flexbox Layout)
           ========================================= */

.iD-4-CSVC-gallery-box {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Căn giữa trục dọc để ảnh giữa to ra 2 đầu */
    gap: 40px;
    /* padding: 20px 0; */
}


/* Card chứa ảnh */

.iD-4-CSVC-img-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.iD-4-CSVC-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --- DESKTOP STYLES (Mặc định) --- */


/* 1. Ảnh hai bên (Nhỏ hơn) */

.iD-4-CSVC-card-side {
    width: 280px;
    height: 380px;
    opacity: 1;
    /* Thêm bo viền nhẹ cho đẹp */
    /* border: 4px solid #fff; */
}


/* 2. Ảnh ở giữa (To & Cao hơn hẳn) */

.iD-4-CSVC-card-center {
    width: 360px;
    height: 520px;
    /* Cao hơn side 140px */
    z-index: 2;
    box-shadow: var(--id4tv-shadow);
    /* border: 4px solid #fff; */
}


/* =========================================
           RESPONSIVE: TABLET & MOBILE
           ========================================= */

@media screen and (max-width: 992px) {
    .iD-4-CSVC-title {
        font-size: 1.8rem;
    }

    /* Giảm độ cong trên tablet cho đỡ tốn diện tích */
    /* .iD-4-CSVC-wrapper {
        border-bottom-left-radius: 30% 50px;
        border-bottom-right-radius: 30% 50px;
    }
    */
    /* Slide vuốt ngang */
    .iD-4-CSVC-gallery-box {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 20px 20px 50px 20px;
        /* Thêm padding dưới cho bóng đổ */
        gap: 20px;
        -webkit-overflow-scrolling: touch;
    }

    /* Ẩn thanh cuộn */
    .iD-4-CSVC-gallery-box::-webkit-scrollbar {
        display: none;
    }

    .iD-4-CSVC-gallery-box {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Reset kích thước card cho mobile */
    .iD-4-CSVC-card-side,
    .iD-4-CSVC-card-center {
        scroll-snap-align: center;
        width: 70vw;
        /* Chiếm 70% màn hình */
        height: auto;
        aspect-ratio: 3/4;
        /* Giữ tỷ lệ */
        /* Trên mobile reset về bằng nhau cho slide mượt */
        flex: 0 0 70vw;
    }
}

@media screen and (max-width: 576px) {
    .iD-4-CSVC-title {
        font-size: 1.4rem;
        padding: 0 10px;
    }

    .iD-4-CSVC-desc {
        font-size: 0.9rem;
        padding: 0 15px;
        text-align: justify;
        text-align-last: center;
    }

    .iD-4-CSVC-card-side,
    .iD-4-CSVC-card-center {
        width: 80vw;
        /* Mobile nhỏ thì cho ảnh to ra chút */
        flex: 0 0 80vw;
    }
}