/* ============================================================
   EventKalender Pro v4 – Slider
   ============================================================ */

.ek-slider-wrap {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Viewport ── */
.ek-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.ek-slider-track {
    display: flex;
    transition: transform .45s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}

/* ── Slide Card ── */
.ek-slide {
    flex-shrink: 0;
    width: calc(33.333% - 12px);
    margin-right: 18px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eaeff5;
    box-shadow: 0 2px 16px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow .25s, transform .25s;
}
.ek-slide:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.10);
    transform: translateY(-4px);
}

/* ── Image ── */
.ek-slide-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.ek-slide-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .4s ease;
}
.ek-slide:hover .ek-slide-img-wrap img { transform: scale(1.04); }

.ek-slide-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    flex-shrink: 0;
}
.ek-slide-img-placeholder svg {
    width: 40px; height: 40px;
    opacity: .3;
    color: #94a3b8;
}

.ek-slide-cat {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

/* ── Body ── */
.ek-slide-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ek-slide-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ek-slide-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
}
.ek-slide-loc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #94a3b8;
}

.ek-slide-subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
}

.ek-slide-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
}

.ek-slide-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Read More Link (not a button) ── */
.ek-slide-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    margin-top: 8px;
    text-decoration: none;
    align-self: flex-start;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: gap .15s, color .15s;
}
.ek-slide-link:hover {
    gap: 8px;
    color: #1d4ed8;
}
.ek-slide-link svg {
    transition: transform .15s;
    flex-shrink: 0;
}
.ek-slide-link:hover svg { transform: translateX(3px); }

/* ── Navigation Arrows ── */
.ek-slider-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 2px;
}
.ek-slider-arrows {
    display: flex;
    gap: 8px;
}
.ek-slider-prev,
.ek-slider-next {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #475569;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.ek-slider-prev:hover,
.ek-slider-next:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    transform: scale(1.05);
}
.ek-slider-prev:disabled,
.ek-slider-next:disabled {
    opacity: .3;
    cursor: default;
    transform: none;
}
.ek-slider-prev:disabled:hover,
.ek-slider-next:disabled:hover {
    background: #fff;
    border-color: #e2e8f0;
    color: #475569;
}

/* ── Dots ── */
.ek-slider-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.ek-slider-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s, width .2s;
}
.ek-slider-dot.active {
    background: #2563eb;
    width: 20px;
    border-radius: 3px;
}

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.ek-slider-modal {
    position: fixed; inset: 0; z-index: 99999;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.ek-slider-modal.open { display: flex; }
.ek-slider-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(5px);
    animation: eksl-fade .2s;
}
@keyframes eksl-fade { from{opacity:0} to{opacity:1} }

.ek-slider-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 18px;
    max-width: 700px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,.2);
    animation: eksl-up .25s cubic-bezier(.22,.68,0,1.2);
}
@keyframes eksl-up {
    from { opacity:0; transform:translateY(30px) scale(.97); }
    to   { opacity:1; transform:none; }
}

.ek-slider-modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: rgba(0,0,0,.12); border: none;
    width: 32px; height: 32px; border-radius: 50%;
    font-size: 18px; cursor: pointer; color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s; font-family: inherit; line-height: 1;
}
.ek-slider-modal-close:hover { background: rgba(0,0,0,.28); }

.ek-slider-modal-hero {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
}
.ek-slider-modal-hero img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.ek-slider-modal-content { padding: 28px 32px 32px; }
.ek-slider-modal-subtitle {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: #94a3b8; margin-bottom: 6px;
}
.ek-slider-modal-title {
    font-size: 26px; font-weight: 800;
    color: #1e293b; margin: 0 0 18px; line-height: 1.2;
}
.ek-slider-modal-meta {
    display: flex; flex-direction: column; gap: 7px;
    margin-bottom: 22px; padding-bottom: 22px;
    border-bottom: 1px solid #f1f5f9;
}
.ek-slider-modal-meta-row {
    display: flex; align-items: center; gap: 9px;
    font-size: 14px; color: #475569;
}
.ek-slider-modal-meta-row svg { color: #2563eb; flex-shrink: 0; }
.ek-slider-modal-body-content {
    font-size: 15px; line-height: 1.8; color: #374151;
}
.ek-slider-modal-body-content img {
    max-width: 100%; border-radius: 10px; margin: 14px 0;
}
.ek-slider-modal-body-content h2,
.ek-slider-modal-body-content h3 { color: #1e293b; margin-top: 28px; }
.ek-slider-modal-body-content p { margin: 0 0 14px; }
.ek-slider-modal-actions { margin-top: 24px; }
.ek-slider-modal-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: #2563eb; color: #fff;
    padding: 11px 24px; border-radius: 10px;
    font-size: 14px; font-weight: 700;
    text-decoration: none; border: none; cursor: pointer;
    font-family: inherit; transition: background .15s, transform .1s;
}
.ek-slider-modal-btn:hover { background: #1d4ed8; transform: translateY(-1px); color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .ek-slide { width: calc(50% - 9px); }
}
@media (max-width: 580px) {
    .ek-slide { width: 100%; margin-right: 0; }
    .ek-slider-modal-panel { border-radius: 18px 18px 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-height: 90vh; max-width: 100%; }
    .ek-slider-modal { align-items: flex-end; padding: 0; }
    .ek-slider-modal-content { padding: 20px; }
}
