/* ─── 섹션 타이틀 ────────────────────────────── */
.ke-events-section { padding: 60px 0; }

/* ─── 데스크탑 레이아웃 ─────────────────────── */
.ke-events-wrap {
    display: none;
    height: 514px;
    padding: 0 10px;
}

@media (min-width: 1024px) {
    .ke-events-wrap { display: flex; }
}

/* ─── 좁은 카드 (220px) ─────────────────────── */
.ke-event-narrow {
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    transition: opacity .2s;
}
.ke-event-narrow:hover { opacity: .85; }

.ke-narrow-title {
    border-top: 2px solid #111;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 20px 12px;
    text-align: center;
    width: 100%;
    line-height: 1.4;
}

.ke-narrow-img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    margin-top: auto;
    opacity: .84;
    display: block;
}

/* ─── 피처 카드 (464px) — 호버 오버레이 ──────── */
.ke-event-feature {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
    overflow: hidden;
}

/* 이미지: 기본 상태에서 전체 높이 채움 */
.ke-feature-image {
    width: 100%;
    height: 100%;
}

.ke-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.ke-event-feature:hover .ke-feature-image img {
    transform: scale(1.04);
}

/* 텍스트: 기본 상태에서 위로 숨김 → 호버 시 아래로 슬라이드 */
.ke-feature-text {
    position: absolute;
    top: 0;                  /* bottom → top 으로 변경 */
    left: 0;
    right: 0;
    padding: 36px 40px 40px;
    display: flex;
    flex-direction: column;
    color: #fff;
    background-color: #c0392b;
    transform: translateY(-100%);   /* 100% → -100% 으로 변경 */
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

/* 호버 시 위에서 아래로 슬라이드 인 */
.ke-event-feature:hover .ke-feature-text {
    transform: translateY(0);
}

.ke-feature-heading {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.ke-feature-desc {
    font-size: .875rem;
    margin-top: 20px;
    line-height: 1.6;
}

.ke-feature-btn {
    margin-top: 28px;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 142px;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s;
}
.ke-feature-btn:hover {
    background-color: rgba(255, 255, 255, .15);
    color: #fff;
}

/* ─── 모바일 레이아웃 ────────────────────────── */
.ke-events-mobile { display: block; margin-top: 20px; }

@media (min-width: 1024px) {
    .ke-events-mobile { display: none; }
}

.ke-mobile-card {
    cursor: pointer;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.ke-mobile-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .1); }

.ke-mobile-img-wrap img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    opacity: .84;
    display: block;
}

.ke-mobile-title {
    font-size: .85rem;
    font-weight: 600;
    padding: 10px 8px 6px;
    text-align: center;
}

.ke-mobile-card--feature { border-color: #c0392b; }
.ke-mobile-card--feature .ke-mobile-title { color: #c0392b; }

.ke-mobile-link {
    display: block;
    text-align: center;
    font-size: .8rem;
    color: #c0392b;
    padding: 0 8px 10px;
    text-decoration: none;
}