/* ============================================================
   cohort.css
   Data Analysis Training page (data-analysis-training.html), the
   "Data & Insight Journey" section on the home page (index.html)
   and the small "Cohort 2" callout on the Training and Digital
   Future Initiatives pages. Purely additive: every class is
   prefixed "cohort-" or "dij-"; nothing in styles.css or
   training.css is overridden.
============================================================ */

/* ---------- Hero ---------- */
.cohort-hero {
  /* Optional photo: save it as images/dij-hero.webp (see the note below).
     The navy overlay is strongest behind the text (left) and fades toward the
     right so the photo shows through. It keeps the text readable on any photo,
     and the page still looks right with no photo at all.
     To make the photo clearer or darker, change the three alpha values
     (0.78 / 0.62 / 0.12) in the gradient below. */
  background-color: #002447;
  background-image:
    linear-gradient(90deg, rgba(0, 36, 71, 0.78) 0%, rgba(0, 51, 102, 0.62) 58%, rgba(11, 74, 133, 0.12) 100%),
    url("images/dij-hero.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 56px 24px 92px;
  position: relative;
  overflow: hidden;
}
.cohort-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 2px solid rgba(217, 242, 255, 0.07);
  box-shadow: 0 0 0 60px rgba(217, 242, 255, 0.03), 0 0 0 120px rgba(217, 242, 255, 0.02);
  pointer-events: none;
}
.cohort-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}
.cohort-back {
  display: inline-block;
  color: #d9f2ff;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 36px;
  opacity: 0.85;
}
.cohort-back:hover { opacity: 1; text-decoration: underline; }
.cohort-hero-tag {
  display: block;
  width: fit-content;
  background: rgba(217, 242, 255, 0.14);
  border: 1px solid rgba(217, 242, 255, 0.35);
  color: #d9f2ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.cohort-hero h1 {
  text-shadow: 0 2px 14px rgba(0, 20, 45, 0.4);
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 18px;
}
.cohort-hero-sub {
  text-shadow: 0 1px 10px rgba(0, 20, 45, 0.45);
  color: #e4f1fb;
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 0 34px;
}

/* Two clearly separate paths */
.cohort-paths { display: flex; flex-wrap: wrap; gap: 16px; }
.cohort-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 250px;
  padding: 18px 56px 18px 22px;
  background: #fff;
  color: #003366;
  border-radius: 14px;
  border-left: 6px solid #1261A0;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cohort-path--trainer { border-left-color: #e8a317; }
.cohort-path:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }
.cohort-path:focus-visible { outline: 3px solid #d9f2ff; outline-offset: 3px; }
.cohort-path-label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #5b7088; }
.cohort-path strong { font-size: 1.3rem; line-height: 1.25; }
.cohort-path i { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: #1261A0; }
.cohort-path--trainer i { color: #c98a0b; }

/* ---------- At a glance strip ---------- */
.cohort-facts {
  max-width: 1040px;
  margin: -46px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.cohort-facts dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 51, 102, 0.16);
  overflow: hidden;
}
.cohort-facts dl > div { padding: 20px 22px; border-left: 1px solid #e6edf5; }
.cohort-facts dl > div:first-child { border-left: 0; }
.cohort-facts dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: #5b7088; margin: 0 0 4px; }
.cohort-facts dd { margin: 0; font-size: 1.05rem; font-weight: 700; color: #003366; }

/* ---------- Sections ---------- */
.cohort-section { padding: 84px 24px; background: #fff; }
.cohort-section.alt { background: #f8f9fc; }
.cohort-inner { max-width: 1040px; margin: 0 auto; text-align: left; }
.cohort-faq { max-width: 780px; }
#learn, #teach, #join, #faq { scroll-margin-top: 90px; }
.cohort-eyebrow {
  color: #1261A0;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.cohort-inner > h2, .cohort-split-text h2 { color: #003366; font-size: 2.1rem; line-height: 1.15; margin: 0 0 14px; }
.cohort-intro { color: #3d526b; font-size: 1.08rem; line-height: 1.65; max-width: 640px; margin: 0 0 36px; }

/* Role chip: tells visitors which group a block is for */
.cohort-role {
  display: inline-block;
  background: #003366;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.cohort-role--trainer { background: #e8a317; color: #2b1d00; }

/* ---------- Photo slots ----------
   Each slot hides itself until its image file exists, so the page looks
   complete before any photo is added. Photos are cropped to fit, so use
   any landscape photo:
     images/dij-hero.webp  page header background   1920 x 900 or larger
     images/dij-learn.webp beside "What you'll learn"  1200 x 900 (4:3)
     images/dij-join.webp  banner above "Take part"    1600 x 600 (wide)
     images/dij-cta.webp   closing banner background   1600 x 600 (wide)
   Keep each file under about 300 KB. */
.cohort-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; margin-bottom: 44px; }
.cohort-split.no-media { grid-template-columns: 1fr; margin-bottom: 36px; }
.cohort-split-text .cohort-intro { margin-bottom: 0; }
.cohort-media { margin: 0; border-radius: 16px; overflow: hidden; background: #e3ebf4; box-shadow: 0 14px 34px rgba(0, 51, 102, 0.18); aspect-ratio: 4 / 3; }
.cohort-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cohort-media--wide { aspect-ratio: 21 / 8; margin: 0 0 32px; }
.cohort-media[hidden] { display: none; }

/* ---------- What you'll learn ---------- */
.cohort-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cohort-card {
  background: #f8f9fc;
  border: 1px solid #e3ebf4;
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cohort-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 51, 102, 0.1); }
.cohort-card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: #003366; color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.cohort-card--more { background: transparent; border: 2px dashed #9dbbd8; }
.cohort-card--more .cohort-card-icon { background: #d9f2ff; color: #003366; }
.cohort-card--more:hover { box-shadow: none; }
.cohort-card h3 { color: #003366; font-size: 1.1rem; margin: 0 0 8px; }
.cohort-card p { color: #3d526b; font-size: 0.95rem; line-height: 1.55; margin: 0; }

/* ---------- How it works ---------- */
.cohort-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cohort-steps li { position: relative; }
.cohort-step-num {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #003366; color: #fff;
  font-weight: 700; font-size: 1.2rem;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.cohort-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 60px;
  right: -16px;
  border-top: 2px dashed #9dbbd8;
}
.cohort-steps h3 { color: #003366; font-size: 1.15rem; margin: 0 0 6px; }
.cohort-steps p { color: #3d526b; font-size: 0.97rem; line-height: 1.55; margin: 0; }
.cohort-commit {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 40px 0 0;
  padding: 18px 22px;
  background: #d9f2ff;
  border-radius: 12px;
  color: #003366;
  font-weight: 600;
  line-height: 1.55;
}
.cohort-commit i { margin-top: 4px; }

/* ---------- Two tracks ---------- */
.cohort-tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: stretch; }
.cohort-join {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3ebf4;
  border-top: 6px solid #003366;
  border-radius: 16px;
  padding: 30px 30px 26px;
  box-shadow: 0 10px 28px rgba(0, 51, 102, 0.1);
}
.cohort-join--trainer { border-top-color: #e8a317; }
.cohort-join .cohort-role { align-self: flex-start; }
.cohort-join h3 { color: #003366; font-size: 1.6rem; line-height: 1.2; margin: 0 0 10px; }
.cohort-join > p { color: #3d526b; line-height: 1.6; margin: 0 0 18px; }

.cohort-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.cohort-list li {
  position: relative;
  padding: 11px 14px 11px 44px;
  background: #f8f9fc;
  border: 1px solid #e3ebf4;
  border-radius: 10px;
  color: #003366;
  font-weight: 600;
  font-size: 0.95rem;
}
.cohort-list li::before {
  content: "\2713";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #e8a317;
  color: #2b1d00;
  font-size: 0.8rem;
  font-weight: 700;
}

.cohort-list--blue li::before { background: #003366; color: #fff; }

/* ---------- FAQ ---------- */
.cohort-faq details { border-bottom: 1px solid #dfe7f0; }
.cohort-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px;
  color: #003366; font-weight: 700; font-size: 1.08rem;
}
.cohort-faq summary::-webkit-details-marker { display: none; }
.cohort-faq summary::after { content: "+"; flex: 0 0 auto; font-size: 1.5rem; font-weight: 400; color: #1261A0; transition: transform 0.2s ease; }
.cohort-faq details[open] summary::after { transform: rotate(45deg); }
.cohort-faq summary:focus-visible { outline: 3px solid #1261A0; outline-offset: 2px; border-radius: 6px; }
.cohort-faq details p { margin: 0 0 20px; padding: 0 4px; color: #3d526b; line-height: 1.65; }
.cohort-faq details a { color: #1261A0; font-weight: 600; }

/* ---------- Closing call to action ---------- */
.cohort-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #002447, #003366);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}
.cohort-cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.cohort-cta-bg[hidden] { display: none; }
.cohort-cta-inner { position: relative; z-index: 1; }
.cohort-cta h2 { color: #fff; font-size: 2.1rem; margin: 0 0 28px; }
.cohort-cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cohort-btn {
  display: inline-block;
  background: #fff;
  color: #003366;
  font-family: 'MuseoModerno', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid #fff;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.cohort-btn:hover { background: #d9f2ff; border-color: #d9f2ff; transform: translateY(-2px); }
.cohort-btn--ghost { background: transparent; color: #fff; }
.cohort-btn--ghost:hover { background: #fff; color: #003366; border-color: #fff; }
.cohort-btn:focus-visible { outline: 3px solid #d9f2ff; outline-offset: 3px; }

/* ---------- Apply area (button / "Coming Soon" button / closed button) ---------- */
.cohort-apply { margin-top: auto; padding-top: 22px; }
.cohort-apply [hidden] { display: none !important; }
[data-state][hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .cohort-path, .cohort-card { transition: none; }
}

.cohort-apply-btn {
  border: 0;
  cursor: pointer;
  line-height: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #003366;
  color: #fff;
  font-family: 'MuseoModerno', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 15px 34px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cohort-apply-btn:hover { background: #0055aa; transform: translateY(-2px); }
.cohort-apply-btn:focus-visible { outline: 3px solid #1261A0; outline-offset: 3px; }
/* Same button, greyed out: "Coming Soon" / "closed". Not clickable. */
.cohort-apply-btn--off,
.cohort-apply-btn--off:hover {
  background: #003366;
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---------- Home page: Data & Insight Journey section ----------
   Built on the same .blue / .container / .event-card structure the
   old Upcoming Event section used, so it lines up with the rest of
   the page. Flyers are small thumbnails; the full flyers are on
   data-analysis-training.html. */
.dij-eyebrow {
  color: #1261A0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
  text-align: left;
}
.dij-card { align-items: stretch; }
.dij-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px;
  color: #003366;
  text-align: left;
}
.dij-item + .dij-item { border-left: 1px solid rgba(0, 51, 102, 0.15); }
.dij-thumb {
  flex: 0 0 auto;
  width: 160px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 51, 102, 0.25);
  transition: transform 0.25s ease;
}
.dij-thumb:hover { transform: scale(1.03); }
.dij-thumb img { display: block; width: 100%; height: auto; }
.dij-text { min-width: 0; font-size: 1rem; }
.dij-text .cohort-role { margin-bottom: 10px; font-size: 0.7rem; padding: 5px 12px; white-space: nowrap; }
.dij-text h3 { font-size: 1.5rem; color: #003366; margin: 0 0 6px; }
.dij-text p { font-size: 0.95rem; line-height: 1.55; color: #26425f; margin: 0 0 12px; }
.dij-link { color: #1261A0; font-size: 0.95rem; font-weight: 700; text-decoration: none; }
.dij-link:hover { text-decoration: underline; }
.dij-link:focus-visible { outline: 3px solid #1261A0; outline-offset: 3px; border-radius: 4px; }
.dij-more { text-align: center; margin-top: 30px; }
.dij-more .cta-btn { margin-top: 0; }

/* ---------- Callout on Training / Digital Future Initiatives pages ---------- */
.cohort-callout {
  margin-top: 26px;
  padding: 16px 20px;
  background: #d9f2ff;
  border-left: 5px solid #003366;
  border-radius: 10px;
  text-align: left;
  color: #003366;
}

.cohort-callout-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: #003366;
  color: #fff;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.cohort-callout h4 {
  font-size: 1.05rem;
  margin: 0 0 4px;
  font-style: normal;
}

.cohort-callout p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.cohort-callout a {
  font-weight: 700;
  color: #1261A0;
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .dij-item { width: 100%; }
  .dij-eyebrow { text-align: center; }
  .cohort-grid { grid-template-columns: repeat(2, 1fr); }
  .cohort-callout { text-align: center; border-left: 0; border-top: 5px solid #003366; }
  .cohort-tracks { grid-template-columns: 1fr; }
  .cohort-split { grid-template-columns: 1fr; gap: 28px; }
  .cohort-media:not(.cohort-media--wide) { max-width: 520px; }
}
@media (max-width: 720px) {
  .cohort-hero {
    background-image:
      linear-gradient(180deg, rgba(0, 36, 71, 0.74) 0%, rgba(0, 36, 71, 0.64) 100%),
      url("images/dij-hero.webp");
    padding: 40px 18px 80px;
  }
  .cohort-back { margin-bottom: 26px; }
  .cohort-path { width: 100%; min-width: 0; }
  .cohort-facts { padding: 0 16px; margin-top: -36px; }
  .cohort-facts dl { grid-template-columns: repeat(2, 1fr); }
  .cohort-facts dl > div:nth-child(3) { border-left: 0; }
  .cohort-facts dl > div:nth-child(n+3) { border-top: 1px solid #e6edf5; }
  .cohort-section { padding: 56px 18px; }
  .cohort-inner > h2, .cohort-cta h2 { font-size: 1.65rem; }
  .cohort-intro { margin-bottom: 26px; }
  .cohort-steps { grid-template-columns: 1fr; gap: 26px; }
  .cohort-steps li { padding-left: 66px; }
  .cohort-step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .cohort-steps li:not(:last-child)::after { top: 52px; bottom: -26px; left: 23px; right: auto; border-top: 0; border-left: 2px dashed #9dbbd8; }
  .cohort-join { padding: 24px 20px 22px; }
  .cohort-join h3 { font-size: 1.4rem; }
  .cohort-cta { padding: 56px 18px; }
  .cohort-media--wide { aspect-ratio: 16 / 9; margin-bottom: 24px; }
  .dij-item { padding: 22px 18px; gap: 16px; }
  .dij-item + .dij-item { border-left: 0; border-top: 1px solid rgba(0, 51, 102, 0.15); }
  .dij-thumb { width: 104px; }
  .dij-text .cohort-role { font-size: 0.62rem; letter-spacing: 0.04em; padding: 5px 10px; }
  .dij-text h3 { font-size: 1.25rem; }
  .dij-text p { font-size: 0.9rem; }
}
@media (max-width: 520px) {
  .cohort-grid { grid-template-columns: 1fr; }
  .cohort-apply-btn { display: flex; justify-content: center; }
  .cohort-btn { width: 100%; text-align: center; }
}