/* Our Events section — Bootstrap grid on desktop, Slick carousel below 768px */
.exl-events {
    overflow: hidden;
    padding: 60px 0 58px;
    background: linear-gradient(112deg, #f5eeeb 0%, #eee5e1 56%, #9ba4b2 100%);
}

.exl-events .exl-shell {
    padding-right: 68px;
    padding-left: 68px;
}

.exl-events-heading {
    margin-bottom: 38px;
}

.exl-events-rule {
    display: block;
    width: 120px;
    height: 4px;
    margin-bottom: 20px;
    background: #ff4b0b;
}

.exl-events-heading h2 {
    margin: 0;
    color: #1b3458;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.exl-events-heading h2 span {
    color: #ff4b0b;
}

.exl-events-all-top {
    margin-bottom: 2px;
    padding: 9px 23px;
    border: 1px solid #284566;
    border-radius: 24px;
    color: #284566;
    font-size: 13px;
    line-height: 1.2;
    text-transform: uppercase;
}

.exl-events-all-top:hover {
    background: #284566;
    color: #fff;
}

/* Desktop: plain Bootstrap row/col grid, 3 cards in one row, no slider */
.exl-events-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.exl-event-card {
    display: flex;
    height: 100%;
    min-height: 500px;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    padding: 0;
    width: 100%;
}

.exl-event-image {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    background: #d8dadd;
    max-height: 220px;
}

.exl-event-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exl-event-date {
    align-items: center;
    background: var(--exl-white);
    border-radius: 6px;
    color: #1b3458;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    min-height: 72px;
    position: absolute;
    right: 12px;
    text-transform: uppercase;
    top: 12px;
    width: 68px;
}

.exl-event-date strong {
    color: #ff4b0b;
    font-size: 40px;
    font-weight: 700;
    line-height: 38px;
}

.exl-event-date span {
    margin-top: 3px;
    font-size: 15px;
    font-weight: 500;
}

.exl-event-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 32px;
    color: #384D6A;
}

.exl-event-type {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: #ff4b0b;
    font-size: 14px;
    font-weight: 500;
}

.exl-event-type i {
    width: 1px;
    height: 18px;
    background: #aab3bd;
}

.exl-event-content h3 {
    margin: 0 0 16px;
    color: #001632;
    font-size: 28px;
    font-weight: 700;
    line-height: 30px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.exl-event-description {
    color: #384D6A;
    font-size: 18px;
    line-height: 18px;
    font-weight: 400;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exl-event-meta {
    align-items: center;
    color: #64768C;
    display: flex;
    font-size: 12px;
    font-weight: 400;
    gap: 7px;
    line-height: 16px;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.exl-event-meta strong {
    font-weight: 700;
}

.exl-event-actions {
    margin-top: auto;
}

.exl-event-register {
    align-items: center;
    background: linear-gradient(100deg, #ff4b0b, #ff761c);
    border-radius: 28px;
    border: 1px solid #ff4b0b;
    color: #fff;
    display: inline-flex;
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    margin-right: 0;
    min-height: 44px;
    text-transform: uppercase;
}

.exl-event-register:hover {
    background: #fff;
    color: #ff4b0b;
    border: 1px solid #ff4b0b;
}

.exl-event-calendar {
    display: inline-flex;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ff4b0b;
    border-radius: 50%;
    color: #ff4b0b;
}

a.exl-event-calendar:hover {
  background: #ff4b0b;
}

a.exl-event-calendar:hover svg path {
  fill: var(--exl-white);
}

.exl-event-calendar svg {
    width: 25px;
    height: 25px;
    fill: none;
}

.heading-mark {
  background: linear-gradient(90deg, #F74D0C 0%, #FFA82B 100%);
  height: 4px;
  margin: 0 0 20px;
  width: 100px;
}

/* Pagination lines + "view all" link, mobile only */
.exl-events-dots,
.exl-events-all-bottom {
    display: none;
}

@media (max-width: 767.98px) {
    .exl-events {
        padding: 40px 0 70px;
        background: linear-gradient(112deg, #f5eeeb 0%, #eee5e1 58%, #d2c9c7 100%);
    }

    .exl-events .exl-shell {
        padding: 0 0 0 20px;
    }

    .exl-events-heading {
        margin-bottom: 32px;
    }

    .exl-events-rule {
        width: 120px;
        height: 3px;
        margin-bottom: 30px;
    }

    .exl-events-heading h2 {
        font-size: 36px;
        line-height: 30px;
    }

    .heading-mark {
        height: 2px;
        width: 68px;
    }

    .exl-events-all-top {
        display: none;
    }

    /* Slick-driven slider: one card per slide, 20px gap between slides */
    /* Grid must give way to Slick's own inline widths, or slides blow out to the content width */
    .exl-events-track.slick-initialized {
        display: block;
        margin: 0;
    }

    .exl-events-track.slick-initialized .slick-list {
        overflow: visible;
    }

    .exl-events-track.slick-initialized .slick-slide {
        height: auto;
        padding: 0;
    }

    .exl-events-track.slick-initialized .slick-slide > div {
        height: 100%;
    }

    .exl-event-card {
        border-radius: 14px;
        width: 100%;
        max-width: none;
        margin-right: 0;
        min-height: 488px;
    }

    .exl-event-date {
        top: 10px;
        right: 10px;
        width: 50px;
        min-height: 58px;
        border-radius: 6px;
    }

    .exl-event-date strong {
      font-size: 28px;
      line-height: 30px;
    }

    .exl-event-date span {
      font-size: 14px;
      line-height: 16px;
    }

    .exl-event-content {
        padding: 32px 24px;
    }

    .exl-event-type {
        gap: 8px;
        margin-bottom: 25px;
        font-size: 14px;
        line-height: 16px;
        font-weight: 700;
    }

    .exl-event-content h3 {
        margin-bottom: 10px;
        font-size: 20px;
        line-height: 22px;
    }

    .exl-events-all-top {
        display: none;
    }

    .exl-event-description {
      font-size: 16px;
    }

    .exl-events-dots {
        display: flex;
        gap: 10px;
        margin-top: 32px;
    }

    .exl-events-dots button {
        background: transparent;
        border: 1.5px solid rgba(135, 169, 207, 0.44);
        border-width: 0 0 1.5px 0;
        height: 1.5px;
        padding: 15px 0 0 0;
        transition: background-color 180ms ease, transform 180ms ease;
        width: 28px;
    }

    .exl-events-dots button.active {
        border: 1.5px solid #ff500a;
        border-width: 0 0 1.5px 0;
        height: 1.5px;
    }

    .exl-events-all-bottom {
        display: block;
        margin-top: 18px;
        text-align: center;
        color: #1b3458;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
    }
    .exl-events-track:not(.slick-initialized) {
        grid-template-columns: 1fr;
    }
    .slick-initialized .slick-slide {
        display: flex;
    }
    .slick-track {
        display: flex;
        gap: 16px;
    }
}
