/* ============================================
   ITI Latest Events — Public CSS
   Path: wp-content/plugins/iti-latest-events/assets/css/iti-events.css
   ============================================ */

/* ---------- Section Wrapper ---------- */
.iev-section {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

/* ---------- Header Row ---------- */
.iev-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.iev-title {
    margin: 0;
    line-height: 1.2;
}

/* ---------- Arrow Buttons ---------- */
.iev-arrows {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.iev-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.iev-arrow:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ---------- Slider Track ---------- */
.iev-track-wrap {
    overflow: hidden;
    width: 100%;
}
.iev-track {
    display: flex;
    will-change: transform;
}

/* ---------- Card ---------- */
.iev-card {
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    /* transition handled via inline styles from PHP settings */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ---------- Event Image ---------- */
.iev-img {
    flex-shrink: 0;
    display: block;
    object-fit: cover;
}
.iev-img-placeholder {
    flex-shrink: 0;
    background: #e8eaf0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a9db0;
    font-size: 28px;
}

/* ---------- Card Body ---------- */
.iev-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

/* ---------- Event Title ---------- */
.iev-evt-title {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* ---------- Short Description ---------- */
.iev-short {
    color: #666;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* ---------- Read More Button ---------- */
.iev-btn {
    display: inline-block;
    text-decoration: none;
    align-self: flex-start;
    margin-top: auto;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.iev-btn:hover {
    text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
    .iev-card {
        flex: 0 0 100% !important;
        height: auto !important;
        min-height: 130px;
        flex-direction: column !important;
    }
    .iev-img,
    .iev-img-placeholder {
        width: 100% !important;
        height: 180px !important;
    }
    .iev-evt-title {
        -webkit-line-clamp: 3 !important;
    }
}