/* ============================================
   ITI Latest News — Public CSS
   Path: wp-content/plugins/iti-latest-news/assets/css/iti-news.css
   ============================================ */

/* ---------- Section Wrapper ---------- */
.inw-section {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

/* ---------- Header Row ---------- */
.inw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.inw-title {
    margin: 0;
    line-height: 1.2;
}

/* ---------- Arrow Buttons (slider nav) ---------- */
.inw-arrows {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.inw-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;
}

.inw-arrow:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ---------- Slider Track ---------- */
.inw-track-wrap {
    overflow: hidden;
    width: 100%;
}

.inw-track {
    display: flex;
    will-change: transform;
}

/* ---------- Card ---------- */
.inw-card {
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    /* Fixed height so all cards are equal */
    height: 110px;
    overflow: hidden;
    transition-property: box-shadow, border-color;
}

/* ---------- Date Badge ---------- */
.inw-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    text-align: center;
    height: 100%;
    min-width: 54px;
    box-sizing: border-box;
}

.inw-month,
.inw-day,
.inw-year {
    display: block;
    line-height: 1.15;
}

/* ---------- Card Body (news title area) ---------- */
.inw-body {
    flex: 1;
    min-width: 0;                  /* prevent flex overflow */
    overflow: hidden;
    /* leave room for the arrow button */
    padding-right: 38px;
    /* vertically center in fixed-height card */
    height: 100%;
    display: flex;
    align-items: center;
}

.inw-news-title {
    margin: 0;
    /* Clamp text to 3 lines max — no matter how long */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* ---------- Arrow / Link Button (bottom-right of card) ---------- */
.inw-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.inw-btn:hover {
    text-decoration: none;
}

/* ---------- Responsive — mobile shows 1 card ---------- */
@media (max-width: 700px) {
    .inw-card {
        height: auto;
        min-height: 90px;
    }

    .inw-news-title {
        -webkit-line-clamp: 4;
    }
}