.ihb-container-f5181c52 {
    position: relative;
    display: block; /* Also applies when the container is rendered as a link */
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    /* Size container so the title can be positioned with cqh units (transform only, no layout animation) */
    container-type: size;
    --ihb-pad: 30px;
    --ihb-grad-h: 35; /* Resting gradient height as a % of the box (overridden by the Elementor control) */
    --ihb-ease-move: cubic-bezier(0.65, 0, 0.35, 1);
}

a.ihb-container-f5181c52 {
    cursor: pointer;
}

a.ihb-container-f5181c52:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

.ihb-bg-image-f5181c52 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/*
 * Gradient overlay: always full height, but scaled down from the bottom edge at rest so it
 * starts at the chosen height. On hover it scales to 100%, so the gradient rises with the title.
 * The gradient itself is set by the Elementor control (bottom colour to transparent at the top edge).
 */
.ihb-overlay-f5181c52 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: scaleY(calc(var(--ihb-grad-h) / 100));
    transform-origin: bottom center;
    will-change: transform;
    /* Un-hover: same 0.1s lag as the title so they travel together */
    transition: transform 0.9s var(--ihb-ease-move) 0.1s;
}

.ihb-container-f5181c52:is(:hover, :focus-visible) .ihb-overlay-f5181c52 {
    transform: scaleY(1);
    transition-delay: 0s;
}

/* Layout in the HOVER state: title, line (fills the gap), description. */
.ihb-content-wrap-f5181c52 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--ihb-pad) 80px var(--ihb-pad) var(--ihb-pad); /* right padding keeps clear of the icon */
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.ihb-title-f5181c52 {
    flex: 0 0 auto;
    margin: 0;
    font-weight: 500;
    font-size: 2.2rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Resting state: pushed down so the title's bottom edge sits on the bottom padding line */
    transform: translateY(calc(100cqh - (var(--ihb-pad) * 2) - 100%));
    will-change: transform;
    transition: transform 0.9s var(--ihb-ease-move) 0.1s;
}

.ihb-container-f5181c52:is(:hover, :focus-visible) .ihb-title-f5181c52 {
    transform: translateY(0);
    transition-delay: 0s;
}

.ihb-inner-details-f5181c52 {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Vertical line: fills the space between the title and the description, grows upward from the description */
.ihb-line-f5181c52 {
    flex: 1 1 auto;
    min-height: 0;
    width: 1px;
    margin: 15px 0;
    background-color: #ffffff;
    transform: scaleY(0);
    transform-origin: bottom center;
    will-change: transform;
    transition: transform 0.5s var(--ihb-ease-move) 0s;
}

.ihb-container-f5181c52:is(:hover, :focus-visible) .ihb-line-f5181c52 {
    transform: scaleY(1);
    transition-duration: 0.9s;
    transition-delay: 0.2s;
}

/* Description: fades in only, no vertical movement */
.ihb-description-f5181c52 {
    flex: 0 0 auto;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.35s ease 0s;
}

.ihb-container-f5181c52:is(:hover, :focus-visible) .ihb-description-f5181c52 {
    opacity: 1;
    transition: opacity 0.7s ease 0.45s;
}

/* Icon: static, never rotates */
.ihb-arrow-f5181c52 {
    position: absolute;
    bottom: var(--ihb-pad);
    right: var(--ihb-pad);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ihb-arrow-f5181c52 svg {
    display: block;
    width: 24px;
    height: 24px;
}

@media (prefers-reduced-motion: reduce) {
    .ihb-title-f5181c52,
    .ihb-line-f5181c52,
    .ihb-description-f5181c52,
    .ihb-overlay-f5181c52 {
        transition-duration: 0.01s !important;
        transition-delay: 0s !important;
    }
}

/*
 * Tablet and mobile (Elementor default tablet breakpoint, 1024px and below):
 * no hover, so the box permanently shows its hover state. Must stay last in the file.
 */
@media (max-width: 1024px) {
    .ihb-overlay-f5181c52 {
        transform: scaleY(1);
    }

    .ihb-title-f5181c52 {
        transform: none;
    }

    .ihb-line-f5181c52 {
        transform: scaleY(1);
    }

    .ihb-description-f5181c52 {
        opacity: 1;
    }

    .ihb-overlay-f5181c52,
    .ihb-title-f5181c52,
    .ihb-line-f5181c52,
    .ihb-description-f5181c52 {
        transition: none;
        will-change: auto;
    }
}
