.feature-widget-layout {
    font-family: sans-serif;
}

.category-tabs-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.category-tabs-scroll {
    overflow-x: auto;
    flex: 1;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.category-tabs {
    display: flex;
    gap: 10px;
    white-space: nowrap;
    min-width: max-content;
    /* This line is crucial */
}

.category-tab {
    padding: 12px 30px;
    background: #eee7ff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    flex: 0 0 auto;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7rem;
}

.category-tab.active {
    background: #5a34c0;
    color: #fff;
}

.category-arrow {
    background: #eee7ff;
    border-radius: 50%;
    border: 1px solid;
    padding: 7px;
    cursor: pointer;
    user-select: none;
    z-index: 1;
    width: 30px;
    height: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-tabs-scroll.dragging {
    cursor: grabbing;
    user-select: none;
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

.category-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 70px;
}

.sub-category-buttons {
    width: 25%;
}

.sub-cat-list {
    position: sticky;
    top: 95px;
    transition: all ease .5s;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-category-tab {
    padding: 10px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    border: 1px solid #bbbbbb;
    text-align: center;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7rem;
}

.sub-category-tab:hover {
    background-color: transparent;
    color: #5a34c0 !important;
    border: 1px solid #5a34c0;
}

.sub-category-tab.active {
    background-color: transparent;
    color: #5a34c0 !important;
    border: 1px solid #5a34c0;
}

.sub-category-contents {
    flex-grow: 1;
    width: 70%;
}

.sub-category-content {
    display: none;
}

.sub-category-content.active {
    display: block;
}

.category-content,
.sub-category-content {
    display: none;
}

.category-content.active,
.sub-category-content.active {
    display: block;
}

p.sub-description {
    text-align: left;
    font-family: 'Poppins';
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7rem;
}

/* Animation classes */
/* Frame container for image */
.sub-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-width: 20px 15px 20px 15px;
    border-style: solid;
    border-radius: 30px 30px 30px 30px;
    border-color: #000;
}

/* The image itself slides in */
.sub-image {
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.8s ease;
}

/* Description fade in */
.sub-description-wrapper {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Active content: animate image and description */
.sub-category-content.active .sub-image {
    transform: translateX(0);
    opacity: 1;
}

.sub-category-content.active .sub-description-wrapper {
    opacity: 1;
    margin-top: 20px;
}

button.accordion-category-header,
.accordion-sub-header {
    color: #000 !important;
}

/* Mobile devices accordion */
@media (max-width: 768px) {

    .category-tabs-wrapper,
    .category-content {
        display: none;
    }

    .mobile-accordion {
        display: block;
    }

    .accordion-category-header {
        background: #fff;
    }

    .accordion-category {
        border-bottom: 1px solid #a3a3a3;
    }

    .accordion-sub-header {
        padding: 12px !important;
    }

    .accordion-category-header,
    .accordion-sub-header {
        width: 100%;
        border: none;
        padding: 15px 12px;
        text-align: left;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #000 !important;
        /* Force your color */
        -webkit-text-fill-color: #000 !important;
        /* iOS Safari text fill */
        -webkit-appearance: none;
        /* Remove iOS default button styling */
        appearance: none;
    }


    .accordion-category-body,
    .accordion-sub-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .accordion-arrow {
        transition: transform 0.3s ease;
        width: 30px;
    }

    [aria-expanded="true"] .accordion-arrow {
        transform: rotate(180deg);
    }

    .sub-image-wrapper {
        margin-top: 20px;
        border-width: 12px 10px 12px 10px;
    }

    .sub-description-wrapper {
        opacity: 1;
        margin-top: 20px;
    }

    .sub-image {
        transform: translateX(0px);
        opacity: 1;
    }

    .accordion-category-header,
    .accordion-sub-header,
    p.sub-description {
        font-size: 0.9rem !important;
        line-height: 1.5rem !important;
    }
}

@media (max-width: 1024px) {

    .category-tab,
    .sub-category-tab,
    p.sub-description {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

@media (min-width: 769px) {
    .mobile-accordion {
        display: none;
    }
}