/* =========================================================
   BRANDINFO - NHỮNG KHÓ KHĂN
   Section : bi-problem-section
   Row     : bi-problem-row
   Column  : bi-problem-card
========================================================= */


/* =========================
   SECTION
========================= */

.bi-problem-section{
    position:relative;
}


/* =========================
   ROW
========================= */

.bi-problem-row{
    max-width:1200px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    align-items:stretch !important;
}

.bi-problem-row .col{
    padding-bottom:24px;
}


/* =========================
   COLUMN / CARD
========================= */

.bi-problem-card{
    display:flex;
}

.bi-problem-card > .col-inner{
    width:100%;
    height:100%;

    display:flex;

    padding:30px 28px !important;

    background:#ffffff !important;

    border:1.5px solid rgba(24,168,225,.35) !important;
    border-radius:20px !important;

    box-shadow:
        0 8px 28px rgba(23,37,54,.04);

    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}


/* =========================
   ICON BOX
========================= */

.bi-problem-card .icon-box{
    width:100%;
    height:100%;

    display:flex;
    flex-direction:column;

    text-align:center;
}


/* =========================================================
   ICON - TRẠNG THÁI BÌNH THƯỜNG
========================================================= */

.bi-problem-card .icon-box-img{
    position:relative;

    width:82px !important;
    height:82px !important;

    display:flex !important;
    align-items:center;
    justify-content:center;

    margin:0 auto 20px !important;

    background:#fff !important;

    border:1px solid rgba(0,127,192,.18) !important;
    border-radius:50% !important;

    box-shadow:
        0 6px 20px rgba(0,127,192,.08);

    overflow:visible !important;

    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}


/* XÓA HIỆU ỨNG PSEUDO CŨ */

.bi-problem-card .icon-box-img::before,
.bi-problem-card .icon-box-img::after{
    display:none !important;
    content:none !important;
}


/* ICON */

.bi-problem-card .icon-box-img img{
    position:relative;
    z-index:2;

    width:48px !important;
    height:48px !important;

    margin:0 !important;
    object-fit:contain;

    transition:
        transform .28s ease,
        filter .28s ease;
}


/* =========================================================
   HOVER CARD
========================================================= */

.bi-problem-card:hover > .col-inner{
    transform:translateY(-5px);

    border-color:#18a8e1 !important;

    box-shadow:
        0 16px 38px rgba(23,37,54,.08);
}


/* =========================================================
   HOVER ICON - GLOW XANH LÁ SẠCH
========================================================= */

.bi-problem-card:hover .icon-box-img{
    transform:translateY(-4px);

    border-color:#9ecb3b !important;

    box-shadow:
        0 0 0 5px rgba(158,203,59,.10),
        0 0 0 10px rgba(158,203,59,.05),
        0 0 24px rgba(158,203,59,.28),
        0 10px 24px rgba(0,127,192,.08);
}


/* icon chỉ phóng nhẹ */

.bi-problem-card:hover .icon-box-img img{
    transform:scale(1.06);
}


/* tiêu đề vẫn giữ xanh Brandinfo */

.bi-problem-card:hover h3{
    color:#007fc0 !important;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:849px){

    .bi-problem-card > .col-inner{
        padding:24px 20px !important;
        border-radius:18px !important;
    }

    .bi-problem-card .icon-box-img{
        width:76px !important;
        height:76px !important;
    }

    .bi-problem-card .icon-box-img img{
        width:44px !important;
        height:44px !important;
    }

    .bi-problem-card h3{
        min-height:auto;
        font-size:17px !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:549px){

    .bi-problem-row .col{
        padding-bottom:14px;
    }

    .bi-problem-card > .col-inner{
        padding:22px 18px !important;
        border-radius:16px !important;
    }

    .bi-problem-card p{
        font-size:14px !important;
    }

}


/* =========================================================
   WEBSITE FEATURE FLOW
   6 bước nối ngang - Brandinfo
========================================================= */

.bi-feature-flow {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fcff 55%,
            #f8fdf2 100%
        );
}


/* =========================
   ROW 6 ITEM
========================= */

.bi-feature-flow-row {
    position: relative;
    max-width: 1250px !important;
    margin: 35px auto 0 !important;
    align-items: flex-start !important;
}


/* Đường nối phía sau icon */

.bi-feature-flow-row::before {
    content: "";
    position: absolute;

    top: 47px;
    left: 8.3%;
    right: 8.3%;

    height: 2px;

    background: linear-gradient(
        90deg,
        rgba(0,127,192,.35),
        rgba(158,203,59,.55),
        rgba(0,127,192,.35)
    );

    z-index: 0;
}


/* =========================
   COLUMN
========================= */

.bi-feature-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.bi-feature-step > .col-inner {
    position: relative;
    padding: 0 10px !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    text-align: center;
}


/* =========================
   ICON HEXAGON
========================= */

/* =========================================================
   LỤC GIÁC TRẮNG - VIỀN XANH NƯỚC
   KHÔNG DÙNG PSEUDO ELEMENT
========================================================= */

.bi-feature-step .icon-box-img{
    position:relative;
    z-index:2;

    width:88px !important;
    height:88px !important;

    display:flex !important;
    align-items:center;
    justify-content:center;

    margin:0 auto 20px !important;
    padding:2px !important;

    background:#18a8e1 !important;

    clip-path:polygon(
        25% 6.7%,
        75% 6.7%,
        100% 50%,
        75% 93.3%,
        25% 93.3%,
        0 50%
    );

    border:0 !important;
    box-shadow:none !important;
    filter:none !important;

    transition:transform .25s ease;
}


/* =========================================================
   LỚP TRẮNG BÊN TRONG
========================================================= */

.bi-feature-step .icon-box-img .icon,
.bi-feature-step .icon-box-img > div:first-child{
    width:100% !important;
    height:100% !important;

    display:flex !important;
    align-items:center;
    justify-content:center;

    margin:0 !important;

    background:#fff !important;

    clip-path:polygon(
        25% 6.7%,
        75% 6.7%,
        100% 50%,
        75% 93.3%,
        25% 93.3%,
        0 50%
    );
}


/* Nếu Flatsome có icon-inner */

.bi-feature-step .icon-box-img .icon-inner{
    width:100% !important;
    height:100% !important;

    display:flex !important;
    align-items:center;
    justify-content:center;

    background:transparent !important;
}


/* =========================================================
   ẢNH ICON
========================================================= */

.bi-feature-step .icon-box-img img{
    position:relative;
    z-index:3;

    width:42px !important;
    height:42px !important;

    margin:0 !important;

    object-fit:contain;
}


/* =========================================================
   HOVER
========================================================= */

.bi-feature-step:hover .icon-box-img{
    transform:translateY(-4px);
}

/* =========================
   TITLE
========================= */

.bi-feature-step h3 {
    max-width: 180px;

    margin: 0 auto 8px !important;

    color: #007fc0 !important;

    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;

    text-align: center;
}


/* =========================
   DESCRIPTION
========================= */

.bi-feature-step p {
    max-width: 185px;

    margin: 0 auto !important;

    color: #536273 !important;

    font-size: 13px !important;
    line-height: 1.55 !important;

    text-align: center;
}


/* =========================
   HOVER
========================= */

.bi-feature-step:hover .icon-box-img {
    transform: translateY(-7px);

    filter:
        drop-shadow(
            0 12px 18px rgba(0,127,192,.18)
        );
}

.bi-feature-step:hover h3 {
    color: #172536 !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 849px) {

    .bi-feature-flow-row::before {
        display: none;
    }

    .bi-feature-step {
        margin-bottom: 30px;
    }

    .bi-feature-step .icon-box-img {
        width: 84px !important;
        height: 84px !important;
    }

    .bi-feature-step .icon-box-img img {
        width: 43px !important;
        height: 43px !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 549px) {

    .bi-feature-step > .col-inner {
        padding: 0 7px !important;
    }

    .bi-feature-step .icon-box-img {
        width: 76px !important;
        height: 76px !important;

        margin-bottom: 14px !important;
    }

    .bi-feature-step .icon-box-img img {
        width: 38px !important;
        height: 38px !important;
    }

    .bi-feature-step h3 {
        font-size: 14px !important;
    }

    .bi-feature-step p {
        font-size: 12px !important;
    }

}


/* =========================================================
   BRANDINFO - PROCESS TIMELINE
========================================================= */

.bi-process {
    position: relative;
    overflow: hidden;
    background: #fff;
}


/* =========================================================
   TRACK
========================================================= */

.bi-process-track {
    position: relative;
    max-width: 1250px !important;
    min-height: 500px;
    margin: 45px auto 0 !important;
}


/* đường timeline ngang */

.bi-process-track::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 3%;
    right: 3%;
    height: 2px;

    background: linear-gradient(
        90deg,
        rgba(0,127,192,.30) 0%,
        #007fc0 25%,
        #9ecb3b 75%,
        rgba(158,203,59,.35) 100%
    );

    transform: translateY(-50%);
    z-index: 0;
}


/* mũi tên cuối timeline */

.bi-process-track::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2.2%;

    width: 0;
    height: 0;

    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #9ecb3b;

    transform: translateY(-50%);
    z-index: 1;
}


/* =========================================================
   STEP
========================================================= */

.bi-process-step {
    position: relative;
    height: 500px;
    padding: 0 8px !important;
    z-index: 2;
}


/* CARD */

.bi-process-step > .col-inner {
    position: absolute;
    left: 8px;
    right: 8px;

    height: 190px;
    padding: 24px 20px !important;

    background: rgba(255,255,255,.97);
    border: 1px solid rgba(0,127,192,.20);
    border-radius: 16px;

    box-shadow:
        0 12px 28px rgba(23,37,54,.07);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


/* bước lẻ ở trên */

.bi-process-step:nth-child(odd) > .col-inner {
    top: 0;
}


/* bước chẵn ở dưới */

.bi-process-step:nth-child(even) > .col-inner {
    bottom: 0;
}


/* =========================================================
   NODE TRÊN TIMELINE
========================================================= */

.bi-process-step::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 18px;
    height: 18px;

    background: #fff;
    border: 4px solid #007fc0;
    border-radius: 50%;

    box-shadow:
        0 0 0 5px rgba(0,127,192,.10);

    transform: translate(-50%,-50%);
    z-index: 5;
}


/* node xanh lá xen kẽ */

.bi-process-step:nth-child(even)::before {
    border-color: #9ecb3b;

    box-shadow:
        0 0 0 5px rgba(158,203,59,.13);
}


/* =========================================================
   ĐƯỜNG DỌC NỐI CARD → TIMELINE
========================================================= */

.bi-process-step::after {
    content: "";

    position: absolute;
    left: 50%;

    width: 0;
    height: 60px;

    border-left: 2px dashed rgba(0,127,192,.45);

    transform: translateX(-50%);
    z-index: 1;
}


/* card phía trên */

.bi-process-step:nth-child(odd)::after {
    top: 190px;
}


/* card phía dưới */

.bi-process-step:nth-child(even)::after {
    top: 250px;

    border-color: rgba(158,203,59,.55);
}


/* =========================================================
   NUMBER BADGE
========================================================= */

.bi-process-step > .col-inner::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 48px;
    height: 30px;

    margin-bottom: 12px;
    padding: 0 12px;

    border-radius: 999px;

    background: linear-gradient(
        90deg,
        #007fc0,
        #19a6c2
    );

    color: #fff;

    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}


/* số bước */

.bi-process-step:nth-child(1) > .col-inner::before {
    content: "01";
}

.bi-process-step:nth-child(2) > .col-inner::before {
    content: "02";
}

.bi-process-step:nth-child(3) > .col-inner::before {
    content: "03";
}

.bi-process-step:nth-child(4) > .col-inner::before {
    content: "04";
}

.bi-process-step:nth-child(5) > .col-inner::before {
    content: "05";
}

.bi-process-step:nth-child(6) > .col-inner::before {
    content: "06";
}


/* xen kẽ badge xanh lá */

.bi-process-step:nth-child(even) > .col-inner::before {
    background: linear-gradient(
        90deg,
        #75b92d,
        #9ecb3b
    );
}


/* =========================================================
   TEXT
========================================================= */

.bi-process-step h3 {
    margin: 0 0 10px !important;

    color: #172536 !important;

    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}


.bi-process-step p {
    margin: 0 !important;

    color: #536273 !important;

    font-size: 13px !important;
    line-height: 1.65 !important;
}


/* =========================================================
   HOVER
========================================================= */

.bi-process-step:hover > .col-inner {
    transform: translateY(-5px);

    border-color: rgba(0,127,192,.38);

    box-shadow:
        0 18px 38px rgba(23,37,54,.11);
}


/* bước phía dưới hover lên một chút */

.bi-process-step:nth-child(even):hover > .col-inner {
    transform: translateY(-5px);
}


/* =========================================================
   TABLET / MOBILE - CHUYỂN THÀNH TIMELINE DỌC
========================================================= */

@media (max-width: 849px) {

    .bi-process-track {
        min-height: 0;
        margin-top: 30px !important;
        padding-left: 55px;
    }


    /* đường ngang → đường dọc */

    .bi-process-track::before {
        top: 0;
        bottom: 0;
        left: 25px;
        right: auto;

        width: 2px;
        height: auto;

        background: linear-gradient(
            180deg,
            #007fc0,
            #9ecb3b
        );

        transform: none;
    }


    .bi-process-track::after {
        display: none;
    }


    .bi-process-step {
        width: 100% !important;
        max-width: 100% !important;

        height: auto;

        margin-bottom: 22px;
        padding: 0 !important;
    }


    .bi-process-step > .col-inner,
    .bi-process-step:nth-child(odd) > .col-inner,
    .bi-process-step:nth-child(even) > .col-inner {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;

        height: auto;
        min-height: 155px;

        padding: 20px !important;
    }


    /* node */

    .bi-process-step::before {
        top: 32px;
        left: -30px;

        transform: translate(-50%,0);
    }


    /* bỏ connector riêng */

    .bi-process-step::after {
        display: none;
    }
}

/* =========================================================
   FIX SECTION VÌ SAO CHỌN BRANDINFO
   Giữ nguyên class cũ:
   bi-why-style
   bi-why-left
   bi-why-right
   bi-why-list
   bi-why-item-col
   bi-why-item
========================================================= */


/* ===== CỘT PHẢI ===== */

.bi-why-right {
    position: relative;
    z-index: 2;
}

.bi-why-right > .col-inner {
    width: 100% !important;
    padding-left: 20px !important;
}


/* =========================================================
   GRID 6 CARD
========================================================= */

/*
 * Quan trọng:
 * Flatsome Row mặc định display:flex
 * và Column 4/12 mặc định width:33.333%
 *
 * Ta ép Row thành Grid và reset width của toàn bộ Column con.
 */

.bi-why-list.row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    width: 100% !important;
    max-width: 100% !important;

    gap: 22px !important;

    margin: 0 !important;
    padding: 0 !important;

    align-items: stretch !important;
}


/* RESET COLUMN CỦA FLATSOME */

.bi-why-list.row > .col {
    width: 100% !important;
    max-width: 100% !important;

    flex: none !important;
    flex-basis: auto !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
}


/* Nếu đã gắn class bi-why-item-col thì giữ hỗ trợ */

.bi-why-item-col {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
}


/* col-inner kéo full card */

.bi-why-list.row > .col > .col-inner,
.bi-why-item-col > .col-inner {
    width: 100% !important;
    height: 100% !important;

    display: flex !important;
}


/* =========================================================
   CARD
========================================================= */

.bi-why-item {
    width: 100% !important;
    height: 100% !important;
    min-height: 260px;

    display: flex !important;
    flex-direction: column;

    padding: 26px 22px !important;

    background: #f8fafc !important;

    border: 1px solid #e7eef4 !important;
    border-radius: 22px !important;

    box-shadow: 0 10px 28px rgba(23, 37, 54, .05);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}


/* Icon Box Flatsome */

.bi-why-item.icon-box {
    height: 100% !important;
}


/* =========================================================
   ICON
========================================================= */

.bi-why-item .icon-box-img {
    width: 58px !important;
    min-width: 58px !important;
    height: 58px;

    margin: 0 0 18px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    border: 1px solid #e5eef5;
    border-radius: 17px;

    box-shadow: 0 7px 20px rgba(0, 127, 192, .07);
}

.bi-why-item .icon-box-img img {
    width: 42px !important;
    height: 42px !important;

    object-fit: contain;
}


/* =========================================================
   TEXT
========================================================= */

.bi-why-item .icon-box-text {
    width: 100% !important;

    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 0 !important;
}


/* Tiêu đề */

.bi-why-item .icon-box-text h3 {
    min-height: 50px;

    margin: 0 0 10px !important;

    color: #007fc0 !important;

    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;

    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;

    text-transform: none !important;
}


/* Mô tả */

.bi-why-item .icon-box-text p {
    width: 100% !important;

    margin: 0 !important;

    color: #536273 !important;

    font-size: 15px !important;
    line-height: 1.7 !important;

    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
}


/* =========================================================
   HOVER
========================================================= */

.bi-why-item:hover {
    transform: translateY(-5px);

    border-color: rgba(0, 127, 192, .18) !important;

    box-shadow:
        0 16px 36px rgba(23, 37, 54, .09);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 849px) {

    .bi-why-right > .col-inner {
        padding-left: 0 !important;
    }

    .bi-why-list.row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 16px !important;
    }

    .bi-why-item {
        min-height: 240px;
        padding: 22px 20px !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 549px) {

    .bi-why-list.row {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .bi-why-item {
        min-height: auto;
    }

    .bi-why-item .icon-box-text h3 {
        min-height: auto;
    }

}