:root {
  --ink: #1f1b2e;
  --muted: #6b6780;
  --accent: #6c63ff;
  --accent-2: #7c5cff;
  --border: #e6e2f0;
  --soft: #f7f6ff;
  --soft-2: #f4f2ff;
}

/* ================= HERO ================= */

.courses-hero {
  max-width: 880px;
  margin: 28px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.courses-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  margin-bottom: 12px;
}
.courses-hero__badge svg {
  display: block;
  width: 250px;
  height: 36px;
  max-width: 100%;
}

.courses-hero__title {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--ink);
  margin: 6px 0 10px;
}

.courses-hero__title span {
  color: #22c55e;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.courses-hero__subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* ================= COURSES WRAP ================= */

.courses-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 16px;
  display: grid;
  gap: 24px;
}

/* ================= COURSE CARD ================= */

.course-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(28, 24, 66, 0.08);
  overflow: hidden;
  align-items: start; /* prevent column stretching */
}

/* ================= LEFT ================= */

.course-main {
  padding: 22px 28px;
  display: block;
}

/* REMOVE ALL margin-top from sections */
.course-section {
  margin: 0;
  padding: 0;
}

.course-section + .course-section {
  margin-top: 18px;
}

.course-section > :last-child {
  margin-bottom: 0;
}

/* ================= HEADER ================= */

.course-card__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.course-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  background: #8478e0;
  border-radius: 22px;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 34px rgba(132, 120, 224, 0.35);
}

.course-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.course-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}

.course-tagline {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.course-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
}

/* ================= SECTION TITLES ================= */

.section-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  margin: 0 0 10px; /* controlled */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ================= CURRICULUM ================= */

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.curriculum-item {
  border: 1px solid #c7c2ff;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.curriculum-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.curriculum-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.curriculum-duration {
  font-size: 11px;
  color: #8a85a1;
}

/* ================= TECHNOLOGIES ================= */

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  border: 1px solid #c7c2ff;
  color: var(--accent);
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ================= PROJECTS ================= */

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  transform: translateY(-1px);
}

/* ================= RIGHT ================= */

.course-meta {
  padding: 22px 24px;
  background: #f8f7ff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px; /* balanced with left */
}

/* ================= META CARDS ================= */

.meta-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px 16px;
}

.salary-amount {
  font-size: 20px;
  color: var(--accent);
  font-weight: 800;
}

.salary-note,
.batch-note,
.certificate-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.batch-card {
  background: #3b82f6;
  color: #fff;
  border: none;
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.35);
}

.batch-date {
  font-size: 16px;
  font-weight: 700;
}

.certificate-title {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

/* ================= CAREERS ================= */

.career-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.career-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.career-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
}

/* ================= CTA ================= */

.course-cta {
  margin-top: auto;
  width: 100%;
  border-radius: 14px;
  padding: 12px 16px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(90deg, #6c63ff, #7a55ff);
  box-shadow: 0 16px 28px rgba(108, 99, 255, 0.35);
  text-align: center;
  text-decoration: none;
}



/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .course-card {
    grid-template-columns: 1fr;
  }

  .course-meta {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .curriculum-grid,
  .project-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .courses-hero__title {
    font-size: 28px;
  }

  .course-main {
    padding: 26px 24px;
  }
}

/* ================= INTERACTION STATES ================= */

/* Card hover */
.course-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.course-card:hover {
  box-shadow: 0 28px 56px rgba(28, 24, 66, 0.14);
  transform: translateY(-2px);
}

/* Tech pills */
.tech-pill,
.course-chip {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tech-pill:hover,
.course-chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Curriculum items */
.curriculum-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.curriculum-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(108, 99, 255, 0.15);
}

/* Meta cards hover */
.meta-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meta-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(28, 24, 66, 0.12);
}

/* CTA hover + focus */
.course-cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(108, 99, 255, 0.45);
}

.course-cta:focus-visible {
  outline: 3px solid rgba(108, 99, 255, 0.4);
  outline-offset: 3px;
}


/* ================= SVG SIZING ================= */

.course-icon {
  overflow: hidden;
}

.course-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.icon-slot {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.icon-slot svg {
  width: 100%;
  height: 100%;
  display: block;
}

.career-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.career-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.meta-card svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
