/* ============================================================
   cards.css — Kartu kelas (komponen bersama)
   Dipindah dari catalog/index.blade.php (Sesi 59) agar kartu
   (_course_card.blade.php) tampil konsisten di SEMUA halaman:
   /training (katalog) DAN / (homepage).

   Memakai token dari layout akuikut.blade.php:
   --brand, --brand-ink, --surface, --line, --muted, --ink,
   --font-display.

   CATATAN: blok ini SEBELUMNYA hanya ada di @push('head') milik
   catalog/index → tidak ikut saat kartu di-@include di homepage.
   Sekarang global via <link> di layout.
   ============================================================ */

.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:active { transform: scale(.99); }
.card:hover { box-shadow: 0 8px 24px -12px rgba(0,0,0,.18); }

.card .thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--brand), var(--brand-ink));
    display: flex; align-items: flex-end; padding: 1rem;
}
.card .thumb span {
    font-family: var(--font-display); color: #fff; font-size: 1.05rem; font-weight: 600;
    text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

.card .body { padding: 1rem 1.1rem 1.2rem; }
.card h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 .4rem; font-weight: 600; }
.card p { color: var(--muted); font-size: .92rem; margin: 0 0 .9rem; line-height: 1.5; }

.card .stats { display: flex; gap: 1rem; font-size: .82rem; color: var(--ink); }
.card .stats b { font-weight: 700; }
.card .stats .label { color: var(--muted); display: block; font-weight: 500; }

/* SESI72 — prefix "Rp" kecil di atas angka harga pada .card .stats */
.card .stats .rp {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1;
    margin-bottom: 1px;
}

/* SESI72B — rapikan alignment stats + harga lebih menonjol (ukuran) */

/* Semua kolom rata atas, jarak sedikit lebih lega */
.card .stats {
    align-items: flex-start;
}

/* Angka dasar (video/modul) seragam */
.card .stats b {
    font-size: .95rem;
    line-height: 1.2;
    display: block;
}

/* Kolom harga: angka lebih besar supaya menonjol */
.card .stats .price-cell b {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
}

/* "Gratis" proporsional — menonjol tapi tak seberat harga penuh */
.card .stats .price-cell b.is-free {
    font-size: 1rem;
    font-weight: 700;
}

/* Prefix Rp: kecil, di atas, tidak mendorong baseline angka */
.card .stats .price-cell .rp {
    display: block;
    font-size: .62rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1;
    margin-bottom: 0;
}

/* SESI72C — layout stats: meta kiri + pill harga kanan.
   Menimpa aturan .stats dari SESI72/72B (spesifisitas lebih tinggi + reset). */

/* Baris stats: dorong pill ke kanan, sejajar vertikal tengah */
.card .stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Grup video/modul di kiri */
.card .stats .stats-meta {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.card .stats .stats-meta b {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
}
.card .stats .stats-meta .label {
    color: var(--muted);
    display: block;
    font-weight: 500;
    font-size: .78rem;
}

/* Pill harga */
.card .stats .price-pill {
    display: inline-block;
    background: #fbe9db;                /* oranye brand muda */
    color: #993c1d;                     /* coral 800 utk kontras */
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 800;
    font-size: .92rem;
    line-height: 1;
    white-space: nowrap;
}

/* Pill Gratis (hijau) */
.card .stats .price-pill--free {
    background: #e1f5ee;
    color: #0f6e56;
}

/* SESI72E — kolom durasi (teks) jangan wrap; jaga baris meta rapi */
.card .stats .stats-meta > div {
    white-space: nowrap;
}
