.ah-5d03e0a6-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 600px;
}

.ah-5d03e0a6-item {
    flex: 1 1 auto;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), min-height 0.4s ease;
    cursor: pointer;
    position: relative;
    min-height: max-content;
    display: flex;
    flex-direction: column;
}

.ah-5d03e0a6-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    padding: 10px;
    position: relative;
    min-height: 50px;
}

.ah-5d03e0a6-inner::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10px;
    right: 10px;
    height: 1px;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    display: none;
}

.ah-5d03e0a6-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ah-5d03e0a6-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ah-5d03e0a6-content-area {
     display: flex;
     flex-direction: column;
     justify-content: flex-end;
     height: auto;
     padding-top: 10px;
     position: relative;
     z-index: 2;
}

.ah-5d03e0a6-content {
    opacity: 0;
    transition: opacity 0.4s ease;
    visibility: hidden;
    height: 0;
    overflow: visible; /* Modified to allow natural growth */
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.ah-5d03e0a6-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover & Active States */
.ah-5d03e0a6-item:hover,
.ah-5d03e0a6-item.ah-active {
    flex: 4 1 auto;
    min-height: min-content; /* Ensure enough height for all content */
}

.ah-5d03e0a6-item:hover .ah-5d03e0a6-content,
.ah-5d03e0a6-item.ah-active .ah-5d03e0a6-content {
    opacity: 1;
    visibility: visible;
    height: auto; /* Revert to auto to display full content */
    transition-delay: 0.2s; 
}

@media (min-width: 768px) {
    .ah-5d03e0a6-container {
        flex-direction: row;
        height: 600px;
    }

    .ah-5d03e0a6-item {
        flex: 1;
        min-height: auto;
        display: block;
    }

    .ah-5d03e0a6-item:hover,
    .ah-5d03e0a6-item.ah-active {
        flex: 4;
        min-height: auto;
    }
    
    .ah-5d03e0a6-inner {
        flex-direction: row;
        padding: 20px;
        min-height: auto;
    }
    
    .ah-5d03e0a6-inner::before {
        display: block;
        top: 0;
        bottom: 0;
        left: 80px;
        width: 1px;
        height: auto;
    }

    .ah-5d03e0a6-item:hover .ah-5d03e0a6-inner::before,
    .ah-5d03e0a6-item.ah-active .ah-5d03e0a6-inner::before {
        opacity: 1;
        transition-delay: 0.3s;
    }

    .ah-5d03e0a6-header-wrap {
        width: 60px;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .ah-5d03e0a6-title {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        white-space: nowrap;
        margin: 0 auto;
        font-size: 3vw;
        line-height: inherit;
    }

    .ah-5d03e0a6-content-area {
        flex: 1;
        padding-left: 40px;
        padding-top: 0;
        height: 100%;
        overflow-y: auto; /* Added to handle very long text gracefully */
    }
    
    .ah-5d03e0a6-content {
        margin-bottom: 30px;
        height: auto;
    }
    
    .ah-5d03e0a6-number {
        font-size: clamp(3rem, 5vw, 6rem);
        align-self: flex-start;
    }
    
     @media (min-width: 1440px) {
         .ah-5d03e0a6-title {
             font-size: 3rem;
         }
     }
}