/* ======================
   General body
====================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f3f4f6;
    color: #111;
}

/* ======================
   Header
====================== */
header {
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: #11b09b;
    color: white;
}

header h1 { 
    font-size: 2rem; 
    font-weight: 800; 
    margin: 0; 
}

header p { 
    margin: 0.25rem 0; 
    font-size: 0.875rem; 
}

header a {
    display: inline-block;
    background-color: white;
    color: #11b09b;
    padding: 0.5rem 1.25rem;
    margin-top: 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
}

/* ======================
   Main
====================== */
main { 
    max-width: 1200px; 
    margin: auto; 
    padding: 1.5rem; 
}

h2 { 
    font-size: 1.75rem; 
    font-weight: 700; 
    text-align: center; 
    margin: 2rem 0; 
    color: #11b09b; 
}

/* ======================
   Filters
====================== */
form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

select {
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* ======================
   Event Box
====================== */
article {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    padding: 1.5rem;
    animation: fadeIn 0.6s ease-in-out;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.25rem 0 0.75rem 0;
    color: #11b09b;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    color: #11b09b;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.date { 
    font-size: 0.875rem; 
    color: #6b7280; 
    margin-bottom: 1.5rem; 
}

/* ======================
   ✅ IMAGES (FIXED)
====================== */
.event-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* 2 images per row on laptop */
    gap: 1rem;
    margin-bottom: 2rem;
}

.event-images a {
    display: block;
    width: 100%;
    height: 300px;          /* FIXED equal height */
    overflow: hidden;
    border-radius: 0.75rem;
    border: 2px solid #11b09b;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.event-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Proper cropping */
    display: block;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.event-images img:hover {
    transform: scale(1.05);
}

/* ======================
   Lightbox
====================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.lightbox:target { 
    display: flex; 
}

.lightbox img {
    width: 95%;
    max-width: 1200px;
    height: auto;
    border-radius: 0.75rem;
}

.lightbox a.close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    text-decoration: none;
}

/* ======================
   Description Box
====================== */
.event-description {
    max-width: 800px;
    
    background-color: #f9fafb;
    padding: 1.5rem;
    border-left: 6px solid #11b09b;
    border-radius: 1rem;
    text-align: justify;
}

.event-description h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #11b09b;
}

.event-description p {
    line-height: 1.6;
    color: #374151;
}

/* ======================
   Footer
====================== */
footer {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    padding: 1.5rem 1rem;
}

/* ======================
   Animation
====================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================
   📱 Mobile Responsive
====================== */
@media (max-width: 768px) {

    h3 { 
        font-size: 1.25rem; 
    }

    .event-meta { 
        font-size: 0.8rem; 
        flex-direction: column; 
        gap: 0.25rem; 
    }

    .date { 
        font-size: 0.8rem; 
    }

    .event-description { 
        padding: 1rem; 
    }

    /* ✅ 1 image per row on mobile */
    .event-images {
        grid-template-columns: 1fr;
    }

    .event-images a {
        height: 220px;
    }
}
