/* ════════════════════════════════════════════
   Event Detail Page — event-detail.css
   ════════════════════════════════════════════ */

/* ── Cover Banner ── */
.cover-wrapper {
    position: relative;
    width: 100%;
}

.cover-wrapper img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 32, 39, 0.72) 0%, rgba(44, 83, 100, 0.45) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 48px;
}

.events-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.events-page-subtitle {
    font-size: 0.95rem;
    color: #cde8f5;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .cover-overlay        { padding: 0 24px; }
    .events-page-title    { font-size: 1.4rem; }
    .events-page-subtitle { font-size: 0.85rem; }
    .cover-wrapper img    { max-height: 150px; }
}

@media (max-width: 480px) {
    .events-page-title { font-size: 1.15rem; }
    .cover-wrapper img { max-height: 120px; }
}

/* ── Page Wrapper ── */
.event-detail-section {
    background-color: #f8fafc;
    padding: 60px 0 80px;
    min-height: 60vh;
}

/* ── Breadcrumb ── */
.event-breadcrumb {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 28px;
}

.event-breadcrumb a {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 500;
}

.event-breadcrumb a:hover {
    text-decoration: underline;
}

.event-breadcrumb span {
    margin: 0 6px;
    color: #bbb;
}

/* ── Article Card ── */
.event-detail-card {
    background: #ffffff;
    border: 1px solid #dde6ee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ── Hero Image ── */
.event-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* ── Article Body ── */
.event-detail-body {
    padding: 36px 40px 40px;
}

@media (max-width: 768px) {
    .event-detail-body { padding: 24px 20px 28px; }
}

/* Meta row: date + category badge */
.event-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.event-meta-date {
    font-size: 0.82rem;
    color: #888;
    font-family: Arial, sans-serif;
}

.event-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: #e3f2fd;
    color: #1e88e5;
    border-radius: 4px;
    padding: 3px 10px;
}

/* Title */
.event-detail-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a1a;
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.35;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .event-detail-title { font-size: 1.4rem; }
}

/* Divider */
.event-divider {
    border: none;
    border-top: 2px solid #e8f0fb;
    margin: 0 0 28px;
}

/* ── Description / Rich Text Area ── */
.event-description {
    font-size: 0.97rem;
    color: #333;
    line-height: 1.85;
    font-family: Arial, sans-serif;
}

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

.event-description h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: Georgia, serif;
    margin: 32px 0 12px;
}

.event-description ul,
.event-description ol {
    padding-left: 22px;
    margin-bottom: 18px;
}

.event-description li {
    margin-bottom: 6px;
}

.event-description blockquote {
    border-left: 4px solid #1e88e5;
    padding: 12px 20px;
    background: #f0f7ff;
    border-radius: 0 6px 6px 0;
    color: #2c5364;
    font-style: italic;
    margin: 24px 0;
}

/* ── Inline / full-width image inside article ── */
.event-inline-img {
    width: 100%;
    border-radius: 8px;
    margin: 28px 0;
    object-fit: cover;
    display: block;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
}

.event-inline-img.half {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
}

/* ── Photo Gallery Grid ── */
.event-gallery-section {
    margin-top: 40px;
}

.event-gallery-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: Georgia, serif;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f0fb;
}

.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.event-gallery-grid img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 576px) {
    .event-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-gallery-grid img {
        height: 140px;
    }
}

/* ── Video Section ── */
.event-video-section {
    margin-top: 40px;
}

.event-video-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: Georgia, serif;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f0fb;
}

.event-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.event-video-wrapper iframe,
.event-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* ── Back Button ── */
.event-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1e88e5;
    border: 1.5px solid #1e88e5;
    background: transparent;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: 40px;
    width: fit-content;
}

.event-back-btn:hover {
    background-color: #1e88e5;
    color: #ffffff;
}

/* ── Lightbox Overlay ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.lightbox-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.lightbox-close:hover {
    color: #90caf9;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    transition: background 0.2s;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}
