.rouf-wrap {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* ── Filter bar ── */
.rouf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
    align-items: center;
}

/* FIX 1: auto-width on desktop (was flex:1 → full-width) */
/* FIX 2: custom SVG chevron arrow instead of browser default */
.rouf-filters select {
    flex: 0 0 auto;              /* don't grow/shrink — fit content */
    width: auto;
    min-width: 160px;
    padding: 10px 40px 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;           /* hide browser default arrow */
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rouf-filters select:focus {
    outline: none;
    border-color: #1e783c;
    box-shadow: 0 0 0 3px rgba(30, 120, 60, 0.12);
}

.rouf-filters select:hover {
    border-color: #bbb;
}

/* ── Post grid ── */
.rouf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.rouf-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.rouf-img {
    position: relative;
}

.rouf-img img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.rouf-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1e783c;
    color: #fff;
    padding: 0px 15px;
    border-radius: 25px;
    font-size: 10px;
    font-weight: 600;
}

.rouf-content {
    padding: 20px;
}

.rouf-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.rouf-content h3 a {
    text-decoration: none;
    color: #111;
}

.rouf-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.rouf-read {
    display: inline-block;
    margin-top: 10px;
    color: #ff6a00;
    font-weight: 600;
    text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .rouf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .rouf-grid { grid-template-columns: 1fr; }
    /* On mobile, selects go full-width (stacked column) */
    .rouf-filters { flex-direction: column; }
    .rouf-filters select { width: 100%; }
}

/* ── Load More button ── */
.rouf-load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.rouf-load-more {
    display: inline-block;
    padding: 13px 40px;
    background: #1e783c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.rouf-load-more:hover:not(:disabled) {
    background: #165f2e;
}

.rouf-load-more:active:not(:disabled) {
    transform: translateY(1px);
}

.rouf-load-more:disabled {
    background: #aaa;
    cursor: not-allowed;
}
