/* ============================================================
   course-detail.css — Styles shared across all 6 course detail
   pages (NOT duplicated in components.css)
   ============================================================ */

/* ----- 1. Course Hero ----- */

.course-hero {
  background:
    radial-gradient(60% 80% at 85% 30%, rgba(255, 107, 26, 0.22), transparent 60%),
    radial-gradient(50% 70% at 80% 40%, rgba(255, 182, 39, 0.14), transparent 65%),
    linear-gradient(135deg, #0A1B2E 0%, #0E2138 100%);
  color: #fff;
  padding: 140px 0 72px;
}

.course-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 8px 0 16px;
}

.course-hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(250, 250, 247, 0.85);
  max-width: 560px;
  margin: 0 0 24px;
}

.crumb {
  font-size: 13px;
  color: rgba(250, 250, 247, 0.65);
  margin-bottom: 20px;
}

.crumb a {
  color: rgba(250, 250, 247, 0.8);
}

.crumb a:hover {
  color: var(--color-secondary);
}

.crumb .sep {
  margin: 0 8px;
  opacity: 0.5;
}

.crumb .here {
  color: var(--color-secondary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-illo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.22), rgba(255, 182, 39, 0.06));
  border: 1px solid rgba(255, 182, 39, 0.25);
  box-shadow: 0 30px 80px rgba(255, 107, 26, 0.25);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.hero-illo .big-icon {
  width: 120px;
  height: 120px;
}

.dash-mock {
  width: 100%;
  background: rgba(10, 27, 46, 0.55);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 182, 39, 0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dash-cell {
  height: 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.dash-cell::after {
  content: "";
  position: absolute;
  inset: auto 8px 8px 8px;
  height: 60%;
  background: var(--gradient-brand);
  opacity: 0.65;
  border-radius: 4px;
}

.dash-cell.tall::after {
  height: 80%;
}

.dash-cell.short::after {
  height: 35%;
}

/* ----- 2. Stat Row ----- */

.stat-row-section {
  margin-top: -56px;
  position: relative;
  z-index: 5;
}

.stat-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(10, 27, 46, 0.10);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 760px) {
  .stat-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px;
  border-left: 3px solid transparent;
  border-image: var(--gradient-brand) 1;
}

.stat-item:first-child {
  padding-left: 0;
  border: 0;
}

@media (max-width: 760px) {
  .stat-item {
    padding: 0;
    border: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
  }

  .stat-item:last-child {
    border: 0;
    padding-bottom: 0;
  }
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg2);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* ----- 3. Accordion ----- */

.acc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  transition:
    border-color var(--dur-base),
    box-shadow var(--dur-base);
}

.acc.open {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.acc-head .num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}

.acc-head .ttl {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
}

.acc-head .desc {
  font-size: 13px;
  color: var(--fg2);
  margin-top: 4px;
  line-height: 1.5;
}

.chev {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 107, 26, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition:
    transform var(--dur-base) var(--ease-standard),
    background var(--dur-base);
}

.acc.open .chev {
  transform: rotate(45deg);
  background: var(--gradient-brand);
  color: #fff;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms var(--ease-emphasis);
}

.acc.open .acc-body {
  max-height: 600px;
}

.acc-body-inner {
  padding: 0 20px 20px 20px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: 4px;
}

.lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lesson-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg1);
}

.lesson-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: inset 0 0 0 2.5px #fff;
}

/* ----- 4. Trainer Section ----- */

.trainer-section {
  background: #fff;
}

.trainer {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--color-bg);
  border-radius: 20px;
  padding: 32px;
  flex-wrap: wrap;
}

.trainer-ava {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(255, 107, 26, 0.25);
}

.trainer-info h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
}

.trainer-info .role {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.trainer-info p {
  margin: 0 0 12px;
  color: var(--fg2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
}

.li-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0A66C2;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(10, 102, 194, 0.08);
}

.li-link:hover {
  background: rgba(10, 102, 194, 0.15);
  color: #0A66C2;
}

/* ----- 5. Tools Grid ----- */

.tools-section {
  background: var(--color-bg);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 540px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tool-tile {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #6B7280;
  text-align: center;
  letter-spacing: -0.01em;
  filter: grayscale(1);
  transition:
    color var(--dur-base),
    border-color var(--dur-base);
}

.tool-tile:hover {
  color: var(--color-dark);
  border-color: var(--color-primary);
}

/* ----- 6. Career Outcomes ----- */

.careers-section {
  background: #fff;
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .careers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .careers-grid {
    grid-template-columns: 1fr;
  }
}

.career-card {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform var(--dur-base),
    box-shadow var(--dur-base);
}

.career-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.career-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

.career-card .salary {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.career-card .desc {
  margin: auto 0 0;
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.55;
}

/* ----- 7. FAQ Section ----- */

.faq-section {
  background: var(--color-bg);
}

/* ----- 8. Sticky Bottom CTA Bar ----- */

.bottom-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: rgba(10, 27, 46, 0.96);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 12px 0;
  border-top: 1px solid var(--color-border-dark);
  box-shadow: 0 -8px 28px rgba(10, 27, 46, 0.2);
  transform: translateY(110%);
  transition: transform 360ms var(--ease-emphasis);
}

.bottom-cta.show {
  transform: translateY(0);
}

.bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 84px;
}

.bottom-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bottom-cta-text .top {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.01em;
}

.bottom-cta-text .bot {
  font-size: 12px;
  color: rgba(250, 250, 247, 0.7);
}

.bottom-cta .btn {
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .bottom-cta-inner {
    padding-right: 74px;
  }

  .bottom-cta-text .top {
    font-size: 13px;
  }

  .bottom-cta-text .bot {
    font-size: 11px;
  }

  .bottom-cta .btn {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 44px;
  }
}

/* ----- 9. Override: body padding for sticky CTA ----- */

body {
  padding-bottom: 96px;
}

/* ----- 10. Override: WhatsApp float above sticky CTA ----- */

.wa-float {
  bottom: 84px;
}
