/* Article styles — centered grid with card design (article-custom.css) */
.article-list-wrap {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.article-list {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    max-width: 1200px;
    width: 100%;
    padding: 6px;
    grid-auto-rows: 1fr; /* ensure each grid cell gets equal height */
    align-items: stretch;
}

.article-item {
    display: flex;
    gap: 14px;
    align-items: stretch; /* allow inner body to stretch vertically */
    flex-direction: row;
    height: 100%;
    min-height: 140px;
    background: linear-gradient(180deg, #ffffff, #fbfbfb);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(18,38,63,0.04);
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden;
}

.article-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(18,38,63,0.08);
}

.article-thumb {
    flex: 0 0 120px;
    height: 84px;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.article-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column; /* allow meta to sit at bottom */
}

.article-meta {
    margin-top: auto; /* push to bottom */
}

/* Mobile: stack thumb on top */
@media (max-width: 480px) {
    .article-item { flex-direction: column; }
    .article-thumb { width: 100%; flex: 0 0 auto; height: 160px; }
}
.article-title {
    font-size: 1.15rem;
    color: #111;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.article-desc {
    color: #5f6b73;
    margin: 0 0 12px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #777;
}

.article-date {
    color: #999;
    font-size: 0.9rem;
}

.btn.read-more {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid #007bff;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.btn.read-more:hover {
    background: #007bff;
    color: #fff;
}

.article-empty {
    color: #777;
    padding: 12px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px dashed #eee;
    text-align: center;
}

/* Responsive: two/three columns */
@media (min-width: 768px) {
    .article-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .article-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Section separator */
.section-separator {
    padding: 22px 0 8px;
    background: transparent;
}

.separator-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 6px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #222;
    font-weight: 600;
    margin: 0;
}

.separator-line {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
    flex: 1 1 auto;
    border-radius: 1px;
}

@media (max-width: 767px) {
    .separator-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
    .separator-line { width: 100%; }
}