/* =========================================
           RESET CSS & CẤU HÌNH CƠ BẢN
        ========================================= */

:root {
    /* TYPOGRAPHY ---------------------
     - font chính
     - font-weight
  -------------------------------- */
    --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;
    /* COLORS -------------------------
     - nền xám
     - màu nút
     - màu viền
  -------------------------------- */
    --id4-container-color-xam: #f5f5f7;
    --id4-button-color: #2e3192;
    --id4-bordrer-color: #2e3192;
    /* SCALE --------------------------
     - 1 biến gốc dùng chung
     - desktop mặc định: 1rem ≈ 16px
  -------------------------------- */
    --id4-unit: 1rem;
    /* FONT SIZES ---------------------
     - title: 2 * unit ≈ 32px
     - description: 1 * unit ≈ 16px
     - button: 0.875 * unit ≈ 14px
  -------------------------------- */
    --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);
    /* LAYOUT SIZES -------------------
     - container width: 68.75 * unit ≈ 1100px
     - header height: 5 * unit ≈ 80pxS
  -------------------------------- */
    --id4-container-width: calc(var(--id4-unit) * 68.75);
    --id4-header-height: calc(var(--id4-unit) * 5);
    /* SPACING ------------------------
     - block: 2.5 * unit ≈ 40px
     - sm: 0.5 * unit ≈ 8px
     - md: 1 * unit ≈ 16px
     - lg: 2 * unit ≈ 32px
  -------------------------------- */
    --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);
    /* TEXT COLORS --------------------
     - title
     - description
  -------------------------------- */
    --id4-color-text-title: #2e3192;
    --id4-color-text-desription: #000000;
    /* RADIUS -------------------------
     - card: 1.75 * unit ≈ 28px
     - card small: 1 * unit ≈ 16px
  -------------------------------- */
    --id4-border-radius-card: calc(var(--id4-unit) * 1.75);
    --id4-border-radius-card-small: calc(var(--id4-unit) * 1);
    /* MISC ---------------------------
     - text indent: 1.5625 * unit ≈ 25px
  -------------------------------- */
    --id4-text-indent: calc(var(--id4-unit) * 1.5625);
    /* ARROW --------------------------
     - width: 2.5 * unit ≈ 40px
     - height: 2.1875 * unit ≈ 35px
     - border: giữ px (ổn định)
  -------------------------------- */
    --arrow-width: calc(var(--id4-unit) * 2.5);
    --arrow-height: calc(var(--id4-unit) * 2.1875);
    --arrow-border-width: 3px;
    /* BUTTON PADDING -----------------
     - height: 0.625 * unit ≈ 10px
     - width: 2.5 * unit ≈ 40px
  -------------------------------- */
    --id4-padding-height-button: calc(var(--id4-unit) * 0.625);
    --id4-padding-width-button: calc(var(--id4-unit) * 2.5);
    /* GAP ----------------
     - height: 0.625 * unit ≈ 10px
     - width: 2.5 * unit ≈ 40px
  -------------------------------- */
    --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);
}


/* Animation xuất hiện */

@keyframes id4-slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes id4-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(43, 52, 129, 0.1);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 20px rgba(43, 52, 129, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(43, 52, 129, 0);
    }
}


/* Wrapper bao ngoài (thay thế body) */

.id4-cktc5p-wrapper {
    background-image: url("http://id4.diamondbone.com/wp-content/uploads/2026/01/Artboard-5-7@2x.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px var(--id4-header-height) 20px;
    overflow-x: hidden;
    position: relative;
    top: -1px;
}

@media (max-width: 600px) {
    .id4-cktc5p-wrapper {
        background-image: url("/wp-content/uploads/2026/01/BG-MOBILE.png");
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
    }
}


/* Container chính */

.id4-cktc5p-container {
    width: 100%;
    max-width: var(--id4-container-width);
    position: relative;
}


/* =========================================
    HEADER
========================================= */

.id4-cktc5p-header {
    text-align: center;
    margin-bottom: 60px;
}

.id4-cktc5p-title {
    font-family: var(--id4-font-main);
    font-size: var(--id4-font-size-title);
    color: var(--id4-color-text-title);
    font-weight: var(--id4-font-weight-title);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}


/* =========================================
           CONTENT AREA (FLEXBOX CHÍNH)
        ========================================= */

.id4-cktc5p-content-area {
    display: flex;
    align-items: center;
    /* Căn giữa theo trục dọc */
    justify-content: center;
    /* Khoảng cách giữa hình tròn và danh sách */
    gap: 0px;
}


/* --- CỘT TRÁI: VÒNG TRÒN 5P --- */

.id4-cktc5p-visual {
    flex: 0 0 4%;
    /* Chiếm khoảng 40% chiều rộng */
    display: flex;
    justify-content: center;
    /* Căn hình tròn vào giữa cột của nó */
    align-items: center;
    position: relative;
    z-index: 2;
}


/* Vòng tròn mờ bao ngoài (Outer Glow) */

.id4-cktc5p-circle-outer {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #fff;
    /* Đổ bóng mềm tạo hiệu ứng nổi nhẹ */
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


/* Vòng tròn trang trí mờ nhạt bao quanh */

.id4-cktc5p-circle-outer::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.02);
    z-index: -1;
}


/* Vòng tròn đậm bên trong chứa chữ 5P */

.id4-cktc5p-circle-inner {
    font-family: var(--id4-font-main);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--id4tv-shadow);
    /* Bóng đổ vào trong */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--id4-color-text-title);
    /* Màu xanh chữ 5P */
    font-size: 5rem;
    font-weight: var(--id4-font-weight-small-bold);
    border: 10px solid #f4f7f9;
    /* Viền xám nhạt */
    animation: id4-pulse 3s infinite;
}


/* --- CỘT PHẢI: DANH SÁCH ITEM --- */

.id4-cktc5p-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Khoảng cách giữa các item */
    /* padding-right: 20px; */
}


/* Style chung cho từng thẻ Item */

.id4-cktc5p-item {
    background: var(--item-bg);
    border-radius: 100px;
    /* Bo tròn cực đại tạo hình viên thuốc */
    padding: 15px 30px 15px 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    /* Animation xuất hiện */
    opacity: 0;
    animation: id4-slideInRight 0.6s ease-out forwards;
}

.id4-cktc5p-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(43, 52, 129, 0.15);
    z-index: 10;
}


/* Số thứ tự (Badge tròn màu xanh) */

.id4-cktc5p-number {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    background-color: var(--id4-button-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-right: 25px;
    box-shadow: var(--id4tv-shadow);
}


/* Nhóm text (Tiêu đề + Mô tả) */

.id4-cktc5p-text-group {
    display: flex;
    flex-direction: column;
}

.id4-cktc5p-item-title {
    font-family: var(--id4-font-main);
    color: var(--id4-color-text-title);
    font-size: var(--id4-font-size-desription);
    font-weight: var(--id4-font-weight-small-bold);
    margin-bottom: 5px;
}

.id4-cktc5p-item-desc {
    font-family: var(--id4-font-main);
    color: var(--id4-color-text-title);
    font-size: var(--id4-font-size-desription);
    text-indent: var(--id4-text-indent);
    line-height: 1.4;
    text-align: justify;
}


/* =========================================
           LOGIC TẠO ĐỘ CONG (CURVE) - DESKTOP ONLY
           Sử dụng margin-left để đẩy các mục ra xa dần
        ========================================= */

@media (min-width: 992px) {

    /* Item 3: Trung tâm - Sát bên trái nhất (Gần vòng tròn nhất) */
    .id4-cktc5p-item:nth-child(3) {
        margin-left: 80px;
        animation-delay: 0.2s;
    }

    /* Item 2 & 4: Lùi ra một chút (Tạo độ thoải) */
    .id4-cktc5p-item:nth-child(2),
    .id4-cktc5p-item:nth-child(4) {
        margin-left: 50px;
    }

    .id4-cktc5p-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .id4-cktc5p-item:nth-child(4) {
        animation-delay: 0.3s;
    }

    /* Item 1 & 5: Lùi ra xa nhất (Tạo đỉnh cong) */
    .id4-cktc5p-item:nth-child(1),
    .id4-cktc5p-item:nth-child(5) {
        /* margin-left: 110px; */
        margin-right: 20px;
    }

    .id4-cktc5p-item:nth-child(1) {
        animation-delay: 0s;
    }

    .id4-cktc5p-item:nth-child(5) {
        animation-delay: 0.4s;
    }
}


/* =========================================
           RESPONSIVE: TABLET & MOBILE
        ========================================= */


/* Tablet (Dưới 992px) */

@media (max-width: 992px) {
    .id4-cktc5p-content-area {
        flex-direction: column;
        gap: 40px;
    }

    .id4-cktc5p-visual {
        flex: auto;
        width: 100%;
        margin-bottom: 20px;
    }

    /* Ẩn vòng tròn trang trí lớn để gọn giao diện */
    .id4-cktc5p-circle-outer::before {
        display: none;
    }

    .id4-cktc5p-list {
        width: 100%;
        /* padding: 0px 0px var(--id4-header-height) 0px; */
    }

    /* Reset toàn bộ margin để thẳng hàng */
    .id4-cktc5p-item:nth-child(n) {
        margin-left: 0;
    }
}


/* Mobile (Dưới 600px) */

@media (max-width: 600px) {
    .id4-cktc5p-wrapper {
        padding-top: var(--id4-header-height);
    }

    .id4-cktc5p-title {
        font-size: 1.4rem;
    }

    .id4-cktc5p-circle-outer {
        width: 200px;
        height: 200px;
    }

    .id4-cktc5p-circle-inner {
        width: 140px;
        height: 140px;
        font-size: 3rem;
    }

    .id4-cktc5p-item {
        flex-direction: column;
        text-align: center;
        border-radius: 20px;
        padding: 20px;
        align-items: center;
    }

    .id4-cktc5p-number {
        margin-right: 0;
        margin-bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .id4-cktc5p-item-desc {
        text-align: center;
    }
}