html,
body {
    max-width: 100%;
    overflow-x: hidden;
}





/* =========================================================
   UPCOMING EVENTS SECTION
========================================================= */

.upcoming-events {

    width: 100%;

    padding-top: 30px;
    padding-bottom: 30px;

    overflow: hidden;

    background: #f8f9fa;

}


/* =========================================================
   SECTION HEADING
========================================================= */

.event-subtitle {

    display: inline-block;

    margin-bottom: 7px;

    color: #dc3545;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

}


.event-title {

    margin-bottom: 10px;

    font-size: 32px;

    font-weight: 700;

}


.event-intro {

    max-width: 750px;

    margin-left: auto;
    margin-right: auto;

    line-height: 1.6;

}


/* =========================================================
   TOOLBAR
========================================================= */

.event-toolbar {

    margin-top: 15px;

}


.event-controls {

    display: flex;

    gap: 6px;

}


/* =========================================================
   CONTROL BUTTONS
========================================================= */

.event-control-btn {

    width: 42px;

    height: 42px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: #dc3545;

    color: #ffffff;

    font-size: 20px;

    line-height: 42px;

    text-align: center;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease;

}


.event-control-btn:hover {

    background: #bb2d3b;

    transform: scale(1.08);

}


.event-control-btn:active {

    transform: scale(0.95);

}


.event-control-btn:disabled {

    opacity: 0.4;

    cursor: not-allowed;

    transform: none;

}



/* =========================================================
   EVENT SCROLL AREA
========================================================= */

.event-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.event-scroll-container::-webkit-scrollbar {
    display: none;
}

.event-scroll-container:active {
    cursor: grabbing;
}

/* =========================================================
   EVENT TRACK
========================================================= */

.event-track {

    display: flex;

    flex-wrap: nowrap;

    gap: 20px;

    width: max-content;

    max-width: none;

    min-width: max-content;

    padding: 5px 3px 25px;

    box-sizing: border-box;

}


/* =========================================================
   EVENT CARD
========================================================= */

.event-card {

    position: relative;

    flex: 0 0 390px;

    width: 390px;

    min-width: 390px;

    max-width: 390px;

    min-height: 360px;

    box-sizing: border-box;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 14px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    scroll-snap-align: start;

}







/* =========================================================
   EVENT DATE
========================================================= */

.event-date {

    flex: 0 0 88px;

    width: 88px;

    min-width: 88px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 15px 8px;

    background: #dc3545;

    color: #ffffff;

    text-align: center;

}


.event-day {

    display: block;

    font-size: 34px;

    font-weight: 800;

    line-height: 1;

}


.event-month {

    display: block;

    margin-top: 8px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.5px;

}


/* =========================================================
   EVENT CONTENT
========================================================= */

.event-content {

    flex: 1 1 auto;

    min-width: 0;

    padding: 20px;

}


.event-card-title {

    margin-top: 10px;

    margin-bottom: 9px;

    color: #212529;

    font-size: 20px;

    font-weight: 700;

    line-height: 1.3;

}


.event-dept {

    margin-bottom: 10px;

    color: #495057;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.5;

}


.event-content hr {

    margin: 12px 0;

    opacity: 0.15;

}


.event-content p {

    margin-bottom: 7px;

    color: #495057;

    font-size: 14px;

    line-height: 1.5;

}


.event-content strong {

    color: #212529;

}


.event-description {

    margin-top: 12px;

    color: #6c757d !important;

    line-height: 1.6 !important;

}


/* =========================================================
   EVENT BADGE
========================================================= */

.event-badge {

    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    background: #fff3cd;

    color: #856404;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.4px;

    text-transform: uppercase;

}


/* =========================================================
   EVENT BUTTON
========================================================= */

.event-btn {

    margin-top: 8px;

    border-radius: 6px;

    font-size: 13px;

    font-weight: 600;

}


/* =========================================================
   EMPTY EVENTS
========================================================= */

.event-empty {

    width: 100%;

    min-width: 100%;

    padding: 60px 20px;

    text-align: center;

    background: #ffffff;

    border-radius: 12px;

}


.event-empty-icon {

    margin-bottom: 10px;

    font-size: 40px;

}


.event-empty h4 {

    margin-bottom: 8px;

    font-weight: 700;

}


.event-empty p {

    margin: 0;

    color: #6c757d;

}


/* =========================================================
   SCROLL HINT
========================================================= */

.event-scroll-hint {

    margin-top: 5px;

    color: #888;

    font-size: 12px;

    text-align: center;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .event-card {

        flex-basis: 360px;

        width: 360px;

        min-width: 360px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .upcoming-events {

        padding-top: 20px;
        padding-bottom: 20px;

    }


    .event-title {

        font-size: 27px;

    }


    .event-intro {

        font-size: 14px;

    }


    .event-card {

        flex-basis: 330px;

        width: 330px;

        min-width: 330px;

    }


    .event-date {

        flex-basis: 75px;

        width: 75px;

        min-width: 75px;

    }


    .event-day {

        font-size: 28px;

    }


    .event-content {

        padding: 16px;

    }


    .event-card-title {

        font-size: 18px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .event-toolbar h5 {

        font-size: 15px;

    }


    .event-card {

        flex-basis: 300px;

        width: 300px;

        min-width: 300px;

    }


    .event-date {

        flex-basis: 68px;

        width: 68px;

        min-width: 68px;

    }


    .event-day {

        font-size: 25px;

    }


    .event-month {

        font-size: 11px;

    }

}