/* LUNARTECH RISE ACADEMY: "Courses" on index.html (#courses), directly under Programs. Built after the Programs carousel on Sean's
   home page: tall picture cards with a glass panel, and on hover a dark overlay, a slight zoom and an arrow in a glass circle. Here
   the courses are grouped into subjects, one slider at a time, each with a link to all of that subject's courses. The heading and
   arrows reuse Programs' styles (css/lunartech-programs.css), so the two sections read as a pair. Behaviour and the course list are
   in js/lunartech-courses-slider.js. */

.lt-courses { --lt-slide: min(88vw, 1640px); --lt-ease: cubic-bezier(0.16, 1, 0.3, 1); --lt-cc-w: clamp(16.5rem, 22.6vw, 24rem); --lt-cc-gap: clamp(0.9rem, 1.4vw, 1.5rem); }

.lt-cc-nav .lt-prog-arrow[aria-disabled='true'] { opacity: 0.35; cursor: default; pointer-events: none; }

/* the link to all of the chosen subject's courses, beside the arrows */
.lt-cc-actions { display: flex; flex: none; align-items: center; gap: clamp(1rem, 1.6vw, 1.75rem); }

/* the subjects, on one hairline. Where they don't fit the row scrolls sideways, and an edge fades only while there are more past it
   (has-left and has-right come from the script) */
.lt-cc-bar { width: var(--lt-slide); margin: 2.4rem auto 0; border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
.lt-cc-tabs { position: relative; display: flex; gap: clamp(1.15rem, 2.1vw, 2.5rem); overflow-x: auto; scrollbar-width: none; }
.lt-cc-tabs::-webkit-scrollbar { display: none; }
.lt-cc-tabs.has-left { --lt-fade-l: 36px; }
.lt-cc-tabs.has-right { --lt-fade-r: 36px; }
.lt-cc-tabs.has-left, .lt-cc-tabs.has-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--lt-fade-l, 0px), #000 calc(100% - var(--lt-fade-r, 0px)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--lt-fade-l, 0px), #000 calc(100% - var(--lt-fade-r, 0px)), transparent); }
.lt-cc-tab { flex: none; height: 52px; padding: 0; border: 0; background: none; font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 300; white-space: nowrap; color: rgba(255, 255, 255, 0.54); cursor: pointer; transition: color 0.3s; }
.lt-cc-tab:hover, .lt-cc-tab.is-active { color: #fff; }
.lt-cc-tab:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.6); outline-offset: -8px; border-radius: 8px; }
.lt-cc-ink { position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background-color: #e6e8ec; transition: transform 0.7s var(--lt-ease), width 0.7s var(--lt-ease); }
.lt-cc-all { display: inline-flex; flex: none; align-items: center; gap: 8px; font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 300; white-space: nowrap; color: rgba(255, 255, 255, 0.62); text-decoration: none; transition: color 0.3s; }
.lt-cc-all:hover { color: #fff; }
.lt-cc-all:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.6); outline-offset: 4px; border-radius: 6px; }
.lt-cc-all svg { width: 14px; height: 14px; }

/* A native scroller: the side padding lines the first and last cards up with the heading, and one swipe stops at a card */
.lt-cc-stage { margin: 1.9rem 0 0; }
.lt-cc-list { position: relative; display: flex; flex-direction: row; /* the template makes every ul a column */ gap: var(--lt-cc-gap); margin: 0; padding: 0 calc((100% - var(--lt-slide)) / 2); list-style: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: calc((100% - var(--lt-slide)) / 2); scrollbar-width: none; transition: opacity 0.24s ease; }
.lt-cc-list::-webkit-scrollbar { display: none; }
.lt-cc-list.is-moving { scroll-snap-type: none; }
.lt-cc-list.is-swapping { opacity: 0; } /* 0.24s = SWAP_MS in the script */
.lt-cc-list > li { display: block; flex: 0 0 var(--lt-cc-w); margin: 0; padding: 0; scroll-snap-align: start; }

.lt-cc-card { position: relative; display: block; width: 100%; aspect-ratio: 384 / 621; overflow: hidden; border-radius: 22px; background-color: #050505; color: inherit; text-decoration: none; isolation: isolate; }
.lt-cc-card:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.7); outline-offset: -3px; }
.lt-cc-card::after { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075); }

/* the picture, and the hover: it zooms slightly and darkens, and an arrow comes up in a glass circle */
.lt-cc-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--lt-ease); }
.lt-cc-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background-color: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.7s var(--lt-ease); }
.lt-cc-go { position: absolute; top: 44%; left: 50%; z-index: 3; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; background-color: rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(20px) saturate(120%); backdrop-filter: blur(20px) saturate(120%); color: #fff; opacity: 0; transform: translate(-50%, -50%) scale(0.82); pointer-events: none; transition: opacity 0.7s var(--lt-ease), transform 0.7s var(--lt-ease); }
.lt-cc-go svg { width: 1.6rem; height: 1.6rem; }
@media (hover: hover) {
  .lt-cc-card:hover .lt-cc-img { transform: scale(1.04); }
  .lt-cc-card:hover::before { opacity: 1; }
  .lt-cc-card:hover .lt-cc-go { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .lt-cc-card:hover .lt-cc-view { color: #fff; }
}
.lt-cc-card:focus-visible .lt-cc-img { transform: scale(1.04); }
.lt-cc-card:focus-visible::before { opacity: 1; }
.lt-cc-card:focus-visible .lt-cc-go { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* the glass panel: smoked, with one fine edge */
.lt-cc-panel { position: absolute; right: 0.85rem; bottom: 0.85rem; left: 0.85rem; z-index: 2; display: block; padding: 0.9rem 1.05rem 1.05rem; border-radius: 14px; background-color: rgba(12, 12, 14, 0.56); -webkit-backdrop-filter: blur(18px) saturate(115%) brightness(0.8); backdrop-filter: blur(18px) saturate(115%) brightness(0.8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.lt-cc-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.lt-cc-brand { font-family: 'Geist', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.78); }
.lt-cc-view { display: inline-flex; align-items: center; gap: 4px; font-family: 'Geist', sans-serif; font-size: 11.5px; font-weight: 300; white-space: nowrap; color: rgba(255, 255, 255, 0.58); transition: color 0.3s; }
.lt-cc-view svg { width: 12px; height: 12px; }
.lt-cc-title { margin: 0.55rem 0 0.3rem; font-family: 'Geist', sans-serif; font-size: clamp(14.5px, 1.05vw, 16.5px); font-weight: 400; line-height: 1.22; letter-spacing: -0.005em; text-transform: none; color: #fff; }
.lt-cc-tag { display: block; font-family: 'Geist', sans-serif; font-size: clamp(12px, 0.85vw, 13px); font-weight: 300; line-height: 1.4; color: rgba(255, 255, 255, 0.68); }

/* under the slider: the trial and the price, said once and plainly. No box and no glass; only the two things that matter are lit. The price also
   lives on the home pricing card, and tools/pricing/build.mjs stops if this line drifts from it. */
.lt-cc-offer { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; width: var(--lt-slide); margin: clamp(3.25rem, 5vw, 5.5rem) auto 0; }
.lt-cc-offer-line { flex: 1 1 26rem; min-width: 0; margin: 0; font-family: 'Geist', sans-serif; font-size: clamp(1.5rem, 2.35vw, 2.5rem); font-weight: 300; line-height: 1.22; letter-spacing: -0.02em; color: #8e8e8e; text-wrap: pretty; }
.lt-cc-offer-line .is-lit { color: #f5f5f5; }
.lt-cc-offer-then { display: block; }
.lt-cc-offer-go { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 0.8rem; }
.lt-courses a.lt-cc-trial { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; box-sizing: border-box; border-radius: 9999px; background-color: #fff; font-family: 'Geist', sans-serif; font-size: 13.5px; font-weight: 400; line-height: 1; white-space: nowrap; color: #000; text-decoration: none; transition: background-color 0.3s; }
.lt-courses a.lt-cc-trial:hover { background-color: #e6e8ec; color: #000; }
.lt-cc-trial:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }
.lt-cc-trial svg { width: 15px; height: 15px; transition: transform 0.7s var(--lt-ease); }
.lt-cc-trial:hover svg { transform: translateX(3px); }
.lt-cc-offer-note { margin: 0; font-family: 'Geist', sans-serif; font-size: 12.5px; font-weight: 300; line-height: 1.5; color: rgba(255, 255, 255, 0.54); }

/* a phone: the link and the arrows share a line under the heading */
@media (max-width: 767px) {
  .lt-courses { --lt-cc-w: min(70vw, 17rem); }
  .lt-cc-actions { flex: 1 1 100%; justify-content: space-between; }
  .lt-cc-bar { margin-top: 1.4rem; }
  .lt-cc-stage { margin-top: 1.4rem; }
  .lt-cc-card { border-radius: 18px; }
}

/* a tablet or a phone: the button goes under the line */
@media (max-width: 991px) {
  .lt-cc-offer { display: block; }
  .lt-cc-offer-go { align-items: flex-start; margin-top: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lt-cc-img, .lt-cc-go, .lt-cc-card::before, .lt-cc-ink, .lt-cc-list, .lt-cc-trial, .lt-cc-trial svg { transition: none !important; }
}
