.ais-7cf089cc-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ais-7cf089cc-item {
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    transition-property: flex-grow, flex, transform, opacity;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Background image filling the entire item card */
.ais-7cf089cc-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

/* Hover Zoom effects on image content */
.ais-7cf089cc-item:hover .ais-7cf089cc-bg-image {
    transform: scale(1.05);
}

/* Background Overlay mask */
.ais-7cf089cc-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: background-color 0.4s ease;
}

/* Desktop styles */
@media (min-width: 768px) {
    .ais-7cf089cc-item.ais-7cf089cc-active {
        cursor: default;
    }
}

/* Collapsed indicator label */
.ais-7cf089cc-collapsed-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .ais-7cf089cc-collapsed-indicator {
        bottom: 40px;
        transform: translateX(-50%) rotate(-90deg);
        transform-origin: center;
    }
}

.ais-7cf089cc-collapsed-indicator-text {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ais-7cf089cc-item.ais-7cf089cc-active .ais-7cf089cc-collapsed-indicator {
    opacity: 0;
    pointer-events: none;
}

/* Inner Profile Card panel - floats over background */
.ais-7cf089cc-profile-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    box-sizing: border-box;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

.ais-7cf089cc-item.ais-7cf089cc-active .ais-7cf089cc-profile-wrapper {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ais-7cf089cc-profile-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ais-7cf089cc-profile-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ais-7cf089cc-profile-image {
    flex-shrink: 0;
    overflow: hidden;
}

.ais-7cf089cc-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ais-7cf089cc-meta-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ais-7cf089cc-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.ais-7cf089cc-job {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ais-7cf089cc-profile-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.ais-7cf089cc-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.ais-7cf089cc-btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Tablet & Mobile Responsiveness overrides */
@media (max-width: 767px) {
    .ais-7cf089cc-container {
        flex-direction: column;
        height: auto !important;
    }

    .ais-7cf089cc-item {
        min-height: 120px;
        transition: min-height 0.4s ease;
    }

    .ais-7cf089cc-item.ais-7cf089cc-active {
        min-height: 440px;
    }

    .ais-7cf089cc-collapsed-indicator {
        left: 24px;
        transform: none;
        bottom: 50%;
        transform: translateY(50%);
    }

    .ais-7cf089cc-profile-wrapper {
        padding: 15px;
    }

    .ais-7cf089cc-profile-card {
        width: 100% !important;
        padding: 16px !important;
    }
}
