/* =========================================================
   EVENTS
========================================================= */

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


/* =========================================================
   SECTION 1
========================================================= */

.events-feature {
    position: relative;

    min-height: 520px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background-image:
        url("/images/events/shutterstock_609809297.webp");

    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;

    color: #fff;
}


/* Dark overlay */

.events-feature__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(8, 8, 8, 0.96) 0%,
            rgba(8, 8, 8, 0.86) 30%,
            rgba(8, 8, 8, 0.50) 58%,
            rgba(8, 8, 8, 0.12) 100%
        );
}


/* Make content above overlay */

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


/* Text area */

.events-feature__content {
    max-width: 640px;

    padding: 100px 0;
}


.events-feature__content h2 {
    margin: 0 0 26px;

    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: -0.03em;

    color: #fff;
}


.events-feature__content p {
    max-width: 610px;
text-align: justify;
    margin: 0 0 32px;

    font-size: 15px;
    line-height: 1.9;
    font-weight: 400;

    color: rgba(255, 255, 255, 0.82);
}


/* Button */

.events-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    min-width: 175px;

    padding: 15px 25px;

    border-radius: 100px;

    background: #4e995c;
    color: #fff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.events-btn__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    transition: transform 0.25s ease;
}


.events-btn:hover {
    background: #61ad6e;

    transform: translateY(-2px);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.25);
}


.events-btn:hover .events-btn__arrow {
    transform: translateX(4px);
}


/* =========================================================
   SECTION 2
========================================================= */

.event-detail {
    display: grid;

    grid-template-columns: 50% 50%;

    min-height: 570px;

    background: #111;
}


/* LEFT IMAGE */

.event-detail__media {
    position: relative;

    min-height: 570px;

    overflow: hidden;
}


.event-detail__media img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.8s ease;
}


.event-detail:hover .event-detail__media img {
    transform: scale(1.025);
}


/* subtle overlay */

.event-detail__media::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent 65%,
            rgba(15, 15, 15, 0.35) 100%
        );
}


/* RIGHT SIDE */

.event-detail__content {
    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255, 255, 255, 0.04),
            transparent 35%
        ),
        #121212;

    color: #fff;
}


/* Coffee decorative background */

.event-detail__content::before {
    content: "";

    position: absolute;
    inset: 0;

   

    background-size: cover;
    background-position: center;

    opacity: 0.42;
}

/* ===============================
   HIDDEN EVENT TEXT
================================ */

.events-more-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition:
        max-height .7s ease,
        opacity .4s ease,
        margin .4s ease;

    margin-top: 0;
}

.events-more-text.is-open {
    max-height: 1500px;
    opacity: 1;
    margin-top: 25px;
}

.events-more-text p {
    margin: 0 0 7px;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}
.trust-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #356b43;
    flex-shrink: 0;
}

.trust-icon svg {
    width: 44px;
    height: 44px;
    display: block;
}

/* BUTTON */

.events-btn {
    border: 0;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-top: 28px;

    padding: 15px 27px;

    border-radius: 50px;

    background: #4f9b5c;
    color: #fff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    transition:
        background .25s ease,
        transform .25s ease;
}

.events-btn:hover {
    background: #60aa6c;
    transform: translateY(-2px);
}

.events-btn__arrow {
    font-size: 20px;
    line-height: 1;

    transition: transform .3s ease;
}


/* rotate arrow when opened */

.events-btn.is-open .events-btn__arrow {
    transform: rotate(-90deg);
}
/* Keep text visible */

.event-detail__inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 680px;

    padding: 65px 70px;
}


.event-detail__label {
    display: block;

    margin-bottom: 12px;

    color: #5ca567;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}


.event-detail__content h2 {
    margin: 0;

    font-size: clamp(27px, 2.5vw, 39px);
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.025em;

    color: #fff;
}


.event-detail__line {
    display: block;

    width: 58px;
    height: 3px;

    margin: 24px 0 28px;

    background: #4e995c;

    border-radius: 10px;
}


.event-detail__content p {
    margin: 0 0 19px;
    text-align: justify;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}


.event-detail__content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .events-container {
        width: min(100% - 50px, 1000px);
    }


    .events-feature {
        min-height: 500px;

        background-position: 60% center;
    }


    .events-feature__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8, 8, 8, 0.95) 0%,
                rgba(8, 8, 8, 0.78) 55%,
                rgba(8, 8, 8, 0.25) 100%
            );
    }


    .event-detail__inner {
        padding: 55px 45px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .events-container {
        width: calc(100% - 40px);
    }


    /* FIRST SECTION */

    .events-feature {
        min-height: 560px;

        align-items: flex-end;

        background-position: 67% center;
    }


    .events-feature__overlay {
        background:
            linear-gradient(
                0deg,
                rgba(7, 7, 7, 0.98) 0%,
                rgba(7, 7, 7, 0.85) 55%,
                rgba(7, 7, 7, 0.20) 100%
            );
    }


    .events-feature__content {
        max-width: 100%;

        padding: 120px 0 50px;
    }


    .events-feature__content h2 {
        font-size: 28px;
    }


    .events-feature__content p {
        font-size: 14px;
        line-height: 1.75;
    }


    /* SECOND SECTION */

    .event-detail {
        grid-template-columns: 1fr;
    }


    .event-detail__media {
        min-height: 360px;
    }


    .event-detail__content {
        min-height: auto;
    }


    .event-detail__inner {
        padding: 45px 25px 55px;
    }


    .event-detail__content h2 {
        font-size: 27px;
    }


    .event-detail__content p {
        font-size: 14px;
        line-height: 1.75;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .events-feature {
        min-height: 520px;
    }


    .events-feature__content h2 {
        font-size: 25px;
    }


    .events-btn {
        min-width: 160px;

        padding: 14px 22px;
    }


    .event-detail__media {
        min-height: 300px;
    }


    .event-detail__inner {
        padding: 38px 20px 45px;
    }


    .event-detail__content h2 {
        font-size: 24px;
    }

}