.conferences {
    padding: 100px 0 110px;
}

.conferences__inner {
    max-width: 1601px;
    width: calc(100% - 32px);
    margin: 0 auto;
}

/* the design draws the heading on a normal (1.365) line box rather than the
   theme's solid 1.0, which is what puts the cards 227px below the section top */
.conferences .title-3 {
    margin: 0 0 56px;
    line-height: 1.365;
    text-align: center;
}

/* the page is RTL, which would flip the row; the design fixes the cards
   left-to-right, so the row is LTR and each card restores RTL for its text */
.conferences__cards {
    display: flex;
    align-items: stretch;
    gap: 40px;
    direction: ltr;
}

.conf-card {
    direction: rtl;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 30px 0 rgba(0, 0, 0, 0.08);
}

/* ---------- slider ---------- */

.conf-slider {
    position: relative;
    direction: ltr;
    width: 100%;
    aspect-ratio: 507 / 400;
    background: #ede8d9;
    overflow: hidden;
}

.conf-slider__track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.conf-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}

.conf-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conf-slide--crop img {
    position: absolute;
    left: -2.6%;
    top: -37%;
    width: 144.12%;
    height: 137%;
}

.conf-slider__shade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.conf-slider__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    margin: -22px 0 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.conf-slider__nav img {
    position: absolute;
    left: -8px;
    top: -6px;
    display: block;
    width: 60px;
    height: 60px;
    transition: opacity 0.2s ease;
}

.conf-slider__nav:hover img {
    opacity: 0.8;
}

.conf-slider__nav--prev {
    right: 16px;
}

.conf-slider__nav--next {
    left: 16px;
}

.conf-slider__counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 4px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

/* ---------- content ---------- */

.conf-card__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 36px 40px;
    text-align: right;
}

.conf-card__kicker {
    margin: 0;
    color: #af8b56;
    font-size: 17px;
    line-height: 20px;
    font-weight: 400;
}

.conf-card__title {
    margin: 0;
    color: #000;
    font-size: 32px;
    line-height: 34px;
    font-weight: 400;
}

.conf-card__rule {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #dfd1a0, #af8b56);
}

.conf-card__text p {
    margin: 0 0 14px;
    color: #000;
    font-size: 19px;
    line-height: 30px;
    font-weight: 400;
}

.conf-card__text p:last-child {
    margin-bottom: 0;
}

.conf-card__text strong {
    font-weight: 700;
}

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
    .conferences__cards {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .conf-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 507px;
    }
}

@media (max-width: 840px) {
    .conferences {
        padding: 80px 0 80px;
    }

    .conferences .title-3 {
        margin: 0 0 32px;
    }

    .conf-card__content {
        padding: 24px 20px 28px;
    }

    .conf-card__title {
        font-size: 26px;
        line-height: 32px;
    }

    .conf-card__text p {
        font-size: 17px;
        line-height: 27px;
    }
}
