/* ════════════════════════════════════════
   EVENTS LISTING PAGE
════════════════════════════════════════ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 48px 0 36px;
}

.filter-btn {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    padding: 10px 22px;
    border-radius: 100px;
    border: 1.5px solid rgba(0, 157, 162, .25);
    background: #fff;
    color: var(--body);
    cursor: pointer;
    transition: all .25s;
    outline: none;
}

.filter-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(0, 157, 162, .06);
}

.filter-btn.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(0, 157, 162, .28);
}

.event-count {
    text-align: center;
    margin-bottom: 36px;
    font-size: 13px;
    color: var(--muted);
}

.event-count strong {
    color: var(--teal);
    font-weight: 600;
}

/* ── Event Cards ── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ev-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all .3s;
}

.ev-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 157, 162, .3);
}

.ev-card.hidden {
    display: none;
}

.ev-thumb {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.ev-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.ev-card:hover .ev-thumb img {
    transform: scale(1.07);
}

.ev-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(17, 14, 67, .75);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .15);
}

.ev-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 14, 67, .7) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: flex-end;
    padding: 18px;
}

.ev-card:hover .ev-overlay {
    opacity: 1;
}

.ev-overlay-label {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ev-overlay-label .ti {
    font-size: 16px;
}

.ev-body {
    padding: 20px 22px 22px;
}

.ev-title {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.ev-meta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ev-meta .ti {
    font-size: 14px;
}

/* ════════════════════════════════════════
   EVENT DETAIL PAGE
════════════════════════════════════════ */
.ev-detail-header {
    padding: 80px 0 56px;
    background: #fff;
}

.ev-detail-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ev-detail-cat-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(0, 157, 162, .1);
    color: var(--teal);
    border: 1px solid rgba(0, 157, 162, .25);
}

.ev-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--teal);
    cursor: pointer;
    transition: gap .2s;
    background: none;
    border: none;
}

.ev-detail-back:hover {
    gap: 10px;
}

.ev-detail-back .ti {
    font-size: 16px;
}

.ev-detail-h {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 400;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 20px;
}

.ev-detail-h em {
    font-style: italic;
    color: var(--pink);
}

.ev-detail-desc {
    font-size: 15px;
    line-height: 1.9;
    color: var(--body);
    max-width: 720px;
}

/* ── Event Detail Gallery ── */
.ev-gallery-sec {
    padding: 64px 0 100px;
    background: var(--light);
}

.ev-gallery-header {
    margin-bottom: 40px;
}

.ev-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ev-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.ev-gallery-item.featured {
    grid-column: span 2;
}

.ev-gallery-item.featured img {
    height: 380px;
}

.ev-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.ev-gallery-item:hover img {
    transform: scale(1.05);
}

.ev-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17, 14, 67, 0);
    transition: background .3s;
}

.ev-gallery-item:hover::after {
    background: rgba(17, 14, 67, .15);
}

.ev-gallery-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 157, 162, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s;
    z-index: 2;
}

.ev-gallery-zoom .ti {
    font-size: 22px;
    color: #fff;
}

.ev-gallery-item:hover .ev-gallery-zoom {
    transform: translate(-50%, -50%) scale(1);
}

/* ── Event Nav Strip ── */
.ev-nav-strip {
    background: var(--navy);
    padding: 40px 0;
}

.ev-nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.ev-nav-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
    transition: background .3s;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.ev-nav-btn:hover {
    background: rgba(0, 157, 162, .15);
}

.ev-nav-btn.next {
    justify-content: flex-end;
    text-align: right;
}

.ev-nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 157, 162, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .3s, border-color .3s;
}

.ev-nav-icon .ti {
    font-size: 22px;
    color: var(--teal);
}

.ev-nav-btn:hover .ev-nav-icon {
    background: var(--teal);
    border-color: var(--teal);
}

.ev-nav-btn:hover .ev-nav-icon .ti {
    color: #fff;
}

.ev-nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    margin-bottom: 6px;
}

.ev-nav-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
}

/* ── Page visibility (JS-driven) ── */
.ev-page {
    display: none;
}

.ev-page.active {
    display: block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ev-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ev-gallery-item:first-child {
        grid-column: span 2;
    }

    .ev-nav-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    .ev-gallery-item.featured{
        grid-column: span 1;
    }
    .ev-gallery-grid {
        grid-template-columns: 1fr;
    }

    .ev-nav-inner {
        grid-template-columns: 1fr;
    }

    .ev-nav-btn.next {
        justify-content: flex-start;
        text-align: left;
    }
}
