/* Study resources: the library page, one resource's page and the resource tile (partials/resource-card).
   Built on the glass theme and css/features/pages.css. */

/* ---------- Resource tile ---------- */
.rs-card { display: flex; flex-direction: column; gap: 8px; padding: 8px; min-width: 0; }
.rs-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--g-icon-bg); color: var(--g-accent); }
.rs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 13px; line-height: 1.5; }
.rs-meta i { font-style: normal; color: var(--g-muted); }
.rs-kind { padding: 1px 9px; border-radius: 999px; background: rgba(240, 138, 0, .14); color: var(--g-orange-text); font-weight: 700; }
.rs-kind--video { background: var(--g-icon-bg); color: var(--g-accent); }
.rs-title { flex: 1; font-size: 15px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.rs-go { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; background: var(--g-icon-bg); color: var(--g-accent); font-size: 15px; font-weight: 700; }
a.rs-card:hover .rs-go { background: var(--g-brand); color: #fff; }
@media (min-width: 1024px) { .rs-card { padding: 10px; gap: 10px; } .rs-title { font-size: 16px; } }

/* ---------- One resource ---------- */
.pg-top .vfacade, .pg-top .vframe { border-radius: var(--g-r-tile); }
.pg-top .rcover { border: 0; border-radius: var(--g-r-tile); }
/* "আরও দেখুন" under one resource: two cards a row on phones and tablets (three were too narrow for a title), three on computers. */
@media (max-width: 1023px) { .rs-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
