/* ── Events 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; }
}

/* ── Events List Section ── */
.events-list-section {
    padding: 60px 20px 80px;
    background-color: #f8fafc;
    min-height: 400px;
}

/* ── Event Card ── */
.event-list-card {
    border: 1px solid #dde6ee;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.event-list-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Image */
.event-list-img-wrapper {
    width: 100%;
    overflow: hidden;
}

.event-list-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.event-list-card:hover .event-list-img {
    transform: scale(1.04);
}

/* Body */
.event-list-body {
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.4;
}

.event-list-excerpt {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.event-list-read-more {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1e88e5;
    border: 1.5px solid #1e88e5;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    width: fit-content;
    margin-bottom: 16px;
    transition: background 0.3s ease, color 0.3s ease;
}

.event-list-read-more:hover {
    background-color: #1e88e5;
    color: #fff;
}

.event-list-date {
    font-size: 0.83rem;
    color: #888;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* ── Empty State ── */
.events-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .events-page-title {
        font-size: 1.8rem;
    }

    .events-list-section {
        padding: 40px 16px 60px;
    }

    .event-list-img {
        height: 180px;
    }
}

/* ── Show More Button ── */
.show-more-btn {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1e88e5;
    background-color: #ffffff;
    border: 2px solid #1e88e5;
    padding: 12px 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.show-more-btn:hover {
    background-color: #1e88e5;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 136, 229, 0.3);
}

/* Make the extra row use proper Bootstrap gutter spacing */
#extra-events {
    margin-top: 1.5rem;
    gap: 0;
}
