/* ===== WAREHOUSE TABS – FINAL, SCOPED, NO BOOTSTRAP REQUIRED ===== */
/* Author: VAR eCOM
   Scope : .wrm (shortcode wrapper)
   Goal  : Fix desktop/mobile toggles, tabs visibility, and mobile layout like Sapo
*/

/* 0) VISIBILITY TOGGLES (replace Bootstrap d-*) */
.wrm .block-content.d-md-block {
    display: none;
}

.wrm .block-content.d-md-none {
    display: block;
}

@media (min-width:768px) {
    .wrm .block-content.d-md-block {
        display: block;
    }

    .wrm .block-content.d-md-none {
        display: none;
    }
}

/* 1) TAB PANE TOGGLE (reliable, high priority) */
.wrm .software-uses .tab-content .tab-pane {
    display: none;
}

.wrm .software-uses .tab-content .tab-pane.active {
    display: block;
}

/* 2) CTA ICON USING '›' (keep any svg harmless) */
.wrm .btn-registration .icon {
    color: #000;
    font-size: 22px;
    line-height: 1;
}

.wrm .btn-registration .icon svg {
    width: auto;
    height: auto;
}

/* 3) BASE STYLE (shared desktop/mobile) */
.wrm .software-uses {
    position: relative;
    overflow: hidden;
    margin-bottom: 61px;
    background: linear-gradient(180deg, #fff 15.23%, #e1efff 100%);
    padding-bottom: 104px;
}

@media (min-width:1500px) {
    .wrm .software-uses .container {
        max-width: 1400px;
    }
}

.wrm .block-title p {
    font-size: 22px;
    font-weight: 300;
    line-height: 32px;
    color: #535353;
    margin-bottom: 16px;
    text-align: center;
}

.wrm .software-uses h2 {
    font-size: 46px;
    font-weight: 700;
    line-height: 54px;
    text-align: center;
    margin-bottom: 54px;
    color: #000;
}

/* Tabs (desktop header) */
.wrm .software-uses .block-content .tab-title {
    list-style: none;
    padding: 0;
    margin: 0 20px 8px 0;
    display: flex;
    justify-content: end;
    gap:20px;
}

.wrm .software-uses .block-content .tab-title li {
    padding: 1px;
    height: 50px;
    border-radius: 50px;
    background: #e7e7e7;
    color: #565656;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    transition: all .2s ease-out;
}

.wrm .software-uses .block-content .tab-title li span {
    display: block;
    height: 48px;
    width: 100%;
    line-height: 48px;
    background: #fff;
    padding: 0 17.5px;
    border-radius: 50px;
    font-size: 16px;
}

.wrm .software-uses .block-content .tab-title li span img {
    margin-right: 8px;
}

.wrm .software-uses .block-content .tab-title li.active,
.wrm .software-uses .block-content .tab-title li:hover {
    background: radial-gradient(128.75% 123.52% at 113.54% -10.58%, #97ffcd 0%, #a7d5ff 100%);
    color: #000;
}

.wrm .software-uses .block-content .tab-title li.active span,
.wrm .software-uses .block-content .tab-title li:hover span {
    background: #f0f4f9;
}

/* Desktop tab content shell */
.wrm .software-uses .block-content .tab-content .tab-pane>.row {
    background: #0f1437;
    border-radius: 30px;
    padding-top: 50px;
}

.wrm .software-uses .block-content .tab-content .tab-pane h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 40px;
    color: #fff;
    margin: 0 0 20px;
    margin-left: -10px;
}

/* Desktop column widths */
@media (min-width:1199px) {
    .wrm .software-uses .block-content .tab-content .tab-pane .content {
        flex: 0 0 61%;
        max-width: 61%;
    }

    .wrm .software-uses .block-content .tab-content .tab-pane .image {
        flex: 0 0 39%;
        max-width: 39%;
    }
}

.wrm .software-uses .block-content .tab-content .tab-pane .content .btn-registration {
    margin-left: -18px;
    margin-top: -50px;
}

.wrm .software-uses .block-content .tab-content .tab-pane .image img {
    margin-left: -85px;
    margin-top: -133px;
}

/* Feature bullets */
.wrm .software-uses .block-content .tab-content .tab-pane .function {
    margin: 0 35px 54px -26px;
}

.wrm .software-uses .block-content .tab-content .tab-pane .function .col-fix {
    padding: 0 8px;
}

.wrm .software-uses .block-content .tab-content .tab-pane .function .border {
    padding: 6px 24px 20px;
    min-height: 210px;
    background: linear-gradient(138.16deg, rgba(255, 255, 255, 0) 45.25%, #fff 89.92%);
    border-radius: 15px;
    position: relative;
}

.wrm .software-uses .block-content .tab-content .tab-pane .function .border:before {
    content: "";
    width: 98%;
    height: 99%;
    position: absolute;
    right: 1px;
    bottom: 1px;
    border-radius: 15px;
    background: #0f1437;
}

.wrm .software-uses .block-content .tab-content .tab-pane .function svg {
    width: 20px;
    height: 20px;
    margin-bottom: 20px;
    position: relative;
}

.wrm .software-uses .block-content .tab-content .tab-pane .function p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #fff;
    margin: 0;
    position: relative;
    text-align: justify;
}

/* CTA button base */
.wrm .btn-registration {
    color: #000;
    background: linear-gradient(272.65deg, #0cceb0 20.05%, #2ad38b 84.62%);
    border-radius: 50px;
    width: 364px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 23px;
    transition: opacity .5s ease;
    font-weight: 600;
    z-index: 1;
    overflow: hidden;
    padding-left: 0;
    position: relative;
    justify-content: center;
}

.wrm .btn-registration .icon {
    width: 54px;
    height: 54px;
    border-radius: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease-in-out;
    position: absolute;
    right: 10px;
    top: 10px;
    background: #fff;
}

/* 4) MOBILE LAYOUT – like Sapo */
@media (max-width:767.98px) {
    .wrm .software-uses {
        margin-bottom: 50px;
        padding-bottom: 100px;
    }

    .wrm .software-uses h2 {
        font-size: 27px!important;
        line-height: 45px;
        margin: 20px 0 24px;
    }

    .wrm .software-uses .block-title {
        margin-bottom: 0;
    }

    /* Slider/Tab title zone */
    .wrm .software-uses .block-content .tab-title {
        justify-content: center;
        margin: 0 0 12px;
    }

    /* Hero + Content card spacing */
    .wrm .software-uses .block-content .tab-content .tab-pane>c {
        display: block;
    }

    .wrm .software-uses .block-content .tab-content .tab-pane>.row {
        padding-top: 20px;
        padding-bottom: 20px;
        margin-top: 12px;
    }

    .wrm .software-uses .block-content .tab-content .tab-pane .image {
        padding-bottom: 16px;
        margin-top: 0;
    }

    .wrm .software-uses .block-content .tab-content .tab-pane .content {
        padding: 0 16px 24px;
    }

    /* CTA size */
    .wrm .btn-registration {
        width: 280px;
        height: 60px;
        font-size: 20px;
        margin-top: 12px;
    }
}
/* ===== MOBILE – full content per slide; hero outside; title pill with bordered nav ===== */
@media (max-width: 767.98px) {

    /* Ẩn desktop block tuyệt đối trên mobile */
    .wrm .software-uses .block-content.d-md-block {
        display: none !important;
    }

    /* Container + slider full-width (an toàn 16px mỗi bên), ẩn tràn để không lộ slide kế tiếp */
    .wrm .software-uses .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .wrm .industrySwiper {
        position: relative;
        overflow: hidden;
        padding: 0 0 42px;
    }

    .wrm .industrySwiper .swiper-slide {
        padding: 0;
    }

    /* Title pill (full-bleed nhưng chừa safe-area 16px) */
    .wrm .industrySwiper .title {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 44px;
        line-height: 44px;
        /* chừa 2 bên cho mũi tên + safe-area */
        padding: 0 52px;
        margin: 6px auto 12px;
        max-width: none;
        width: calc(100% - 32px);
        color: #0f1437;
        font-weight: 700;
        background: #fff;
        border: 1px solid #9ff0c9;
        border-radius: 999px;
    }

    .wrm .industrySwiper .title img {
        width: 20px;
        height: 20px;
    }

    /* HERO: nằm ngoài card tối (vùng trắng), full-bleed an toàn */
    .wrm .industrySwiper .content>img {
        display: block;
        width: calc(100% - 32px);
        /* 16px safe-area mỗi bên */
        height: auto;
        background: #fff;
        border-radius: 16px;
        margin: 0 auto 14px;
    }

    /* CARD nội dung tối — chỉ bo TRÒN ĐÁY để không lộ “góc” ở trên */
    .wrm .industrySwiper .content {
        background: #0f1437;
        border-radius: 0 0 22px 22px;
        /* <-- fix quan trọng */
        padding: 16px 14px 18px;
    }

    .wrm .industrySwiper .content h3 {
        color: #fff;
        font-size: 20px;
        line-height: 28px;
        margin: 0 0 12px;
    }

    /* BULLETS full chiều rộng trong card */
    .wrm .industrySwiper .function {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 0 0 14px;
    }

    .wrm .industrySwiper .function .item {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 12px;
        border-radius: 12px;
        background: linear-gradient(138.16deg, rgba(255, 255, 255, 0) 45.25%, #fff 89.92%);
    }

    .wrm .industrySwiper .function .item::before {
        content: "";
        position: absolute;
        inset: 1px;
        border-radius: 12px;
        background: #0f1437;
    }

    .wrm .industrySwiper .function .item svg {
        position: relative;
        flex: 0 0 20px;
        margin-top: 2px;
    }

    .wrm .industrySwiper .function .item p {
        position: relative;
        margin: 0;
        color: #fff;
        font-size: 14px;
        line-height: 22px;
    }

    /* CTA trong card */
    .wrm .industrySwiper .block-btn {
        display: flex;
        justify-content: center;
    }

    .wrm .industrySwiper .btn-registration {
        width: 260px;
        height: 56px;
        font-size: 18px;
    }

    /* ==== NAVIGATION ARROWS – nằm trên hàng title, viền khớp với pill, ẩn icon bạc của Swiper ==== */
    .wrm .industrySwiper .swiper-button-prev,
    .wrm .industrySwiper .swiper-button-next {
        position: absolute;
        z-index: 5;
        top: 50px;
        transform: translateY(-50%);
        /* chỉnh cao/thấp 46–54px tuỳ mắt */
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #9ff0c9;
        box-shadow: none;
    }

    .wrm .industrySwiper .swiper-button-prev {
        left: 34px;
    }

    .wrm .industrySwiper .swiper-button-next {
        right: 34px;
    }

    /* Ẩn icon mũi tên mặc định của Swiper (màu bạc) */
    .wrm .industrySwiper .swiper-button-prev::after,
    .wrm .industrySwiper .swiper-button-next::after {
        display: none;
    }

    /* Vẽ chevron mới bằng CSS (màu đen) */
    .wrm .industrySwiper .swiper-button-prev::before,
    .wrm .industrySwiper .swiper-button-next::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        border-top: 2px solid #000;
        border-right: 2px solid #000;
    }

    .wrm .industrySwiper .swiper-button-prev::before {
        transform: rotate(-135deg);
    }

    .wrm .industrySwiper .swiper-button-next::before {
        transform: rotate(45deg);
    }

    /* Nếu theme đang thêm SVG vào nút, ẩn luôn */
    .swiper-button-next svg,
    .swiper-button-prev svg {
        display: none;
    }
    .wrm .btn-registration .icon{
        width: 34px;
        height: 34px;
        border-radius: 34px;
    }
}