.events-page {
    background: #f1ede4;
    color: #171814;
}

.events-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.events-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    max-height: none;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    padding: 170px 0 82px;
    background: none;
    color: #f8f4ec;
}

.events-hero::before {
    position: absolute;
    inset: 0;
    z-index: -3;
    content: "";
    background-image: url("../images/melidoni-village-hero.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.events-hero::after {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(3, 4, 3, 0.91),
            rgba(3, 4, 3, 0.48) 58%,
            rgba(3, 4, 3, 0.16)
        ),
        linear-gradient(
            180deg,
            rgba(3, 4, 3, 0.18),
            rgba(3, 4, 3, 0.88)
        );
}

.events-eyebrow {
    margin: 0 0 16px;
    color: #d0a45e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.events-hero h1,
.events-heading h2,
.event-card h2,
.events-empty h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
}

.events-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(2.5rem, 4vw, 4.4rem);
    line-height: 0.95;
}

.events-hero > .events-shell > p:last-child {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.7;
}

.events-list-section {
    padding: 92px 0 120px;
}

.events-heading {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 48px;
}

.events-heading h2 {
    margin: 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.04;
}

.events-heading > p {
    margin: 0 0 7px;
    color: #68685f;
    line-height: 1.75;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.event-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #faf8f2;
    border: 1px solid rgba(30, 31, 26, 0.14);
}

.event-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 23px 23px 0 0;
    background: #141611;
}

.event-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-card-media img {
    transform: scale(1.035);
}

.event-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, #25251d, #0e100d 72%);
    color: #d0a45e;
    font-size: 46px;
}

.event-card-content {
    padding: 29px 28px 32px;
}

.event-card time {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #a47633;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.event-card h2 {
    margin: 17px 0 14px;
    font-size: 30px;
    line-height: 1.12;
}

.event-location {
    display: flex;
    gap: 8px;
    margin: 0 0 17px;
    color: #4d5048;
    font-size: 13px;
}

.event-location i {
    color: #b78740;
}

.event-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #66675f;
    font-size: 14px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.event-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    color: #7b5724;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

.event-more:hover {
    color: #171814;
}

.events-empty {
    padding: 78px 28px;
    border: 1px solid rgba(30, 31, 26, 0.15);
    text-align: center;
}

.events-empty > i {
    color: #bd8d47;
    font-size: 38px;
}

.events-empty h2 {
    margin: 20px 0 12px;
    font-size: clamp(29px, 4vw, 42px);
}

.events-empty p {
    max-width: 550px;
    margin: 0 auto;
    color: #68685f;
    line-height: 1.7;
}

.events-footer {
    padding: 30px 0;
    background: #090a09;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.events-footer .events-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.events-footer a {
    color: #e5c386;
    text-decoration: none;
}

@media (max-width: 980px) {
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .events-shell {
        width: min(100% - 32px, 1180px);
    }

    .events-hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    max-height: none;
    padding: 176px 0 62px;
}

.events-hero::before {
    background-position: 58% center;
}

.events-hero::after {
    background:
        linear-gradient(
            180deg,
            rgba(3, 4, 3, 0.30),
            rgba(3, 4, 3, 0.96) 80%
        );
}

    .events-hero h1 {
        font-size: 50px;
    }

    .events-hero > .events-shell > p:last-child {
        font-size: 15px;
    }

    .events-list-section {
        padding: 68px 0 82px;
    }

    .events-heading {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 35px;
    }

    .events-heading h2 {
        font-size: 40px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card-content {
        padding: 25px 22px 28px;
    }

    .event-card {
        border-radius: 14px;
    }

    .event-card-media,
    .event-card-media img,
    .event-card-placeholder {
        border-radius: 13px 13px 0 0;
    }

    .event-card h2 {
        font-size: 28px;
    }

    .events-footer .events-shell {
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .events-hero h1,
    .events-heading h2,
    .events-empty h2 {
        font-size: clamp(2.3rem, 3vw, 3.4rem);
    }
}
