/* Simple Events Plugin Styles - Version 1.1.3 */

/* No Events Message Styling */
.no-events-message {
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.no-events-message p:first-child {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.no-events-message p:last-child {
    color: #666;
    font-size: 1em;
    margin-bottom: 0;
}

/* Featured Image Styles */
.event-image {
    width: 100% !important;
    height: 200px !important;
    margin: -20px -20px 15px -20px !important;
    border-radius: 8px 8px 0 0 !important;
    overflow: hidden !important;
    position: relative !important;
    top: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.event-featured-image {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    max-width: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 0 0px !important;
}

.carousel-slide .event-image {
    height: 180px !important;
    margin: 0 0 15px 0 !important;
    border-radius: 14px 14px 0 0 !important;
    width: 100% !important;
    position: relative !important;
    left: 0 !important;
}

/* Grid Layout - 3 columns (1/3 width each) */
.simple-events {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 20px !important;
    margin: 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.simple-events .event-tile {
    width: 100% !important;
    max-width: 360px !important;
    justify-self: center !important;
    box-sizing: border-box !important;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.simple-events .event-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.event-tile h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.event-date {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 10px;
    font-size: 16px;
}

.event-location {
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
    font-size: 15px;
}

.event-description {
    margin-bottom: 15px;
    line-height: 1.6;
}

.event-tile a {
    display: inline-block;
    padding: 8px 16px;
    background: #3498db;
    color: black;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.event-tile a:hover {
    background: #2980b9;
    color: black;
    text-decoration: none;
}

/* Carousel Styles */
.simple-carousel {
    position: relative;
    margin: 20px -80px;
    overflow: visible;
    padding: 0 80px;
}

.simple-carousel .carousel-wrapper {
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.3s ease;
    cursor: grab;
    user-select: none;
    /* Default centering for 2 events on desktop (gets overridden by JS) */
    transform: translateX(16.667%);
}

/* Reset centering for mobile and when JS has loaded */
@media (max-width: 1100px) {
    .carousel-container {
        transform: translateX(0);
    }
}

/* Class added by JavaScript to indicate JS has taken control */
.js-carousel-initialized .carousel-container {
    /* JavaScript will handle the transform */
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-slide {
    flex: 0 0 33.333% !important;
    width: 33.333% !important;
    min-width: 33.333% !important;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    margin: 30px 0px;
}

.carousel-slide .event-content {
    background: #fff;
    border: 0px solid #e1e5e9;
    border-radius: 14px;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 8px;
    transition: box-shadow 0.2s ease;
}

.carousel-slide .event-content:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-slide .event-content h3 {
    margin: 0 0 12px 0;
    padding: 0 24px;
    color: #000;
    font-size: 1.1em;
    font-weight: 900;
    line-height: 1.3;
    font-family: Poppins, sans-serif;
    text-transform: uppercase;
}

.carousel-slide .event-date {
    font-weight: 600;
    color: #FF671D;
    margin-bottom: 8px;
    padding: 0 24px;
    font-size: 14px;
    text-transform: uppercase;
    font-family: Poppins, sans-serif;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.carousel-slide .event-location {
    color: #7f8c8d;
    margin-bottom: 12px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
}

.carousel-slide .event-description {
    margin-bottom: 16px;
    padding: 0 24px;
    line-height: 1.5;
    color: #555;
    font-size: 14px;
    flex-grow: 1;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
}

.carousel-slide a {
    display: inline-block;
    margin: 0 24px 24px 24px;
    padding: 10px 20px;
    background: #FF671D;
    color: black !important;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
}

.carousel-slide a:hover {
    background: rgb(228, 228, 228);
    color: black;
    text-decoration: none;
}

.simple-carousel button {
    position: absolute;
    top: 50%;
    background: #FF671D;
    color: #000;
    border: none;
    cursor: pointer;
    border-radius: 0;
    z-index: 10;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
    display: none;
}

.simple-carousel button:hover {
    background: rgb(228, 228, 228);
    color: #000;
}

.simple-carousel button:first-of-type {
    left: 20px;
}

.simple-carousel button:last-of-type {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .simple-events {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }
}

/* Carousel responsive breakpoints */
@media (max-width: 1100px) {
    .carousel-slide {
        flex: 0 0 50% !important;
        width: 50% !important;
        min-width: 50% !important;
    }

    .simple-carousel button:first-of-type {
    left: 60px;
}

.simple-carousel button:last-of-type {
    right: 60px;
}

}

@media (max-width: 768px) {
    .simple-events {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    }
    
    .carousel-slide {
        flex: 0 0 50% !important;
        width: 50% !important;
        min-width: 50% !important;
    }
}

@media (max-width: 480px) {
    .simple-events {
        grid-template-columns: 1fr !important;
    }
    
    .carousel-slide {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
}