.jci-program-study-plan {
  --jci-study-plan-blue: #487cff;
  --jci-study-plan-navy: #131940;
  --jci-study-plan-green: #6bb486;
  --jci-study-plan-gray: #e6e2e2;
  margin-top: clamp(48px, 6vw, 88px);
  color: var(--bs-body-color);
  font-family: "DM Sans", sans-serif;
}

.jci-program-study-plan,
.jci-program-study-plan * {
  box-sizing: border-box;
}

.div-master .jci-program-study-plan header {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  will-change: auto !important;
}

.div-master .jci-program-study-plan .jci-program-study-plan__section-header {
  position: relative !important;
}

.jci-program-study-plan__intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}

.jci-program-study-plan__heading,
.jci-program-study-plan__section-header h3,
.jci-program-study-plan__group h4,
.jci-program-study-plan__module h5,
.jci-program-study-plan__topic h6 {
  margin: 0;
  color: var(--bs-body-color);
  font-family: inherit;
  text-transform: none;
}

.jci-program-study-plan__heading {
  font-size: clamp(24px, 1vw, 28px);
  font-weight: 500;
  line-height: 1.15;
}

.jci-program-study-plan__summary {
  display: grid;
  gap: 18px;
  justify-items: start;
  margin: clamp(20px, 3vw, 30px) 0 0;
  color: var(--bs-body-color);
  line-height: 1;
}

.jci-program-study-plan__summary-modules,
.jci-program-study-plan__summary-credits {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.jci-program-study-plan__summary strong {
  color: var(--bs-body-color);
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.jci-program-study-plan__summary-modules > span,
.jci-program-study-plan__summary-credits > span {
  color: #667085;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

/* Desktop summary: modules and credits are separate rows under the heading. */
@media (min-width: 769px) {
  .jci-program-study-plan__summary {
    display: grid;
    gap: 0;
    align-items: baseline;
    margin-top: 20px;
    font-size: 40px;
    line-height: 50px;
  }

  .jci-program-study-plan__summary-modules,
  .jci-program-study-plan__summary-credits {
    display: flex;
    gap: 0.2em;
    align-items: baseline;
  }

  .jci-program-study-plan__summary strong,
  .jci-program-study-plan__summary-modules > span,
  .jci-program-study-plan__summary-credits > span {
    color: var(--bs-body-color);
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    letter-spacing: normal;
  }
}

.jci-program-study-plan__introduction {
  max-width: 820px;
}

.jci-program-study-plan__introduction-copy {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.6;
}

.jci-program-study-plan__introduction-copy > :first-child,
.jci-program-study-plan__module-content > :first-child,
.jci-program-study-plan__topic > :first-child {
  margin-top: 0;
}

.jci-program-study-plan__introduction-copy > :last-child,
.jci-program-study-plan__module-content > :last-child,
.jci-program-study-plan__topic > :last-child {
  margin-bottom: 0;
}

.jci-program-study-plan__sections {
  display: grid;
  gap: 64px;
  margin-top: 36px;
  margin-left: 0;
}

.jci-program-study-plan__section {
  border-top: 14px solid var(--jci-study-plan-gray);
}

.jci-program-study-plan__section-header {
  position: relative;
  padding: 20px 48px;
  border-bottom: 2px solid var(--jci-study-plan-navy);
}

.jci-program-study-plan__section-header::before {
  position: absolute;
  top: -14px;
  bottom: -2px;
  left: 0;
  width: 22px;
  background: var(--jci-study-plan-green);
  content: "";
}

.jci-program-study-plan__section-header h3,
.jci-program-study-plan__section-header p {
  margin-left: 0;
}

.jci-program-study-plan__section-header h3 {
  font-size: clamp(20px, 2.7vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  padding-bottom: 0;
}

.jci-program-study-plan__section-header p {
    margin-top: 10px;
    padding-bottom: 0 !important;
    color: var(--jci-study-plan-blue);
    font-size: clamp(20px, 2.7vw, 30px);
    line-height: 1.15;
    margin-bottom: 0 !important;
}

.jci-program-study-plan__group,
.jci-program-study-plan__module-details,
.jci-program-study-plan__module-static {
  border-bottom: 2px solid var(--jci-study-plan-navy);
}

.jci-program-study-plan summary {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 82px;
  padding: 16px 48px;
  cursor: pointer;
  list-style: none;
  text-align: left;
}

.jci-program-study-plan summary::-webkit-details-marker {
  display: none;
}

.jci-program-study-plan summary::marker {
  content: "";
}

.jci-program-study-plan summary:hover h4,
.jci-program-study-plan summary:hover h5 {
  color: var(--jci-study-plan-blue);
}

.jci-program-study-plan summary:focus-visible {
  outline: 3px solid var(--jci-study-plan-blue);
  outline-offset: 4px;
}

.jci-program-study-plan__group-label,
.jci-program-study-plan__module-details summary > span:first-child {
  min-width: 0;
  text-align: left;
}

.jci-program-study-plan__group h4 {
  font-size: clamp(23px, 1.9vw, 28px);
  font-weight: 500;
  line-height: 1.25;
}

.jci-program-study-plan__group-label p,
.jci-program-study-plan__module-details summary p,
.jci-program-study-plan__module-static p {
  margin: 6px 0 0;
  color: var(--jci-study-plan-blue);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.25;
  padding-bottom: 0;
}

.jci-program-study-plan__group-label .jci-program-study-plan__selection-requirement {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.jci-program-study-plan__group:not([open]) .jci-program-study-plan__selection-requirement {
  display: none;
}

.jci-program-study-plan__chevron {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  max-width: 20px;
  height: auto;
  transition: transform 180ms ease;
}

.jci-program-study-plan details[open] > summary > .jci-program-study-plan__chevron {
  transform: rotate(180deg);
}

.jci-program-study-plan__module-list {
  margin: 0;
  padding: 0;
  background: #f1efef;
  list-style: none;
}

.jci-program-study-plan__module {
  position: relative;
}

.jci-program-study-plan__module-details,
.jci-program-study-plan__module-static {
  border-bottom-width: 1px;
}

.jci-program-study-plan__module-details summary,
.jci-program-study-plan__module-static {
  min-height: 58px;
  padding: 14px 48px;
  text-align: left;
}

.jci-program-study-plan__module-static {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.jci-program-study-plan__module-details summary {
  padding-right: 48px;
  padding-left: 48px;
}

.jci-program-study-plan__module-details summary > span:first-child {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: baseline;
  text-align: left;
}

.jci-program-study-plan__module h5 {
  min-width: 0;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}

.jci-program-study-plan__module-details summary p,
.jci-program-study-plan__module-static p {
  flex: 0 0 auto;
  margin: 0;
  color: #777575;
  font-size: clamp(15px, 1.25vw, 18px);
  padding-bottom: 0;
  white-space: nowrap;
}

.jci-program-study-plan__module-content {
  padding: 0 48px 24px;
  color: var(--bs-body-color);
  text-align: left;
  font-size: 15px;
  line-height: 1.45;
}

.jci-program-study-plan__topic + .jci-program-study-plan__topic {
  margin-top: 12px;
}

.jci-program-study-plan__topic h6 {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.jci-program-study-plan__topic ul,
.jci-program-study-plan__topic ol {
  padding-left: 1.25em;
}

.jci-program-study-plan__topic li::marker {
  color: var(--jci-study-plan-blue);
}


/* Outdoor activities: concise editorial lead followed quickly by the full-bleed video. */
.jci-program-study-plan__outdoor {
  margin-top: clamp(72px, 7vw, 104px);
}

.jci-program-study-plan__outdoor-video {
  margin-top: clamp(48px, 5vw, 72px);
}

.jci-program-study-plan__outdoor > .row {
  align-items: start;
}

.jci-program-study-plan__outdoor h2 {
  max-width: 12ch;
  margin-top: 0;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.08;
}

.jci-program-study-plan__outdoor .col-8 > :first-child {
  max-width: 68ch;
  margin-top: 0;
}

.jci-program-study-plan__outdoor .col-8 > :last-child {
  margin-bottom: 0;
}


/* The video is full bleed, centred, and capped at a large desktop viewport. */
.jci-program-study-plan__outdoor-video {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 1920px;
  overflow: hidden;
  transform: translateX(-50%);
}

.jci-program-study-plan__outdoor-video .jci-video-facade {
  width: 100%;
  max-width: none;
}

@media (max-width: 900px) {
  .jci-program-study-plan__intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .jci-program-study-plan__summary {
    margin-top: 24px;
  }

  .jci-program-study-plan__sections {
    margin-left: 0;
  }
}

/* Mobile study-plan contract: the existing details markup remains the only
 * accordion system. Layout, hierarchy and touch geometry are owned here. */
@media (max-width: 768px) {
  .jci-program-study-plan {
    margin-top: 40px;
  }

  .jci-program-study-plan__intro {
    gap: 24px;
  }

  .jci-program-study-plan__heading {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1;
  }

  .jci-program-study-plan__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    gap: 24px;
    justify-content: start;
    justify-items: start;
    margin-top: 16px;
  }

  .jci-program-study-plan__summary-modules,
  .jci-program-study-plan__summary-credits {
    gap: 4px;
  }

  .jci-program-study-plan__summary strong {
    font-size: 32px;
    font-weight: 500;
    line-height: 0.95;
  }

  .jci-program-study-plan__summary-modules > span,
  .jci-program-study-plan__summary-credits > span {
    font-size: 13px;
  }

  .jci-program-study-plan__introduction-copy {
    font-size: 16px;
    line-height: 1.55;
  }

  .jci-program-study-plan__sections {
    gap: 48px;
    margin-top: 24px;
  }

  .jci-program-study-plan__section {
    border-top-width: 9px;
  }

  .jci-program-study-plan__section-header {
    padding: 16px 8px 16px 20px;
  }

  .jci-program-study-plan__section-header::before {
    top: -9px;
    width: 11px;
  }

  .jci-program-study-plan__section-header h3 {
    font-size: 18px;
    line-height: 1.2;
  }

  .jci-program-study-plan__section-header p {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.3;
  }

  .jci-program-study-plan summary {
    min-height: 56px;
    padding: 12px 4px;
  }

  .jci-program-study-plan__group > summary {
    gap: 12px;
    padding-left: 20px;
  }

  .jci-program-study-plan__group h4 {
    font-size: 18px;
    line-height: 1.25;
  }

  .jci-program-study-plan__group-label p {
    margin-top: 4px;
    font-size: 14px;
  }

  .jci-program-study-plan__group-label .jci-program-study-plan__selection-requirement {
    margin-top: 10px;
    font-size: 12px;
  }

  .jci-program-study-plan__chevron {
    width: 15px;
    max-width: 15px;
  }

  .jci-program-study-plan__module-details summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15px;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 10px 4px 10px 20px;
  }

  .jci-program-study-plan__module-details summary > span:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
  }

  .jci-program-study-plan__module-static {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 10px 31px 10px 20px;
  }

  .jci-program-study-plan__module h5 {
    font-size: 14px;
    line-height: 1.3;
  }

  .jci-program-study-plan__module-details summary p,
  .jci-program-study-plan__module-static p {
    margin: 1px 0 0;
    font-size: 13px;
    line-height: 1.3;
  }

  .jci-program-study-plan__module-content {
    padding: 12px 20px 20px;
    font-size: 15px;
    line-height: 1.5;
  }

  .jci-program-study-plan__topic + .jci-program-study-plan__topic {
    margin-top: 16px;
  }

  .jci-program-study-plan__outdoor {
    margin-top: 48px;
  }

  .jci-program-study-plan__outdoor-video {
    margin-top: 32px;
  }

  .jci-program-study-plan__outdoor h2 {
    max-width: none;
    font-size: clamp(26px, 7vw, 32px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .jci-program-study-plan__chevron {
    transition: none;
  }
}

@media print {
  .jci-program-study-plan {
    margin-top: 24px;
  }

  .jci-program-study-plan__intro {
    display: block;
  }

  .jci-program-study-plan__sections {
    margin-top: 30px;
    margin-left: 0;
  }

  .jci-program-study-plan details > * {
    display: block;
  }

  .jci-program-study-plan summary {
    cursor: default;
  }

  .jci-program-study-plan__chevron {
    display: none;
  }
}

/* v146 mobile study-plan density: retain the details semantics while matching
 * the more compact, line-led mobile reference. */
@media (max-width: 576px) {
  .jci-program-study-plan__heading {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 0.98;
  }

  .jci-program-study-plan__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
  }

  .jci-program-study-plan summary {
    min-height: 64px;
    padding-block: 12px;
  }

  .jci-program-study-plan__module-content {
    padding: 14px 20px 22px;
  }

  .jci-program-study-plan__section-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .jci-program-study-plan__outdoor {
    margin-top: 48px;
  }

  .jci-program-study-plan__outdoor-video {
    margin-top: 32px;
  }
}
