/* ─── BANNER ─────────────────────────────────────── */
.qxu-banner {
    position: relative;
    background: #0F2C2C url(<?php echo get_template_directory_uri();
    ?>/images/banner-bg.jpg) center/cover no-repeat;
    padding: 70px 20px;
    text-align: center;
}

.qxu-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 35, 30, 0.62);
}

.qxu-banner__inner {
    position: relative;
    z-index: 1;
}

.qxu-banner__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 0.04em;
}

.qxu-banner__sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

/* ─── FILTER BAR ──────────────────────────────────── */
.qxu-filterbar {
    background: #fff;
    border-bottom: 1px solid #E8E6DE;
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qxu-filterbar__form {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.qxu-filterbar__search {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.qxu-filterbar__icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #888;
}

.qxu-filterbar__input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid #D3D1C7;
    border-radius: 8px;
    font-size: 14px;
    color: #2C2C2A;
    outline: none;
    transition: border-color .2s;
}

.qxu-filterbar__input:focus {
    border-color: #1D9E75;
}

.qxu-filterbar__select {
    padding: 9px 14px;
    border: 1px solid #D3D1C7;
    border-radius: 8px;
    font-size: 14px;
    color: #2C2C2A;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
}

.qxu-filterbar__select:focus {
    border-color: #1D9E75;
}

.qxu-filterbar__btn {
    padding: 9px 20px;
    background: #1D9E75;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}

.qxu-filterbar__btn:hover {
    background: #0F6E56;
}

.qxu-filterbar__reset {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
    padding: 4px 2px;
    transition: color .2s;
}

.qxu-filterbar__reset:hover {
    color: #A32D2D;
}

/* ─── NEWS FEED ───────────────────────────────────── */
.qxu-newsfeed {
    padding: 40px 20px 60px;
    background: #F7F6F2;
}

.qxu-newsfeed__container {
    max-width: 860px;
    margin: 0 auto;
}

.qxu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ─── ITEM ────────────────────────────────────────── */
.qxu-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid #E8E6DE;
    background: transparent;
    transition: background .15s;
}

.qxu-item:first-child {
    padding-top: 0;
}

.qxu-item:last-child {
    border-bottom: none;
}

/* Thumbnail */
.qxu-item__thumb-wrap {
    flex-shrink: 0;
    display: block;
    width: 120px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
}

.qxu-item__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.qxu-item__thumb-wrap:hover .qxu-item__thumb {
    transform: scale(1.04);
}

.qxu-item__thumb--placeholder {
    width: 100%;
    height: 100%;
    background: #D3D1C7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* Body */
.qxu-item__body {
    flex: 1;
    min-width: 0;
}

/* Top row: badge + meta */
.qxu-item__top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.qxu-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 5px;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: opacity .2s;
}

.qxu-badge:hover {
    opacity: 0.8;
}

.qxu-item__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888780;
}

.qxu-meta-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* Title */
.qxu-item__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 7px;
}

.qxu-item__title a {
    color: #2C2C2A;
    text-decoration: none;
    transition: color .2s;
}

.qxu-item__title a:hover {
    color: #1D9E75;
}

/* Excerpt */
.qxu-item__excerpt {
    font-size: 13.5px;
    color: #5F5E5A;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;

    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more */
.qxu-item__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #1D9E75;
    text-decoration: none;
    transition: gap .2s, color .2s;
}

.qxu-item__more:hover {
    color: #0F6E56;
    gap: 8px;
}

.qxu-arrow {
    width: 15px;
    height: 15px;
}

/* ─── EMPTY STATE ─────────────────────────────────── */
.qxu-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.qxu-empty svg {
    margin-bottom: 16px;
    opacity: .4;
}

.qxu-empty p {
    font-size: 15px;
    margin-bottom: 16px;
}

.qxu-empty a {
    font-size: 14px;
    color: #1D9E75;
    text-decoration: none;
}

/* ─── PAGINATION ──────────────────────────────────── */
.qxu-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.qxu-pagination a,
.qxu-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 4px;
    border: 1px solid #D3D1C7;
    border-radius: 8px;
    font-size: 14px;
    color: #5F5E5A;
    text-decoration: none;
    transition: all .2s;
}

.qxu-pagination a:hover {
    border-color: #1D9E75;
    color: #1D9E75;
    background: #E1F5EE;
}

.qxu-pagination .current {
    background: #1D9E75;
    color: #fff;
    border-color: #1D9E75;
    font-weight: 600;
}

.qxu-pagination .dots {
    border-color: transparent;
    color: #888;
    pointer-events: none;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 600px) {
    .qxu-item__thumb-wrap {
        width: 90px;
        height: 70px;
    }

    .qxu-item {
        gap: 14px;
        padding: 18px 0;
    }

    .qxu-item__title {
        font-size: 14px;
    }

    .qxu-filterbar__btn {
        padding: 9px 14px;
    }
}