
/* ======================================================
   CYRTIX — COURSE LIST (v2 · Token Correct)
====================================================== */

/* ---------- BASE ---------- */
.section {
  padding: var(--cx-space-16) 0;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 var(--cx-space-4);

}

.section-header {
  margin-bottom: var(--cx-space-8);
}

.section-title {
  font-size: var(--cx-text-3xl);
  font-weight: var(--cx-weight-bold);
  color: var(--cx-slate-50);
}

.section-subtitle {
  margin-top: var(--cx-space-2);
  max-width: 640px;
  color: var(--cx-slate-400);
}

/* ---------- SECTION SURFACES ---------- */

.bg-base {
  background: var(--cx-surface-900);
}

.bg-alt {
  background: var(--cx-surface-800);
}

.section {
  padding: var(--cx-space-16) 0;
  position: relative;
}

/* ---------- HERO ---------- */

/* ======================================================
   HERO — ACADEMIC GRADE
====================================================== */

.hero-courses {
  min-height: 420px;
  background: var(--cx-hero-gradient);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,26,63,0.85),
    rgba(10,18,30,0.6)
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cx-space-12);
}

.hero-text {
  max-width: 780px;
}

.hero-title {
  font-size: var(--cx-text-hero);
  font-weight: var(--cx-weight-extrabold);
  color: var(--cx-slate-50);
}

.hero-sub {
  margin-top: var(--cx-space-3);
  font-size: var(--cx-text-lg);
  color: var(--cx-slate-400);
  line-height: var(--cx-leading-relaxed);
}

/* ---------- CREST ---------- */

.hero-logo-wrap {
  flex-shrink: 0;
}

.hero-logo {
  height: 96px;
  width: auto;
  filter: drop-shadow(var(--cx-glow-cyan-soft));
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-logo {
    height: 72px;
  }
}

/* ---------- FILTER BAR ---------- */
.filter-bar {
  background: var(--cx-surface-800);
  border-bottom: 1px solid var(--cx-white-a06);
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cx-gap-sm);
}

.filter-form input,
.filter-form select {
  padding: var(--cx-space-2) var(--cx-space-3);
  background: var(--cx-slate-900);
  border: 1px solid var(--cx-white-a08);
  color: var(--cx-slate-300);
  border-radius: var(--cx-radius-md);
  font-size: var(--cx-text-sm);
}

.filter-form input:focus,
.filter-form select:focus {
  outline: none;
  box-shadow: var(--cx-focus-ring);
  border-color: var(--cx-cyan-500);
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: var(--cx-grad-crimson);
  color: #fff;
  padding: var(--cx-space-2) var(--cx-space-4);
  border-radius: var(--cx-btn-radius);
  font-weight: var(--cx-weight-semibold);
}

.btn-outline {
  border: 1px solid var(--cx-cyan-a40);
  color: var(--cx-cyan-400);
  background: transparent;
  padding: var(--cx-space-2) var(--cx-space-4);
  border-radius: var(--cx-btn-radius);
}

/* ---------- GRID ---------- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--cx-space-8);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--cx-gap-lg);
}

/* ---------- COURSE CARD ---------- */
.course-card {
  background: var(--cx-card-bg);
  border: 1px solid var(--cx-card-border);
  border-radius: var(--cx-radius-card);
  transition: var(--cx-duration-base) var(--cx-ease-smooth);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cx-shadow-lg);
  border-color: var(--cx-cyan-a40);
}

.course-card a {
  display: block;
  padding: var(--cx-space-4);
  color: inherit;
  text-decoration: none;
}

.course-thumb img,
.thumb-placeholder {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--cx-radius-md);
  background: var(--cx-cyan-a10);
}

/* ---------- META ---------- */
.course-meta {
  display: flex;
  gap: var(--cx-space-2);
  margin-top: var(--cx-space-3);
}

.badge-level {
  background: var(--cx-crimson-a20);
  color: var(--cx-crimson-400);
  padding: var(--cx-space-1) var(--cx-space-3);
  border-radius: var(--cx-radius-full);
  font-size: var(--cx-text-xs);
  font-weight: var(--cx-weight-bold);
}

.badge-flagship {
  background: var(--cx-cyan-a20);
  color: var(--cx-cyan-400);
  padding: var(--cx-space-1) var(--cx-space-3);
  border-radius: var(--cx-radius-full);
  font-size: var(--cx-text-xs);
}

/* ---------- TEXT ---------- */
.course-title {
  margin: var(--cx-space-3) 0 var(--cx-space-1);
  font-size: var(--cx-text-lg);
  font-weight: var(--cx-weight-semibold);
  color: var(--cx-slate-50);
}

.course-desc {
  font-size: var(--cx-text-sm);
  color: var(--cx-slate-400);
  line-height: var(--cx-leading-relaxed);
}

/* ---------- FOOTER ---------- */
.course-footer {
  display: flex;
  justify-content: space-between;
  margin-top: var(--cx-space-4);
  font-size: var(--cx-text-sm);
  color: var(--cx-cyan-400);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--cx-space-6);
  }
}

