/*
 * ===================================================================
 * EEEmpire Custom Styles for Homepage Event Module
 * ===================================================================
 */

/* 1. Main Grid Container */
/* This turns the container into a responsive grid. */
.upcoming-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates a 3-column grid */
    gap: 30px; /* Adjust the space between grid items */
    margin-top: 20px;
}

/* 2. Individual Event Item Styling */
/* This styles each event card. */
.event-item {
    text-align: center; /* Centers the text inside the card */
    border: 1px solid #f0f0f0; /* Optional: adds a subtle border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Optional: adds a soft shadow */
    padding-bottom: 20px;
    background-color: #fff;
    transition: transform 0.3s ease;
}
.event-item:hover {
    transform: translateY(-5px); /* Optional: lifts the card on hover */
}

/* 3. Event Image Styling */
.event-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px; /* Space between image and title */
}

/* 4. Event Title (h4) Styling */
.event-item h4 {
    font-size: 18px; /* Adjust font size as needed */
    margin: 0 15px 10px 15px; /* Top, Right/Left, Bottom */
    color: #333;
}

/* 5. Event Date Styling */
.event-item .event-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* 6. "Attend" Button Styling */
.event-item .attend-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #c8a461; /* Example gold color */
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.event-item .attend-button:hover {
    background-color: #333; /* Darker color on hover */
}

/* 7. Responsive Design for Mobile */
/* On screens smaller than 768px (tablets/phones), stack the events in a single column. */
@media (max-width: 768px) {
    .upcoming-events-grid {
        grid-template-columns: 1fr; /* Switch to a 1-column grid */
    }
}