/* Banner */
.services-banner .section-bg.fill::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(30deg, var(--color-primary) 15%, var(--color-linear-1) 25%, transparent)
}

/* Solutions */
.services-solution-box {
    display: flex;
    flex-wrap: wrap;
}

.services-solution-box>li {
    flex: 40%
}

/* Lợi ích */
.services-benefit-item-left,
.services-benefit-item-right {
    justify-content: center;
    align-items: center;
}

.services-benefit-item-left,
.services-benefit-item-right {
    padding: 1rem;
    background-color: var(--color-background-secondary-icon);
    border-radius: 1rem;
}

/* Quy trình */
.services-process-item .col-inner {
    display: flex;
    flex-direction: column;
    height: 100%;

    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}

.services-process-title-num {
    /* height: 100%; */
    margin-bottom: auto;
    margin-bottom: .25rem;
}

.services-process-title-num>h3 {
    font-size: 1rem !important;
    color: var(--color-primary);
    line-height: 2;
}

.services-process-item .col-inner ul {
    flex-grow: 1;
}

.services-process-title-num number {
    padding: .375rem;
    color: var(--color-light-text);
    background: var(--color-primary);
    border-radius: 999px;
    line-height: 1;
    margin-right: .25rem;
}

/* Giải pháp - Tabs */
.services-tabs-container .tabbed-content {
    gap: 1.5rem;
}

.services-tabs-container ul.nav {
    justify-content: center;
    gap: 1rem;
}

.services-tabs-container ul.nav>li>a {
    padding: 0.125rem 1rem;
    font-size: .75rem;
    text-transform: capitalize;
    border: 1px solid var(--color-primary);
}

.services-tabs-container ul.nav>li:hover>a {
    background-color: var(--color-primary);
    color: var(--color-light-text);
}

/* Need */
.services-need-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* About */
.block-section-about {
    padding: 0 !important;
}

.block-section-about .section-content {
    max-width: 100% !important;
}

.title-num,
.title-num_white {
    display: none;
}

/* TABS */
.custom-triggers-tab>.col>.col-inner {
    position: relative;
    padding: 0 5rem;
}

/* Styling cho container chứa 2 nút */
.custom-tab-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-75%);
    left: 0;
    width: 100%;
    justify-content: space-between;
    padding: 0 2rem;
}

/* Styling chung cho các thẻ <a> rỗng (biến chúng thành hình tròn) */
.custom-tab-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Hover state: Khi rê chuột vào, nút sẽ đổi màu nổi bật hơn */
.custom-tab-nav a:hover {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* TẠO ICON BẰNG SVG MASK ĐỂ HỖ TRỢ ĐỔI MÀU (đuôi dài) */
.custom-tab-nav a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    /* Icon to hơn */
    height: 24px;
    background-color: currentColor;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

/* Bỏ hiệu ứng ripple cũ vì nút đã to và có animation nhấp nhấp */
.custom-tab-nav a::after {
    display: none;
}

/* Animations translate X nhấp nhấp */
@keyframes bounceLeft {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-75%, -50%);
    }
}

@keyframes bounceRight {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-25%, -50%);
    }
}

.btn-prev-tab::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M30 12H2M10 5l-8 7 8 7"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M30 12H2M10 5l-8 7 8 7"/></svg>');
    animation: bounceLeft 1.5s infinite ease-in-out;
}

.btn-next-tab::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12h28M22 5l8 7-8 7"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12h28M22 5l8 7-8 7"/></svg>');
    animation: bounceRight 1.5s infinite ease-in-out;
}

/* ======== MEDIA ======== */
@media screen and (max-width: 431px) {
    .services-tabs-container ul.nav {
        gap: .5rem .25rem;
    }

    .services-tabs-container ul.nav>li>a {
        padding: 0.125rem .5rem;
    }

    .services-tabs-container .tabbed-content .tab-panels>.panel>.row {
        flex-direction: column-reverse;
    }

    .services-solution-box {
        flex-direction: column !important;
    }

    .services-benefit-item-left {
        text-align: left !important;
        flex-direction: row-reverse !important;
    }

    .services-benefit-item-left .icon-box-text {
        padding-right: 0 !important;
        padding-left: 1em !important;
    }

    .custom-triggers-tab>.col>.col-inner {
        padding: 0;
    }

    .custom-tab-nav {
        top: 65%;
        padding: 0;
    }

    .custom-tab-nav a {
        width: 3rem;
        height: 3rem;
    }

    .custom-tab-nav a::before {
        width: 1.5rem;
        height: 1.125rem;
    }
}