/* Course grid (Worship → Learn). Ported from the design mockup; the legacy
   --fel accent slot is mapped to the clean --accent system so it re-skins via
   .section--worship. Per-instrument art gradients are defined per variant. */

.course-grid-sec { padding: 48px 0 80px; }
.course-grid-heading {
  font-family: var(--serif); font-weight: 500; font-size: 28px;
  letter-spacing: -0.4px; margin: 0 0 20px; color: var(--ink);
}
.course-empty { color: var(--ink-3); font-size: 15px; }

.wt-course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wt-course {
  color: inherit; text-decoration: none; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; cursor: pointer;
}
.wt-course:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 36px rgba(165,60,126,0.14); }

.wt-course-art { aspect-ratio: 16/10; position: relative; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; padding: 22px; background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%); }
.wt-course-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(360px 220px at 0% 100%, rgba(255,255,255,0.10), transparent 60%); pointer-events: none; }
.wt-course-art .glyph { position: relative; z-index: 1; opacity: 0.92; }
.wt-course-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.wt-course-art--shot { padding: 0; }
.wt-course-art--shot::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, transparent 42%, transparent 55%, rgba(0,0,0,0.38) 100%);
  z-index: 1;
}
.wt-course-art .tag { display: none; position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.18); backdrop-filter: blur(6px); }
.wt-course-art .ep { position: absolute; bottom: 16px; right: 16px; z-index: 2; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,0.32); }
[dir="rtl"] .wt-course-art .tag { left: auto; right: 16px; }
[dir="rtl"] .wt-course-art .ep { right: auto; left: 16px; }

/* Per-instrument art gradients (from the design mockup). */
.course-art--vocals          { background: linear-gradient(135deg, #4A1738 0%, #A53C7E 100%); }
.course-art--acoustic-guitar { background: linear-gradient(135deg, #2A1A4A 0%, #6750A4 100%); }
.course-art--harmony         { background: linear-gradient(135deg, #1A3A4A 0%, #4A95AC 100%); }
.course-art--worship-leading { background: linear-gradient(135deg, #2B6038 0%, #41A769 100%); }
.course-art--drums           { background: linear-gradient(135deg, #7A2A23 0%, #C04438 100%); }
.course-art--tech            { background: linear-gradient(135deg, #5A4A2E 0%, #B0A04D 100%); }
.course-art--electric-guitar { background: linear-gradient(135deg, #3A1A2A 0%, #B0436A 100%); }
.course-art--bass            { background: linear-gradient(135deg, #1A2A4A 0%, #3A6BAC 100%); }
.course-art--keys            { background: linear-gradient(135deg, #2A2A3A 0%, #6A6A8E 100%); }

.wt-course-info { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.wt-course-info h4 { font-family: var(--serif); font-weight: 500; font-size: 19px; letter-spacing: -0.3px; line-height: 1.25; margin: 0; color: var(--ink); }
.wt-course-info .instr { font-size: 12.5px; color: var(--ink-3); }
.wt-course-info .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.wt-course-info .meta .dot { width: 3px; height: 3px; background: var(--ink-4); border-radius: 999px; }

/* RTL: Farsi display faces for headings/titles. */
[dir="rtl"] .course-grid-heading,
[dir="rtl"] .wt-course-info h4 { font-family: var(--farsi); font-weight: 700; letter-spacing: 0; }

@media (max-width: 1024px) { .wt-course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .wt-course-grid { grid-template-columns: 1fr; gap: 12px; }
  .wt-course { flex-direction: row; align-items: stretch; }
  .wt-course-art { aspect-ratio: 4/3; min-width: 132px; max-width: 132px; padding: 12px; flex-shrink: 0; }
  .wt-course-art .glyph { width: 38px; height: 38px; }
  .wt-course-art .tag { top: 8px; left: 8px; font-size: 9px; padding: 3px 7px; letter-spacing: 0.6px; }
  .wt-course-art .ep { bottom: 8px; right: 8px; font-size: 10px; padding: 3px 7px; }
  .wt-course-info { padding: 12px 14px; gap: 4px; flex: 1; min-width: 0; }
  .wt-course-info h4 { font-size: 15px; line-height: 1.25; }
  .wt-course-info .instr { font-size: 11.5px; }
  .wt-course-info .meta { font-size: 11px; margin-top: 4px; }
}
