/*
 * Event Cards Plugin – Public Stylesheet
 * All classes prefixed with ect- to avoid any theme/plugin conflicts
 */

/* ── OUTER CONTAINER ─────────────────────────────────── */
.ect-slider-outer {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

/* ── TRACK ───────────────────────────────────────────── */
.ect-slider-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── SINGLE CARD ─────────────────────────────────────── */
.ect-card {
    display: flex;
    flex-direction: row;
    background: #f9f6f2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    flex-shrink: 0;
    box-sizing: border-box;
    transition: box-shadow 0.22s ease;
    /* Width is set by JS to exact pixels — do not set here */
}

.ect-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

/* ── IMAGE ───────────────────────────────────────────── */
.ect-card__img-wrap {
    position: relative;
    width: 200px;
    min-width: 200px;
    height: 400px;
    flex-shrink: 0;
    overflow: hidden;
    background: #d8d2cb;
}

.ect-card__image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Badge */
.ect-card__badge {
    position: absolute;
    top: 14px;
    right: 0;
    background: #62b7ac;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 20px 0 0 20px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}

/* ── CONTENT ─────────────────────────────────────────── */
.ect-card__content {
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.ect-card__date {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.ect-card__time {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.ect-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 4px 0 2px;
    line-height: 1.35;
}

.ect-card__author {
    display: inline-block;
    background: #62b7ac;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 5px 16px;
    border-radius: 30px;
    text-transform: uppercase;
    width: fit-content;
    margin: 4px 0;
}

.ect-card__desc {
    font-size: 13.5px;
    color: #555;
    line-height: 1.6;
    margin: 4px 0 auto;
}

.ect-card__btn {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 20px;
    border: 2px solid #62b7ac;
    color: #62b7ac !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 6px;
    text-decoration: none !important;
    text-transform: uppercase;
    width: fit-content;
    transition: background 0.18s ease, color 0.18s ease;
    background: transparent;
}

.ect-card__btn:hover {
    background: #62b7ac;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── DOTS ────────────────────────────────────────────── */
.ect-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
}

.ect-slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
    display: block;
}

.ect-slider-dots button.ect-dot-active {
    background: #62b7ac;
    transform: scale(1.35);
}

/* ── NO EVENTS ───────────────────────────────────────── */
.ect-no-events {
    color: #888;
    font-style: italic;
    padding: 10px 0;
}

/* ── MOBILE ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .ect-card__img-wrap {
        width: 130px;
        min-width: 130px;
        height: auto;
        min-height: 240px;
    }
}
