/* Course covers only. Photography remains unmodified; poster crops are CSS viewports. */
.course-art {
  --art-deep: #122d3e;
  --art-mid: #1678a1;
  --art-light: #bcefff;
  --art-pop: #f0e35d;
  --art-position: 50% 50%;
  --art-ratio: 1.777777778;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--art-deep);
  color: #fff;
  text-align: left;
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}
.course-art--detail { --art-ratio: 1.6; aspect-ratio: 16 / 10; }
.course-art--pine { --art-deep: #073e35; --art-mid: #16886b; --art-light: #b7f3bb; --art-pop: #e0f279; }
.course-art--iris { --art-deep: #26215f; --art-mid: #7650cd; --art-light: #e4d6ff; --art-pop: #ffb4a5; }
.course-art--ink { --art-deep: #142b50; --art-mid: #2e63ba; --art-light: #cee4ff; --art-pop: #ffc658; }
.course-art--marine { --art-deep: #073952; --art-mid: #087da3; --art-light: #b9ecff; --art-pop: #ffba6e; }
.course-art--copper { --art-deep: #8e2d24; --art-mid: #df6a35; --art-light: #ffe3bc; --art-pop: #d9ee7f; }
.course-art--moss { --art-deep: #064c45; --art-mid: #168d79; --art-light: #c4f5e4; --art-pop: #e3eb7a; }
.course-art--berry { --art-deep: #54254d; --art-mid: #b84f71; --art-light: #ffdbdf; --art-pop: #ffc66d; }
.course-art--teal { --art-deep: #073b53; --art-mid: #14979d; --art-light: #c0f3e8; --art-pop: #ffce7c; }

.course-art .course-art__visual { position: absolute; z-index: -3; inset: 0; display: block; overflow: hidden; background: var(--art-deep); }
.course-art .course-art__photo { position: absolute; inset: 0; display: block; width: 100%; max-width: none; height: 100%; margin: 0; border: 0; border-radius: 0; aspect-ratio: auto; object-fit: cover; object-position: var(--art-position); }
.course-art--photo::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .03) 25%, rgb(0 0 0 / .08) 43%, rgb(0 0 0 / .39) 68%, rgb(0 0 0 / .8) 100%); pointer-events: none; content: ''; }
.course-art .course-art__copy { position: absolute; z-index: 1; inset: 0; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 5.1cqw 5.7cqw; background: none; }
.course-art .course-art__title { display: block; max-width: 100%; margin: 0; color: #fff; font-family: inherit; font-size: clamp(20px, var(--art-type, 7.3cqw), 68px); font-weight: 850; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.course-art .course-art__title span { display: block; color: inherit; }
.course-art .course-art__title span + span { margin-top: .055em; }
.course-art--photo .course-art__title { text-shadow: 0 1px 16px rgb(0 0 0 / .18); }
.course-art .course-art__line { display: block; max-width: 100%; margin-top: 2cqw; overflow: hidden; color: #fff; font-family: inherit; font-size: clamp(10px, 2.8cqw, 20px); font-weight: 550; line-height: 1.4; letter-spacing: .015em; white-space: nowrap; text-overflow: ellipsis; }
.course-art .course-art__status { position: absolute; top: 5.2cqw; left: 5.7cqw; display: inline-block; max-width: 88%; padding: .45em .7em; border: 1px solid rgb(255 255 255 / .55); border-radius: 2px; background: rgb(0 0 0 / .22); color: #fff; font-size: clamp(9px, 2.4cqw, 17px); font-weight: 700; line-height: 1.2; letter-spacing: .06em; }

/* Scale the real photograph's selected rectangle to cover the entire canvas. */
.course-art .course-art__crop { position: absolute; top: 50%; left: 50%; display: block; width: max(100%, calc(var(--crop-ratio) * 100% / var(--art-ratio))); height: auto; aspect-ratio: var(--crop-ratio); overflow: hidden; transform: translate(-50%, -50%); }
.course-art .course-art__crop .course-art__photo { inset: var(--crop-y) auto auto var(--crop-x); width: var(--crop-width); height: var(--crop-height); object-fit: fill; }

/* Photo-free topics use native geometric compositions, with no invented people. */
.course-art--graphic .course-art__visual { background: linear-gradient(125deg, var(--art-deep) 4%, var(--art-mid) 100%); }
.course-art--graphic .course-art__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgb(7 12 31 / .82) 0%, rgb(7 12 31 / .68) 27%, rgb(7 12 31 / .53) 43%, transparent 75%);
  pointer-events: none;
  content: '';
}
.course-art .course-art__motif { position: absolute; top: -4%; right: -6%; display: block; width: 67%; height: 110%; overflow: visible; color: var(--art-light); }
.course-art__motif i, .course-art__motif::before, .course-art__motif::after { position: absolute; display: block; box-sizing: border-box; content: ''; }
.course-art__motif i { margin: 0; font: inherit; }

/* Haircut: open scissors and an oversized comb. */
.course-art--topic-scissors .course-art__visual { background: linear-gradient(133deg, #22294f 8%, #454a97 60%, #b35c82 130%); }
.course-art--topic-scissors .course-art__motif { top: -11%; right: -2%; width: 59%; height: 106%; transform: rotate(-17deg); }
.course-art__motif--scissors i:nth-child(1), .course-art__motif--scissors i:nth-child(2) { top: 48%; left: 16%; width: 26%; height: 28%; border: 2.1cqw solid #f7c4b2; border-radius: 50%; }
.course-art__motif--scissors i:nth-child(2) { left: 52%; }
.course-art__motif--scissors i:nth-child(3), .course-art__motif--scissors i:nth-child(4) { top: 2%; left: 42%; width: 7%; height: 60%; border-radius: 90% 5% 5% 5%; background: #f8e9db; transform: rotate(-28deg); transform-origin: 50% 88%; }
.course-art__motif--scissors i:nth-child(4) { left: 45%; border-radius: 5% 90% 5% 5%; transform: rotate(28deg); }
.course-art__motif--scissors i:nth-child(5) { top: 52%; left: 42%; width: 10%; aspect-ratio: 1; border: .5cqw solid #e9a48d; border-radius: 50%; background: #f6d3be; }
.course-art__motif--scissors i:nth-child(6) { top: 9%; left: 82%; width: 13%; height: 71%; border-radius: .8cqw; background: repeating-linear-gradient(0deg, #eab196 0 2.3%, transparent 2.3% 6.2%) 100% 50% / 75% 100% no-repeat, linear-gradient(#eab196, #eab196) 0 0 / 30% 100% no-repeat; transform: rotate(13deg); }

/* Pet care: a graphic collar, metal ring and tag; no pet or person invented. */
.course-art--topic-collar .course-art__visual { background: linear-gradient(130deg, #76422a 0%, #bb6738 55%, #e49554 100%); }
.course-art--topic-collar .course-art__motif { top: -20%; right: -10%; width: 76%; height: 119%; transform: rotate(-18deg); }
.course-art__motif--collar i:nth-child(1) { inset: 14% 8% 18%; border: 4cqw solid #f5ddaa; border-radius: 50%; transform: rotate(-28deg); }
.course-art__motif--collar i:nth-child(2) { top: 53%; left: 27%; width: 27%; height: 23%; border: 1.25cqw solid #d5e4e3; border-radius: 50%; }
.course-art__motif--collar i:nth-child(3) { top: 69%; left: 27%; width: 26%; height: 25%; border-radius: 30% 30% 18% 18%; background: #e8f3ed; transform: rotate(13deg); }
.course-art__motif--collar i:nth-child(4) { top: 75%; left: 36%; width: 6%; aspect-ratio: 1; border-radius: 50%; background: #99704a; }
.course-art__motif--collar i:nth-child(5) { top: 18%; left: 68%; width: 21%; height: 21%; border: .85cqw solid #d8dfd6; border-radius: 12%; transform: rotate(25deg); }
.course-art__motif--collar i:nth-child(6) { top: 10%; left: 13%; width: 27%; height: 5%; border-radius: 4cqw; background: #f5ddaa; transform: rotate(-40deg); }

/* Housework: a large trigger spray bottle, composed from simple cut shapes. */
.course-art--topic-spray .course-art__visual { background: linear-gradient(143deg, #163a74 5%, #296ba7 70%, #78b9cc 140%); }
.course-art--topic-spray .course-art__motif { top: -12%; right: -1%; width: 59%; height: 111%; transform: rotate(14deg); }
.course-art__motif--spray i:nth-child(1) { top: 37%; left: 24%; width: 52%; height: 59%; border-radius: 27% 27% 15% 15%; background: #e5eb9e; clip-path: polygon(28% 0,72% 0,100% 30%,96% 96%,91% 100%,9% 100%,4% 96%,0 30%); }
.course-art__motif--spray i:nth-child(2) { top: 25%; left: 39%; width: 22%; height: 19%; border-radius: 1cqw 1cqw 0 0; background: #d4dea2; }
.course-art__motif--spray i:nth-child(3) { top: 13%; left: 16%; width: 58%; height: 17%; border-radius: .8cqw 4cqw 1cqw .8cqw; background: #f5f1d9; }
.course-art__motif--spray i:nth-child(4) { top: 24%; left: 25%; width: 24%; height: 23%; border: 1.2cqw solid #f5f1d9; border-top: 0; border-left: 0; border-radius: 0 0 50% 0; }
.course-art__motif--spray i:nth-child(5) { top: 59%; left: 35%; width: 30%; height: 18%; border-radius: 50%; background: #316697; }
.course-art__motif--spray i:nth-child(6) { top: 8%; left: -3%; width: 16%; height: 2.5%; border-radius: 1cqw; background: #a5d8f3; box-shadow: -1cqw 3cqw 0 #a5d8f3, 0 6cqw 0 #a5d8f3; transform: rotate(9deg); }

/* Movement coaching: a single oversized dumbbell and a balancing arc. */
.course-art--topic-movement .course-art__visual { background: linear-gradient(130deg, #063e42 0%, #118780 70%, #63bba5 125%); }
.course-art--topic-movement .course-art__motif { top: -7%; right: -3%; width: 65%; height: 105%; transform: rotate(-27deg); }
.course-art__motif--movement i:nth-child(1) { top: 38%; left: 4%; width: 93%; height: 10%; border-radius: 6cqw; background: #e4f5ca; }
.course-art__motif--movement i:nth-child(2), .course-art__motif--movement i:nth-child(3) { top: 23%; left: 13%; width: 16%; height: 41%; border-radius: 3cqw; background: #cbe88c; }
.course-art__motif--movement i:nth-child(3) { left: 73%; }
.course-art__motif--movement i:nth-child(4), .course-art__motif--movement i:nth-child(5) { top: 30%; left: 2%; width: 10%; height: 27%; border-radius: 2cqw; background: #dff1ba; }
.course-art__motif--movement i:nth-child(5) { left: 91%; }
.course-art__motif--movement i:nth-child(6) { top: 16%; left: -10%; width: 120%; height: 71%; border: .55cqw solid rgb(215 248 235 / .37); border-top-color: transparent; border-left-color: transparent; border-radius: 50%; transform: rotate(29deg); }

/* Business operations: an upward bar composition, not a stock paper-card icon. */
.course-art--topic-chart .course-art__visual { background: linear-gradient(130deg, #57223f 0%, #b84c57 58%, #e38256 115%); }
.course-art--topic-chart .course-art__motif { top: -9%; right: -4%; width: 65%; height: 112%; transform: rotate(-12deg); }
.course-art__motif--chart i:nth-child(1) { bottom: 17%; left: 11%; width: 19%; height: 31%; border-radius: 1.4cqw 1.4cqw 0 0; background: #f8b98f; }
.course-art__motif--chart i:nth-child(2) { bottom: 17%; left: 38%; width: 19%; height: 49%; border-radius: 1.4cqw 1.4cqw 0 0; background: #ffda9c; }
.course-art__motif--chart i:nth-child(3) { bottom: 17%; left: 65%; width: 19%; height: 72%; border-radius: 1.4cqw 1.4cqw 0 0; background: #f9edc5; }
.course-art__motif--chart i:nth-child(4) { top: 19%; left: 4%; width: 41%; aspect-ratio: 1; border: .7cqw solid #f5c3ad; border-radius: 50%; background: #bd5a5a; }
.course-art__motif--chart i:nth-child(5) { top: 26%; left: 22%; width: 5%; height: 19%; border-radius: .5cqw; background: #f5c3ad; transform: rotate(20deg); }
.course-art__motif--chart i:nth-child(6) { bottom: 13%; left: 7%; width: 88%; height: .8%; background: rgb(255 229 206 / .65); }

/* Next intake: a bold calendar leaf, rings and one highlighted date. */
.course-art--topic-calendar .course-art__visual { background: linear-gradient(125deg, #24356b 4%, #5267b2 65%, #958ac4 120%); }
.course-art--topic-calendar .course-art__motif { top: -10%; right: -2%; width: 66%; height: 109%; transform: rotate(12deg); }
.course-art__motif--calendar i:nth-child(1) { inset: 17% 13% 13%; border: .8cqw solid #e5e2fc; border-radius: 4cqw; background: #d5d9f5; }
.course-art__motif--calendar i:nth-child(2) { top: 17%; left: 13%; width: 74%; height: 20%; border-radius: 4cqw 4cqw 0 0; background: #a7b5ed; }
.course-art__motif--calendar i:nth-child(3), .course-art__motif--calendar i:nth-child(4) { top: 8%; left: 29%; width: 8%; height: 21%; border: .7cqw solid #f4e4bc; border-radius: 3cqw; background: #343e73; }
.course-art__motif--calendar i:nth-child(4) { left: 63%; }
.course-art__motif--calendar i:nth-child(5) { top: 47%; left: 27%; width: 17%; height: 17%; border-radius: 1.3cqw; background: #edc27c; }
.course-art__motif--calendar i:nth-child(6) { top: 48%; left: 54%; width: 18%; height: 3%; border-radius: 1cqw; background: #9da9d6; box-shadow: 0 5cqw 0 #9da9d6, -16cqw 10cqw 0 #9da9d6, 0 10cqw 0 #9da9d6; }

/* Telephone communication: one expressive handset and restrained sound waves. */
.course-art--topic-phone .course-art__visual { background: linear-gradient(134deg, #113878 5%, #275fbc 63%, #7695e5 120%); }
.course-art--topic-phone .course-art__motif { top: -17%; right: -2%; width: 64%; height: 118%; transform: rotate(-28deg); }
.course-art__motif--phone i:nth-child(1) { top: 17%; left: 21%; width: 45%; height: 66%; border: 3.1cqw solid #f7d67e; border-top-color: transparent; border-right-color: transparent; border-radius: 45%; }
.course-art__motif--phone i:nth-child(2) { top: 17%; left: 13%; width: 30%; height: 22%; border-radius: 22%; background: #ffe7a7; transform: rotate(14deg); }
.course-art__motif--phone i:nth-child(3) { top: 66%; left: 49%; width: 30%; height: 22%; border-radius: 22%; background: #ffe7a7; transform: rotate(-10deg); }
.course-art__motif--phone i:nth-child(4), .course-art__motif--phone i:nth-child(5) { top: 28%; left: 48%; width: 30%; height: 29%; border: .8cqw solid #bfd5ff; border-bottom-color: transparent; border-left-color: transparent; border-radius: 50%; transform: rotate(12deg); }
.course-art__motif--phone i:nth-child(5) { top: 19%; left: 43%; width: 49%; height: 47%; opacity: .6; }

/* Coding: a large browser window with native bracket and slash shapes. */
.course-art--topic-code .course-art__visual { background: linear-gradient(126deg, #262053 0%, #604aab 62%, #a87bc7 125%); }
.course-art--topic-code .course-art__motif { top: -8%; right: -13%; width: 78%; height: 111%; transform: rotate(-11deg); }
.course-art__motif--code::before { inset: 16% 8% 15%; border: .7cqw solid #d9c9ff; border-radius: 3cqw; background: rgb(36 26 82 / .28); }
.course-art__motif--code::after { top: 31%; left: 8%; width: 84%; height: .6cqw; background: #d9c9ff; }
.course-art__motif--code i:nth-child(1), .course-art__motif--code i:nth-child(2) { top: 46%; left: 26%; width: 18%; height: 22%; border: 1.6cqw solid #f2d3b8; border-top: 0; border-right: 0; transform: rotate(45deg); }
.course-art__motif--code i:nth-child(2) { left: 62%; transform: rotate(225deg); }
.course-art__motif--code i:nth-child(3) { top: 42%; left: 50%; width: 4%; height: 38%; border-radius: 2cqw; background: #c5d6ff; transform: rotate(18deg); }
.course-art__motif--code i:nth-child(4) { top: 23%; left: 17%; width: 4%; aspect-ratio: 1; border-radius: 50%; background: #f5c695; box-shadow: 5cqw 0 0 #b7d7e9, 10cqw 0 0 #d9c9ff; }

/* Agent marketing: a connected workflow with three differently weighted nodes. */
.course-art--topic-flow .course-art__visual { background: linear-gradient(135deg, #0e475a 0%, #1b8190 64%, #70bab6 125%); }
.course-art--topic-flow .course-art__motif { top: -13%; right: -8%; width: 72%; height: 116%; transform: rotate(12deg); }
.course-art__motif--flow i:nth-child(1) { top: 18%; left: 24%; width: 39%; height: 29%; border: .6cqw solid #d3f0e8; border-radius: 25%; background: #9bddce; }
.course-art__motif--flow i:nth-child(2) { top: 61%; left: 3%; width: 32%; height: 25%; border-radius: 50%; background: #f9cf8d; }
.course-art__motif--flow i:nth-child(3) { top: 61%; left: 65%; width: 32%; height: 25%; border-radius: 50%; background: #d5e9d4; }
.course-art__motif--flow i:nth-child(4) { top: 46%; left: 18%; width: 64%; height: 26%; border: .65cqw solid #ccece7; border-bottom: 0; border-radius: 3cqw 3cqw 0 0; }
.course-art__motif--flow i:nth-child(5) { top: 43%; left: 44%; width: .7cqw; height: 15%; background: #ccece7; }
.course-art__motif--flow i:nth-child(6) { top: 27%; left: 35%; width: 17%; height: 11%; border: .6cqw solid #216e7b; border-top: 0; border-right: 0; transform: rotate(-45deg); }

@media (prefers-contrast: more) {
  .course-art--photo::after { background: linear-gradient(180deg, transparent 10%, rgb(0 0 0 / .12) 35%, rgb(0 0 0 / .85) 100%); }
  .course-art .course-art__line { font-weight: 700; }
}
