/* masters.md FIRST: Read masters.md BEFORE editing or adding files.
 * styles-home-carousel.css — the "cursuri sigure" carousel on index.html ONLY
 * (see home-carousel.js). Loaded AFTER styles.css; uses its tokens only. */

.home-courses { padding: 88px 0 72px; }

.hc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 36px;
}
.hc-head h2 { margin: 10px 0 8px; }
.hc-head p { color: var(--muted); max-width: 56ch; margin: 0; }

.hc-nav { display: flex; gap: 10px; }
.hc-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.hc-arrow:hover { background: var(--kraft); border-color: var(--ink); }
.hc-arrow:focus-visible, .hc-dot:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.hc-single .hc-nav, .hc-single .hc-dots { display: none; }

/* ---- track ---------------------------------------------------------- */
.hc-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 24px) / 3);
  column-gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 18px;
  scrollbar-width: none;
}
.hc-track::-webkit-scrollbar { display: none; }
@media (max-width: 980px) { .hc-track { grid-auto-columns: calc((100% - 20px) / 2); column-gap: 20px; } }
@media (max-width: 640px) { .hc-track { grid-auto-columns: 86%; column-gap: 14px; } }

/* ---- card ----------------------------------------------------------- */
.hc-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color .18s, transform .18s;
}
.hc-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.hc-photo {
  position: relative;
  aspect-ratio: 4 / 4.2;
  max-width: 100%;
  background: var(--kraft);
  overflow: hidden;
}
.hc-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.hc-card:hover .hc-photo img { transform: scale(1.03); }
.hc-photo-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-style: italic;
  color: var(--fog);
}
/* legibility gradient under the mentor name */
.hc-photo::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgba(27, 28, 31, .85), transparent);
  pointer-events: none;
}

.hc-date, .hc-pin {
  position: absolute; z-index: 2;
  top: 14px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
}
.hc-date { left: 14px; background: var(--cream); color: var(--ink); }
.hc-pin  { top: 50px; left: 14px; background: var(--coral); color: var(--cream); }

.hc-who {
  position: absolute; z-index: 2;
  left: 18px; right: 18px; bottom: 16px;
  display: flex; flex-direction: column; gap: 2px;
  color: var(--cream);
}
.hc-who-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.hc-who-role { font-family: var(--font-mono); font-size: .7rem; opacity: .85; }

.hc-body {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 20px 22px;
  flex: 1;
}
.hc-type {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.hc-title { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.2; margin: 0; }
.hc-blurb {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-stats { display: flex; gap: 10px; margin-top: auto; }
.hc-stat {
  flex: 1;
  background: var(--kraft);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex; flex-direction: column;
}
.hc-stat-v { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--coral); line-height: 1; }
.hc-stat-k { font-family: var(--font-mono); font-size: .66rem; color: var(--muted); margin-top: 4px; }
.hc-cta { justify-content: center; text-align: center; }
.hc-note { margin: -4px 0 0; font-family: var(--font-mono); font-size: .68rem; color: var(--muted-2); text-align: center; }

/* ---- dots + footer link --------------------------------------------- */
.hc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.hc-dot {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition: width .25s, background .25s;
}
.hc-dot[aria-current="true"] { width: 28px; background: var(--coral); }
.hc-all { text-align: center; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .hc-track { scroll-behavior: auto; }
  .hc-card, .hc-photo img { transition: none; }
}
