/* ============ Training index — page-specific styles ============
   Loaded AFTER ../assets/css/style.css and relies on its reset,
   variables, header, footer, buttons and .section styles. */

.site-nav .nav-active { color: var(--purple); font-weight: 600; }

/* ============ Hero ============ */
.t-hero {
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(167, 92, 190, 0.40), transparent 62%),
    radial-gradient(700px 380px at 6% 115%, rgba(123, 47, 143, 0.38), transparent 60%),
    linear-gradient(150deg, #2e1c42, var(--dark) 58%, #31173f);
  color: #fff;
  overflow: hidden;
}
.t-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}
.t-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.15; margin-bottom: 16px; }
.t-lead { color: rgba(255, 255, 255, 0.80); font-size: 1.05rem; max-width: 560px; margin-bottom: 30px; }
.t-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.t-stats strong { display: block; font-size: 1.5rem; line-height: 1.2; }
.t-stats span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }
.t-hero-media { position: relative; }
.t-hero-media img {
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(10, 4, 18, 0.5);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.t-hero-badge {
  position: absolute;
  bottom: -18px;
  inset-inline-start: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 20px;
  box-shadow: 0 18px 44px rgba(10, 4, 18, 0.35);
}
.t-hero-badge svg { width: 30px; height: 30px; color: var(--purple); flex-shrink: 0; }
.t-hero-badge strong { display: block; font-size: 0.92rem; line-height: 1.3; }
.t-hero-badge small { font-size: 0.76rem; color: var(--muted); }

/* ============ Feature strip ============ */
.t-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -34px;
  position: relative;
  z-index: 3;
}
.t-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 14px 40px -16px rgba(34, 22, 49, 0.18);
}
.t-features svg { width: 28px; height: 28px; color: var(--purple); flex-shrink: 0; }
.t-features strong { display: block; font-size: 0.94rem; line-height: 1.35; }
.t-features span { font-size: 0.8rem; color: var(--muted); }

/* ============ Courses ============ */
.t-courses { padding-top: 64px; }
.t-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.t-filter {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.t-filter:hover { border-color: var(--purple); color: var(--purple); }
.t-filter.on { background: var(--purple); border-color: var(--purple); color: #fff; }

.t-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 8px;
}
.t-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.t-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.t-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: linear-gradient(150deg, #2e1c42, var(--dark));
  overflow: hidden;
}
.t-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.t-card:hover .t-cover img { transform: scale(1.04); }
.t-lock {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(34, 22, 49, 0.62);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.t-lock svg { width: 14px; height: 14px; }
.t-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.t-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.t-meta .chip {
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 13px;
}
.t-lessons { font-size: 0.8rem; color: var(--muted); }
.t-body h3 { font-size: 1.08rem; line-height: 1.45; margin-bottom: 8px; }
.t-body h3 a:hover { color: var(--purple); }
.t-desc {
  font-size: 0.88rem;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.t-progress { margin-bottom: 14px; }
.t-progress-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--purple-soft);
  overflow: hidden;
}
.t-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a75cbe, var(--purple));
}
.t-progress small { font-size: 0.76rem; color: var(--purple); font-weight: 600; }
.t-actions { margin-top: auto; }
.t-actions .btn { width: 100%; }
.t-actions svg { width: 18px; height: 18px; }

.t-empty { text-align: center; padding: 70px 0; color: var(--muted); }
.t-empty svg { width: 54px; height: 54px; margin: 0 auto 14px; color: #c9c0d4; display: block; }

/* ============ How it works ============ */
.t-how { background: var(--light, #f8f6fa); }
.t-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.t-steps article {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.t-steps article:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.t-step-num {
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--purple-soft);
}
.t-steps h3 { margin: 16px 0 8px; font-size: 1.05rem; }
.t-steps p { font-size: 0.9rem; color: var(--ink-2); }
.t-cta {
  margin-top: 52px;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.t-cta p { color: var(--ink-2); margin-bottom: 18px; font-weight: 500; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .t-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .t-hero-inner { grid-template-columns: 1fr; padding: 54px 0; gap: 40px; }
  .t-hero-media { max-width: 560px; }
  .t-steps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .t-features { grid-template-columns: 1fr; margin-top: -20px; }
  .t-grid { grid-template-columns: 1fr; }
  .t-hero-badge { inset-inline-start: 10px; bottom: -14px; }
}
