/* ==============================
   EVENT DETAIL PAGE
================================ */

.event-hero {
    background: linear-gradient(135deg, #0A1628 0%, #1B3A8C 100%);
    min-height: 40vh;
    padding: 100px 20px 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.event-hero-inner {
    max-width: 950px;
    margin: auto;
}

.event-hero-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #F5A623;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.event-hero h1 {
    font-family: var(--font-display, inherit);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

/* CONTENT */

.event-detail-section {
    padding: 80px 20px;
    background: #F8FAFD;
}

.event-container {
    max-width: 1200px;
    margin: 0 auto;
}

.event-title {
    font-family: var(--font-heading, inherit);
    font-size: clamp(27px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.3;
    color: #0A1628;
    margin-bottom: 24px;
}

.event-description {
    font-size: 16px;
    line-height: 1.9;
    color: #526071;
    margin-bottom: 42px;
    overflow-wrap: anywhere;
}

.event-description p {
    margin-bottom: 16px;
}

.event-description img {
    max-width: 100%;
    height: auto;
}

.event-description table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

/* FEATURED IMAGE */

.event-featured {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 55px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(10, 22, 40, 0.08);

    display: table;
}

.event-featured img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    border-radius: 10px;
}

/* GALLERY HEADING */

.gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 28px;
}

.gallery-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gallery-accent {
    width: 5px;
    height: 37px;
    border-radius: 5px;
    background: #F5A623;
}

.gallery-heading h2 {
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    color: #0A1628;
    margin: 0;
}

.gallery-count {
    background: #E6EDFC;
    color: #1B3A8C;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 30px;
}

/* GALLERY GRID */

.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.event-gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: none;
    padding: 0;
    border-radius: 14px;
    background: #E8EDF5;
    cursor: pointer;
    display: block;
    box-shadow: 0 5px 20px rgba(10, 22, 40, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}

.event-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.event-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 22, 40, .16);
}

.event-gallery-item:hover img {
    transform: scale(1.08);
}

.event-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 22, 40, .55);
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.event-gallery-item:hover .event-gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255,255,255,.8);
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
}

.event-gallery-item:focus-visible,
.event-lightbox button:focus-visible {
    outline: 3px solid #F5A623;
    outline-offset: 3px;
}

/* LIGHTBOX */

.event-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 9, 22, .97);
    padding: 70px 65px;
}

.event-lightbox.active {
    display: flex;
}

.event-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}

.event-lightbox-close,
.event-lightbox-prev,
.event-lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 27px;
    cursor: pointer;
    transition: background .25s ease;
}

.event-lightbox-close:hover,
.event-lightbox-prev:hover,
.event-lightbox-next:hover {
    background: #1B3A8C;
}

.event-lightbox-close {
    top: 22px;
    right: 25px;
}

.event-lightbox-prev {
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
}

.event-lightbox-next {
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
}

.event-lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(255,255,255,.12);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* CTA SECTION */

.event-cta {
    padding: 85px 20px;
    background: linear-gradient(135deg, #0A1628 0%, #1B3A8C 100%);
    text-align: center;
}

.event-cta-inner {
    max-width: 800px;
    margin: auto;
}

.event-cta h2 {
    font-family: var(--font-display, inherit);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.event-cta p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,.8);
    margin-bottom: 38px;
}

.event-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.event-cta-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .3s ease, background .3s ease;
}

.event-cta-buttons a:hover {
    transform: translateY(-3px);
}

.event-apply-btn {
    background: #F5A623;
    color: #0A1628;
}

.event-explore-btn {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .event-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .event-hero {
        min-height: 280px;
        padding: 80px 18px 55px;
    }

    .event-detail-section {
        padding: 50px 16px 65px;
    }

    .event-description {
        font-size: 15px;
    }

    .event-featured {
        padding: 8px;
        margin-bottom: 40px;
    }

    .event-featured img {
        max-height: 320px;
    }

    .event-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .event-gallery-item {
        border-radius: 10px;
    }

    .gallery-heading {
        margin-bottom: 22px;
    }

    .gallery-count {
        font-size: 12px;
    }

    .event-gallery-overlay {
        display: none;
    }

    .event-lightbox {
        padding: 70px 10px;
    }

    .event-lightbox-prev,
    .event-lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 22px;
        background: rgba(0,0,0,.45);
    }

    .event-lightbox-prev {
        left: 6px;
    }

    .event-lightbox-next {
        right: 6px;
    }

    .event-cta {
        padding: 65px 18px;
    }

    .event-cta p {
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .event-gallery-grid {
        gap: 8px;
    }

    .gallery-heading h2 {
        font-size: 23px;
    }

    .event-cta-buttons a {
        width: 100%;
    }
     .event-featured {
        padding: 6px;
        border-radius: 12px;
    }

    .event-featured img {
        max-height: 280px;
        border-radius: 8px;
    }
}