/* ============================================
   Course detail pages — shared styles
   Reuses tokens from styles.css + training-lp.css
   ============================================ */

/* ---------- HERO ---------- */
.cd-hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(760px 460px at 90% -10%, var(--teal-light) 0%, transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.cd-hero .grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.cd-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--teal-deep);
  margin-bottom: 26px; transition: gap .15s ease;
}
.cd-back:hover { gap: 12px; }
.cd-back .a { font-family: var(--mono); }
.cd-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
  background: var(--teal-light); color: var(--teal-deep);
}
.cd-eyebrow.feat { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #fff; }
.cd-eyebrow.top { background: var(--ink); color: #fff; }
.cd-catch-sm {
  font-size: 14px; font-weight: 800; color: var(--gold-2);
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
}
.cd-title {
  font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; line-height: 1.3;
  letter-spacing: 0.01em; margin: 0 0 8px; color: var(--ink);
}
.cd-title .time { color: var(--teal-deep); }
.cd-title .mark { background: linear-gradient(transparent 60%, var(--gold-soft) 60%); padding: 0 3px; }
.cd-lead {
  font-size: clamp(16px, 1.9vw, 21px); font-weight: 800; color: var(--ink);
  line-height: 1.6; margin: 18px 0 0; max-width: 640px;
}
.cd-lead .em { color: var(--teal-deep); }
.cd-sub { font-size: 15px; color: var(--ink-2); line-height: 1.9; margin: 18px 0 0; max-width: 600px; }

/* recommendation bubble */
.cd-bubble {
  background: var(--white); border: 2px solid var(--teal-primary); border-radius: 18px;
  padding: 24px 26px; position: relative; box-shadow: 0 26px 56px -34px rgba(0,108,106,0.4);
}
.cd-bubble.gold { border-color: var(--gold-1); }
.cd-bubble.dark { border-color: var(--ink); }
.cd-bubble .b-flag {
  font-size: 13px; font-weight: 800; color: var(--gold-2);
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px;
}
.cd-bubble .b-title {
  font-size: 24px; font-weight: 900; text-align: center; color: var(--teal-deep);
  line-height: 1.3; margin: 0 0 6px;
}
.cd-bubble.gold .b-title { color: var(--gold-2); }
.cd-bubble .b-tagline { font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: center; margin: 0 0 16px; }
.cd-bubble .b-desc { font-size: 14px; color: var(--ink); line-height: 1.75; text-align: center; margin: 0 0 18px; }
.cd-bubble .b-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cd-bubble .b-pills .bp {
  font-size: 12px; font-weight: 800; color: var(--teal-deep);
  background: var(--teal-light); border-radius: 999px; padding: 6px 14px;
}
.cd-bubble.gold .b-pills .bp { background: var(--gold-soft); color: var(--gold-2); }

/* ---------- BODY (two columns) ---------- */
.cd-body { padding: 84px 0; }
.cd-body.tint { background: var(--soft-gray); }
.cd-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.cd-panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cd-panel-head {
  padding: 20px 28px; font-size: 18px; font-weight: 800; color: #fff;
  background: linear-gradient(120deg, var(--teal-deep), var(--teal-primary));
  display: flex; align-items: center; gap: 12px;
}
.cd-panel-head .h-ic { font-size: 16px; opacity: 0.9; }

/* curriculum table */
.cd-curri { padding: 8px 0 0; }
.cd-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 16px 28px; border-bottom: 1px solid var(--line);
}
.cd-row:last-child { border-bottom: none; }
.cd-row .r-main { min-width: 0; }
.cd-row .r-cat {
  font-size: 12px; font-weight: 800; color: var(--teal-primary);
  margin: 0 0 4px; letter-spacing: 0.01em;
}
.cd-row .r-label { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.55; margin: 0; }
.cd-row .r-time {
  flex: none; font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--teal-deep); background: var(--teal-mist); border-radius: 8px;
  padding: 6px 12px; white-space: nowrap;
}
.cd-row.work { background: var(--teal-mist); }
.cd-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; background: var(--ink); color: #fff;
}
.cd-total .t-lab { font-size: 14px; font-weight: 700; opacity: 0.85; }
.cd-total .t-val { font-family: var(--mono); font-size: 22px; font-weight: 800; }

/* outcomes */
.cd-out-lead {
  font-size: 15px; font-weight: 800; color: var(--ink); text-align: center;
  line-height: 1.7; margin: 0 0 16px;
}
.cd-out-lead .em { color: var(--teal-deep); }
.cd-out-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.cd-out-tags .ot {
  font-size: 12px; font-weight: 800; color: var(--teal-deep);
  background: var(--teal-light); border-radius: 999px; padding: 6px 14px;
}
.cd-out-list { display: grid; gap: 0; }
.cd-out-item {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 18px 0; border-bottom: 1px dashed var(--line);
}
.cd-out-item:last-child { border-bottom: none; }
.cd-out-item .o-n {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--teal-deep); color: #fff; font-family: var(--mono); font-weight: 700;
  font-size: 14px; display: grid; place-items: center;
}
.cd-out-item .o-h { font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 2px 0 5px; line-height: 1.4; }
.cd-out-item .o-p { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 0; }
.cd-out-note {
  margin-top: 22px; text-align: center; font-size: 13.5px; font-weight: 800;
  color: var(--gold-2); background: var(--gold-soft); border-radius: 12px; padding: 14px 18px; line-height: 1.6;
}

.cd-outcome { display: flex; flex-direction: column; }

/* small print */
.cd-notes { margin-top: 36px; }
.cd-notes p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 4px 0; }

/* ---------- DEPARTMENT LIST PAGE ---------- */
.dept-feature {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  background: var(--forest); border: 1px solid var(--gold-1); border-radius: 22px;
  padding: 38px 40px; margin-bottom: 40px; color: #fff;
  box-shadow: 0 30px 60px -38px rgba(14,61,51,0.7);
}
.dept-feature .df-tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #fff;
  border-radius: 999px; padding: 6px 14px; margin-bottom: 16px;
}
.dept-feature h3 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; line-height: 1.4; margin: 0 0 12px; }
.dept-feature p { font-size: 14.5px; color: rgba(255,255,255,0.82); line-height: 1.85; margin: 0; max-width: 620px; }
.dept-feature .df-cta { flex: none; }

.dept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dept-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.dept-card:hover { transform: translateY(-3px); border-color: var(--teal-primary); box-shadow: 0 24px 48px -34px rgba(0,108,106,0.4); }
.dept-card .dc-ic {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--teal-light); color: var(--teal-deep);
  display: grid; place-items: center;
}
.dept-card .dc-main { flex: 1; min-width: 0; }
.dept-card h4 { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 4px; line-height: 1.4; }
.dept-card p { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.dept-card .dc-link {
  flex: none; font-size: 12.5px; font-weight: 800; color: var(--teal-deep);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.dept-card .dc-link .a { transition: transform .15s ease; }
.dept-card:hover .dc-link .a { transform: translateX(3px); }
.dept-note {
  text-align: center; font-size: 14px; color: var(--ink-2); margin: 34px auto 0; max-width: 640px; line-height: 1.8;
}

/* ---------- CTA reuse: link version ---------- */
.cd-cta { padding: 0; }

/* ---------- Curriculum day header + stacked features ---------- */
.cd-day {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 22px; background: var(--teal-deep); color: #fff;
  border-radius: 10px; margin: 8px 0 12px;
}
.cd-day:first-child { margin-top: 0; }
.cd-day .d-lab {
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  background: rgba(255,255,255,0.16); padding: 4px 12px; border-radius: 6px;
}
.cd-day .d-desc { font-size: 14px; font-weight: 700; }
.dept-feature + .dept-feature { margin-top: 18px; }

/* ============================================
   TARGET + PRICING (course detail additions)
   ============================================ */
.sec-head { max-width: 760px; margin: 0 0 40px; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--teal-primary); margin-bottom: 16px;
}
.sec-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--teal-primary); opacity: 0.6; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; line-height: 1.3; margin: 0; color: var(--ink); }
.sec-lead { font-size: 15px; color: var(--ink-2); line-height: 1.85; margin: 16px 0 0; max-width: 620px; }

.cd-target { padding: 88px 0; }
.ct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ct-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.ct-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.ct-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ct-card:hover { transform: translateY(-4px); border-color: var(--teal-primary); box-shadow: 0 26px 50px -34px rgba(0,108,106,0.4); }
.ct-ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-light); color: var(--teal-deep); margin-bottom: 18px;
}
.ct-card h3 { font-size: 17px; font-weight: 800; line-height: 1.5; margin: 0 0 12px; color: var(--teal-deep); }
.ct-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; margin: 0; }

.cd-pricing { padding: 88px 0; }
.cp-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: stretch; }
.cp-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 34px 32px;
  display: flex; flex-direction: column;
}
.cp-plabel { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.cp-price { display: flex; align-items: baseline; gap: 4px; color: var(--ink); }
.cp-price b { font-size: 46px; font-weight: 900; letter-spacing: -0.01em; }
.cp-price span { font-size: 18px; font-weight: 700; }
.cp-unit { font-size: 12px; color: var(--muted); margin: 4px 0 22px; }
.cp-specs { list-style: none; padding: 22px 0 0; margin: 0 0 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cp-specs li { font-size: 13.5px; color: var(--ink); padding-left: 24px; position: relative; line-height: 1.5; }
.cp-specs li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 5l2.5 2.5L9 2' stroke='%23006C6A' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}
.cp-apply {
  margin-top: auto; text-align: center; font-size: 14px; font-weight: 800; color: var(--teal-deep);
  padding: 15px; border-radius: 10px; border: 1px solid var(--teal-primary);
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .15s ease;
}
.cp-apply:hover { background: var(--teal-primary); color: #fff; }
.cp-apply .a { font-family: var(--mono); }

.cp-sub {
  background: linear-gradient(150deg, #11201d 0%, #0c1714 60%, #16100a 100%); color: #fff;
  border-radius: 16px; padding: 30px 30px 26px; display: flex; flex-direction: column;
}
.cp-sub-tag {
  align-self: flex-start; white-space: nowrap; font-size: 12px; font-weight: 800; color: #b2f0e9;
  background: rgba(77,182,172,0.16); border: 1px solid rgba(77,182,172,0.4);
  padding: 5px 14px; border-radius: 8px; margin-bottom: 24px;
}
.cp-sub-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; flex: 1; }
.cp-sub-col {
  padding: 4px 8px; position: relative;
}
.cp-sub-col:first-child::after {
  content: ""; position: absolute; right: -9px; top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,0.14);
}
.cs-label { font-size: 13px; font-weight: 700; opacity: 0.82; margin-bottom: 12px; }
.cs-rate {
  display: inline-block; font-size: 12px; font-weight: 800; color: #7fe6da;
  background: rgba(127,230,218,0.12); padding: 3px 10px; border-radius: 6px; margin-bottom: 14px;
}
.cs-orig { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: line-through; margin-bottom: 4px; }
.cs-net { display: flex; align-items: baseline; gap: 3px; }
.cs-net b { font-size: 34px; font-weight: 900; letter-spacing: -0.01em; }
.cs-net span { font-size: 15px; font-weight: 700; }
.cs-unit { font-size: 11px; opacity: 0.66; margin-top: 2px; }
.cp-sim {
  margin-top: 24px; text-align: center; font-size: 13.5px; font-weight: 800; color: #0c1714;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); padding: 13px; border-radius: 10px;
  transition: filter .15s ease, transform .15s ease;
}
.cp-sim:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cp-notes { margin-top: 22px; }
.cp-notes p { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0 0 6px; }

@media (max-width: 900px) {
  .ct-grid, .ct-grid.cols-4, .ct-grid.cols-3, .ct-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ct-grid, .ct-grid.cols-4, .ct-grid.cols-3, .ct-grid.cols-2 { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cd-hero .grid { grid-template-columns: 1fr; gap: 36px; }
  .cd-cols { grid-template-columns: 1fr; gap: 28px; }
  .dept-feature { grid-template-columns: 1fr; gap: 22px; }
  .dept-feature .df-cta { justify-self: start; }
  .dept-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cd-body { padding: 60px 0; }
  .cd-row { padding: 14px 18px; }
  .cd-panel-head { padding: 16px 18px; font-size: 16px; }
  .cd-total { padding: 16px 18px; }
  .dept-card { flex-wrap: wrap; }
}
