/* Events page — responsive layout */
.page-events { background: #f4f4f7; }

.ev-section { padding: 64px 24px; max-width: 1400px; margin: 0 auto; }
.ev-section--center { text-align: center; }

.ev-label {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: var(--bkm-blue);
    margin-bottom: 8px;
}

.ev-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--bkm-navy);
    margin: 0 0 32px;
    line-height: 1.2;
}

/* About block */
.ev-about {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.ev-about__img {
    flex: 1 1 280px;
    max-width: 420px;
    border-radius: 12px;
    width: 100%;
}

.ev-about__text { flex: 1 1 300px; min-width: 0; }
.ev-about__text p { font-size: 15px; line-height: 1.7; color: var(--bkm-muted); max-width: 640px; }

.ev-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.ev-stat {
    flex: 1 1 100px;
    min-width: 100px;
    background: var(--bkm-navy);
    color: #fff;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
}
.ev-stat strong { display: block; font-size: 1.75rem; }
.ev-stat span { font-size: 13px; opacity: 0.9; }

/* Cards row */
.ev-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.ev-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--bkm-shadow);
    border: 1px solid rgba(8, 35, 92, 0.06);
    transition: box-shadow 0.2s;
}
.ev-card:hover { box-shadow: 0 8px 24px rgba(8, 35, 92, 0.1); }

.ev-card__top {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: var(--bkm-navy);
}
.ev-card__top--light { background: var(--bkm-blue); }
.ev-card__top--gold { background: #c9a227; }

.ev-card__body { padding: 24px; text-align: left; }
.ev-card__body h3 { margin: 0 0 10px; color: var(--bkm-navy); font-size: 1.25rem; }
.ev-card__body p { margin: 0 0 16px; font-size: 14px; color: var(--bkm-muted); line-height: 1.55; }

/* Registration */
.ev-registration {
    background: linear-gradient(rgba(8, 35, 92, 0.75), rgba(8, 35, 92, 0.75)),
        url('/static/images/events/12.png') center/cover no-repeat;
    padding: 64px 24px;
}

.ev-reg-box {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.ev-reg-box__left {
    flex: 1 1 280px;
    background: linear-gradient(135deg, var(--bkm-navy), var(--bkm-blue));
    color: #fff;
    padding: 40px 32px;
}
.ev-reg-box__left h2 { margin: 0 0 16px; font-size: 1.75rem; }
.ev-reg-box__left p { margin: 0; font-size: 15px; line-height: 1.6; opacity: 0.95; }

.ev-reg-box__right { flex: 1 1 300px; padding: 40px 32px; }
.ev-reg-box__right h3 { margin: 0 0 20px; color: var(--bkm-navy); font-size: 1.5rem; }

.ev-reg-box input,
.ev-reg-box select,
.ev-reg-box textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(8, 35, 92, 0.12);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.ev-reg-box button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background: var(--bkm-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Team */
.ev-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.ev-team-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--bkm-shadow);
    border: 1px solid rgba(8, 35, 92, 0.06);
}
.ev-team-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}
.ev-team-card h3 { margin: 16px 0 4px; font-size: 1.1rem; color: var(--bkm-navy); }
.ev-team-card p { margin: 0; font-size: 14px; color: var(--bkm-muted); }

/* Calendar */
.ev-calendar-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--bkm-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.ev-calendar-left { flex: 1 1 300px; min-width: 0; }

.ev-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.ev-cal-nav__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--bkm-navy);
    margin: 0;
    text-align: center;
    flex: 1;
}
.ev-cal-nav__btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(8, 35, 92, 0.15);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--bkm-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.ev-cal-nav__btn:hover { background: #eef1fa; }

.ev-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--bkm-muted);
    text-transform: uppercase;
    padding: 4px 0 8px;
}

.ev-big-event {
    background: linear-gradient(135deg, var(--bkm-navy), var(--bkm-blue));
    padding: 28px;
    border-radius: 12px;
    color: #fff;
}
.ev-big-event .ev-badge {
    display: inline-block;
    background: #fff;
    color: var(--bkm-navy);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.ev-big-event h3 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin: 16px 0 0; }

.ev-event-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 20px;
}
.ev-event-item {
    background: #eef1fa;
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.ev-event-item:hover { background: #dce4ff; }
.ev-event-item--empty {
    cursor: default;
    color: var(--bkm-muted);
    grid-column: 1 / -1;
    text-align: center;
}
.ev-event-item--empty:hover { background: #eef1fa; }

.ev-calendar-right { flex: 1 1 280px; min-width: 0; }
.ev-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.ev-day {
    aspect-ratio: 1;
    min-height: 44px;
    border-radius: 8px;
    background: #eef1fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: clamp(14px, 2.5vw, 18px);
    color: var(--bkm-navy);
    cursor: pointer;
    transition: background 0.2s;
}
.ev-day:hover { background: #dce4ff; }
.ev-day.is-active { background: var(--bkm-blue); color: #fff; }
.ev-day.is-light { background: #6f7fe0; color: #fff; }
.ev-day.is-gold { background: #c9a227; color: #fff; }
.ev-day.has-event { cursor: pointer; font-weight: 700; }
.ev-day--muted {
    background: #f1f5f9;
    color: #cbd5e1;
    cursor: default;
    font-weight: 400;
}

/* Past & downloads */
.ev-past-grid,
.ev-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    text-align: left;
}

.ev-past-card,
.ev-download-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--bkm-shadow);
    border: 1px solid rgba(8, 35, 92, 0.06);
}
.ev-year {
    display: inline-block;
    background: #c9a227;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
}

.ev-download-card .ev-icon {
    width: 64px;
    height: 64px;
    background: var(--bkm-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

/* Event detail overlay (JS) */
#eventDetail { width: 100%; }

.ev-detail-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--bkm-shadow);
    max-width: 1000px;
    margin: 0 auto;
}
.ev-detail-card__hero {
    min-height: 260px;
    background: linear-gradient(rgba(8,35,92,0.55), rgba(8,35,92,0.55)),
        url('/static/images/events/11.png') center/cover;
    padding: 40px 32px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.ev-detail-badge {
    display: inline-block;
    width: max-content;
    padding: 8px 16px;
    background: #c9a227;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.ev-detail-card__hero h2 {
    margin: 0 0 8px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.ev-detail-date { margin: 0; font-size: 1.15rem; opacity: 0.95; }
.ev-detail-card__body { padding: 32px 28px; }
.ev-detail-card__body h3 { color: var(--bkm-navy); margin: 0 0 16px; }
.ev-detail-card__body > p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--bkm-muted);
    margin-bottom: 24px;
}
.ev-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.ev-detail-meta div {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}
.ev-detail-meta i { margin-right: 8px; color: var(--bkm-blue); }
.ev-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ev-flash {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}
.ev-flash--success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.ev-flash--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.ev-empty-note {
    grid-column: 1 / -1;
    color: var(--bkm-muted);
    font-size: 15px;
    padding: 24px;
}

@media (max-width: 768px) {
    .ev-section { padding: 48px 16px; }
    .ev-about { flex-direction: column; }
    .ev-about__img { max-width: 100%; }
    .ev-reg-box__left,
    .ev-reg-box__right { padding: 28px 20px; }
    .ev-calendar-box { padding: 20px; }
    .ev-days { gap: 6px; }
    .ev-day { min-height: 36px; font-size: 13px; }
    .ev-team-card img { height: 220px; }
}

@media (max-width: 480px) {
    .ev-stats { flex-direction: column; }
    .ev-stat { flex: 1 1 auto; }
    .ev-event-list { grid-template-columns: 1fr; }
    .ev-days { grid-template-columns: repeat(7, 1fr); gap: 4px; }
}
