/* ============================================================
   Post List Carousel Widget
   ============================================================ */

.post-list-carousel {
    width: 100%;
}

/* CRITICAL: prevents slides from overflowing before Swiper inits in editor */
.post-list-carousel .plc-swiper {
    overflow: hidden;
    padding-bottom: 44px;
}

.post-list-carousel .swiper-slide {
    height: auto;
}

/* ── Card (horizontal: image left, content right) ──────────── */
.plc-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.plc-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
}

/* ── Image (left column) ───────────────────────────────────── */
.plc-card__image {
    flex-shrink: 0;
    width: 160px;
    min-width: 160px;
    display: block;
    overflow: hidden;
    position: relative;
}

.plc-card__image img {
    width: 100%;
    height: 100%;
    min-height: 130px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.plc-card:hover .plc-card__image img {
    transform: scale(1.05);
}

.plc-card__no-image {
    width: 100%;
    height: 100%;
    min-height: 130px;
    background-color: #f0f0f0;
}

/* ── Body (right column) ───────────────────────────────────── */
.plc-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
}

/* ── Title ─────────────────────────────────────────────────── */
.plc-card__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plc-card__title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.plc-card__title a:hover {
    color: #f28c28;
}

/* ── Excerpt ───────────────────────────────────────────────── */
.plc-card__excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #666666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ── Footer (date + arrow) ─────────────────────────────────── */
.plc-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 8px;
}

.plc-card__date {
    font-size: 12px;
    color: #999999;
    white-space: nowrap;
}

.plc-card__readmore {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    color: #555555;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.22s ease;
}

.plc-card__readmore:hover {
    color: #f28c28;
}

/* ── Pagination dots ───────────────────────────────────────── */
.post-list-carousel .plc-pagination {
    position: relative;
    bottom: auto;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.post-list-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #cccccc;
    opacity: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.post-list-carousel .swiper-pagination-bullet-active {
    background-color: #f28c28;
    transform: scale(1.35);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .plc-card__image {
        width: 140px;
        min-width: 140px;
    }
    .plc-card__title {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .plc-card__image {
        width: 120px;
        min-width: 120px;
    }
    .plc-card__body {
        padding: 12px 14px;
    }
    .plc-card__title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    .plc-card__excerpt {
        display: none;
    }
}
