/* PC Styles */
.xmcarv_r5d2s {

    margin: var(--margin-tb) auto;
    position: relative;
    overflow: hidden;
    padding-left: var(--padding-lr);
    padding-right: var(--padding-lr);
    max-width: var(--custom-content-max-width);

    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;

}

.xmcarv_r5d2s .pc-structure_r5d2s {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

}

.xmcarv_r5d2s .left-part_r5d2s {
    width: 40%;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    padding-right: 4rem;
    padding-top: 3%;
    padding-bottom: 3%;
}

.xmcarv_r5d2s .top-structure_r5d2s {
    margin-bottom: 3.5rem;
}

.xmcarv_r5d2s .main-title_r5d2s {
    font-size: var(--title-size);
    color: var(--title-color, #333);
    font-weight: bold;
}

.xmcarv_r5d2s .bottom-structure_r5d2s {
    display: flex;

}

.xmcarv_r5d2s .item-list_r5d2s {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.xmcarv_r5d2s .item-list_r5d2s::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3rem;
    bottom: 3rem;
    width: 1px;
    background-color: #c9c9c9;
    z-index: 0;
}

.xmcarv_r5d2s .item_r5d2s {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 2rem;
    padding: var(--item_padding,3rem) 0;
    position: relative;
}

.xmcarv_r5d2s .item-line_r5d2s {
    width: 1px;
    background-color: transparent;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.xmcarv_r5d2s .item_r5d2s.active .item-line_r5d2s {
    background-color: var(--theme-color);
}

.xmcarv_r5d2s .item-body_r5d2s {
    flex: 1;
    box-sizing: border-box;
}

.xmcarv_r5d2s .item-title_r5d2s {
    font-size: var(--item-title-size);
    color: var(--item-title-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xmcarv_r5d2s .item-content_r5d2s {
    height: 0;
    overflow: hidden;
    transition: height 0.31s ease-out, opacity 0.35s ease, transform 0.6s ease;
    opacity: 0;
    
    will-change: height, opacity, transform;
}

.xmcarv_r5d2s .item-desc_r5d2s {
    font-size: var(--item-description-size);
    color: var(--item-desc-color);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xmcarv_r5d2s .item_r5d2s.active .item-title_r5d2s {
    color: #333;
}

.xmcarv_r5d2s .item_r5d2s.active .item-content_r5d2s {
    opacity: 1;
    transform: translateY(0);
}

.xmcarv_r5d2s .right-part_r5d2s {
    width: 60%;
    position: relative;
    border-radius: 0px;
    overflow: hidden;


}

.xmcarv_r5d2s .image-container_r5d2s {
    width: 100%;
    height: 60rem;
    position: relative;

}

.xmcarv_r5d2s .image-container_r5d2s img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.xmcarv_r5d2s .image-container_r5d2s img.active {
    opacity: 1;
    z-index: 2;
}

.xmcarv_r5d2s .mobile-structure_r5d2s {
    display: none;
}

/* Pad Styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .xmcarv_r5d2s .main-title_r5d2s {
        font-size: calc(var(--title-size) * 0.95);
    }

    .xmcarv_r5d2s .item-title_r5d2s {
        font-size: calc(var(--item-title-size) * 0.95);
    }

    .xmcarv_r5d2s .item-desc_r5d2s {
        font-size: calc(var(--item-description-size) * 0.95);
    }

    .xmcarv_r5d2s .pc-structure_r5d2s {
        height: 500px;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .xmcarv_r5d2s .pc-structure_r5d2s {
        display: none;
    }

    .xmcarv_r5d2s .mobile-structure_r5d2s {
        display: block;
    }

    .xmcarv_r5d2s .mo-top-structure_r5d2s {
        margin-bottom: 2rem;
        text-align: center;
    }

    .xmcarv_r5d2s .mo-main-title_r5d2s {
        font-size: calc(var(--title-size) * 0.9);
        color: var(--title-color, #333);
        font-weight: bold;
    }

    .xmcarv_r5d2s .mo-middle-structure_r5d2s {
        margin-bottom: 3rem;
    }

    .xmcarv_r5d2s .swiper-slide {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .xmcarv_r5d2s .mo-item-image_r5d2s {
        width: 100%;
        height: 25rem;

        overflow: hidden;
        margin-bottom: 1.5rem;
    }

    .xmcarv_r5d2s .mo-item-image_r5d2s img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .xmcarv_r5d2s .mo-item-content_r5d2s {
        text-align: center;
        padding: 0 1rem;
    }

    .xmcarv_r5d2s .mo-item-title_r5d2s {
        font-size: calc(var(--item-title-size) * 0.95);
        color: #333;
        margin-bottom: 0.5rem;
        font-weight: bold;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .xmcarv_r5d2s .mo-item-desc_r5d2s {
        font-size: calc(var(--item-description-size) * 0.95);
        color: var(--item-desc-color);
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .xmcarv_r5d2s .mo-bottom-structure_r5d2s {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .xmcarv_r5d2s .swiper-indicator_r5d2s {
        width: 4rem;
        height: 0.3rem;
        background-color: #ddd;
        border-radius: 0;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .xmcarv_r5d2s .swiper-indicator_r5d2s.active {
        background-color: var(--theme-color);
    }
}
