/* TLM Event Carousel Styles */

.tlm-event-carousel-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Filter Buttons */
.tlm-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tlm-filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tlm-filter-btn:hover,
.tlm-filter-btn.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}

/* Events Container - Desktop Grid */
.tlm-events-container {
    overflow: hidden;
}

.tlm-events-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Event Card */
.tlm-event-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tlm-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tlm-event-card.hidden {
    display: none;
}

/* Event Image */
.tlm-event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.tlm-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tlm-event-card:hover .tlm-event-image img {
    transform: scale(1.05);
}

/* Event Content */
.tlm-event-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tlm-event-date {
    color: #0ea5e9;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tlm-event-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.tlm-event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.tlm-event-location svg {
    flex-shrink: 0;
}

.tlm-event-link {
    display: inline-flex;
    align-items: center;
    color: #0ea5e9;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.3s ease;
}

.tlm-event-link:hover {
    color: #0284c7;
}

/* Scroll Dots - Hidden on Desktop */
.tlm-scroll-dots {
    display: none;
}

/* No Events Message */
.tlm-no-events {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* ==================== MOBILE: Horizontal Scroll ==================== */
@media (max-width: 768px) {
    .tlm-filter-buttons {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .tlm-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Container for horizontal scroll */
    .tlm-events-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 10px 15px 20px 15px;
        margin: 0 -15px;
    }
    
    /* Hide scrollbar */
    .tlm-events-container::-webkit-scrollbar {
        display: none;
    }
    
    .tlm-events-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* Track becomes flex row */
    .tlm-events-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 15px;
        grid-template-columns: none;
    }
    
    /* Cards - 75% width = 1.5 cards visible */
    .tlm-event-card {
        flex: 0 0 75%;
        min-width: 260px;
        max-width: 320px;
        scroll-snap-align: start;
    }
    
    /* Ensure text is horizontal */
    .tlm-event-card * {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
    }
    
    .tlm-event-title {
        font-size: 16px;
    }
    
    .tlm-event-image {
        height: 160px;
    }
    
    /* Scroll Dots Indicator */
    .tlm-scroll-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }
    
    .tlm-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        transition: background 0.3s ease;
    }
    
    .tlm-dot.active {
        background: #0ea5e9;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .tlm-event-card {
        flex: 0 0 85%;
        min-width: 240px;
    }
    
    .tlm-event-content {
        padding: 15px;
    }
    
    .tlm-event-title {
        font-size: 15px;
    }
}
