/* =========================================================
   EVENTS PAGE
========================================================= */

.events-page-section {
    padding: 70px 0 20px;
    background: #EAF7EE;
}

/* =========================================================
   EVENT PAGE SUBTITLE - YELLOW SIDE LINES
========================================================= */

.events-page-heading .sec-subtitle::before,
.events-page-heading .sec-subtitle::after {
    background-color: #F9B900 !important;
    background: #F9B900 !important;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.events-page-heading {
    max-width: 760px;
    margin: 0 auto 55px;
}

.events-page-heading .sec-subtitle {
    color: #08A63C;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.events-page-heading .sec-title {
    margin-top: 10px;
    margin-bottom: 15px;
}

.events-page-description {
    max-width: 650px;
    margin: 0 auto;
    color: #777;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   GRID
========================================================= */

.events-grid {
    row-gap: 0;
}


/* =========================================================
   EVENT CARD
========================================================= */

.event-card {
    height: 100%;
    min-height: 500px;

    background: #fff;

    border: 1px solid #eeeeee;

    border-radius: 18px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.event-card:hover {
    transform: translateY(-8px);

    border-color: rgba(8, 166, 60, 0.25);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   IMAGE
========================================================= */

.event-card-image {
    height: 245px;

    position: relative;

    overflow: hidden;

    background: #f5f5f5;
}


.event-card-image a {
    display: block;

    width: 100%;
    height: 100%;
}


.event-featured-image {
    width: 100% !important;
    height: 100% !important;

    display: block;

    object-fit: cover;

    transition:
        transform 0.6s ease;
}


.event-card:hover .event-featured-image {
    transform: scale(1.06);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.event-card-image::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 80px;

    pointer-events: none;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.30),
        transparent
    );
}


/* =========================================================
   EVENT BADGE
========================================================= */

.event-badge {
    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 3;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 14px;

    background: #08A63C;

    color: #ffffff;

    border-radius: 50px;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}


.event-badge i {
    font-size: 13px;
}


/* =========================================================
   NO IMAGE
========================================================= */

.event-no-image {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #08A63C;

    color: #ffffff;

    font-size: 45px;
}


/* =========================================================
   CONTENT
========================================================= */

.event-card-content {
    flex: 1;

    padding: 25px 26px 24px;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   DATE
========================================================= */

.event-date {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 13px;

    color: #08A63C;

    font-size: 13px;

    font-weight: 600;
}


.event-date i {
    color: #F9B900;

    font-size: 15px;
}


/* =========================================================
   TITLE
========================================================= */

.event-card-title {
    min-height: 58px;

    margin: 0 0 12px;

    font-size: 21px;

    line-height: 1.4;

    font-weight: 700;
}


.event-card-title a {
    color: #222;

    text-decoration: none;

    transition: color 0.25s ease;
}


.event-card-title a:hover {
    color: #08A63C;
}


/* =========================================================
   EXCERPT
========================================================= */

.event-card-excerpt {
    min-height: 54px;

    margin-bottom: 20px;

    color: #777;

    font-size: 14px;

    line-height: 1.8;

    display: -webkit-box;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   CARD FOOTER
========================================================= */

.event-card-footer {
    margin-top: auto;

    padding-top: 18px;

    border-top: 1px solid #eeeeee;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   READ MORE
========================================================= */

.event-read-more {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    color: #08A63C;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition: all 0.3s ease;
}


.event-read-more:hover {
    color: #F9B900;

    gap: 16px;
}


/* =========================================================
   ARROW
========================================================= */

.event-arrow {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: #F9B900;

    color: #ffffff;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


.event-read-more:hover .event-arrow {
    background: #08A63C;

    transform: translateX(3px);
}


/* =========================================================
   EVENT PAGINATION
========================================================= */

.event-pagination {
    margin-top: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.event-pagination li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}


/* =========================================================
   PAGE NUMBER
========================================================= */

.event-pagination li a.page-numbers,
.event-pagination li span.page-numbers {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 1px solid #e5e5e5;

    background: #ffffff;
    color: #222222;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s ease;
}


/* =========================================================
   ACTIVE PAGE
========================================================= */

.event-pagination li span.current {
    background: #08A63C !important;
    border-color: #08A63C !important;
    color: #ffffff !important;
}


/* =========================================================
   NUMBER HOVER
========================================================= */

.event-pagination li a.page-numbers:hover {
    background: #F9B900 !important;
    border-color: #F9B900 !important;
    color: #ffffff !important;

    transform: translateY(-2px);
}


/* =========================================================
   ARROW BUTTONS
========================================================= */

.event-pagination li a.prev,
.event-pagination li a.next,
.event-pagination li span.prev,
.event-pagination li span.next {

    width: 42px !important;
    height: 42px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    border-radius: 50% !important;

    background: #ffffff !important;

    border: 1px solid #F9B900 !important;

    color: #F9B900 !important;

    font-size: 14px;

    text-decoration: none;

    transition: all 0.3s ease;
}


/* =========================================================
   ARROW HOVER
========================================================= */

.event-pagination li a.prev:hover,
.event-pagination li a.next:hover {

    background: #F9B900 !important;
    border-color: #F9B900 !important;

    color: #ffffff !important;

    transform: translateY(-2px);
}


/* =========================================================
   DISABLED ARROW
========================================================= */

.event-pagination li span.disabled {

    background: #ffffff !important;

    border-color: #F9B900 !important;

    color: #F9B900 !important;

    opacity: 0.55;

    cursor: not-allowed;

    transform: none !important;
}


/* =========================================================
   ICON
========================================================= */

.event-pagination .prev i,
.event-pagination .next i {

    font-size: 13px;

    line-height: 1;

}

/* CURRENT PAGE */

.event-pagination li span.current {
    background: #08A63C;

    border-color: #08A63C;

    color: #ffffff;
}


/* HOVER */

.event-pagination li a:hover {
    background: #F9B900;

    border-color: #F9B900;

    color: #ffffff;

    transform: translateY(-2px);
}


/* PREVIOUS / NEXT */

.event-pagination li a.prev,
.event-pagination li a.next {
    width: auto;

    min-width: 42px;

    padding: 0 16px;

    border-radius: 30px;

    gap: 7px;
}


/* =========================================================
   NO EVENTS
========================================================= */

.no-events {
    max-width: 600px;

    margin: 30px auto 0;

    padding: 60px 30px;

    border: 1px solid #eeeeee;

    border-radius: 18px;

    background: #fff;
}


.no-events-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #F9B900;

    color: #ffffff;

    font-size: 28px;
}


.no-events h3 {
    margin-bottom: 10px;

    font-size: 24px;
}


.no-events p {
    margin: 0;

    color: #777;

    line-height: 1.7;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {

    .event-card {
        min-height: 490px;
    }

    .event-card-image {
        height: 230px;
    }

}


@media (max-width: 767px) {

    .events-page-section {
        padding: 70px 0 10px;
    }

    .events-page-heading {
        margin-bottom: 40px;
    }

    .event-card {
        min-height: 0;
    }

    .event-card-image {
        height: 230px;
    }

    .event-card-title {
        min-height: 0;
    }

    .event-card-excerpt {
        min-height: 0;
    }

}


@media (max-width: 575px) {

    .event-card-image {
        height: 220px;
    }

    .event-card-content {
        padding: 22px;
    }

    .event-card-title {
        font-size: 19px;
    }

    .event-pagination ul {
        gap: 5px;
    }

    .event-pagination li a,
    .event-pagination li span {
        width: 38px;
        height: 38px;
    }

}