/* parent tabs */
.custom-nested-tabs .parent-tab-nav {
    display: flex;
    gap: 2px;
    margin-bottom: 32px;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.custom-nested-tabs .parent-tab-nav li {
    padding: 4px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 400;
    border: 1px solid;
    transition: all .2s ease;
    font-size: 16px;
    letter-spacing: -0.2px;
}

.custom-nested-tabs .parent-tab-heading {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.6px;
    text-align: center;
    margin-bottom: 24px;
}

/* parent content wrapper */
.custom-nested-tabs .parent-tab-content {
    /* display: none; */
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.7s ease;
}

.custom-nested-tabs .parent-tab-content.active {
    /* display: block; */
    opacity: 1;
    visibility: visible;
    height: auto;
}

/* inner tabs */
.custom-nested-tabs .child-tab-nav {
    display: flex;
    gap: 8px;
    padding: 32px;
    list-style: none;
    flex-direction: column;
    border: 1px solid rgba(229, 231, 235, 1);
    border-radius: 12px;
    width: 628px;
}

.custom-nested-tabs .child-tab-wrapper {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.custom-nested-tabs .child-tab-wrapper h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.6px;
    font-family: 'Inter';
}

/* child content */
.custom-nested-tabs .child-content {
    /* display: none; */
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.7S ease;
}

.custom-nested-tabs .child-content.active {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-top: 24px;
    opacity: 1;
    visibility: visible;
    height: auto;
}

.custom-nested-tabs .child-content img {
    width: 100%;
    border-radius: 12px 12px 0px 0px;
}

.custom-nested-tabs .child-tab-nav p {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    font-weight: 400;
}

.custom-nested-tabs .child-tab-nav {
    /* background: rgba(249, 250, 251, 1); */
    cursor: pointer;
}

.custom-nested-tabs .child-tab-nav.active {
    /* background: #fff; */
}

/*  */

.child-swiper {
    display: none !important;
}

.parent-tab-select {
    display: none;
}

@media screen and (max-width: 1024px) {
    .custom-nested-tabs {
        width: 100%;
    }

    .custom-nested-tabs .parent-tab-nav {
        margin-bottom: 28px;
    }

    .custom-nested-tabs .child-tab-wrapper {
        gap: 15px;
    }

    /* .custom-nested-tabs .child-content {
        margin-top: 15px;
    } */

    .custom-nested-tabs .child-tab-nav {
        padding: 20px;
    }
}

@media screen and (max-width: 767px) {
    .custom-nested-tabs .parent-tab-content.active {
        margin-right: -20px;
    }
    .parent-tab-heading{
        padding-right: 20px;
    }
    .child-swiper {
        display: block !important;
        padding-right: 20px !important;
    }

    .parent-tab-nav {
        display: none !important;
    }

    .parent-tab-select {
        display: block;
        background: rgba(17, 24, 39, 1);
        border-color: rgba(17, 24, 39, 1) !important;
        border-radius: 50px;
        color: #fff;
        padding: 3px 16px;
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 16px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("../img/chevron-down.svg");
        background-position: calc(100% - 10px) center, calc(100% - 12px) center;
        background-size: 22px;
        background-repeat: no-repeat;
    }

    .child-tab-wrapper {
        display: none !important;
    }

    .child-content.child-content.active {
        display: none !important;
    }

    .child-tab-inner-slide {
        background-color: #fff;
        border-radius: 12px;
        border: 1px solid rgba(229, 231, 235, 1);
        display: flex !important;
        flex-direction: column;
        height: auto !important;
        justify-content: space-between;
    }

    .child-tab-inner-slide .inner_slide_content {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .child-tab-inner-slide img {
        padding-left: 16px;
        border-radius: 4px 0px 12px 0px !important;
        margin-bottom: 0px;
    }

    .custom-nested-tabs .parent-tab-heading {
        text-align: left;
    }
}