/* ========== Events Page Styles ========== */
.events-full-width {
    grid-template-columns: 1fr !important;
}

.events-full-column {
    width: 100% !important;
    max-width: 100% !important;
}

.events-page {
    padding: 40px 0;
}

.events-page h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
}

.event-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--coral-red);
}

.event-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.event-image::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.event-image:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

/* ========== Image Lightbox/Modal ========== */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 107, 107, 0.9);
    transform: rotate(90deg);
}

.lightbox-close i {
    pointer-events: none;
}

.event-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-1);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

.event-date i {
    font-size: 12px;
}

.event-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.event-card:hover .event-content h3 {
    color: var(--coral-red);
}

.event-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.event-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 14px;
    margin: 0;
}

.event-details i {
    color: var(--coral-red);
    font-size: 14px;
    width: 16px;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .events-page h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-image {
        height: 200px;
    }

    .event-content {
        padding: 20px;
    }

    .event-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .events-page {
        padding: 30px 0;
    }

    .events-page h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .event-image {
        height: 180px;
    }

    .event-content {
        padding: 18px;
    }

    .event-content h3 {
        font-size: 18px;
    }

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

    .event-details p {
        font-size: 13px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-close {
        top: -50px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

