/* ---------- POP-UP EVENTS ---------- */
/* Used on popups.html, in addition to styles.css. */

.events-section{ padding:44px 0 20px; }
.events-section[hidden], .events-past[hidden]{ display:none; }
.events-section .wrap, .events-past .wrap{ max-width:900px; }

.events-heading{
    font-size:clamp(24px, 3.4vw, 34px); font-weight:800;
    margin-bottom:26px;
}

.event-card{
    display:flex; gap:26px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:2px;
    padding:26px;
    margin-bottom:20px;
}
.event-date{
    flex-shrink:0;
    width:84px; height:84px;
    background:var(--pink); color:var(--ink);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    border-radius:2px;
}
.event-day{
    font-family:'Unbounded', sans-serif;
    font-size:30px; font-weight:800; line-height:1;
}
.event-month{ font-size:13px; font-weight:700; margin-top:5px; }

.event-body{ min-width:0; flex:1; }
.event-img{
    width:100%; max-height:260px; object-fit:cover;
    border-radius:2px; margin-bottom:18px;
}
.event-title{
    font-family:'Unbounded', sans-serif;
    font-size:22px; font-weight:700; line-height:1.25;
    margin-bottom:10px;
    word-break:break-word;
}
.event-when{ font-size:15px; font-weight:600; margin-bottom:6px; }
.event-where{
    font-size:15px; line-height:1.55;
    color:rgba(18,18,18,0.7);
    margin-bottom:14px;
}
.event-desc{
    font-size:15px; line-height:1.7;
    color:rgba(18,18,18,0.75);
    margin-bottom:12px;
}
.event-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.events-btn{
    display:inline-block;
    font-size:14px; font-weight:600;
    padding:11px 18px;
    border:1px solid var(--line); border-radius:2px;
    background:#fff; color:var(--ink);
    transition:border-color 0.2s ease, background 0.2s ease;
}
.events-btn:hover{ border-color:var(--ink); }
.events-btn.is-primary{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.events-btn.is-primary:hover{ background:var(--blue); border-color:var(--blue); }

.events-past{ padding:0 0 30px; }
.events-past h2{ font-size:18px; font-weight:700; margin-bottom:14px; color:rgba(18,18,18,0.7); }
.events-past ul{ list-style:none; }
.events-past li{
    display:flex; gap:20px;
    padding:11px 0;
    border-bottom:1px solid var(--line);
    font-size:14px;
}
.past-date{ flex-shrink:0; width:110px; color:rgba(18,18,18,0.5); }
.past-title{ font-weight:600; }

@media (max-width:640px){
    .event-card{ flex-direction:column; gap:18px; padding:20px 18px; }
    .event-date{ width:72px; height:72px; }
    .event-actions .events-btn{ flex:1 1 100%; text-align:center; }
    .past-date{ width:92px; }
}
