.custom-block.case-studies-tabs{

    .tabs-wrap {
        display: flex;
        flex-direction: column;
        gap: 50px;
        align-items: center;
        position: relative;

        .tab-buttons {
            display: inline-flex;
            padding: 4px;
            border-radius: 28px;
            background: rgba(0, 0, 0, 0.20);
            align-items: center;

            .tab-btn {
                transition: 0.3s;
                padding: 15px 40px;
                cursor: pointer;
                color: #000;
                text-align: center;
                font-size: 20px;
                font-style: normal;
                font-weight: 500;
                line-height: 1;
                letter-spacing: -0.8px;
                border-radius: 24px;
                position: relative;

                &:before{
                    content: '';
                    position: absolute;
                    left: 0;
                    width: 1px;
                    height: 24px;
                    background: rgba(0, 0, 0, 0.12);
                }

                &:first-child::before {
                    display: none;
                }

                &:hover {
                    background-color: rgba(0, 0, 0, 0.10);
                }

                &.active {
                    background-color: #000;
                    color: #fff;
                }

                &.active::before, &:hover::before {
                    display: none;
                }

                &.active + .tab-btn::before, &:hover + .tab-btn::before{
                    display: none;
                }
            }
        }

        .tab-content {
            position: relative;

            .tab-panel {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.5s ease;

                &.active {
                    opacity: 1;
                    visibility: visible;
                    position: relative;
                }
            }
        }

        .tab-panel{
            display: flex;
            flex-direction: column;
            gap: 10px;

            .main-img{
                width: 100%;
                max-width: 100%;
                margin-bottom: 20px;

                img{
                    width: 100%;
                    height: auto;
                }
            }

            .details{
                display: flex;
                flex-direction: column;
                gap: 30px;
                align-items: center;
            }

            .content{
                text-align: center;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 30px;

                img{
                    max-width: 130px;
                }

                h3{
                    margin: 0;
                    font-size: 50px;
                    font-weight: 700;
                    line-height: 1;
                }

                .description{
                    max-width: 700px;
                    font-size: 20px;
                    font-weight: 500;
                    line-height: 1.4;
                }
            }

            .cta-button{
                display: block;
                color: #FFF;
                font-size: 20px;
                font-weight: 700;
                line-height: 1;
                padding: 16px 32px;
                background: #2F56FF;
                border-radius: 5px;

                &:hover{
                    text-decoration: none;
                    opacity: 0.8;
                }
            }
        }

        .tab-arrows {

            button {
                all: unset;
                cursor: pointer;
                width: 20px;
                height: 20px;
                background: none;
                border: none;
                cursor: pointer;
                border-left: 1px solid black;
                border-bottom: 1px solid black;
                position: absolute;
                top: 40%;
                opacity: 0.5;

                &.tab-prev{
                    transform: rotate(45deg);
                    left: -70px;
                }

                &.tab-next{
                    transform: rotate(225deg);
                    right: -70px;
                }

                &:hover {
                    opacity: 0.7;
                }
            }
        }
    }

    &.dark{

        .tabs-wrap {
            .tab-buttons {
                background: rgba(255, 255, 255, 0.20);
                .tab-btn {
                    color: #fff;
                    &:before{
                        background: rgba(255, 255, 255, 0.12);
                    }
                    &:hover {
                        background-color: rgba(255, 255, 255, 0.10);
                    }
                    &.active {
                        background-color: #fff;
                        color: #000;
                    }
                }
            }
            .tab-arrows {
                button {
                    border-left: 1px solid #fff;
                    border-bottom: 1px solid #fff;
                }
            }
            .tab-panel{
                .content{
                    color: #fff;
                }
            }
        }
    }

    @media screen and (max-width: 1500px) {
        padding: 0 70px;

        .tabs-wrap {
            .tab-buttons {
                .tab-btn {
                    font-size: 18px;
                    padding: 12px 30px;
                }
            }
            .tab-arrows {
                button {
                    &.tab-prev{
                        left: -50px;
                    }
                    &.tab-next{
                        right: -50px;
                    }
                }
            }
        }
    }

    @media screen and (max-width: 991px) {
        .tabs-wrap {
            .tab-buttons {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                border-radius: 10px;
                padding: 10px;
                gap: 10px;

                .tab-btn {
                    font-size: 16px;
                    padding: 8px 15px;
                    border-radius: 8px;

                    &:before{
                        display: none;
                    }
                }
            }

            .tab-panel{
                .content{
                    h3{
                        font-size: 40px;
                    }
                    .description{
                        font-size: 18px;
                    }
                }
                .cta-button{
                    font-size: 18px;
                    padding: 12px 24px;
                }
            }
        }
    }

    @media screen and (max-width: 768px) {
        .tabs-wrap {
            .tab-buttons {
                grid-template-columns: repeat(2, 1fr);
            }
        }
    }

    @media screen and (max-width: 480px) {
        padding: 0 30px;

        .tabs-wrap {
            .tab-buttons {
                grid-template-columns: repeat(1, 1fr);
            }
            .tab-panel{
                .content{
                    img{
                        max-width: 100px;
                    }
                    h3{
                        font-size: 30px;
                    }
                }
            }
            .tab-arrows{
                button{
                    top: 25%;
                    &.tab-prev{
                        left: -20px;
                    }
                    &.tab-next{
                        right: -20px;
                    }
                }
            }
        }
    }

}