/* course-dsa.css — extracted from the embedded <style> block in courses/dsa.html */
/* ═══════════════════════════════════════════
   DSA Course Page — page-specific styles
   Uses all site CSS variables from style.css
═══════════════════════════════════════════ */

/* ── Hero ── */
.dsa-hero {
  padding: 52px 0 48px;
  border-bottom: 1px solid var(--border);
}
.dsa-hero-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.dsa-hero-left { max-width: 560px; }

.dsa-hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
}
.dsa-hero-title .accent { color: var(--primary); font-weight: 800; }

.dsa-hero-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.dsa-hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.dsa-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.dsa-stat svg.lucide { font-size: 15px; color: var(--primary); }

/* Hero illustration — matches screenshot's code editor graphic */
.dsa-hero-img {
  width: 220px;
  height: 200px;
  flex-shrink: 0;
  position: relative;
}
.hero-illus {
  width: 100%;
  height: 100%;
}

/* ── Section shared ── */
.dsa-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.dsa-section:last-of-type { border-bottom: none; }

.dsa-section-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.dsa-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.dsa-section-icon {
  width: 38px; height: 38px;
  border-radius: var(--r);
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.dsa-section-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

/* ── All Courses grid ── */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.lang-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  cursor: pointer;
}
.lang-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm), var(--shadow-glow);
  transform: translateY(-2px);
}
.lang-card.soon {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}
.lang-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
.lang-icon-svg {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Courier New', monospace;
}
.lang-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.lang-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background .18s, border-color .18s, color .18s;
}
.lang-card:hover .lang-arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.lang-soon-text {
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.2;
}

/* ── What you will learn ── */
.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  align-items: start;
}
.learn-prose {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.learn-prose p + p { margin-top: 14px; }

.learn-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 16px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.835rem;
  color: var(--text);
  font-weight: 500;
}
.check-item svg.lucide {
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ── Why this course matters ── */
.why-grid-dsa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.why-card-dsa {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: var(--card-pad);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.why-card-dsa:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(124,92,255,.2);
}
.why-icon-dsa {
  width: 48px; height: 48px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.why-card-dsa p {
  font-size: var(--fs-small);
  color: var(--text-2);
  line-height: 1.75;
}

/* ── CTA banner (matches site style) ── */
.dsa-cta {
  padding: 0 0 48px;
}
.dsa-cta .cta-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
  .learn-grid { grid-template-columns: 1fr; }
  .learn-checklist { grid-template-columns: 1fr 1fr; }
  .why-grid-dsa { grid-template-columns: 1fr; }
  .dsa-hero-inner { grid-template-columns: 1fr; }
  .dsa-hero-img { display: none; }
}
@media (max-width: 560px) {
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .learn-checklist { grid-template-columns: 1fr; }
  .dsa-hero-stats { flex-direction: column; gap: 10px; }
}
