/* Latest Events Container */
.latest-events {
    overflow: hidden;
}

.latest-events__top {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-left: -100px;
}

.latest-events__top::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    display: block;
    width: 9999px;
    height: 517px;
    background-color: #ffcd2d;
    pointer-events: none;
}

.latest-events__top-img {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: calc(100% - 450px);
    height: 517px;
    object-fit: cover;
}

.latest-events__top-inner {
    position: relative;
    width: 450px;
    margin-left: auto;
    padding: 112px 0 50px 70px;
}

.latest-events__top-inner::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    display: block;
    width: 9999px;
    height: 662px;
    background-color: #fff6d9;
    pointer-events: none;
}

.latest-events__heading {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2em;
    text-transform: uppercase;
    color: #3d3d3d;
    margin: 0;
}

.latest-events__more-link {
    display: block;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2em;
    color: #750e6d;
    text-decoration: none;
    margin-top: 16px;
}

.latest-events__more-link:hover {
    text-decoration: underline;
    color: #750e6d;
}

.latest-events__cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Event Card */
.latest-events__card {
    background-color: #fcfaf6;
    border-radius: 0px 0px 60px 0px;
    padding: 60px;
    display: flex;
    align-items: flex-start;
    gap: 50px;
    min-height: 519px;
    width: 100%;
    max-width: 1407px;
    text-decoration: none;
}

.latest-events__link:hover {
    text-decoration: none;
    color: inherit;
}

/* Event Image */
.latest-events__image {
    flex-shrink: 0;
    width: 272px;
    aspect-ratio: 272 / 380;
    border-radius: 0px 0px 0px 0px;
    overflow: hidden;
    box-shadow: 20px 20px 20px 0px rgba(153, 102, 0, 0.1);
}

.latest-events__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Event Content */
.latest-events__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 10px 0;
    min-height: 380px;
}

/* Event Header */
.latest-events__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

/* Event Category Badge */
.latest-events__category {
    background-color: #e7b000;
    color: #ffffff;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.2em;
    text-align: center;
    padding: 10px 22px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Event Title */
.latest-events__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.462em;
    color: #750e6d;
    margin: 0;
    text-align: left;
}

/* Event Meta */
.latest-events__meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Meta Item */
.latest-events__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.latest-events__meta-item span {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.417em;
    color: #3e3e3e;
}

/* Icons */
.latest-events__icon {
    flex-shrink: 0;
    width: 28px;
}

.latest-events__swiper {
    display: none;
}

@media (max-width: 1920px) {
    .latest-events__top {
        margin-left: -30px;
    }
}

@media (max-width: 1280px) {
    .latest-events__top {
        margin-left: -20px;
    }

    .latest-events__top::before {
        height: 293px;
    }

    .latest-events__top-img {
        width: calc(100% - 320px);
        height: 293px;
    }

    .latest-events__top-inner {
        width: 320px;
        padding: 64px 0 64px 32px;
    }

    .latest-events__top-inner::before {
        height: 400px;
    }

    .latest-events__heading {
        font-size: 32px;
        line-height: normal;
    }

    .latest-events__more-link {
        font-size: 20px;
        margin-top: 10px;
    }

    .latest-events__cards {
        display: none;
    }

    .latest-events__swiper {
        display: block;
    }

    .latest-events__swiper .swiper {
        margin: 0 -56px;
        padding: 0 56px;
    }

    .latest-events__swiper .swiper-slide {
        height: auto;
    }

    /* Tablet styles for event card */
    .latest-events__card {
        height: 100%;
        gap: 30px;
    }

    .latest-events__image {
        width: 37%;
    }

    .latest-events__content {
        min-height: 399px;
    }

    .latest-events__title {
        font-size: 24px;
    }

    .latest-events__meta-item span {
        font-size: 22px;
    }

    .latest-events__swiper-pagination {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .latest-events__top {
        margin-left: 20px;
    }

    .latest-events__top::before {
        height: 145px;
    }

    .latest-events__top-img {
        width: calc(100% - 240px);
        height: 145px;
    }

    .latest-events__top-inner {
        width: 240px;
        padding: 36px 0 28px 24px;
    }

    .latest-events__top-inner::before {
        height: 294px;
    }

    .latest-events__heading {
        font-size: 28px;
        line-height: normal;
    }

    .latest-events__more-link {
        font-size: 18px;
        margin-top: 8px;
    }

    /* Mobile styles for event card */
    .latest-events__card {
        padding: 25px 25px;
        border-radius: 0px 0px 44px 0px;
        min-height: auto;
    }

    .latest-events__image {
        display: none;
    }

    .latest-events__content {
        min-height: auto;
        gap: 22px;
        padding: 7px 0;
    }

    .latest-events__header {
        gap: 7px;
    }

    .latest-events__category {
        font-size: 18px;
        padding: 7px 18px;
    }

    .latest-events__title {
        font-size: 26px;
        line-height: 1.31em;
        width: 100%;
    }

    .latest-events__meta {
        gap: 15px;
    }

    .latest-events__meta-item {
        gap: 15px;
    }

    .latest-events__meta-item span {
        font-size: 24px;
        line-height: 1.5em;
        font-weight: 300;
        font-family: 'Myriad Pro', Arial, sans-serif;
    }

    .latest-events__icon {
        width: 24px;
    }

    .latest-events__swiper-pagination {
        margin-top: 30px;
    }
}
