/* =====================================================
   EVENTS PAGE
   Kelm Academy — same card design as Admissions page
===================================================== */

/* ─── HERO OVERLAY (darkened) ─── */
.kelm-page-title-wrap .kelm-page-title-overlay[style] {
    background: rgba(0, 0, 0, 0.5) !important;
}

/* ─── PAGE LAYOUT ─── */
.events-section{
    background:#f5f5f5;
    padding-bottom:20px;
}
.admissions-section{
    max-width:1280px;
    margin:0 auto;
    padding:70px 40px 90px;
}

/* ─── FILTER BAR ─── */
.program-filter{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    margin-bottom:50px;
}
.program-filter a{
    display:inline-block;
    padding:12px 22px;
    border-radius:999px;
    background:#fff;
    color:#163269;
    font-weight:600;
    text-decoration:none;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
    transition:all .3s ease;
}
.program-filter a:hover,
.program-filter a.active{
    background:#163269;
    color:#fff;
}

/* ─── GRID ─── */
.program-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(350px,1fr));
    gap:35px;
}

/* ─── CARD ─── */
.program-card{
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:all .35s ease;
    opacity:1;
    transform:scale(1);
}
.program-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 50px rgba(0,0,0,.12);
}

.program-image{
    position:relative;
    height:260px;
    overflow:hidden;
}
.program-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .6s ease;
}
.program-card:hover .program-image img{
    transform:scale(1.08);
}
.program-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.55),
        rgba(0,0,0,0)
    );
}
.program-category{
    position:absolute;
    top:18px;
    left:18px;
    z-index:2;
    background:#163269;
    color:#fff;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    padding:8px 14px;
    border-radius:999px;
}

.program-content{
    padding:28px;
    display:flex;
    flex-direction:column;
    flex-grow:1;
}
.program-title{
    font-size:26px;
    font-weight:700;
    color:#163269;
    margin-bottom:15px;
    line-height:1.2;
}
.program-description{
    color:#5b6678;
    line-height:1.8;
    margin-bottom:18px;
    flex-grow:1;
}
.event-meta{
    border-top:1px solid #e7eaf0;
    padding-top:18px;
    margin-top:auto;
    color:#6b7280;
    font-size:14px;
    line-height:1.9;
}
.program-footer{
    margin-top:24px;
}

/* ─── BUTTON ─── */
.program-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:14px 22px;
    border-radius:999px;
    background:var(--ka-primary,#163269);
    color:#fff !important;
    font-weight:600;
    text-decoration:none;
    transition:all .3s ease;
}
.program-btn:hover{
    background:#0f2552;
    transform:translateY(-2px);
}

/* ─── CTA SECTION ─── */
.events-cta{
    background:#fff;
    padding:80px 20px;
    text-align:center;
}
.events-cta-inner{
    max-width:700px;
    margin:0 auto;
}
.events-kicker{
    display:block;
    text-transform:uppercase;
    letter-spacing:2px;
    color:#163269;
    font-weight:700;
    margin-bottom:15px;
}
.events-cta h2{
    margin-bottom:20px;
}
.events-cta p{
    margin-bottom:30px;
    color:#5b6678;
    line-height:1.7;
}

/* ─── RESPONSIVE ─── */
@media(max-width:768px){
    .admissions-section{
        padding:48px 24px 64px;
    }
    .program-grid{
        grid-template-columns:1fr;
        gap:25px;
    }
    .program-title{
        font-size:22px;
    }
    .program-image{
        height:220px;
    }
    .events-cta{
        padding:56px 24px;
    }
}