/*
Theme Name: hello-elementor Child
Theme URI:  https://www.wpserveur.net
Author:     WPServeur
Author URI: https://www.wpserveur.net
Template:   hello-elementor
Version:    1.0
License:    GNU General Public License v2 or later
*/

/* --- Events List Shortcode Styling --- */

.events-list-wrapper {
    width: 100%;
    max-width: 1200px; /* Adjust as needed */
    margin: 20px auto;
/*     border: 1px solid #eee; /* Light border around the whole list */ */
}

.event-item {
    display: flex;
    align-items: center; /* Vertically align items */
    padding: 15px;
    border-bottom: 1px solid #eee; /* Separator between events */
    background-color: #fff;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.event-item:last-child {
    border-bottom: none; /* No border for the last item */
}

.event-thumbnail {
    flex: 0 0 150px; /* Fixed width for thumbnail */
    position: relative;
    margin-right: 20px;
    border-radius: 5px; /* Slightly rounded corners for image container */
    overflow: hidden; /* Ensures the image and overlay respect border-radius */
}

.event-thumbnail img {
    width: 100%;
    height: 100px; /* Fixed height for consistency */
    object-fit: cover; /* Crop image to fit */
    display: block;
    border-radius: 5px; /* Rounded corners for the image itself */
}

.event-date-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
    color: #333;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.event-content {
    flex-grow: 1; /* Takes up remaining space */
    padding-right: 20px; /* Space before button column */
}

.event-meta-info {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.event-meta-info span {
    margin-right: 15px;
    display: inline-flex; /* Align icon and text */
    align-items: center;
}

.event-meta-info .dashicons {
    font-size: 16px;
    margin-right: 5px;
    color: #ff6347; /* Adjust icon color */
}

.event-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.3;
}

.event-content h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.event-content h3 a:hover {
    color: #ff6347; /* Hover color for title */
}

.event-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.event-button-col {
    flex: 0 0 120px; /* Fixed width for button column */
    text-align: center;
}

.join-now-button {
    display: inline-block;
    background-color: #ff6347; /* Red button color */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    font-size: 14px;
}

.join-now-button:hover {
    background-color: #e04e33; /* Darker red on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .event-item {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start; /* Align to the left when stacked */
    }

    .event-thumbnail {
        width: 100%; /* Full width thumbnail */
        margin-right: 0;
        margin-bottom: 15px;
        flex: none; /* Remove flex sizing */
    }

    .event-thumbnail img {
        height: 150px; /* Make image taller on smaller screens */
    }

    .event-content {
        padding-right: 0;
        width: 100%;
        margin-bottom: 15px;
    }

    .event-button-col {
        width: 100%;
        text-align: left; /* Align button to left */
        flex: none; /* Remove flex sizing */
    }
}

@media (max-width: 480px) {
    .event-item {
        padding: 10px;
    }
    .event-content h3 {
        font-size: 18px;
    }
    .join-now-button {
        padding: 8px 15px;
        font-size: 13px;
    }
}