/* Events archive and single-event pages */

.event-archive-hero__eyebrow{
    display:inline-flex;
    margin-bottom:10px;
    padding:6px 12px;
    border:1px solid rgba(255,255,255,.32);
    border-radius:999px;
    color:#fff;
    font-size:12px;
    font-weight:900;
}

.event-archive-section{
    background:#f5f8fc;
}

.event-filters{
    display:grid;
    grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;
    gap:16px;
    align-items:end;
    margin-bottom:32px;
    padding:20px;
    border:1px solid #e4ebf4;
    border-radius:18px;
    background:#fff;
    box-shadow:0 12px 28px rgba(13,52,105,.07);
}

.event-filter-field{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.event-filter-field label{
    color:#062f63;
    font-size:12px;
    font-weight:900;
}

.event-filter-field input,
.event-filter-field select{
    width:100%;
    min-height:44px;
    padding:8px 12px;
    border:1px solid #d9e3ef;
    border-radius:10px;
    background:#fff;
    color:#28384f;
    font:inherit;
}

.event-filter-actions{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:44px;
}

.event-filter-reset{
    color:#6b7a90;
    font-size:12px;
    font-weight:800;
}

.event-filter-reset:hover{
    color:#c99a42;
}

.event-featured-card{
    display:grid;
    grid-template-columns:minmax(320px,1.05fr) minmax(340px,.95fr);
    min-height:390px;
    margin-bottom:42px;
    overflow:hidden;
    border:1px solid #e4ebf4;
    border-radius:24px;
    background:#fff;
    box-shadow:0 18px 42px rgba(13,52,105,.11);
}

.event-featured-card__media{
    position:relative;
    display:block;
    min-height:390px;
    background-position:center;
    background-size:cover;
}

.event-featured-card__media::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(3,22,45,.06),rgba(3,22,45,.34));
}

.event-featured-card__badge{
    position:absolute;
    top:20px;
    right:20px;
    z-index:2;
    display:inline-flex;
    padding:8px 13px;
    border-radius:999px;
    background:#c99a42;
    color:#fff;
    font-size:12px;
    font-weight:900;
    box-shadow:0 8px 20px rgba(0,0,0,.16);
}

.event-featured-card__content{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:36px;
}

.event-featured-card__meta{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-bottom:16px;
}

.event-featured-card__meta span{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:5px 10px;
    border-radius:999px;
    background:#eef4fb;
    color:#062f63;
    font-size:11px;
    font-weight:900;
}

.event-featured-card h2{
    margin:10px 0 12px;
    color:#062f63;
    font-size:30px;
    line-height:1.55;
}

.event-featured-card h2 a{
    color:inherit;
}

.event-featured-card p{
    margin:0 0 22px;
    color:#5f6f84;
    font-size:14px;
    line-height:2;
}

.event-featured-card .small-btn{
    align-self:flex-start;
}

.event-section-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin:0 0 20px;
}

.event-section-heading h2{
    margin:4px 0 0;
    color:#062f63;
    font-size:26px;
}

.event-section-heading__count{
    display:inline-flex;
    min-width:90px;
    height:36px;
    align-items:center;
    justify-content:center;
    padding:0 13px;
    border-radius:18px;
    background:#eaf1f9;
    color:#062f63;
    font-size:12px;
    font-weight:900;
}

.event-card-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
}

.event-card{
    overflow:hidden;
    border:1px solid #e4ebf4;
    border-radius:18px;
    background:#fff;
    box-shadow:0 12px 28px rgba(13,52,105,.08);
    transition:transform .2s ease,box-shadow .2s ease;
}

.event-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 36px rgba(13,52,105,.13);
}

.event-card__image{
    position:relative;
    display:block;
    min-height:210px;
    background-position:center;
    background-size:cover;
}

.event-card__image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(2,18,37,.02),rgba(2,18,37,.28));
}

.event-date-box{
    position:absolute;
    top:16px;
    right:16px;
    z-index:2;
    display:flex;
    width:64px;
    min-height:72px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border-radius:15px;
    background:#fff;
    color:#062f63;
    box-shadow:0 10px 24px rgba(0,0,0,.15);
}

.event-date-box strong{
    font-size:25px;
    line-height:1;
}

.event-date-box small{
    margin-top:6px;
    color:#c99a42;
    font-size:11px;
    font-weight:900;
}

.event-card__body{
    padding:20px;
}

.event-card__topline{
    display:flex;
    min-height:28px;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:9px;
}

.event-category-label{
    display:inline-flex;
    padding:5px 9px;
    border-radius:999px;
    background:#eef4fb;
    color:#062f63;
    font-size:10px;
    font-weight:900;
}

.event-status{
    display:inline-flex;
    padding:5px 9px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
}

.event-status--cancelled{
    background:#fff0f0;
    color:#b42318;
}

.event-status--postponed{
    background:#fff7e5;
    color:#9b6500;
}

.event-card h3{
    margin:0 0 10px;
    color:#062f63;
    font-size:18px;
    line-height:1.65;
}

.event-card h3 a{
    color:inherit;
}

.event-card__details{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:12px;
}

.event-card__details span{
    display:inline-flex;
    padding:4px 8px;
    border-radius:8px;
    background:#f7f9fc;
    color:#64748b;
    font-size:11px;
    font-weight:800;
}

.event-card p{
    min-height:50px;
    margin:0 0 14px;
    color:#6b7a90;
    font-size:12px;
    line-height:1.9;
}

.event-card__link{
    color:#c99a42;
    font-size:12px;
    font-weight:900;
}

.event-pagination{
    margin-top:30px;
}

.event-pagination ul{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    margin:0;
    padding:0;
    list-style:none;
}

.event-pagination a,
.event-pagination span{
    display:inline-flex;
    min-width:38px;
    height:38px;
    align-items:center;
    justify-content:center;
    padding:0 10px;
    border:1px solid #e2e8f0;
    border-radius:10px;
    background:#fff;
    color:#062f63;
    font-weight:900;
}

.event-pagination .current{
    border-color:#c99a42;
    background:#c99a42;
    color:#fff;
}

.event-empty-state{
    padding:52px 24px;
    border:1px dashed #ccd8e7;
    border-radius:18px;
    background:#fff;
    text-align:center;
}

.event-empty-state .dashicons{
    width:48px;
    height:48px;
    color:#c99a42;
    font-size:48px;
}

.event-empty-state h2{
    margin:15px 0 8px;
    color:#062f63;
}

.event-empty-state p{
    margin:0;
    color:#6b7a90;
}

.past-events-section{
    margin-top:52px;
    padding-top:34px;
    border-top:1px solid #dfe7f1;
}

.past-event-list{
    display:grid;
    gap:12px;
}

.past-event-item{
    display:grid;
    grid-template-columns:120px 1fr auto;
    gap:18px;
    align-items:center;
    padding:18px 20px;
    border:1px solid #e4ebf4;
    border-radius:14px;
    background:#fff;
}

.past-event-item time{
    color:#c99a42;
    font-size:12px;
    font-weight:900;
}

.past-event-item h3{
    margin:0 0 4px;
    color:#062f63;
    font-size:15px;
}

.past-event-item h3 a{
    color:inherit;
}

.past-event-item span{
    color:#6b7a90;
    font-size:11px;
}

.past-event-item__link{
    color:#062f63;
    font-size:12px;
    font-weight:900;
}

.single-event-meta{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin:0 0 24px;
}

.single-event-meta__item{
    padding:14px;
    border:1px solid #e4ebf4;
    border-radius:12px;
    background:#f8fbff;
}

.single-event-meta__item strong{
    display:block;
    margin-bottom:4px;
    color:#062f63;
    font-size:11px;
}

.single-event-meta__item span,
.single-event-meta__item a{
    color:#52657c;
    font-size:13px;
    font-weight:800;
}

.single-event-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:22px 0 0;
}

@media(max-width:1000px){
    .event-card-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

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

    .event-featured-card__media{
        min-height:330px;
    }
}

@media(max-width:760px){
    .event-filters{
        grid-template-columns:1fr;
    }

    .event-filter-actions{
        align-items:flex-start;
        flex-direction:column;
    }

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

    .event-featured-card__content{
        padding:24px;
    }

    .event-featured-card h2{
        font-size:23px;
    }

    .event-featured-card__media{
        min-height:260px;
    }

    .event-section-heading{
        align-items:flex-start;
        flex-direction:column;
    }

    .past-event-item{
        grid-template-columns:1fr;
        gap:8px;
    }

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