.events-page .events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.events-header {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    text-align: left;
}
.events-header::after {
    content: none !important;
    display: none !important;
}

.events-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--mcbb-gold);
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
}

.events-list-scroll {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
    padding-right: 8px;
    overflow-y: auto;
}

.event-box-link {
    text-decoration: none;
    color: inherit;
}

.event-box {
    display: flex;
    align-items: center;
    background: #1a1a1a; /* matches .content-box in style.css */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    transition: box-shadow 0.2s, background 0.2s;
    cursor: pointer;
}

.event-box:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    background: #23272b;
}

.event-box-image {
    flex: 0 0 auto;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: auto;
}

.event-box-image img {
    height: 80px;
    width: auto;
    border-radius: 4px;
    display: block;
}

.event-box-details {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mcbb-gold);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date {
    font-size: 0.98rem;
    color: #f7f7f7;
    margin-bottom: 0.15rem;
}

.event-venue {
    font-size: 0.95rem;
    color: #d4af37;
    opacity: 0.85;
}

.no-events {
    text-align: center;
    color: #888;
    margin-top: 2rem;
}

/* Event Detail Layout */
.event-detail-header-row {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    text-align: left;
}
.event-detail-back-btn {
    display: inline-block;
    background: none;
    color: var(--mcbb-gold);
    font-family: var(--mcbb-font-main);
    font-size: 1rem;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.2s;
}
.event-detail-back-btn:hover,
.event-detail-back-btn:focus {
    color: #fff;
    text-decoration: underline;
}

.event-detail-table {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto 2rem auto;
    background: #181818;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 2.5rem 2rem;
}

.event-detail-table-wide {
    width: 70vw;
    max-width: 1300px;
}

@media (max-width: 1200px) {
    .event-detail-table-wide {
        width: 95vw;
    }
}

.event-detail-image-cell {
    flex: 0 0 400px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.event-detail-image {
    height: 475px;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.event-detail-image:focus {
    outline: 2px solid var(--mcbb-gold);
}

.event-detail-info-cell {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.event-detail-title {
    font-family: var(--mcbb-font-main);
    font-size: 2rem;
    color: var(--mcbb-gold);
    margin: 0 0 1.2rem 0;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-detail-meta {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.08rem;
    color: #f7f7f7;
    margin-bottom: 1.5rem;
    width: 100%;
}
.event-detail-row {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.event-detail-label {
    font-weight: 600;
    color: var(--mcbb-gold);
    min-width: 80px;
    display: inline-block;
}
.event-detail-value {
    font-weight: 400;
    color: #fff;
}
.event-detail-ticket-link {
    color: var(--mcbb-gold);
    text-decoration: underline;
    font-weight: 600;
}
.event-detail-ticket-link:hover,
.event-detail-ticket-link:focus {
    color: #fff;
}

.event-detail-description-container {
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #23272b;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    box-sizing: border-box;
    margin-top: 1.2rem;
}
.event-detail-description {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.05rem;
    color: #f7f7f7;
    line-height: 1.7;
    word-break: break-word;
}
.event-detail-description p {
    margin: 0 0 1em 0;
}
.event-detail-description ul,
.event-detail-description ol {
    margin: 0 0 1em 1.5em;
}

/* Modal Styles */
.event-image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}
.event-image-modal-content {
    display: block;
    margin: 5vh auto;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.event-image-modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 10001;
    background: none;
    border: none;
    outline: none;
    transition: color 0.2s;
}
.event-image-modal-close:hover,
.event-image-modal-close:focus {
    color: var(--mcbb-gold);
}

@media (max-width: 900px) {
    .event-detail-table {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0.5rem;
        gap: 1.5rem;
    }
    .event-detail-image-cell {
        margin-bottom: 1.5rem;
    }
    .event-detail-description-container {
        max-height: 180px;
    }
    .event-detail-back-bottom {
        max-width: 95vw;
    }
}
@media (max-width: 600px) {
    .event-detail-table {
        padding: 0.5rem 0.1rem;
    }
    .event-detail-image {
        height: 220px;
    }
    .event-detail-description-container {
        max-height: 120px;
        padding: 0.7rem 0.5rem;
    }
}

/* Reduce gap between page-header and first month header */
.page-header-section {
    margin-bottom: 0.3rem !important;
}

/* Month header styling */
.events-month-header {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.4rem;
    color: var(--mcbb-gold);
    margin: 1.2rem 0 0.7rem 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Grid layout for events */
.events-month-grid {
    display: grid;
    grid-template-columns: repeat(3, 420px);
    gap: 20px;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: calc(3 * 420px + 2 * 20px); /* 3 columns + 2 gaps */
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

@media (max-width: 1400px) {
    .events-month-grid {
        grid-template-columns: repeat(2, 420px);
        max-width: calc(2 * 420px + 1 * 20px);
    }
}
@media (max-width: 900px) {
    .events-month-grid {
        grid-template-columns: 1fr;
        max-width: 98vw;
    }
}

/* Make event boxes fill the grid cell */
.event-box-link {
    display: block;
    height: 100%;
}
.event-box {
    width: 100%;
    min-height: 120px;
    box-sizing: border-box;
}

.events-calendar-subscribe {
    text-align: center;
    margin: 2.5rem 0 1.5rem 0;
}
.events-calendar-subscribe a {
    display: inline-block;
    background: var(--mcbb-gold);
    color: #23272b;
    font-family: var(--mcbb-font-main);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.7em 1.6em;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.events-calendar-subscribe a:hover,
.events-calendar-subscribe a:focus {
    background: #fff;
    color: var(--mcbb-gold);
    text-decoration: underline;
}