/* ============================================================
   CAREER GUIDE PAGES – one shared stylesheet
   Used by: build-your-resume.php, build-your-linkedin-profile.php,
            build-your-github-profile.php, build-your-portfolio-website.php
   Prefix : cg-   (hero, FAQ, CTA, related links come from roadmap.css)
   Colours / radius / shadows come from global.css tokens, so light
   & dark theme work automatically. global.css is not touched.
   ============================================================ */

/* ---------- 1. Article column ---------- */
.cg-article {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.cg-article section {
  scroll-margin-top: 90px;
  margin-bottom: 44px;
}

.cg-article h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 14px;
  line-height: 1.35;
}

.cg-article h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

.cg-article p { margin: 0 0 14px; }

.cg-article ul,
.cg-article ol { padding-left: 20px; margin: 0 0 16px; }

.cg-article li { margin-bottom: 6px; }

.cg-article strong { color: var(--text-primary); }

.cg-article code {
  font-size: 0.86em;
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--primary);
}

/* ---------- 2. Table of contents ---------- */
.cg-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 36px;
}

.cg-toc-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cg-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 0.9rem;
}

.cg-toc a { color: var(--text-secondary); text-decoration: none; }

.cg-toc a:hover { color: var(--primary); }

/* ---------- 3. Callout boxes ---------- */
.cg-box {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 18px 0;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cg-box > i { font-size: 1.2rem; line-height: 1.5; flex-shrink: 0; }

.cg-box p:last-child, .cg-box ul:last-child { margin-bottom: 0; }

.cg-box--tip { border-left: 4px solid var(--primary); }
.cg-box--tip > i { color: var(--primary); }

.cg-box--warn { border-left: 4px solid #F59E0B; }
.cg-box--warn > i { color: #F59E0B; }

.cg-box--good { border-left: 4px solid #22A06B; }
.cg-box--good > i { color: #22A06B; }

/* ---------- 4. Do / Don't ---------- */
.cg-dodont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}

.cg-dodont > div {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.cg-dodont h4 {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cg-do h4 { color: #22A06B; }
.cg-dont h4 { color: #E5484D; }

.cg-dodont ul { margin: 0; padding-left: 18px; font-size: 0.9rem; }

/* ---------- 5. Tables ---------- */
.cg-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.cg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 520px;
}

.cg-table th,
.cg-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

.cg-table th {
  background: var(--bg-section);
  color: var(--text-primary);
  font-weight: 600;
}

.cg-table tr:last-child td { border-bottom: none; }

/* ---------- 6. Sample / template block ---------- */
.cg-sample {
  background: var(--bg-section);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 16px 0;
  font-size: 0.88rem;
  line-height: 1.7;
}

.cg-sample-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.cg-sample pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.84rem;
  color: var(--text-primary);
}

/* ---------- 7. Download cards (resume PDFs) ---------- */
.cg-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 8px;
}

.cg-download {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cg-download-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.cg-download h3 { margin: 6px 0 0; }

.cg-download p { font-size: 0.88rem; margin: 0; }

.cg-download .btn-primary-custom { align-self: flex-start; margin-top: 6px; }

/* ---------- 8. Checklist ---------- */
.cg-checklist {
  list-style: none;
  padding: 0 !important;
}

.cg-checklist li {
  position: relative;
  padding-left: 28px;
}

.cg-checklist li::before {
  content: "\F26A"; /* bootstrap-icons check-circle-fill */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  color: #22A06B;
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 991.98px) {
  .cg-toc ol { columns: 1; }
}

@media (max-width: 767.98px) {
  .cg-article h2 { font-size: 1.25rem; }
  .cg-dodont,
  .cg-downloads { grid-template-columns: 1fr; }
}
