/*
|--------------------------------------------------------------------------
| Emmaus Upcoming Events
|--------------------------------------------------------------------------
| Appearance:
| Elegant vertical event board
|--------------------------------------------------------------------------
*/


/* ================================================================
   BOARD
   ================================================================ */

.upcoming-events {
    position: absolute;

    top: 600px;
    right: 0.8%;

    width: 350px;
    height: 450px;

    z-index: 60;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.97),
            rgba(248,244,232,0.97)
        );

    border: 2px solid #D4AF37;
    border-radius: 18px;

    box-shadow:
        0 12px 35px rgba(0,0,0,0.20),
        0 2px 8px rgba(0,0,0,0.10);

    overflow: hidden;
}


/* ================================================================
   HEADER
   ================================================================ */

.upcoming-events__header {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    background:
        linear-gradient(
            135deg,
            #003366,
            #002244
        );

    border-bottom: 3px solid #D4AF37;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.18);

    position: relative;
    z-index: 5;
}


.upcoming-events__header::before,
.upcoming-events__header::after {
    content: "";

    position: absolute;

    top: 50%;

    width: 55px;
    height: 1px;

    background: #D4AF37;
}


.upcoming-events__header::before {
    left: 20px;
}


.upcoming-events__header::after {
    right: 20px;
}


.upcoming-events__title {
    margin: 0;

    color: #F2D675;

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

    letter-spacing: 0.8px;

    text-align: center;

    text-transform: uppercase;
}


/* ================================================================
   SCROLLING BOARD
   ================================================================ */

.upcoming-events__board {

    position: relative;

    width: 100%;
    height: calc(100% - 72px);

    overflow-y: auto;
    overflow-x: hidden;

    scroll-snap-type: y mandatory;

    scroll-behavior: smooth;

    scrollbar-width: thin;

    scrollbar-color:
        #D4AF37
        rgba(0,51,102,0.12);
}


/* WebKit scrollbar */

.upcoming-events__board::-webkit-scrollbar {
    width: 7px;
}


.upcoming-events__board::-webkit-scrollbar-track {
    background: rgba(0,51,102,0.08);
}


.upcoming-events__board::-webkit-scrollbar-thumb {
    background: #D4AF37;

    border-radius: 10px;
}


/* ================================================================
   EVENT
   ================================================================ */

.upcoming-events__item {

    position: relative;

    width: 100%;
    height: 100%;

    min-height: 100%;

    box-sizing: border-box;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    display: flex;
    flex-direction: column;

    padding: 26px 28px 30px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.98),
            rgba(250,247,238,0.98)
        );

    border-bottom: 1px solid
        rgba(0,51,102,0.10);
}


/* ================================================================
   EVENT DECORATIVE TOP LINE
   ================================================================ */

.upcoming-events__item::before {

    content: "";

    width: 55px;
    height: 3px;

    margin-bottom: 18px;

    background: #D4AF37;

    border-radius: 5px;
}


/* ================================================================
   EVENT TITLE
   ================================================================ */

.upcoming-events__event-title {

    margin: 0 0 10px;

    color: #003366;

    font-size: 25px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: 0.2px;
}


/* ================================================================
   EVENT DATE
   ================================================================ */

.upcoming-events__date {

    margin-bottom: 18px;

    color: #8B6F1D;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.5px;
}


/* ================================================================
   EVENT DESCRIPTION
   ================================================================ */

.upcoming-events__description {

    margin: 0;

    color: #34495E;

    font-size: 15px;

    line-height: 1.65;

    flex: 1;
}


/* ================================================================
   EVENT BUTTON
   ================================================================ */

.upcoming-events__button {

    align-self: flex-start;

    min-height: 44px;

    margin-top: 22px;

    padding:
        10px 20px;

    border: 1px solid #D4AF37;
    border-radius: 8px;

    background: #003366;

    color: #FFFFFF;

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

    cursor: pointer;

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


.upcoming-events__button:hover {

    background: #D4AF37;

    color: #002244;

    transform: translateY(-2px);

    box-shadow:
        0 5px 12px rgba(0,0,0,0.15);
}


.upcoming-events__button:focus-visible {

    outline: 3px solid
        rgba(212,175,55,0.45);

    outline-offset: 3px;
}


/* ================================================================
   ACTIVE EVENT
   ================================================================ */

.upcoming-events__item.is-active {

    /*
    | Kept for JavaScript compatibility.
    |
    | The scrolling board itself controls visibility.
    */

}


/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {

    .upcoming-events__board {
        scroll-behavior: auto;
    }

    .upcoming-events__button {
        transition: none;
    }

}


/* ================================================================
   MOBILE / HOMEPAGE COMPOSITION
   ================================================================ */

/*@media (max-width: 1024px) {

    body.hp-page
    .hp-mobile-composition
    .upcoming-events {

        /*
        | Keep the 1700px composition coordinates.
        */

        top: 350px;
        right: 30px;

        width: 380px;
        height: 450px;

    }

}*/