/* Shared course-hero system, with a different visual story for each subject. */
.course-hero.course-hero-designed { --accent: #1455d9; --tint: #eaf1ff; --deep: #123568; padding: 146px 0 76px; background: radial-gradient(ellipse at 90% 25%, var(--tint), transparent 60%), #f8faff; isolation: isolate; }
.course-hero-designed::after { display: none; }
.course-hero-designed[data-theme="seo"] { --accent: #087c66; --tint: #e0f5ed; --deep: #10483c; }
.course-hero-designed[data-theme="sem"] { --accent: #9d520b; --tint: #fff0db; --deep: #60380e; }
.course-hero-designed[data-theme="smm"] { --accent: #a33d79; --tint: #fbe7f2; --deep: #58294d; }
.course-hero-designed[data-theme="smo"] { --accent: #6750bc; --tint: #eeebff; --deep: #36265e; }
.course-hero-designed[data-theme="email"] { --accent: #087b94; --tint: #ddf5fa; --deep: #124551; }
.course-hero-designed[data-theme="content"] { --accent: #a84b34; --tint: #fcebe2; --deep: #64392b; }
.course-hero-designed .course-badge { font-size: 12px; font-weight: 600; color: var(--accent); background: #fff; border-color: #dce4ef; }
.course-hero-designed h1 { font-size: clamp(38px, 4.3vw, 60px); line-height: 1.09; letter-spacing: -.04em; max-width: 620px; }
.course-hero-designed h1 span { color: var(--accent); }
.course-hero-designed .course-location { display: block; margin-top: 12px; color: #596b80; font-size: .46em; letter-spacing: -.015em; font-weight: 500; line-height: 1.35; }
.course-hero-designed .course-copy { max-width: 550px; font-size: 17px; }
.course-hero-designed .course-actions a { border-radius: 999px; font-weight: 600; }
.course-hero-designed .course-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px #16355018; }
.course-hero-designed .course-btn-primary:hover { color: #fff; }
.course-hero-designed .course-visual { border: 0; padding: 0 0 0 24px; background: transparent; box-shadow: none; }
.course-hero-designed .course-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid #172b431a; margin-top: 18px; }
.course-hero-designed .course-stat { background: none; padding: 20px 4px 0; }
.course-hero-designed .course-stat strong { font-size: 20px; margin-bottom: 8px; }
.course-hero-designed .course-stat span { font-size: 11px; font-weight: 500; }
.course-art { position: relative; width: 100%; aspect-ratio: 1.2; max-width: 560px; margin: auto; isolation: isolate; }
.course-art::before { content: ''; position: absolute; inset: 5% 1%; background-image: radial-gradient(var(--accent) .8px, transparent .8px); background-size: 20px 20px; opacity: .15; mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); z-index: -1; }
.art-panel { position: absolute; background: #fff; border: 1px solid #dce5ef; border-radius: 20px; box-shadow: 0 22px 48px #18395712; overflow: hidden; }
.art-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #758496; font-size: 9px; letter-spacing: .1em; font-weight: 600; }
.art-topline b { color: var(--accent); font-size: 9px; letter-spacing: 0; padding: 5px 8px; background: var(--tint); border-radius: 6px; }
.art-heading { display: block; color: var(--deep); font-size: clamp(22px, 2.5vw, 33px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; margin: 20px 0; }
.art-lines { display: grid; gap: 8px; }
.art-lines span { display: block; height: 5px; width: 100%; border-radius: 3px; background: #e8edf4; }
.art-lines span:last-child { width: 66%; }
.art-tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 12px 15px; background: var(--deep); color: #fff; font-size: 12px; border-radius: 12px; box-shadow: 0 12px 28px #12324b18; z-index: 3; }
.art-tag i { color: #b9f0d9; font-size: 17px; }
.art-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.art-footer > span { font-size: 10px; color: #63748a; }
.course-motion-toggle { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 8px 10px; border: 1px solid #dce5ef; border-radius: 999px; background: #fff9; font: inherit; font-size: 11px; color: #526074; }
.course-motion-toggle[hidden] { display: none; }
.course-motion-toggle:focus-visible, .course-hero-designed .course-actions a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
/* Digital marketing: a living campaign dashboard. */
.art-dashboard { inset: 10% 4% 12% 7%; padding: 24px; }
.dashboard-chart { display: flex; align-items: end; gap: 12px; height: 115px; border-bottom: 1px solid #e5ecf4; padding: 0 10px; }
.dashboard-chart span { flex: 1; height: var(--bar); background: linear-gradient(var(--accent), #74b9ee); border-radius: 7px 7px 0 0; transform-origin: bottom; animation: chart-grow 5s ease-in-out infinite; animation-delay: var(--delay); }
.dashboard-channels { display: flex; justify-content: space-between; margin-top: 15px; font-size: 10px; color: #66758b; }
.art-digital .art-tag { bottom: 5%; right: 0; animation: tag-lift 5s ease-in-out infinite; }
/* SEO: search results scanned by a gentle highlight. */
.search-window { inset: 7% 6% 6%; padding: 23px; }
.search-query { display: flex; align-items: center; gap: 10px; background: #f4f8f7; border: 1px solid #dfece6; border-radius: 999px; padding: 13px 15px; font-size: 12px; color: #436157; margin: 19px 0; }
.search-result { position: relative; padding: 13px 12px; border-radius: 11px; margin-top: 8px; overflow: hidden; }
.search-result:first-of-type { background: var(--tint); }
.search-result strong { display: block; font-size: 14px; color: var(--deep); margin-bottom: 8px; }
.search-result small { display: block; color: #648071; font-size: 9px; margin-bottom: 6px; }
.search-result::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, #b2e7ce70 50%, transparent 80%); transform: translateX(-110%); animation: search-scan 7s ease-in-out infinite; }
.search-result:nth-of-type(3)::after { animation-delay: 1s; }
.art-seo .art-tag { right: 0; bottom: 1%; }
/* SEM: campaign stages, descending toward conversion. */
.ad-plan { inset: 8% 8% 8%; padding: 23px; background: #fffdf9; }
.ad-funnel { display: grid; justify-items: center; gap: 10px; margin-top: 25px; }
.ad-funnel div { width: var(--stage); display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 10px; background: var(--tint); color: var(--deep); font-size: 13px; animation: funnel-step 6s ease-in-out infinite; animation-delay: var(--delay); }
.ad-funnel div:last-child { background: var(--deep); color: #fff; }
.ad-funnel i { font-size: 18px; }
.art-sem .art-tag { right: 0; top: 0; background: #fff; color: var(--deep); transform: rotate(5deg); }
.art-sem .art-tag i { color: var(--accent); }
/* Social marketing: a staggered creative storyboard. */
.social-tile { position: absolute; width: 40%; height: 70%; top: 13%; border: 5px solid #fff; border-radius: 22px; padding: 18px; box-shadow: 0 18px 35px #5027421c; display: flex; flex-direction: column; justify-content: space-between; animation: social-sway 7s ease-in-out infinite; }
.social-tile small { font-size: 9px; letter-spacing: .1em; }
.social-tile strong { font-size: clamp(24px, 3vw, 38px); line-height: 1.02; letter-spacing: -.04em; }
.social-tile i { font-size: 26px; }
.social-tile-one { left: 2%; top: 10%; background: #f5d0de; color: #682747; --tilt: -9deg; }
.social-tile-two { left: 30%; background: #633755; color: #fff; z-index: 2; --tilt: 2deg; animation-delay: -2s; }
.social-tile-three { right: 0; top: 17%; background: #f9d996; color: #69430a; --tilt: 11deg; animation-delay: -4s; }
.art-smm .art-tag { bottom: 3%; left: 19%; background: #fff; color: var(--deep); }
.art-smm .art-tag i { color: var(--accent); }
/* Social optimization: profile checklist and animated completion tracks. */
.profile-panel { inset: 8% 9% 9%; padding: 25px; }
.profile-head { display: flex; gap: 14px; align-items: center; margin: 24px 0; }
.profile-avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--tint); color: var(--accent); font-size: 27px; flex-shrink: 0; }
.profile-head strong { display: block; color: var(--deep); font-size: 22px; line-height: 1.2; }
.profile-head small { font-size: 11px; color: #748198; }
.profile-check { display: grid; grid-template-columns: 1fr 20px; gap: 8px; margin: 17px 0; font-size: 12px; color: #526074; }
.profile-check i { color: var(--accent); }
.profile-track { grid-column: 1 / -1; height: 5px; background: var(--tint); border-radius: 3px; overflow: hidden; }
.profile-track::after { content: ''; display: block; height: 100%; background: var(--accent); transform-origin: left; animation: profile-fill 7s ease-in-out infinite; animation-delay: var(--delay); }
.art-smo .art-tag { right: 0; bottom: 1%; }
/* Email: a letter rising out of an envelope. */
.email-letter { inset: 4% 18% 21%; padding: 23px; animation: letter-rise 7s ease-in-out infinite; }
.email-letter .art-heading { margin: 24px 0 18px; }
.email-letter .letter-cta { display: inline-block; color: #fff; background: var(--accent); border-radius: 7px; padding: 8px 18px; font-size: 10px; margin-top: 18px; }
.email-envelope { position: absolute; left: 10%; right: 10%; bottom: 8%; height: 44%; background: #bde3ed; border-radius: 0 0 18px 18px; filter: drop-shadow(0 15px 15px #12516a12); }
.email-envelope::before { content: ''; position: absolute; inset: 0; background: #d9f1f6; clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 100%, 0 100%); border-radius: inherit; }
.email-envelope::after { content: ''; position: absolute; inset: 0; background: #cdeaf2; clip-path: polygon(0 100%, 50% 45%, 100% 100%); border-radius: inherit; }
.email-send { position: absolute; top: 16%; right: 5%; font-size: 31px; color: var(--accent); animation: send-drift 6s ease-in-out infinite; }
.art-email .art-tag { bottom: 3%; right: 2%; }
/* Content marketing: an editorial canvas with writing-line motion. */
.editor-paper { inset: 6% 13% 9% 7%; padding: 24px; transform: rotate(-3deg); background: #fffdf9; }
.editor-paper .art-heading { font-family: Georgia, serif; font-size: clamp(30px, 3.4vw, 45px); font-weight: 400; margin: 24px 0; }
.editor-paper .art-lines span { transform-origin: left; animation: writing-line 8s ease-in-out infinite; animation-delay: var(--delay); }
.editor-swatch { display: flex; gap: 7px; margin-top: 22px; }
.editor-swatch span { width: 28px; height: 28px; border-radius: 5px; background: var(--deep); }
.editor-swatch span:nth-child(2) { background: #df9573; }
.editor-swatch span:nth-child(3) { background: #ead7b7; }
.editor-note { position: absolute; right: 0; bottom: 15%; width: 37%; padding: 18px; border-radius: 3px; background: #ffe5a4; color: #6f501c; transform: rotate(7deg); box-shadow: 0 12px 28px #60380e15; animation: note-tilt 7s ease-in-out infinite; }
.editor-note small { font-size: 9px; letter-spacing: .1em; }
.editor-note strong { display: block; font-family: Georgia, serif; font-size: 21px; line-height: 1.2; margin-top: 8px; font-weight: 400; }
.art-content .art-tag { bottom: 1%; left: 12%; }
.course-hero-designed.is-motion-paused .course-art * { animation-play-state: paused; }
@keyframes chart-grow { 0%,100% { transform: scaleY(.72); } 50% { transform: scaleY(1); } }
@keyframes tag-lift { 50% { transform: translateY(-8px); } }
@keyframes search-scan { 0%,20% { transform: translateX(-110%); } 65%,100% { transform: translateX(110%); } }
@keyframes funnel-step { 0%,70%,100% { transform: translateY(0); } 35% { transform: translateY(4px); } }
@keyframes social-sway { 0%,100% { transform: rotate(var(--tilt)) translateY(0); } 50% { transform: rotate(var(--tilt)) translateY(-10px); } }
@keyframes profile-fill { 0%,100% { transform: scaleX(.6); } 45%,75% { transform: scaleX(1); } }
@keyframes letter-rise { 0%,100% { transform: translateY(12px); } 50% { transform: translateY(0); } }
@keyframes send-drift { 0%,100% { transform: translate(0,0) rotate(-8deg); } 50% { transform: translate(8px,-12px) rotate(4deg); } }
@keyframes writing-line { 0%,100% { transform: scaleX(.4); } 40%,80% { transform: scaleX(1); } }
@keyframes note-tilt { 0%,100% { transform: rotate(7deg); } 50% { transform: rotate(3deg) translateY(-5px); } }
@media (max-width: 1199px) and (min-width: 992px) {
  .art-dashboard, .search-window, .ad-plan, .profile-panel, .email-letter, .editor-paper { padding: 18px; }
  .dashboard-chart { height: 85px; }
  .art-heading { margin: 14px 0; }
  .search-query { margin: 12px 0; }
  .search-result { padding: 9px; }
  .ad-funnel { margin-top: 15px; gap: 8px; }
  .ad-funnel div { padding: 12px; }
  .profile-head { margin: 14px 0; }
  .profile-check { margin: 12px 0; }
}
@media (max-width: 991px) {
  .course-hero.course-hero-designed { padding: 116px 0 55px; }
  .course-hero-designed .course-visual { padding: 0; max-width: 560px; margin: 32px auto 0; }
  .course-hero-designed h1, .course-hero-designed .course-copy { max-width: 680px; }
  .art-heading { font-size: 30px; }
  .social-tile strong { font-size: 35px; }
  .editor-paper .art-heading { font-size: 40px; }
}
@media (max-width: 575px) {
  .course-hero.course-hero-designed { padding: 108px 0 42px; }
  .course-hero-designed h1 { font-size: clamp(35px, 9.5vw, 48px); }
  .course-hero-designed .course-copy { font-size: 16px; }
  .course-hero-designed .course-badge { font-size: 11px; padding: 9px 12px; }
  .course-art { aspect-ratio: 1; }
  .art-dashboard, .search-window, .ad-plan, .profile-panel, .email-letter, .editor-paper { padding: 16px; }
  .art-heading { font-size: 25px; margin: 16px 0; }
  .art-tag { font-size: 10px; padding: 10px 12px; }
  .dashboard-chart { height: 95px; gap: 9px; }
  .dashboard-channels { font-size: 8px; }
  .search-query { font-size: 10px; padding: 10px; margin: 12px 0; }
  .search-result { padding: 10px; }
  .search-result strong { font-size: 12px; }
  .ad-funnel { margin-top: 20px; }
  .ad-funnel div { padding: 13px 10px; font-size: 11px; }
  .social-tile { padding: 12px; }
  .social-tile strong { font-size: 27px; }
  .social-tile small { font-size: 8px; }
  .profile-head { margin: 17px 0; gap: 10px; }
  .profile-head strong { font-size: 19px; }
  .profile-check { margin: 13px 0; }
  .profile-avatar { width: 44px; height: 44px; font-size: 22px; }
  .editor-paper .art-heading { font-size: 31px; margin: 18px 0; }
  .editor-note { padding: 13px; }
  .editor-note strong { font-size: 18px; }
  .art-footer > span { font-size: 9px; }
}
@media (max-width: 360px) {
  .art-topline { font-size: 8px; letter-spacing: .04em; }
  .art-topline b { font-size: 8px; padding: 4px; }
  .dashboard-chart { height: 75px; }
  .search-result { padding: 8px; }
  .search-result small { margin-bottom: 4px; }
  .ad-funnel { gap: 8px; margin-top: 12px; }
  .ad-funnel div { padding: 10px; }
  .profile-head { margin: 12px 0; }
  .profile-check { margin: 10px 0; }
  .social-tile strong { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .course-hero-designed *, .course-hero-designed *::after { animation: none !important; transition: none !important; }
  .course-hero-designed [data-aos] { opacity: 1 !important; transform: none !important; }
  .social-tile { transform: rotate(var(--tilt)); }
}

/* Image-led course compositions, with compact animated subject cues. */
.course-art.course-art-photo { aspect-ratio: 1.08; }
.course-photo-backdrop { position: absolute; inset: 13% 1% 16% 7%; border-radius: 30px; background: var(--tint); border: 1px solid #172b4310; transform: rotate(4deg); }
.course-photo-label { position: absolute; top: 0; left: 3%; display: flex; align-items: center; gap: 9px; color: var(--deep); font-size: 12px; font-weight: 600; }
.course-photo-label > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--tint); color: var(--accent); font-size: 17px; }
.course-photo-frame { position: absolute; inset: 11% 5% 18% 1%; margin: 0; padding: 10px; border: 1px solid #dce5ef; border-radius: 24px; background: #fff; box-shadow: 0 20px 48px #18395714; overflow: hidden; }
.course-hero-designed .course-visual .course-photo-frame img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: #fff; border-radius: 16px; }
.course-photo-widget { position: absolute; right: 0; bottom: 1%; width: 58%; min-height: 92px; padding: 14px 17px; border: 1px solid #dce5ef; border-radius: 17px; background: #fff; box-shadow: 0 12px 32px #18395714; }
.photo-widget-title { display: block; color: var(--deep); font-size: 11px; font-weight: 600; margin-bottom: 10px; }
.photo-bars { height: 35px; display: flex; align-items: end; gap: 9px; }
.photo-bars span { flex: 1; height: var(--bar); border-radius: 4px 4px 0 0; background: var(--accent); transform-origin: bottom; animation: chart-grow 5s ease-in-out infinite; animation-delay: var(--delay); }
.photo-search { position: relative; display: flex; align-items: center; gap: 7px; overflow: hidden; padding: 10px; color: var(--accent); background: var(--tint); border-radius: 8px; font-size: 10px; }
.photo-scan { position: absolute; inset: 0; background: linear-gradient(100deg, transparent, #ffffffb0, transparent); animation: search-scan 6s ease-in-out infinite; }
.photo-funnel { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--accent); font-size: 10px; }
.photo-funnel span { padding: 9px 6px; background: var(--tint); border-radius: 6px; animation: funnel-step 5s ease-in-out infinite; }
.photo-funnel span:nth-of-type(2) { animation-delay: -1.5s; }
.photo-funnel span:nth-of-type(3) { animation-delay: -3s; background: var(--deep); color: #fff; }
.photo-reactions { display: flex; justify-content: space-between; gap: 9px; }
.photo-reactions i { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--tint); color: var(--accent); font-size: 17px; animation: tag-lift 4s ease-in-out infinite; }
.photo-reactions i:nth-child(2) { animation-delay: -1s; }
.photo-reactions i:nth-child(3) { animation-delay: -2s; }
.photo-reactions i:nth-child(4) { animation-delay: -3s; }
.photo-profile { display: flex; flex-wrap: wrap; gap: 7px; }
.photo-profile span { font-size: 10px; color: var(--deep); }
.photo-profile i { display: inline-block; color: var(--accent); animation: profile-check 6s ease-in-out infinite; }
.photo-profile span:nth-child(2) i { animation-delay: -2s; }
.photo-profile span:nth-child(3) i { animation-delay: -4s; }
.photo-mail { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 20px; }
.photo-mail > span:last-child { font-size: 10px; }
.photo-mail-path { flex: 1; border-top: 2px dashed #98c6d0; }
.photo-mail .bi-send { animation: send-drift 6s ease-in-out infinite; }
.photo-writing { position: relative; display: grid; gap: 6px; padding-right: 30px; }
.photo-writing span { height: 4px; width: 90%; border-radius: 3px; background: var(--accent); transform-origin: left; animation: writing-line 8s ease-in-out infinite; }
.photo-writing span:nth-child(2) { width: 70%; animation-delay: -1s; }
.photo-writing span:nth-child(3) { width: 80%; animation-delay: -2s; }
.photo-writing i { position: absolute; right: 0; top: 0; color: var(--accent); font-size: 22px; animation: note-tilt 6s ease-in-out infinite; }
.art-digital .course-photo-frame { animation: photo-breathe 9s ease-in-out infinite; }
.art-seo .course-photo-frame { border-radius: 24px 24px 8px 8px; }
.art-sem .course-photo-frame { animation: photo-tilt 10s ease-in-out infinite; }
.art-smm .course-photo-frame { transform: rotate(-2deg); }
.art-smm .course-photo-backdrop { transform: rotate(7deg); }
.art-smo .course-photo-frame { box-shadow: 9px 9px 0 var(--tint), 0 20px 48px #18395714; }
.art-email .course-photo-frame { animation: photo-breathe 8s ease-in-out infinite reverse; }
.art-content .course-photo-frame { border-radius: 6px; transform: rotate(-2deg); padding: 14px 14px 24px; }
.art-content .course-photo-widget { border-radius: 5px; background: #fff8e8; }
@keyframes photo-breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes photo-tilt { 0%,100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }
@keyframes profile-check { 0%,100% { transform: scale(.8); opacity: .6; } 45%,70% { transform: scale(1); opacity: 1; } }
@media (max-width: 575px) {
  .course-art.course-art-photo { aspect-ratio: auto; display: grid; gap: 16px; padding: 0; }
  .course-photo-backdrop { inset: 14% 0 29% 3%; border-radius: 20px; }
  .course-photo-label { position: relative; left: auto; top: auto; font-size: 11px; }
  .course-photo-frame { position: relative; inset: auto; width: calc(100% - 8px); aspect-ratio: 4 / 3; padding: 8px; border-radius: 18px; }
  .course-photo-widget { position: relative; right: auto; bottom: auto; justify-self: end; width: 85%; min-height: 86px; padding: 13px 16px; }
  .course-photo-frame img { border-radius: 12px; }
  .photo-funnel { font-size: 11px; }
  .photo-search { font-size: 11px; }
  .photo-profile { gap: 10px; }
}
