.ha-2297-wrapper,
.ha-2297-wrapper-inner,
.ha-2297-container {
    /* Removed the global hardcoded border */
    /* border: 3px solid #000 !important; */
    box-sizing: border-box;
    display: flex;
    width: 100%;
}

/* Individual Item Container */
.ha-2297-item {
    display: flex;
    flex-direction: row;
    flex: 0 0 var(--ha-tab-width);
    overflow: hidden;
    position: relative;
    background-color: var(--ha-tab-bg);
}

/* Ensure the active item expands to fill remaining space */
.ha-2297-item.is-active {
    flex: 1 1 auto;
    background-color: var(--ha-panel-bg);
}

/* 
 * TAB STRIP (The vertical part you click)
 */
.ha-2297-tab {
    flex: 0 0 var(--ha-tab-width);
    width: var(--ha-tab-width);
    min-width: var(--ha-tab-width); /* Prevent shrinking when active */
    background-color: var(--ha-tab-bg);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: background-color 0.3s;
    height: 100%;
    /* The border controls from Elementor inject here */
}

/* Force visibility when active */
.ha-2297-item.is-active .ha-2297-tab {
    flex: 0 0 var(--ha-tab-width);
    min-width: var(--ha-tab-width);
    width: var(--ha-tab-width);
}

.ha-2297-tab-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

/* Vertical text */
.ha-2297-tab-title {
    color: var(--ha-tab-txt);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    pointer-events: none;
    white-space: nowrap;
    transform: rotate(-90deg);
}

/* Force white color when active */
.ha-2297-item.is-active .ha-2297-tab-title {
    color: #ffffff !important;
}

/* Add subtle hover state */
.ha-2297-item:not(.is-active) .ha-2297-tab:hover {
    filter: brightness(0.95);
}

/* 
 * CONTENT PANEL (The expanded area)
 */
.ha-2297-panel {
    flex: 1 1 auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s 0.2s, visibility 0s 0.5s;
    min-width: 0; /* Prevents flex blowout */
    background-color: var(--ha-panel-bg);
    height: 100%;
    overflow-y: auto;
}

/* Show panel contents only when active */
.ha-2297-item.is-active .ha-2297-panel {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s 0.1s, visibility 0s 0s;
}

.ha-2297-content {
    /* Fallback padding; actual controlled via Elementor */
    padding: 50px 60px;
    height: 100%;
}

.ha-2297-content-label {
    display: inline-block;
    padding: 8px 24px;
    /* Background color now controlled via Elementor, keeping fallback just in case */
    background-color: #210d1f; 
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ha-2297-content-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.ha-2297-content-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 30px 0;
}

/* Bullet list styling */
.ha-2297-bullets {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.ha-2297-bullets li {
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .ha-2297-wrapper {
        flex-direction: column;
        height: auto !important; /* Let it stack naturally on mobile */
    }

    .ha-2297-item {
        flex: 0 0 auto;
        flex-direction: column;
    }

    .ha-2297-tab {
        flex: 0 0 auto;
        height: var(--ha-tab-width);
        width: 100%;
    }

    .ha-2297-item.is-active .ha-2297-tab {
        height: var(--ha-tab-width);
        width: 100%;
        flex: 0 0 auto;
    }

    .ha-2297-tab-inner {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .ha-2297-tab-title {
        transform: none;
        padding: 0 20px;
    }

    .ha-2297-panel {
        height: auto;
        max-height: 0;
        transition: max-height 0.4s ease-out, opacity 0.3s;
        overflow: hidden;
    }

    .ha-2297-item.is-active .ha-2297-panel {
        max-height: 1000px; /* Arbitrary large number for slide-down effect */
    }

    .ha-2297-content {
        padding: 30px 20px;
    }
}