/* ============================================================
   ARTICLES.CSS (Sesi 60) — kartu artikel untuk homepage.
   Global (dimuat di layout setelah cards.css) supaya kartu tampil
   benar di homepage; .idx-card di /artikel tetap punya CSS sendiri.
   Memakai token brand dari layout: --brand, --ink, --muted, --line.
   Selektor di-scope .home-articles agar tak bentrok global.
   ============================================================ */

.home-articles {
    padding: 2.5rem 0;
}

.home-articles .sec-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.home-articles .sec-title {
    font-family: var(--font-display, serif);
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: 1.6rem;
    color: var(--ink, #171A21);
    margin: 0 0 .4rem;
}

.home-articles .sec-sub {
    color: var(--muted, #6b7280);
    font-size: .98rem;
    margin: 0;
}

.home-articles .art-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.home-articles .art-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--line, #eef0f3);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s, transform .15s;
}

.home-articles .art-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.home-articles .art-card .thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    background: #f3f4f6;
    display: block;
}

.home-articles .art-card .pad {
    padding: 1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-articles .art-card .cat {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--brand, #F07A29);
    margin-bottom: .4rem;
}

.home-articles .art-card .t {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink, #171A21);
    margin: 0 0 .4rem;
}

.home-articles .art-card .ex {
    font-size: .88rem;
    line-height: 1.55;
    color: var(--muted, #6b7280);
    margin: 0 0 .8rem;
    flex: 1;
}

.home-articles .art-card .meta {
    font-size: .8rem;
    color: #9ca3af;
}

.home-articles .art-more {
    text-align: center;
    margin-top: 1.6rem;
}

.home-articles .art-more a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--brand, #F07A29);
    text-decoration: none;
    border: 1.5px solid var(--brand, #F07A29);
    padding: .6rem 1.4rem;
    border-radius: 999px;
    transition: background .15s, color .15s;
}

.home-articles .art-more a:hover {
    background: var(--brand, #F07A29);
    color: #fff;
}

/* ---------- Desktop: grid 3 kolom ---------- */
@media (min-width: 768px) {
    .home-articles .art-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.4rem;
    }
    .home-articles .sec-title {
        font-size: 2rem;
    }
}
