/* Course card: used on the course list, dashboard rails, brand pages and search.
   Image first, with brand, title, time and points; progress when started. */
.course-card {
  --cc-shadow: 0 1px 2px rgba(34, 34, 34, .04), 0 8px 24px rgba(34, 34, 34, .06);
  display: flex; flex-direction: column; width: 305px; max-width: 100%;
  background: #ffffff; border-radius: 16px; overflow: hidden; box-shadow: var(--cc-shadow);
  color: #222222; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(34, 34, 34, .05), 0 16px 36px rgba(34, 34, 34, .12); }
/* keyboard focus: the learning pages' ring (fusion/lms.css); reset.css removes outlines with !important */
a.course-card:focus-visible { outline: 2px solid var(--l-focus, #222222) !important; outline-offset: 2px; }
.cc-media { position: relative; display: block; aspect-ratio: 16 / 9; background: #2d2b28 center / cover no-repeat; }
.cc-flags { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; gap: 6px; }
.cc-flag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: #ffffff; color: #222222;
  font-family: "Fusion Label", "DM Sans", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cc-flag svg { width: 12px; height: 12px; }
.cc-flag--new { background: #3F2021; color: #ffffff; } /* Forte Oxblood */
.cc-badge { position: absolute; z-index: 2; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: #ffffff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.cc-badge img { width: 30px; height: 30px; object-fit: contain; }
.cc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.cc-brand { font-family: "Fusion Label", "DM Sans", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #696153; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-title { font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 4px; font-size: 14px; color: #696153; }
.cc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cc-meta svg { width: 15px; height: 15px; }
/* the reward (or a brand partner's completions) sits at the right of the row */
.cc-meta-end { margin-left: auto; }

/* Where the person is with the course: the same row at the foot of every card; a bar only while in
   progress. line-height 1 keeps the icon centred on the text. */
.cc-status { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #EFE9DF;
  font-size: 13px; font-weight: 600; line-height: 1; }
.cc-status-label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cc-status-label svg { width: 13px; height: 13px; flex: none; }
.cc-status--done { color: #2F6B3C; }
.cc-status--todo { color: #696153; font-weight: 500; } /* Forte Cream 700, as other small grey text: readable at 13px (6:1 on white) */
/* the one progress bar look, as .l-bar in lms.css: 4px, Forte Oxblood on cream */
.cc-bar { flex: 1; height: 4px; border-radius: 999px; background: #E6E0D5; overflow: hidden; }
.cc-bar span { display: block; height: 100%; border-radius: inherit; background: #3F2021; }
.cc-pct { font-variant-numeric: tabular-nums; color: #222222; min-width: 3ch; text-align: right; }
.cc-status-label.cc-pct { justify-content: flex-end; }

/* Cards in a row are the same height. */
[data-fusion--carousel-target="item"] > .course-card { height: 100%; }

/* In a grid the card fills its cell. */
.card-grid .course-card, .lms .course-card { width: auto; }

/* The course name and brand logo drawn over a course image (_course_cover): a darkened photo, the brand's
   white logo and the name in the brand headline face (D-DIN Condensed, for DIN Condensed), sized to the
   image so a card and the course page header match */
.cv { position: absolute; inset: 0; z-index: 1; overflow: hidden; container-type: inline-size; background: rgba(34, 34, 34, .45); pointer-events: none; }
/* inside the box it measures, so its spacing scales with the image too */
.cv-in { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 4cqi; padding: 8cqi; text-align: center; }
.cv[hidden] { display: none; }
/* no image yet: the dark placeholder in its place */
.cv--blank { background: radial-gradient(120% 120% at 70% 30%, #3a3733 0%, #222222 70%); }
.cv-logo { display: block; max-width: 42%; max-height: 16cqi; object-fit: contain; }
.cv-title { max-width: 100%; font-family: "D-DIN Condensed", "DIN Condensed", "DM Sans", sans-serif; font-weight: 700; font-size: 6.5cqi; line-height: 1.05;
            letter-spacing: .035em; text-transform: uppercase; color: #fff; text-wrap: balance; overflow-wrap: anywhere;
            display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } /* a long name: three lines */

/* a completed card's Result (lms_result, as on the learning pages): a word with a dot at the foot's right,
   and for not passed an empty red ring where the medal would be */
.cc-status .l-result { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: "Fusion Label", "DM Sans", sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cc-status .l-result i { width: 8px; height: 8px; border-radius: 50%; }
.cc-status .l-result.is-gold { color: #8A6410; } .cc-status .l-result.is-gold i { background: #C99A2E; }
.cc-status .l-result.is-silver { color: #5E6368; } .cc-status .l-result.is-silver i { background: #A4A9AE; }
.cc-status .l-result.is-bronze { color: #8A4F2A; } .cc-status .l-result.is-bronze i { background: #B4733F; }
.cc-status .l-result.is-passed { color: #222222; } .cc-status .l-result.is-passed i { background: #3F2021; }
.cc-status .l-result.is-not-passed { color: #C0362F; } .cc-status .l-result.is-not-passed i { background: #EF463D; }
.cc-badge.is-not-passed { background: #ffffff; box-shadow: inset 0 0 0 3px #EF463D, 0 2px 8px rgba(0, 0, 0, .18); }
