.event-body {
    position: relative;
    min-height: 100vh;
    background-image: url('../images/woman-child.webp');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 2rem;
    overflow: hidden;
    z-index: 0;
}

.event-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 255, 4, 0.966);
    /* Green overlay */
    z-index: 1;
    /* Lower than content */
}

.event-content-wrapper {
    position: relative;
    z-index: 200;
    /* Ensures content is above the overlay */
}

/* Dark overlay for better text contrast */
.event-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 109, 3, 0.4);
    z-index: 2;
}

.event-body {
    min-height: 100vh;
    padding: 40px 20px;
}

.event-container {
    max-width: 1200px;
    margin: 0 auto;
}

.event-header {
    text-align: center;
    margin-bottom: 50px;
}

.event-header-small {
    font-size: 26px;
    color: #e2cc07;
    margin-bottom: 8px;
    font-weight: 900;
}

.event-header-main {
    font-size: 48px;
    font-weight: 800;
    color: #fafafa;
    line-height: 1.2;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.event-grid-bottom {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.event-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Base styles for the badge itself */
.event-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border-radius: 20px;
    z-index: 3; /* Ensures it's on top of the image */
    
    /* MODIFIED: Increased the vertical offset, blur, and opacity for better visibility */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5); 

    text-transform: uppercase;
    letter-spacing: 0.5px;

    /* PRO-TIP: You can also add a shadow to the text itself for maximum readability */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Green color for upcoming events */
.event-status-badge.status-upcoming {
    background-color: #28a745; /* A positive green */
}

/* Grey color for past events */
.event-status-badge.status-past {
    background-color: #6c757d; /* A neutral grey */
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.event-card-large {
    position: relative;
    height: 350px;
}

.event-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.event-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.event-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: white;
}

.event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    color: #2d8a6b;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.event-date-number {
    font-size: 24px;
    line-height: 1;
    color: #06d85ee6;
}

.event-date-month {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.event-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #fff;
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    opacity: 0.9;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.event-detail-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    color: #ffed4a;
}

.event-card-small {
    padding: 25px;
    height: 140px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.event-card-small .event-date-badge {
    position: static;
    margin: 0;
    flex-shrink: 0;
}

.event-card-small-content {
    flex: 1;
}

.event-card-small .event-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.event-card-small .event-details {
    gap: 15px;
}

.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .event-header-main {
        font-size: 40px;
    }

    .event-grid-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .event-body {
        padding: 30px 15px;
    }

    .event-header-main {
        font-size: 32px;
    }

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

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

    .event-card-large {
        height: 280px;
    }

    .event-card-content {
        padding: 20px;
    }

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

    .event-card-small {
        height: 120px;
        padding: 20px;
    }

    .event-card-small .event-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .event-header-main {
        font-size: 28px;
    }

    .event-card-small {
        flex-direction: row;
        text-align: center;
        height: auto;
        padding: 20px;
    }

    .event-details {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }

    .event-card-large {
        height: 250px;
    }
}
 /*
 * Add a hover effect for event cards that are links.
 * This provides a clear visual cue to the user.
*/
.event-card-is-link {
    text-decoration: none; /* Removes the default blue underline from links */
    color: inherit; /* Ensures text inside the link inherits its normal color */
}

.event-card-is-link:hover {
    transform: translateY(-5px); /* Lifts the card slightly */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Adds a more pronounced shadow */
    cursor: pointer; /* Changes the mouse cursor to a hand icon */
}