/* ── 히어로 ── */
.event-hero {
    position: relative;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 40%, #c7d2fe 100%);
    padding: 80px 0 100px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0;
}
.event-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(99,102,241,.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(79,70,229,.10) 0%, transparent 45%);
    pointer-events: none;
}
.hero-badge-ev {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(99,102,241,.12);
    color: #4338ca;
    border: 1px solid rgba(99,102,241,.2);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.event-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 18px;
    line-height: 1.2;
}
.event-hero h1 em { color: #4f46e5; font-style: normal; }
.event-hero p { font-size: 1.1rem; color: #4338ca; max-width: 560px; margin: 0 auto 36px; line-height: 1.8; opacity: .8; }
.hero-stats { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero-stat { background: #fff; border: 1px solid rgba(99,102,241,.15); border-radius: 14px; padding: 14px 24px; box-shadow: 0 4px 16px rgba(99,102,241,.08); }
.hero-stat-num { font-size: 1.5rem; font-weight: 900; color: #4f46e5; line-height: 1; }
.hero-stat-label { font-size: .78rem; color: #6366f1; margin-top: 4px; font-weight: 600; }
.hero-deco { position: absolute; border-radius: 50%; opacity: .12; pointer-events: none; }
.hero-deco-1 { width:300px; height:300px; background:#6366f1; top:-80px; right:-60px; }
.hero-deco-2 { width:180px; height:180px; background:#4f46e5; bottom:40px; left:-40px; }
.hero-wave { position: absolute; bottom: -2px; left: 0; width: 100%; line-height: 0; }

/* ── 카드 그리드 ── */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
}
.event-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.event-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12); }
.event-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #eef2ff, #c7d2fe);
    position: relative;
    overflow: hidden;
}
.event-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.event-card:hover .event-thumb img { transform: scale(1.05); }
.event-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #c7d2fe);
}
.event-thumb-placeholder i { font-size: 3rem; color: #a5b4fc; }

.ev-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.status-open-ev { background: #4f46e5; }
.status-wait-ev { background: #64748b; }
.status-closed-ev { background: #ef4444; }

.applied-overlay-ev {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(1px);
}
.applied-badge-ev {
    background: rgba(255,255,255,.92);
    color: #4f46e5;
    border-radius: 50px;
    padding: 7px 18px;
    font-size: .84rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    border: 1px solid rgba(255,255,255,.6);
}
.ev-applied-bar {
    background: #e0e7ff;
    color: #3730a3;
    text-align: center;
    padding: 9px;
    font-size: .82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-top: 1px solid #c7d2fe;
}

.ev-body { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.ev-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ev-info { font-size: .9rem; color: #475569; margin-bottom: 7px; display: flex; align-items: center; gap: 9px; }
.ev-info i { width: 16px; text-align: center; color: #a5b4fc; }

.ev-progress { margin-top: auto; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.progress-text { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: #475569; }
.progress-bar-bg { width: 100%; height: 7px; background: #e2e8f0; border-radius: 10px; overflow: hidden; }
.progress-bar-fill-ev { height: 100%; background: #4f46e5; border-radius: 10px; }

@media (max-width: 768px) {
    .event-hero h1 { font-size: 2.2rem; }
    .event-grid { grid-template-columns: 1fr; }
}
