/* =========================================================
   AJ COURSES (Institute) - est. Oct 12 2026
   Loaded only on page-course.php. The page shell (hero, white
   card, blue-gray body, content typography) comes from style.css;
   this file adds only the course pieces. Layout borrowed from the
   Edutim course-single pattern: hero, "includes" card, module list,
   lesson pager. AJ palette: #002440 hero, #004977 navy, #1A73E8 blue.
========================================================= */

/* ---------- Hero ---------- */
.ajc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.ajc-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7cb4ff;
  margin: 0 0 12px;
}
.ajc-hero .aj-article__title { margin-bottom: 14px !important; }
.ajc-hero__sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
  max-width: 720px;
  margin: 0 0 20px;
}
.ajc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .875rem;
  color: rgba(255, 255, 255, .86);
}
.ajc-hero__meta li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.ajc-hero__icon { width: 18px; height: 18px; color: #7cb4ff; flex-shrink: 0; }
.ajc-hero__byline { color: rgba(255, 255, 255, .66); }
.ajc-hero__badge {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ajc-hero__badge-icon { width: 56px; height: 56px; color: #7cb4ff; }

/* ---------- Generic icon ---------- */
.ajc-icon { width: 24px; height: 24px; color: #1A73E8; flex-shrink: 0; }

/* ---------- Sidebar: "This course includes" (hub) ---------- */
.ajc-includes {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .10);
  padding: 22px 22px 24px;
}
.ajc-includes__title,
.ajc-card__module-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 14px;
}
.ajc-includes__list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ajc-includes__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.45; color: #374151; margin: 0; }
.ajc-includes__list strong { color: #111827; }
.ajc-btn {
  display: block;
  text-align: center;
  background: #1A73E8;
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 18px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background .15s;
}
.ajc-btn:hover { background: #1557b0; }

/* ---------- Sidebar: progress + module list ---------- */
.ajc-sidebar { gap: 20px; }
.ajc-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .10);
  overflow: hidden;
}
.ajc-card__head { background: #004977; padding: 18px 20px; }
.ajc-card__course { display: block; color: #fff !important; font-weight: 700; font-size: 1.0625rem; text-decoration: none !important; margin-bottom: 6px; }
.ajc-card__course:hover { text-decoration: underline !important; }
.ajc-card__progress-label { font-size: .8125rem; color: rgba(255, 255, 255, .82); margin: 0 0 10px; }
.ajc-card__bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.ajc-card__bar-fill { height: 100%; width: 0; background: #7cb4ff; transition: width .3s ease; }
.ajc-card__module { padding: 16px 20px 6px; border-top: 1px solid #f1f3f6; }
.ajc-card__module:first-of-type { border-top: 0; }
.ajc-card__module-title { margin-bottom: 8px; }
.ajc-card__module--final { padding-bottom: 12px; background: #f8fafc; }
.ajc-card__lessons { list-style: none; margin: 0; padding: 0; }
.ajc-card__lesson { margin: 0 0 2px; }
.ajc-card__lesson a {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  font-size: .875rem;
  line-height: 1.4;
  color: #374151;
  text-decoration: none;
}
.ajc-card__lesson a:hover { background: #f0f7ff; color: #1A73E8; }
.ajc-card__lesson.is-current a { background: #eff6ff; color: #004977; font-weight: 700; }
.ajc-card__num { color: #9ca3af; font-weight: 600; }
.ajc-card__min { font-size: .75rem; color: #9ca3af; white-space: nowrap; padding-top: 1px; }
.ajc-card__status {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  box-sizing: border-box;
}
.ajc-card__lesson.is-tried .ajc-card__status { border-color: #1A73E8; }
.ajc-card__lesson.is-passed .ajc-card__status {
  border-color: #1A73E8;
  background: #1A73E8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ajc-hero__cta { display: none; }

@media (min-width: 901px) {
  .ajc-sidebar:not(.ajc-sidebar--hub) { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; }
}

/* ---------- Content components (inside .aj-article__content) ---------- */

/* "What you will learn" two-column checklist (hub) */
.ajc-learn {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px 28px;
  margin: 28px 0 8px;
}
.ajc-learn h2,
.ajc-learn .ajc-learn__title {
  font-size: 1.25rem !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
}
.aj-article__content .ajc-learn ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.aj-article__content .ajc-learn li {
  position: relative;
  padding-left: 28px;
  margin: 0 !important;
  font-size: 1rem;
  line-height: 1.5;
}
.aj-article__content .ajc-learn li::marker { content: none; }
.aj-article__content .ajc-learn li::before,
.aj-article__content .ajc-ask li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.3l3.2 3.2L14 5.7' fill='none' stroke='%231A73E8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* "Questions to ask before you sign" checklist card (lessons) */
.ajc-ask {
  border: 1px solid #dbe6f5;
  border-top: 4px solid #004977;
  border-radius: 10px;
  padding: 22px 26px 18px;
  margin: 36px 0;
  background: #fff;
}
.ajc-ask__title {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #004977;
  margin-bottom: 14px;
}
.aj-article__content .ajc-ask ol,
.aj-article__content .ajc-ask ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.aj-article__content .ajc-ask li {
  position: relative;
  padding: 10px 0 10px 30px;
  margin: 0 !important;
  border-top: 1px solid #f1f3f6;
  line-height: 1.5;
}
.aj-article__content .ajc-ask li:first-child { border-top: 0; }
.aj-article__content .ajc-ask li::marker { content: none; }
.aj-article__content .ajc-ask li::before { top: 13px; }

/* Lesson "go deeper" link row */
.ajc-deeper {
  background: #f8fafc;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 32px 0;
}
.ajc-deeper__title { display: block; font-weight: 700; color: #111827; margin-bottom: 8px; }
.aj-article__content .ajc-deeper ul { margin: 0 !important; }

/* ---------- Hub syllabus ---------- */
.ajc-syllabus { margin: 20px 0 8px; display: flex; flex-direction: column; gap: 12px; }
.ajc-syllabus__module { border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; overflow: hidden; }
.ajc-syllabus__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 20px;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}
.ajc-syllabus__summary::-webkit-details-marker { display: none; }
.ajc-syllabus__summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: rotate(45deg);
  justify-self: center;
  margin-top: -4px;
  transition: transform .2s;
}
.ajc-syllabus__module[open] .ajc-syllabus__summary::after { transform: rotate(-135deg); margin-top: 4px; }
.ajc-syllabus__summary:hover { background: #f8fafc; }
.ajc-syllabus__label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1A73E8;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.ajc-syllabus__title { font-weight: 700; font-size: 1.0625rem; color: #111827; }
.ajc-syllabus__meta { font-size: .8125rem; color: #6b7280; white-space: nowrap; }
.aj-article__content .ajc-syllabus__lessons { list-style: none !important; margin: 0 !important; padding: 0 20px 8px !important; border-top: 1px solid #f1f3f6; }
.aj-article__content .ajc-syllabus__lesson,
.ajc-syllabus__final {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  margin: 0 !important;
  border-top: 1px solid #f1f3f6;
}
.aj-article__content .ajc-syllabus__lesson:first-child { border-top: 0; }
.aj-article__content .ajc-syllabus__lesson::marker { content: none; }
.ajc-syllabus__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ajc-syllabus__icon .ajc-icon { width: 22px; height: 22px; }
.ajc-syllabus__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ajc-syllabus__body a { font-weight: 700; color: #111827 !important; line-height: 1.4; }
.ajc-syllabus__body a:hover { color: #1A73E8 !important; }
.ajc-syllabus__desc { font-size: .9375rem; line-height: 1.5; color: #4b5563; }
.ajc-syllabus__min { font-size: .8125rem; color: #6b7280; white-space: nowrap; padding-top: 2px; }
.ajc-syllabus__final { border: 1px dashed #b9cde8; border-radius: 10px; padding: 14px 20px; background: #f8fbff; }

/* ---------- Lesson pager ---------- */
.ajc-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 8px;
}
.ajc-pager__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.ajc-pager__link:hover { border-color: #1A73E8; box-shadow: 0 2px 10px rgba(26, 115, 232, .12); }
.ajc-pager__link--next { grid-column: 2; text-align: right; background: #f0f7ff; border-color: #cfe1fb; }
.ajc-pager__label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1A73E8; }
.ajc-pager__title { font-weight: 700; color: #111827; line-height: 1.35; }

/* ---------- Certificate ---------- */
.ajc-cert { margin: 32px 0; }
.ajc-cert__locked,
.ajc-cert__form {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 22px 24px;
  background: #f8fafc;
  margin-bottom: 20px;
}
.ajc-cert__locked { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; }
.ajc-cert__locked[hidden],
.ajc-cert__form[hidden] { display: none; }
.ajc-cert__lock-icon { grid-row: span 2; }
.ajc-cert__lock-icon .ajc-icon { width: 40px; height: 40px; }
.ajc-cert__lock-title { font-weight: 700; color: #111827; margin: 0 0 4px !important; }
.ajc-cert__lock-text,
.ajc-cert__note { font-size: .875rem; color: #6b7280; margin: 0 !important; }
.ajc-cert__label { display: block; font-size: .875rem; font-weight: 600; margin: 12px 0 6px; color: #374151; }
.ajc-cert__row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ajc-cert__input {
  flex: 1 1 240px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
}
.ajc-cert__input:focus { outline: 2px solid #1A73E8; outline-offset: 1px; border-color: #1A73E8; }
.ajc-cert__btn {
  padding: 12px 22px;
  background: #1A73E8;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ajc-cert__btn:hover { background: #1557b0; }

.ajc-cert__sheet {
  aspect-ratio: 11 / 8.5;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  padding: 3.2%;
  container-type: inline-size;
}
.ajc-cert__frame {
  height: 100%;
  border: 2px solid #004977;
  outline: 1px solid #004977;
  outline-offset: -8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4% 8%;
  box-sizing: border-box;
}
.aj-article__content .ajc-cert__frame p { margin: 0; }
.ajc-cert__brand { font-size: 3cqi; font-weight: 800; color: #004977; letter-spacing: -.01em; }
.ajc-cert__brand span { color: #1A73E8; }
.ajc-cert__kicker { font-size: 2cqi; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #6b7280; margin-top: 4% !important; }
.ajc-cert__presented { font-size: 1.9cqi; color: #6b7280; margin-top: 4% !important; }
.ajc-cert__name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.6cqi;
  color: #111827;
  border-bottom: 1px solid #cbd5e1;
  padding: 0 6% 1%;
  margin-top: 1.5% !important;
  min-width: 60%;
}
.ajc-cert__line { font-size: 1.9cqi; line-height: 1.5; color: #374151; max-width: 80%; margin-top: 3% !important; }
.ajc-cert__foot { display: flex; justify-content: space-between; gap: 10%; width: 80%; margin-top: 6%; }
.ajc-cert__foot > div { flex: 1; display: flex; flex-direction: column; border-top: 1px solid #94a3b8; padding-top: 1.2%; }
.ajc-cert__sig { font-size: 1.8cqi; font-weight: 700; color: #111827; }
.ajc-cert__cap { font-size: 1.5cqi; color: #6b7280; }
.ajc-cert__fine { font-size: 1.3cqi; color: #9ca3af; margin-top: 4% !important; }

#ajc-print-root { display: none; }
@media print {
  body.ajc-printing > *:not(#ajc-print-root) { display: none !important; }
  body.ajc-printing #ajc-print-root { display: block; }
  body.ajc-printing #ajc-print-root .ajc-cert__sheet {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: .35in;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  @page { size: letter landscape; margin: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ajc-hero__badge { display: none; }
  .ajc-hero__grid { grid-template-columns: 1fr; }
  .ajc-sidebar { margin-top: 0 !important; }
  .ajc-hero__cta { display: block; margin-top: 18px; max-width: 320px; }
}
@media (max-width: 640px) {
  .ajc-hero__sub { font-size: 1rem; }
  .ajc-hero__meta { gap: 8px 16px; font-size: .8125rem; }
  .aj-article__content .ajc-learn ul { grid-template-columns: 1fr; }
  .ajc-learn { padding: 20px; }
  .ajc-ask { padding: 18px 18px 12px; }
  .ajc-syllabus__summary { grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 10px; padding: 14px 16px; }
  .ajc-syllabus__label { justify-self: start; grid-column: 1; }
  .ajc-syllabus__title { grid-column: 1; }
  .ajc-syllabus__meta { grid-column: 1; }
  .ajc-syllabus__summary::after { grid-column: 2; grid-row: 1 / span 3; }
  .aj-article__content .ajc-syllabus__lessons { padding: 0 16px 6px !important; }
  .aj-article__content .ajc-syllabus__lesson,
  .ajc-syllabus__final { grid-template-columns: 36px minmax(0, 1fr); }
  .ajc-syllabus__min { grid-column: 2; padding-top: 0; }
  .ajc-pager { grid-template-columns: 1fr; }
  .ajc-pager__link--next { grid-column: 1; }
  .ajc-cert__locked { grid-template-columns: 1fr; }
  .ajc-cert__lock-icon { grid-row: auto; }
}
