/* Interactive Hover Card Styles */
.ihc-0be4b499-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
}

.ihc-0be4b499-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ihc-0be4b499-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease-in-out;
    padding: 2rem;
    box-sizing: border-box;
}

/* Base Styles */
.ihc-0be4b499-title {
    margin-top: 0;
    margin-bottom: 10px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.ihc-0be4b499-desc {
    margin-bottom: 15px;
}

.ihc-0be4b499-button {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Style: All text & button on hover (Default) */
.ihc-0be4b499-wrapper.style-all-hover .ihc-0be4b499-overlay {
    opacity: 0;
    visibility: hidden;
}

.ihc-0be4b499-wrapper.style-all-hover:hover .ihc-0be4b499-overlay {
    opacity: 1;
    visibility: visible;
}

.ihc-0be4b499-wrapper.style-all-hover .ihc-0be4b499-content {
    transform: translateY(20px);
    transition: transform 0.4s ease-in-out;
}

.ihc-0be4b499-wrapper.style-all-hover:hover .ihc-0be4b499-content {
    transform: translateY(0);
}

/* Style: Title first, rest on hover */
.ihc-0be4b499-wrapper.style-title-first .ihc-0be4b499-overlay {
    opacity: 1;
    visibility: visible;
    /* Overlay background color is applied via inline styles, so we can't easily animate its opacity independently here if we want the title visible. 
       A better approach is to rely on a pseudo element or adjusting the overlay color alpha, but since color is dynamic, we'll keep the overlay visible and just animate the content. */
}

/* Add a semi-transparent gradient or rely on the user's overlay color. For this effect, the overlay is always there. */

.ihc-0be4b499-wrapper.style-title-first .ihc-0be4b499-hover-reveal {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
}

.ihc-0be4b499-wrapper.style-title-first:hover .ihc-0be4b499-hover-reveal {
    opacity: 1;
    max-height: 500px; /* arbitrary large enough value */
    transform: translateY(0);
}

/* Subtle zoom effect on image on hover */
.ihc-0be4b499-wrapper:hover .ihc-0be4b499-image {
    transform: scale(1.05);
}
