.ha-418-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background-color: transparent;
    font-family: inherit;
}

.ha-418-item {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    display: flex;
    background-color: rgba(255, 255, 255, 0.75);
}

/* Open Card state flex configuration - significantly wider */
.ha-418-item.ha-418-active {
    flex: 12;
    cursor: default;
}

/* --- Collapsed View: Vertical Strip Layout --- */
.ha-418-item-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10px;
    z-index: 2;
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-sizing: border-box;
}

.ha-418-item-strip-icon {
    font-size: 20px;
    line-height: 1;
    color: #ff5e62;
    transition: transform 0.3s ease;
}

.ha-418-item-strip-icon svg {
    width: 20px;
    height: 20px;
    fill: #ff5e62;
}

.ha-418-item-strip-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 18px;
    font-weight: 700;
    color: #141416;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
}

/* Active hides the collapsed strip */
.ha-418-item.ha-418-active .ha-418-item-strip {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* --- Expanded View: 2-Column Card Layout --- */
.ha-418-item-content {
    display: flex;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s, visibility 0.5s;
    box-sizing: border-box;
}

.ha-418-item.ha-418-active .ha-418-item-content {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Left Column - Details */
.ha-418-content-left {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    z-index: 2;
}

.ha-418-item-icon {
    font-size: 32px;
    color: #ff5e62;
    margin-bottom: 20px;
    line-height: 1;
}

.ha-418-item-icon svg {
    width: 32px;
    height: 32px;
    fill: #ff5e62;
}

.ha-418-item-subtitle {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 8px 0;
    color: #ff5e62;
}

.ha-418-item-title {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
    line-height: 1.1;
    color: #141416;
}

.ha-418-item-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #2d2d32;
    max-width: 440px;
}

/* Right Column - Image */
.ha-418-content-right {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 0 12px 12px 0;
}

/* Button */
.ha-418-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background-color: #ff5e62;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ha-418-btn:hover {
    background-color: #ff3e43;
    transform: translateY(-2px);
    color: #ffffff;
}

.ha-418-btn-icon {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.ha-418-btn:hover .ha-418-btn-icon {
    transform: translateX(4px);
}

/* --- Mobile / Tablet responsive Layout --- */
@media screen and (max-width: 991px) {
    .ha-418-content-left {
        padding: 40px;
    }
    .ha-418-item-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    .ha-418-container {
        flex-direction: column;
        height: auto !important;
    }
    
    .ha-418-item {
        flex: none;
        height: 80px;
        transition: height 0.5s ease;
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .ha-418-item:last-child {
        border-bottom: none;
    }
    
    .ha-418-item.ha-418-active {
        flex: none;
        height: auto;
    }
    
    /* Collapsed state strip */
    .ha-418-item-strip {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 25px;
    }
    
    .ha-418-item-strip-title {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 16px;
    }
    
    .ha-418-item-strip-icon {
        order: 2;
    }
    
    /* Expanded state vertical stacked layout */
    .ha-418-item-content {
        flex-direction: column-reverse;
        height: auto;
    }
    
    .ha-418-content-left {
        flex: none;
        padding: 30px 25px;
        width: 100%;
    }
    
    .ha-418-content-right {
        flex: none;
        height: 220px;
        width: 100%;
        border-radius: 0;
    }
    
    .ha-418-item-icon {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .ha-418-item-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .ha-418-item-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
}
