/* Event List Styles */
.event-list {
    margin: 20px 0;
}

/* Event Section Titles */
.event-section {
    margin-bottom: 40px;
}

.event-section-title {
    font-size: 28px;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #0073aa;
    color: #333;
}

.upcoming-events .event-section-title {
    border-bottom-color: #0073aa;
}

.past-events {
    margin-top: 50px;
}

.past-events .event-section-title {
    border-bottom-color: #999;
    color: #666;
}

.past-events .event-item {
    opacity: 0.8;
}

/* Event Items - 2 Column Layout */
.event-item {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.event-thumbnail {
    flex: 0 0 350px;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.event-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.event-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.event-details {
    flex: 1;
    padding: 0;
    min-width: 0;
}

.event-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.event-meta {
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.event-meta-item {
    margin-bottom: 10px;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.event-meta-item:last-child {
    margin-bottom: 0;
}

.event-meta-item strong {
    color: #333;
    display: inline-block;
    min-width: 100px;
}

.event-meta-item a {
    color: #0073aa;
    text-decoration: none;
}

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

.event-content {
    margin-top: 15px;
    line-height: 1.8;
    color: #555;
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 40px;
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 40px;
    right: 20px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
    background: #f44336;
    color: #fff;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .event-section-title {
        font-size: 24px;
    }

    .event-item {
        flex-direction: column;
        padding: 15px;
    }

    .event-thumbnail {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        margin-bottom: 15px;
    }

    .event-title {
        font-size: 20px;
    }

    .event-meta-item {
        font-size: 14px;
    }

    .lightbox-overlay {
        padding: 20px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

/* ================================================
   Monthly Navigation Styles
   ================================================ */

.event-month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 32px;
}

.event-month-nav-btn {
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.event-month-nav-btn:hover {
    color: #3b82f6;
    text-decoration: none;
}

.event-month-current {
    display: inline;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    margin: 0 12px;
}

.event-month-today {
    text-align: center;
    margin-bottom: 20px;
}

.event-month-today-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #3b82f6;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.event-month-today-btn:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}

.event-month-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 15px;
}

/* ================================================
   Simple Style Events
   ================================================ */

.event-simple-item {
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.event-simple-item:last-child {
    border-bottom: none;
}

.event-simple-header {
    margin-bottom: 2px;
}

.event-simple-date {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
    margin-right: 8px;
}

.event-simple-venue {
    color: #2563eb;
    text-decoration: underline;
    font-size: 15px;
}

.event-simple-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.event-simple-content {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    padding-left: 16px;
}

.event-simple-content p {
    margin: 1px 0;
}

/* ================================================
   Pagination Styles
   ================================================ */

.event-pagination {
    margin-top: 32px;
    text-align: center;
}

.event-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.event-pagination a.page-numbers:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
    text-decoration: none;
}

.event-pagination span.page-numbers.current {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.event-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #9ca3af;
}