.title-outer {
    position: relative;
}

.title-card .title-card__text-content {
    padding: 106px 50px;
    height: fit-content;
    margin-top: auto;
    padding-right: 0;
}

.title-card .title-card__content {
    display: grid;
    grid-template-columns: 752px 1fr;
    min-height: 702px;
}

.title-card .title-card__background {
    background-color: #8565fd;
}

.title-card .title-card__tower-picture {
    width: 100%;
    display: flex;
    margin-top: auto;
    height: 100%;
    pointer-events: none;
    max-height: 584px;
    position: relative;
    z-index: 5;
}

.title-card .title-card__tower-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

.title-card .title-card__heading {
    font-weight: 800;
    font-size: 52px;
    line-height: 100%;
    letter-spacing: 0%;
}

.title-card .title-card__text {
    font-weight: 500;
    font-size: 24px;
    line-height: 140%;
    letter-spacing: 0%;
    margin-top: 32px;
}

.title-outer .title-card__ribbons {
    position: absolute;
    top: 150px;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.title-outer .title-card__ribbon {
    --padding: 23px;
    --width: calc(200%);
    width: calc(100vw + 309px);
    background-color: #A187FF;
    padding: var(--padding) 0;
    position: relative;
    box-shadow: -341px 322px 188px rgba(53, 37, 111, 0.01), -192px 181px 158px rgba(53, 37, 111, 0.05), -85px 81px 117px rgba(53, 37, 111, 0.09), -21px 20px 64px rgba(53, 37, 111, 0.1);
}

.title-outer .title-card__ribbon .title-card__ribbon-text {
    content: "";
    display: block;
    height: 62px;
    width: var(--width);
    background-image: url('../../img/events/title-card/events-text.svg');
    background-size: auto 100%;
    transform: translateX(-50%);
}

.title-outer .title-card__ribbon.top {
    margin-left: -37.36px;
    transform: rotate(-3.07deg);
}

.title-outer .title-card__ribbon.bottom {
    margin-top: -37px;
    z-index: -1;
    position: relative;
    margin-left: -71px;
    transform: rotate(9.44deg);
}

@media screen and (max-width: 1100px) {
    .title-card .title-card__content {
        grid-template-columns: 468px 1fr;
    }

    .title-card .title-card__heading {
        font-size: 40px;
    }

    .title-card .title-card__text {
        font-size: 20px;
        margin-top: 16px;
    }
}

@media screen and (max-width: 900px) {
    .title-card .title-card__text-content {
        padding: 40px;
        padding-right: 0;
    }

    .title-outer .title-card__ribbon:before {
        height: 40px;
    }

    .title-outer .title-card__ribbon {
        padding: 14.7px 0;
    }

    .title-card .title-card__content {
        min-height: 509px;
    }

    .title-outer .title-card__ribbons {
        top: 130px;
    }

    .title-outer .title-card__ribbon.bottom {
        margin-top: -23.1px;
    }

    .title-card .title-card__tower-picture {
        --overlap: 135px;
        width: calc(100% + var(--overlap));
        margin-left: calc(-1 * var(--overlap));
        max-height: 415px;
    }
}

@media screen and (max-width: 680px) {
    .title-card .title-card__text-content {
        margin-top: var(--logo-height);
        padding: 40px 16px;
        padding-bottom: 396px;
    }

    .title-outer .title-card__ribbons {
        top: unset;
        bottom: 250px;
    }

    .title-card .title-card__content {
        display: flex;
        flex-direction: column;
    }

    .title-card .title-card__tower-picture {
        width: auto;
        height: 312.6px;
        bottom: 0;
        right: -14.45px;
        position: absolute;
    }

    .title-card .title-card__heading {
        font-size: 32px;
    }

    .title-card .title-card__text {
        font-size: 16px;
    }
}
