.features-tabs {
    position: relative;
    margin: 0 auto;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
    border-radius: 24px;
}
.features-tabs .tabs {
    display: flex;
    cursor: pointer;
    justify-content: space-between;
    width: 100%;
    position: relative;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: none;
    background-color: #cfccc5;
    z-index: 1;
}
.features-tabs .tab {
    padding: 22px 10px 22px 10px;
    position: relative;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    transition: color 0.3s ease;
    opacity: 0.6;
    background-color: #f8f5ec;
    flex: 1;
    text-align: center;
    color: #7c7b76;
    border-right: 1px solid #cfccc5;
}
.features-tabs .tab:last-child {
    border-right: none;
}
.features-tabs .tab::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-color: #cfccc5;
}
.features-tabs .tab.active {
    opacity: 1;
    background-color: #fff;
    color: #000;
}
.features-tabs .tab.active::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-color: #f8f5ec;
    z-index: 1;
}
.features-tabs .tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 8px;
    width: 0;
    background-color: #fcb849;
    z-index: 2;
    animation: progressBar 6s linear forwards;
}

.features-tabs .tab:hover {
    opacity: 1;
}

@keyframes progressBar {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.features-tabs .tab.active:hover::after {
    animation-play-state: paused;
}

.features-tabs .tab.active.paused::after {
    animation-play-state: paused;
}

@keyframes slideOut {
    0% {
        transform: scaleX(1);
        transform-origin: right;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

.features-tabs .tab:hover::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
    animation: slideOut 6.3s forwards ease-in-out;
    animation-play-state: running;
}

.features-tabs .tab:hover:hover::after {
    animation-play-state: paused;
}
.features-tabs .tab-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 80px;
    align-items: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    background-color: #fff;
    border-radius: 0 0 24px 24px;
    padding: 80px 48px;
    color: #000;
}
.features-tabs .tab-slide .tab-content {
    padding-bottom: 0;
}
.features-tabs .tab-slide .tab-content strong,
.features-tabs .tab-slide .tab-content b {
    color: #3e509c;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
}
.features-tabs .tab-slide .tab-content ul,
.features-tabs .tab-slide .tab-content ol {
    margin: 0;
    padding-left: 20px;
    font-size: 18px;
}
.features-tabs .tab-slide .tab-content ul li,
.features-tabs .tab-slide .tab-content ol li {
    margin-bottom: 0;
    padding-bottom: 0;
}
.features-tabs .tab-slide .eyebrow {
    color: #3e509c;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
}
.features-tabs .tab-slide h3 {
    font-size: 40px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    margin-bottom: 24px;
}
.features-tabs .tab-slide .subtitle {
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    margin-top: -8px;
    margin-bottom: 28px;
    opacity: 0.7;
    color: #000;
}

.features-tabs .tab-slides .btn {
    border-radius: 4px;
    padding: 16px 24px;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.features-tabs .tab-slides .btn svg {
    flex-shrink: 0;
}
.features-tabs .tab-image img {
    max-height: 600px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

@media screen and (max-width: 992px) {
    .features-tabs .tabs {
        display: none;
    }
    .features-tabs {
        overflow: visible;
        box-shadow: none;
        border-radius: 0;
    }
    .features-tabs .tab-slides {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .features-tabs .tab-slide {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 0 0 40px 0;
        border-radius: 0;
        background-color: transparent;
    }
    .features-tabs .tab-image {
        order: -1;
    }
    .features-tabs .tab-image img {
        max-height: none;
        width: 100%;
        max-width: 500px;
    }
    .features-tabs .tab-content {
        margin-bottom: 0;
    }
    .features-tabs .tab-slide h3 {
        font-size: 30px;
        line-height: 132%;
        margin-bottom: 24px;
    }
    .features-tabs .tab-slides-nav {
        display: none;
    }
}
