/* ==========================================================================
   Karaoke Vertical Accordion Widget Styles
   ========================================================================== */

:root {
    --lt-karaoke-accent-color: #006CB4;
}

.lt-karaoke-accordion-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: inherit;
}

/* ==========================================================================
   LEFT COLUMN: IMAGES CROSS-FADE STACK
   ========================================================================== */
.lt-karaoke-image-column {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.lt-karaoke-image-stack {
    position: relative;
    width: 100%;
    height: 500px; /* Overridden by Elementor settings */
    overflow: hidden;
}

.lt-karaoke-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

.lt-karaoke-image-slide.lt-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.lt-karaoke-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   RIGHT COLUMN: HEADER & TIMELINE ACCORDION
   ========================================================================== */
.lt-karaoke-text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lt-karaoke-main-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.lt-karaoke-main-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Timeline Accordion Container */
.lt-karaoke-list-wrapper {
    width: 100%;
    max-height: 480px; /* Smooth scroll wrapper */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
    scroll-behavior: smooth;
    padding-right: 5px;
    box-sizing: border-box;
}

.lt-karaoke-list-wrapper::-webkit-scrollbar {
    width: 4px;
}

.lt-karaoke-list-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.lt-karaoke-list-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* The Continuous Grey Timeline Line */
.lt-karaoke-list {
    position: relative;
    border-left: 2px solid rgba(0, 0, 0, 0.06);
    padding-left: 0;
    margin-left: 6px;
    box-sizing: border-box;
}

/* Accordion Item */
.lt-karaoke-item {
    position: relative;
    padding-left: 32px;
    margin-bottom: 24px;
    cursor: pointer;
    box-sizing: border-box;
    opacity: 0.6;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lt-karaoke-item:last-child {
    margin-bottom: 0;
}

/* Active Item Highlighting */
.lt-karaoke-item.lt-active {
    opacity: 1;
}

/* Sleek Slide-In Accent Indicator Over the Timeline Track */
.lt-karaoke-item::before {
    content: '';
    position: absolute;
    left: -2px; /* Perfect overlay on container line */
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--lt-karaoke-accent-color);
    border-radius: 2px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.lt-karaoke-item.lt-active::before {
    transform: scaleY(1);
}

/* Title Styles */
.lt-karaoke-item-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.4s ease;
}

/* Smooth Accordion Body Height Transition */
.lt-karaoke-item-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                opacity 0.4s ease, 
                margin-top 0.4s ease;
    opacity: 0;
    margin-top: 0;
}

.lt-karaoke-item.lt-active .lt-karaoke-item-content {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 12px;
}

.lt-karaoke-item-desc {
    overflow: hidden;
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   ========================================================================== */
@media (max-width: 1024px) {
    .lt-karaoke-accordion-container {
        grid-template-columns: 1fr;
        gap: 40px !important;
    }

    .lt-karaoke-image-column {
        order: 1;
    }

    .lt-karaoke-text-column {
        order: 2;
    }

    .lt-karaoke-image-stack {
        height: 380px !important;
    }
}

@media (max-width: 767px) {
    .lt-karaoke-accordion-container {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
        gap: 30px !important;
    }

    /* Elegant aspect ratio for compact mobile view */
    .lt-karaoke-image-stack {
        height: 260px !important;
    }

    .lt-karaoke-main-title {
        font-size: 26px !important;
        margin-bottom: 12px !important;
        line-height: 1.25 !important;
        text-align: left;
    }

    .lt-karaoke-main-desc {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
        text-align: left;
    }

    /* Accordion adjustments on mobile */
    .lt-karaoke-list-wrapper {
        max-height: none; /* Let accordion naturally expand on mobile */
        overflow-y: visible;
        padding-right: 0;
    }

    .lt-karaoke-item-title {
        font-size: 17px !important;
        line-height: 1.35 !important;
    }

    .lt-karaoke-item-desc {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .lt-karaoke-item {
        padding-left: 24px;
        margin-bottom: 18px;
    }
}
