/*======================================
Events Grid
======================================*/

.events-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media(max-width:1024px){
    .events-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:767px){
    .events-grid{
        grid-template-columns:1fr;
        gap:24px;
    }
}

/*======================================
Card
======================================*/

.event-card {
    background: #fff;
    border: 1px solid rgba(21, 50, 31, 0.10);
    border-radius: 4px;
    overflow: hidden;
    transition: .35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.event-card:hover {
    box-shadow: 0 14px 36px rgba(21, 50, 31, .12);
    transform: translateY(-2px);
}
/*======================================
Image
======================================*/

.event-card__image{
    position:relative;
    overflow:hidden;
    aspect-ratio:4/2;
}
.event-card__image a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 17, 11, .18) 0%, rgba(8, 17, 11, .58) 100%);
}
.event-card .event-card__image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.45s ease;
}

.event-card:hover .event-card__image img{
    transform:scale(1.08);
}

/*======================================
Date Badge
======================================*/

.event-card__date {
    position: absolute;
    z-index: 1;
    top: 16px;
    left: 16px;
    background: #15321f;
    color: #ffffff;
    padding: 8px 13px;
    border-radius: 2px;
    text-align: center;
    line-height: 1;
}

.event-card__day {
    color: #fff;
    font-size: 27px;
    font-weight: 600;
    line-height: 1;
    display: block;
    font-family: "Lora", sans-serif;
}

.event-card__month {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: block;
    margin-top: 3px;
    color: #b8c0b8;
}

/*======================================
Badge
======================================*/

.event-card__badge {
    position: absolute;
    z-index: 1;
    top: 16px;
    right: 16px;
    background: rgba(14, 26, 19, .75);
    color: #e8e8e0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 2px;
}
/*======================================
Content
======================================*/

.event-card__content {
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-card__title {
    font-size: 20px;
    font-weight: 500;
    color: #15321f;
    margin: 0 0 5px;
    line-height: 1.2;
    font-family: "Lora", sans-serif;
    display: block;
}

.event-card__title a, 
.event-card__title a:hover{
    color: #15321f;
}

/*======================================
Location
======================================*/

.event-card__location{
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 3px;
    color: #6a7a70;
    font-size: 13px;
    line-height: 1.6;
}

.event-card__location svg{
    width:12px;
    height:12px;
    flex:0 0 12px;
    color: #6a7a70;
}

/*======================================
Meta
======================================*/

.event-card__meta{
    display:flex;
    align-items:center;
    gap: 5px;
    margin-bottom: 13px;
    font-size: 13px;
    color: #6a7a3a;
}

/*======================================
Excerpt
======================================*/

.event-card__excerpt {
    font-size: 14.5px;
    line-height: 1.56;
    color: #3a5044;
    margin: 0 0 13px;
    flex: 1;
}

.event-card__excerpt p{
    margin:0;
}

/*======================================
Highlights
======================================*/

.event-card__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 17px;
}

.event-card__chip{
    font-size: 11.5px;
    padding: 4px 11px;
    background: #f0f0f0;
    border: 1px solid rgba(21,50,31,0.10);
    border-radius: 100px;
    color: #3a5044;
}

/*======================================
Footer
======================================*/

.event-card__footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(21, 50, 31, 0.10);
    margin-top: auto;
}

.event-card__status {
    color: #1f6d45;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

/*======================================
Button
======================================*/

.event-card__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6a7a3a;
    font-size: 13px;
    font-weight: 600;
    transition: .3s;
}

.event-card__button::after{
    content:"→";
    transition:.3s;
}

.event-card__button:hover{
    color:#1f6d45;
}

.event-card__button:hover::after{
    transform:translateX(4px);
}

/*======================================
Pagination
======================================*/

.events-pagination{
    grid-column:1/-1;
    display:flex;
    justify-content:center;
    margin-top:40px;
}

.events-pagination .page-numbers{
    width:42px;
    height:42px;
    border-radius:50%;
    border:1px solid #ddd;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 5px;
    text-decoration:none;
    color:#333;
    transition:.3s;
}

.events-pagination .current,
.events-pagination .page-numbers:hover{
    background:#1f6d45;
    border-color:#1f6d45;
    color:#fff;
}

/*======================================
Empty
======================================*/

.events-empty{
    grid-column:1/-1;
    text-align:center;
    padding:80px 20px;
    background:#fafafa;
    border-radius:20px;
    border:1px dashed #ddd;
}

.events-empty p{
    margin:0;
    font-size:18px;
    color:#666;
}
.rp-gallery img {
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 2px !important;
    transition: transform .4s ease;
    width: 100%;
}
/*======================================
Responsive
======================================*/

@media(max-width:991px){

    .event-card__content{
        padding:22px;
    }

    .event-card__title{
        font-size:24px;
    }

}

@media(max-width:767px){

    .event-card__title{
        font-size:22px;
    }

    .event-card__footer{
        flex-direction:column;
        align-items:flex-start;
        gap:16px;
    }

}