/* ================================================
   SECTION: EVENTS
   ================================================ */
.section-events {
    margin-top: 225px;
    position: relative;
    overflow-x: clip;
}

.section-events--alt-bg {
    background: #D5DCDF;
    padding-bottom: 80px;
}

.section-events__decoration {
    position: absolute;
    top: 0;
    left: calc(50% - 960px);
    width: 1920px;
    height: 100%;
    pointer-events: none;
}

.section-events__decoration-1 {
    position: absolute;
    top: -40px;
    left: -18px;
}

.section-events__decoration-2 {
    position: absolute;
    top: 0;
    right: 15px;
}

.section-events__decoration-3 {
    position: absolute;
    top: 0;
    left: -15px;
}

.section-events .section-container {
    position: relative;
    z-index: 2;
}

.section-events__decoration + .section-container {
    padding-top: 90px;
}

.section-events__item {
    display: flex;
    align-items: stretch;
    position: relative;
}

.section-events__item--reversed {
    flex-direction: row-reverse;
}

.section-events__image {
    width: 544px;
    height: 481px;
    flex-shrink: 0;
    overflow: visible;
    position: relative;
}

.section-events__image::before {
    content: '';
    position: absolute;
    top: 50px;
    left: -20px;
    width: 20px;
    height: 80px;
    background: var(--aniro-color-primary);
    z-index: 2;
}

.section-events__item--reversed .section-events__image::before {
    left: auto;
    right: -20px;
}

.section-events__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-events__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-events__red-bar {
    background: var(--aniro-color-primary);
    height: 80px;
    width: 100%;
}

.section-events__red-bar .section-events__text-block {
    padding-top: 15px;
}

.section-events__text-block {
    padding: 30px 40px;
    text-align: right;
}

.section-events__item--reversed .section-events__text-block {
    text-align: left;
}

.section-events__title {
    font-family: var(--aniro-font-heading);
    font-size: 25px;
    font-weight: 900;
    color: var(--aniro-color-white);
    line-height: 24px;
    margin-bottom: 16px;
}

.section-events__description {
    font-family: var(--aniro-font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: var(--aniro-color-black);
    margin-bottom: 16px;
}

.section-events__link {
    font-family: var(--aniro-font-heading);
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
    color: var(--aniro-color-black);
    text-decoration: none;
}

.section-events__vertical-bar {
    position: absolute;
    width: 20px;
    height: 80px;
    background: var(--aniro-color-primary);
}

.section-events__link-block{
    display: flex;
    gap: 5px;
    align-items: center;
}

.section-events__item--reversed .section-events__title, .section-events__item--reversed .section-events__description{
    text-align: end !important;
}

.section-events__item--reversed .section-events__link-block{
    justify-content: flex-end;
}

.section-events__item .section-events__title, .section-events__item .section-events__description{
    text-align: start;
}

/* --- SECTION EVENTS: RESPONSIVE --- */

@media (max-width: 1024px) {
    .section-events {
        margin-top: 140px;
    }

    .section-events__red-bar {
        height: auto;
        min-height: 60px;
    }

    .section-events__image {
        width: 400px;
        height: 380px;
    }

    .section-events__text-block {
        padding: 20px 30px;
    }

    .section-events__title {
        font-size: 22px;
    }

    .section-events__description {
        font-size: 15px;
    }

    .section-events__decoration + .section-container {
        padding-top: 40px;
    }
}

@media (max-width: 768px) {
    .section-events {
        margin-top: 80px;
    }

    .section-events--alt-bg {
        padding-bottom: 40px;
    }

    .section-events__item,
    .section-events__item--reversed {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .section-events__image {
        width: 100%;
        height: 280px;
    }

    .section-events__text-block {
        padding: 16px 20px;
        text-align: left;
    }

    .section-events__item--reversed .section-events__text-block {
        text-align: left;
    }

    .section-events__item--reversed .section-events__title,
    .section-events__item--reversed .section-events__description {
        text-align: start !important;
    }

    .section-events__item--reversed .section-events__link-block {
        justify-content: flex-start;
    }

    .section-events__title {
        font-size: 20px;
        line-height: 22px;
    }

    .section-events__description {
        font-size: 14px;
        line-height: 22px;
    }
}

@media (max-width: 480px) {
    .section-events {
        margin-top: 50px;
    }

    .section-events--alt-bg {
        padding-bottom: 30px;
    }

    .section-events__image {
        height: 220px;
    }

    .section-events__red-bar {
        height: auto;
        min-height: 50px;
    }

    .section-events__text-block {
        padding: 12px 16px;
    }

    .section-events__title {
        font-size: 18px;
        line-height: 20px;
        margin-bottom: 10px;
    }

    .section-events__description {
        font-size: 13px;
        line-height: 20px;
        margin-bottom: 10px;
    }

    .section-events__link {
        font-size: 14px;
    }

    .section-events__decoration-1 {
        display: none;
    }
}

