/* ============================================================
   TEC Events Shortcodes – Default Styles
   Override any of these in your theme's CSS or the
   WordPress Customizer > Additional CSS panel.
   ============================================================ */

/* Wrapper */
.tec-sc-events {
    margin: 1.5em 0;
}

/* List reset */
.tec-sc-events-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual event card */
.tec-sc-event-item {
    display: flex;
    gap: 1.25em;
    padding: 1.25em 0;
    border-bottom: 1px solid #e5e7eb;
    align-items: flex-start;
}

.tec-sc-event-item:last-child {
    border-bottom: none;
}

/* Thumbnail */
.tec-sc-event-image {
    flex: 0 0 120px;
}

.tec-sc-event-image img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* Content column */
.tec-sc-event-content {
    flex: 1;
    min-width: 0;
}

/* Title */
.tec-sc-event-title {
    margin: 0 0 0.35em;
    font-size: 1.1em;
    line-height: 1.3;
}

.tec-sc-event-title a {
    text-decoration: none;
    color: inherit;
}

.tec-sc-event-title a:hover {
    text-decoration: underline;
}

/* Meta lines */
.tec-sc-event-date,
.tec-sc-event-venue,
.tec-sc-event-cost {
    margin: 0.2em 0;
    font-size: 0.875em;
    color: #555;
}

.tec-sc-event-date {
    font-weight: 600;
    color: #333;
}

/* Excerpt */
.tec-sc-event-excerpt {
    margin: 0.5em 0 0.4em;
    font-size: 0.875em;
    color: #555;
    line-height: 1.5;
}

/* CTA link */
.tec-sc-event-link {
    display: inline-block;
    margin-top: 0.5em;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0073aa;
    text-decoration: none;
}

.tec-sc-event-link:hover {
    text-decoration: underline;
}

/* Empty state */
.tec-sc-no-events {
    color: #666;
    font-style: italic;
}

/* ── Past events: slightly muted ── */
.tec-sc-past .tec-sc-event-item {
    opacity: 0.8;
}

.tec-sc-past .tec-sc-event-image img {
    filter: grayscale(30%);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .tec-sc-event-item {
        flex-direction: column;
    }

    .tec-sc-event-image {
        flex: unset;
        width: 100%;
    }

    .tec-sc-event-image img {
        width: 100%;
        height: 180px;
    }
}
