/* Events Archive & Single */
.archive-events,
.single-event {
    padding: 2rem 0;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header .page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .event-card {
        flex-direction: column;
    }

    .event-card__content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* Event Card */
.event-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #999;
}

.event-card__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card__image {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 240px;
    height: 240px;
}

.event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-card__image a {
    display: block;
    width: 100%;
    height: auto;
}

.event-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.event-card__title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.event-card__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-card__title a:hover {
    color: #0066cc;
}

.event-card__date,
.event-card__location {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #666;
}

.event-card__date strong,
.event-card__location strong {
    margin-right: 0.5rem;
}

.event-card__description {
    margin: 1rem 0;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

.event-card__link {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-top: auto;
}

.event-card__link:hover {
    background: #0052a3;
}

/* Single Event */
.single-event article {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.single-event .entry-header {
    margin-bottom: 2rem;
}

.single-event .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.event-meta {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.event-meta p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 1.05rem;
}

.event-meta strong {
    color: #333;
}

.entry-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.entry-image img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-footer {
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.back-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #e0e0e0;
    color: #0066cc;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-numbers {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}
