.overview-cards-section {
    width: 100%;
    padding-block: 100px;
}

.overview-cards-section.disabled {
    pointer-events: none;
}

.overview-cards-section .overview-cards__title:not(.heading-with-star) {
    margin-left: calc(50% + 10px);
}

.overview-cards-section .overview-cards__description {
    margin-left: calc(50% + 10px);
}

.overview-cards-section .overview-cards__description:not(:first-child) {
    margin-top: 40px;
}

.overview-cards-section .overview-cards__title,
.overview-cards-section .overview-card {
    opacity: 0;
    transform: translateY(24px);
}

.overview-cards-section.is-revealed .overview-cards__title,
.overview-cards-section.is-revealed .overview-card {
    animation-name: overview-cards-reveal-in;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

.overview-cards-section.is-revealed .overview-cards__title {
    animation-delay: 0.35s;
}

.overview-cards-section.is-revealed .overview-card {
    animation-delay: calc(0.95s + var(--overview-card-index, 0) * 0.18s);
}

@keyframes overview-cards-reveal-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overview-cards-section .overview-cards__items {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 21px;
    margin: 0;
    border-top: 1px solid var(--grey-border-40);
    border-bottom: 1px solid var(--grey-border-40);
    overflow: hidden;
}

.overview-cards-section .overview-cards__items:not(:first-child) {
    margin-top: 100px;
}

.overview-cards-section .overview-cards__action {
    display: flex;
    justify-content: center;
}

.overview-cards-section .overview-cards__action:not(:first-child) {
    margin-top: 60px;
}

.overview-cards-section .overview-card {
    position: relative;
    display: flex;
    justify-content: center;
    width: calc(33.333% - 14px);
    height: initial;
    padding: 20px 30px;
}

.overview-cards-section .overview-card__content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 30px 50px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.overview-cards-section .overview-card__content::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transition: var(--transition);
    transition-duration: 0.45s;
    z-index: 0;
}

.overview-cards-section .overview-card__image {
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: var(--transition);
    transition-duration: 0.45s;
}

.overview-cards-section .overview-card__image .default-image {
    align-self: center;
    width: 200px;
    height: 200px;
    transition: var(--transition);
    transition-duration: 0.45s;
}

.overview-cards-section .overview-card__image .default-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.overview-cards-section .overview-card__image .hover-image {
    position: relative;
    top: 0;
    width: 100%;
    height: 0;
    transform: translateY(-30px);
    transition: height 0.45s ease 0s, transform 0.45s ease 0s, opacity 0.45s ease 0s;
    opacity: 0;
}

.overview-cards-section .overview-card__image .hover-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
}

.overview-cards-section .overview-card__title {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 20px;
    transition: var(--transition);
    transition-duration: 0.45s;
    user-select: none;
    z-index: 1;
}

.overview-cards-section .overview-card__description {
    max-height: 0;
    margin: 0;
    color: var(--white);
    opacity: 0;
    transition: max-height 0s ease 0s, margin 0s ease 0s, opacity 0.2s ease;
    user-select: none;
    z-index: 1;
}

.overview-cards-section .overview-card__button {
    margin-top: auto;
}

/* -------------------------------- Overview Cards - Type 2 - start -------------------------------- */
.overview-cards-section--type_2 .overview-card {
    visibility: hidden;
    pointer-events: none;
}

.overview-cards-section--type_2.is-revealed .overview-card {
    visibility: visible;
    pointer-events: auto;
}

.overview-cards-section .overview-card__content::before {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.overview-cards-section--type_2 .overview-card__content--linkable {
    padding: 30px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.overview-cards-section--type_2 .overview-card__button .button {
    pointer-events: none;
}

.overview-cards-section--type_2 .overview-card__content {
    justify-content: center;
    border-radius: 30px;
}

.overview-cards-section--type_2 .overview-card__image {
    overflow: hidden;
    max-height: 220px;
    opacity: 1;
    margin-bottom: 0;
    transform: translateY(0);
    transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.45s ease, transform 0.45s ease;
}

.overview-cards-section--type_2 .overview-card__image .hover-image {
    display: none;
}

.overview-cards-section--type_2 .overview-card__description {
    margin-top: 0;
    text-align: left;
}

.overview-cards-section--type_2 .overview-card__description a:not(.button) {
    color: var(--white);
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: color 0.3s ease, background-position 0s ease, background-size .45s ease;
}

.overview-cards-section--type_2 .overview-card__description a:not(.button):hover {
    background-position: 100% 100%;
    background-size: 0% 1px;
}

.overview-cards-section .overview-card--type-2 .overview-card__content:hover .overview-card__description, 
.overview-cards-section .overview-card--type-2 .overview-card__content.hover .overview-card__description {
    margin: 0px;
}

.overview-cards-section--type_2 .overview-card__title,
.overview-cards-section--type_2 .overview-card__button {
    opacity: 1;
    max-height: 140px;
    overflow: hidden;
    transform: translateY(0);
    transition: opacity 0.35s ease, max-height 0.45s ease, margin 0.45s ease, transform 0.45s ease;
}

@media (min-width: 1024px) {
    .overview-cards-section .overview-card--type-2 .overview-card__content::before {
        background-color: var(--blue-dark);
        background-image: url(/wp-content/plugins/inst-elementor/widgets/overview-cards/images/overview-cards-type-2-background.webp);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0;
        transition: opacity 0.45s ease;
    }

    .overview-cards-section .overview-card--type-2 .overview-card__content:hover::before, 
    .overview-cards-section .overview-card--type-2 .overview-card__content.hover::before,
    .overview-cards-section .overview-card--type-2 .overview-card__content:focus-visible::before {
        opacity: 1;
    }
    .overview-cards-section--type_2 .overview-card__content,
    .overview-cards-section--type_2 .overview-card__content--linkable {
        position: relative;
        padding-top: 280px;
        transition: padding-top 0.45s ease;
    }

    .overview-cards-section--type_2 .overview-card__image {
        position: absolute;
        top: 90px;
        left: 50%;
        width: calc(100% - 100px);
        max-width: 240px;
        margin: 0;
        pointer-events: none;
        transform: translate(-50%, 0);
    }

    .overview-cards-section--type_2 .overview-card__content:hover,
    .overview-cards-section--type_2 .overview-card__content.hover,
    .overview-cards-section--type_2 .overview-card__content:focus-visible {
        padding-top: 50px;
    }

    .overview-cards-section--type_2 .overview-card__content:hover .overview-card__image,
    .overview-cards-section--type_2 .overview-card__content.hover .overview-card__image,
    .overview-cards-section--type_2 .overview-card__content:focus-visible .overview-card__image {
        max-height: 0;
        opacity: 0;
        margin-bottom: 0;
        transform: translate(-50%, -12px);
    }

    .overview-cards-section--type_2 .overview-card__content:hover .overview-card__title,
    .overview-cards-section--type_2 .overview-card__content.hover .overview-card__title,
    .overview-cards-section--type_2 .overview-card__content:focus-visible .overview-card__title,
    .overview-cards-section--type_2 .overview-card__content:hover .overview-card__button,
    .overview-cards-section--type_2 .overview-card__content.hover .overview-card__button,
    .overview-cards-section--type_2 .overview-card__content:focus-visible .overview-card__button {
        opacity: 0;
        max-height: 0;
        margin: 0;
        transform: translateY(-10px);
    }
}

/* -------------------------------- Overview Cards - Type 2 - end -------------------------------- */

@media (max-width: 1220px) {
    .overview-cards-section .overview-card {
        padding: 20px;
    }

    .overview-cards-section .overview-card__content,
    .overview-cards-section .overview-card__content--linkable {
        padding: 30px 28px;
    }

    .overview-cards-section--type_2 .overview-card__image {
        top: auto;
    }
}

@media (min-width: 1024px) {
    .overview-cards-section .overview-card:nth-child(3n+2)::before,
    .overview-cards-section .overview-card:nth-child(3n+3)::before {
        content: '';
        position: absolute;
        top: 20px;
        left: -11px;
        width: 1px;
        height: calc(100% - 40px);
        background-color: var(--grey-border-40);
    }

    .overview-cards-section .overview-card:nth-child(3n+4)::after {
        content: '';
        position: absolute;
        top: 0;
        left: -50vw;
        width: 200vw;
        height: 1px;
        background-color: var(--grey-border-40);
    }

    /* Cards Count - 4 cards */

    .overview-cards-section[data-cards-count="4"] .overview-cards__items {
        display: grid;
        grid-template-columns: 1fr calc(33.333% - 14px) calc(33.333% - 14px) 1fr;
        grid-template-areas:
            '. one two .'
            '. three four .';
    }

    .overview-cards-section[data-cards-count="4"] .overview-card {
        width: 100%;
    }

    .overview-cards-section[data-cards-count="4"] .overview-card:nth-child(1) { grid-area: one; }
    .overview-cards-section[data-cards-count="4"] .overview-card:nth-child(2) { grid-area: two; }
    .overview-cards-section[data-cards-count="4"] .overview-card:nth-child(3) { grid-area: three; }
    .overview-cards-section[data-cards-count="4"] .overview-card:nth-child(4) { grid-area: four; }

    .overview-cards-section[data-cards-count="4"] .overview-card:nth-child(3)::before { content: none; }
    .overview-cards-section[data-cards-count="4"] .overview-card:nth-child(4)::before {
        content: '';
        position: absolute;
        top: 20px;
        left: -11px;
        width: 1px;
        height: calc(100% - 40px);
        background-color: var(--grey-border-40);
    }

    /* Hover */
    .overview-cards-section .overview-card__content:hover::before,
    .overview-cards-section .overview-card__content.hover::before {
        background-color: var(--red);
    }

    .overview-cards-section .overview-card__content:hover .overview-card__image,
    .overview-cards-section .overview-card__content.hover .overview-card__image {
        margin-top: -40px;
    }

    .overview-cards-section .overview-card__content:hover .overview-card__image .default-image,
    .overview-cards-section .overview-card__content.hover .overview-card__image .default-image {
        height: 0;
        opacity: 0;
    }

    .overview-cards-section .overview-card__content:hover .overview-card__image .hover-image,
    .overview-cards-section .overview-card__content.hover .overview-card__image .hover-image {
        height: 128px;
        transform: translateY(10px);
        opacity: 1;
        transition: height 0.45s ease 0s, transform 0.45s ease 0.45s, opacity 0.45s ease 0.45s;
    }

    .overview-cards-section .overview-card__content:hover .overview-card__title,
    .overview-cards-section .overview-card__content.hover .overview-card__title {
        color: var(--white);
    }

    .overview-cards-section .overview-card__content:hover .overview-card__description,
    .overview-cards-section .overview-card__content.hover .overview-card__description {
        max-height: 100%;
        margin: 0 0 20px 0;
        opacity: 1;
        transition: all 0.45s ease 0.45s;
    }

    .overview-cards-section .overview-card__content:hover .button,
    .overview-cards-section .overview-card__content.hover .button {
        color: var(--red);
        transition-duration: 0.45s;
    }

    .overview-cards-section .overview-card__content:hover .button::before,
    .overview-cards-section .overview-card__content.hover .button::before {
        background-color: var(--white);
        transition-duration: 0.45s;
    }

    .overview-cards-section .overview-card__content:hover .button::after,
    .overview-cards-section .overview-card__content.hover .button::after {
        background-color: var(--red);
    }
}

@media (max-width: 1023px) {
    .overview-cards-section .overview-cards__title:not(.heading-with-star) {
        margin-left: 0;
    }

    .overview-cards-section .overview-cards__description {
        margin-left: 0;
    }

    .overview-cards-section.is-revealed .overview-cards__title {
        animation-delay: 0.12s;
    }

    .overview-cards-section.is-revealed .overview-card {
        animation-delay: calc(0.22s + var(--overview-card-index, 0) * 0.1s);
    }

    .overview-cards-section .overview-cards__items {
        flex-wrap: wrap;
        gap: 0px 20px;
    }

    .overview-cards-section .overview-card {
        width: calc(50% - 10px);
        padding: 20px 10px;
    }

    .overview-cards-section .overview-card__content {
        max-width: 270px;
        padding: 30px 0px;
    }

    .overview-cards-section .overview-card__content::before {
        content: none;
    }

    .overview-cards-section .overview-card__image .hover-image {
        display: none;
    }

    .overview-cards-section .overview-card__description {
        max-height: 100%;
        margin-bottom: 20px;
        color: var(--blue);
        opacity: 1;
    }
    .overview-cards-section--type_2 .overview-card__description a:not(.button) {
        color: var(--blue-light);
        background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
        transition: color 0.3s ease, background-position 0s ease, background-size .45s ease;
    }

    .overview-cards-section--type_2 .overview-card__description a:not(.button):hover {
        background-position: 100% 100%;
        background-size: 0% 1px;
    }
    /* Type 2 */
    .overview-cards-section--type_2 .overview-card__description {
        text-align: left;
    }
    .overview-cards-section .overview-card--type-2 .overview-card__content:hover .overview-card__description, 
    .overview-cards-section .overview-card--type-2 .overview-card__content.hover .overview-card__description {
        margin-bottom: 20px;
    }

    .overview-cards-section .overview-card--type-2 .overview-card__content:hover .button::before {
        transform: scale(0.96);
    }

    .overview-cards-section .overview-card--type-2 .overview-card__content:hover .button.button-secondary {
        color: var(--red);
    }

    .overview-cards-section .overview-card--type-2 .overview-card__content:hover .button.button-icon svg.arrow path:first-child {
        clip-path: inset(0 0 0 20%);
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .overview-cards-section .overview-card:nth-child(2n+2)::before {
        content: '';
        position: absolute;
        top: 20px;
        left: -10px;
        width: 1px;
        height: calc(100% - 40px);
        background-color: var(--grey-border-40);
    }

    .overview-cards-section .overview-card:nth-child(2n+3)::after {
        content: '';
        position: absolute;
        top: 0;
        left: -50vw;
        width: 200vw;
        height: 1px;
        background-color: var(--grey-border-40);
    }
}

@media (max-width: 767px) {
    .overview-cards-section {
        padding-block: 50px;
    }

    .overview-cards-section .overview-cards__section {
        gap: 0px;
    }

    .overview-cards-section .overview-card__image .default-image {
        align-self: flex-start;
    }

    .overview-cards-section .overview-card__title {
        text-align: left;
    }

    .overview-cards-section .overview-cards__description:not(:first-child) {
        margin-top: 30px;
    }

    .overview-cards-section .overview-cards__description br {
        display: none;
    }

    .overview-cards-section .overview-cards__items:not(:first-child) {
        margin-top: 50px;
    }

    .overview-cards-section .overview-card {
        width: 100%;
        padding: 40px 0px;
    }

    .overview-cards-section .overview-card:nth-child(n+2):after {
        content: '';
        position: absolute;
        top: 0;
        left: -50vw;
        width: 200vw;
        height: 1px;
        background-color: var(--grey-border-40);
    }

    .overview-cards-section .overview-card__content {
        padding: 0;
    }

    .overview-cards-section .overview-card__description {
        text-align: left;
    }

    .overview-cards-section .overview-card__image .default-image {
        width: 150px;
        height: 150px;
    }
}

body.elementor-editor-active .overview-cards-section .overview-cards__title,
body.elementor-editor-active .overview-cards-section .overview-card,
body.elementor-editor-preview .overview-cards-section .overview-cards__title,
body.elementor-editor-preview .overview-cards-section .overview-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

body.elementor-editor-active .overview-cards-section--type_2 .overview-card,
body.elementor-editor-preview .overview-cards-section--type_2 .overview-card {
    visibility: visible !important;
    pointer-events: auto !important;
}