.learn-hero {
  display: flex;
  min-height: 680px;
  align-items: center;
  border-bottom: 0;
  background:
    linear-gradient(90deg, rgba(7, 29, 46, 0.9) 0%, rgba(7, 29, 46, 0.72) 56%, rgba(7, 29, 46, 0.48) 100%),
    url("../images/IMG_3391.JPG") center 62% / cover no-repeat,
    var(--navy);
  color: var(--paper);
}

.learn-hero::after {
  display: none;
}

.learn-hero-grid {
  display: block;
}

.learn-hero-copy {
  max-width: 780px;
}

.learn-hero .tag {
  color: var(--bright);
}

.learn-hero h1 {
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(3, 18, 29, 0.7);
}

.learn-hero p {
  color: rgba(242, 248, 252, 0.92);
  text-shadow: 0 1px 12px rgba(3, 18, 29, 0.74);
}

.learn-hero .btn.primary {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--navy);
}

.learn-hero .btn:not(.primary) {
  border-color: rgba(242, 248, 252, 0.72);
  background: rgba(7, 29, 46, 0.24);
  color: var(--paper);
}

.content-image-expand {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 0;
  cursor: zoom-in;
}

.content-image-expand:focus-visible {
  outline: 3px solid var(--bright);
  outline-offset: -4px;
}

.ranum-collage-item .content-image-expand {
  height: 100%;
}

.coral-quest-collage .content-image-expand {
  height: calc(100% - 35px);
}

.coral-quest-collage .content-image-expand img {
  height: 100%;
}

.content-image-lightbox {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(5, 20, 31, 0.98);
  color: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.content-image-lightbox::backdrop {
  background: rgba(3, 14, 23, 0.9);
  backdrop-filter: blur(4px);
}

.content-image-lightbox figure {
  display: grid;
  place-items: center;
  max-height: 94vh;
  margin: 0;
}

.content-image-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(94vh - 54px);
  object-fit: contain;
}

.content-image-lightbox figcaption {
  width: 100%;
  min-height: 54px;
  padding: 17px 70px 15px 20px;
  background: rgba(5, 20, 31, 0.98);
  color: var(--paper);
  font: 400 0.72rem/1.5 "IBM Plex Mono", monospace;
  text-align: center;
}

.content-image-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 8px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(5, 20, 31, 0.78);
  color: #fff;
  font: 300 2rem/1 Arial, sans-serif;
  cursor: pointer;
}

.content-image-lightbox__close:hover,
.content-image-lightbox__close:focus-visible {
  border-color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.learning-programmes {
  background: var(--paper);
}

.field-learning {
  padding-top: 0;
  background: var(--paper);
}

.field-learning-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
  background: #e1eef5;
}

.field-learning-card .head {
  margin-bottom: 30px;
}

.field-learning-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.field-learning-example {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.field-learning-example:hover,
.field-learning-example:focus-visible {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(10, 31, 47, 0.1);
}

.field-learning-example span {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
  font: 500 0.7rem "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.field-learning-example strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.field-learning-example p {
  color: var(--soft);
  font-size: 0.86rem;
}

.case-study {
  scroll-margin-top: 90px;
  border-top: 1px solid var(--line);
}

.case-study:nth-of-type(even) {
  background: var(--tint);
}

.case-study > .wrap {
  padding: 36px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
  background: #e1eef5;
}

.case-study .head {
  margin-bottom: 42px;
}

.case-study h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.ranum-intro,
.hiriya-grid,
.coral-quest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: start;
}

.hiriya-gallery {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ranum-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(210px, 22vw, 300px));
  gap: 12px;
  min-width: 0;
  margin-top: 36px;
}

.ranum-video {
  width: min(100%, 390px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--navy);
  box-shadow: 0 16px 36px rgba(20, 50, 74, 0.12);
  aspect-ratio: 9 / 16;
}

.ranum-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ranum-collage-item {
  position: relative;
  min-height: 0;
  box-shadow: 0 12px 28px rgba(20, 50, 74, 0.1);
}

.ranum-collage-item:nth-child(1) {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

.ranum-collage-item:nth-child(2) {
  grid-column: 8 / 11;
  grid-row: 1 / 3;
}

.ranum-collage-item:nth-child(3) {
  grid-column: 11 / 13;
  grid-row: 1;
}

.ranum-collage-item:nth-child(4) {
  grid-column: 11 / 13;
  grid-row: 2;
}

.hiriya-gallery-support {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ranum-collage-item,
.hiriya-photo,
.coral-quest-photo {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--tint);
}

.ranum-collage-item img,
.hiriya-photo img,
.coral-quest-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.ranum-collage-item img {
  height: 100%;
  object-fit: cover;
}

.ranum-collage-item figcaption,
.hiriya-photo figcaption,
.coral-quest-photo figcaption {
  padding: 9px 11px;
  background: var(--paper);
  color: var(--soft);
  font: 400 0.65rem/1.4 "IBM Plex Mono", monospace;
}

.ranum-collage-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  padding: 48px 12px 12px;
  background: linear-gradient(transparent, rgba(10, 31, 47, 0.9));
  color: var(--paper);
}

.ranum-copy > p,
.hiriya-copy > p:not(.hiriya-lead) {
  margin-bottom: 18px;
  color: var(--soft);
}

.hiriya-copy .tag {
  margin-bottom: 14px;
}

.hiriya-lead,
.coral-quest-subtitle {
  margin: 10px 0 24px;
  color: var(--deep);
  font: 600 1.2rem "Space Grotesk", sans-serif;
}

.study-details {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.study-details dt,
.study-details dd {
  padding: 9px 0;
  border-bottom: 1px solid rgba(20, 50, 74, 0.1);
}

.study-details dt {
  color: var(--deep);
  font: 500 0.68rem "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.study-details dd {
  margin: 0;
  color: var(--navy);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.study-details dt:nth-last-of-type(1),
.study-details dd:nth-last-of-type(1) {
  border-bottom: 0;
}

.learning-message {
  margin-top: 40px;
  padding: 30px;
  border-left: 4px solid var(--blue);
  background: var(--paper);
}

.learning-message h3 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.learning-message > span {
  display: block;
  margin-bottom: 10px;
  color: var(--deep);
  font: 500 0.72rem "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.learning-message p {
  max-width: 82ch;
  color: var(--soft);
}

.learning-message p + p {
  margin-top: 12px;
}

.coral-quest-header {
  min-width: 0;
}

.coral-quest-supporting {
  margin-top: -17px;
  color: var(--navy);
  font-weight: 600;
}

.coral-quest-intro {
  margin-top: 24px;
  color: var(--soft);
}

.coral-quest-intro p + p {
  margin-top: 18px;
}

.coral-quest-callout {
  width: 100%;
  margin: 0;
  padding: 24px;
  border-left: 4px solid var(--blue);
  background: var(--tint);
}

.coral-quest-callout h3,
.coral-quest-local h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.coral-quest-callout > p,
.coral-quest-local p {
  margin-top: 10px;
  color: var(--soft);
  font-size: 0.9rem;
}

.coral-quest-feature {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 42px;
}

.coral-quest-video {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--navy);
  box-shadow: 0 16px 36px rgba(20, 50, 74, 0.12);
  aspect-ratio: 9 / 16;
}

.coral-quest-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.coral-quest-collage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: 460px;
  margin-top: 18px;
}

.coral-quest-collage .coral-quest-photo {
  width: 100%;
  height: 100%;
}

.coral-quest-collage .coral-quest-photo-tall {
  grid-row: 1 / 3;
}

.coral-quest-collage img {
  width: 100%;
  height: calc(100% - 35px);
  object-fit: cover;
}

.coral-quest-local {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: 24px;
  align-items: start;
  width: min(100%, 820px);
  margin: 24px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 6px;
  background: var(--paper);
}

.coral-quest-closing {
  margin-top: 48px;
}

.coral-quest-closing h3 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.coral-quest-closing p {
  max-width: 82ch;
  margin-top: 16px;
  color: var(--soft);
}

@media (hover: hover) and (pointer: fine) {
  .ranum-collage-item img,
  .hiriya-photo img,
  .coral-quest-photo img {
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ranum-collage-item:hover img,
  .hiriya-photo:hover img,
  .coral-quest-photo:hover img {
    transform: scale(1.025);
  }
}

@media (max-width: 900px) {
  .coral-quest-feature {
    grid-template-columns: 1fr;
  }

  .coral-quest-video {
    width: min(100%, 390px);
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .learn-hero {
    min-height: 620px;
    background:
      linear-gradient(rgba(7, 29, 46, 0.66), rgba(7, 29, 46, 0.78)),
      url("../images/IMG_3391.JPG") center 62% / cover no-repeat,
      var(--navy);
  }

  .field-learning-examples,
  .ranum-intro,
  .hiriya-grid,
  .coral-quest-grid {
    grid-template-columns: 1fr;
  }

  .ranum-intro,
  .hiriya-grid,
  .coral-quest-grid {
    gap: 34px;
  }

  .ranum-collage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: clamp(250px, 45vw, 360px) clamp(250px, 42vw, 320px);
  }

  .ranum-collage-item:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1;
  }

  .ranum-collage-item:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .ranum-collage-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .ranum-collage-item:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .field-learning-card,
  .case-study > .wrap {
    padding: 24px;
  }

  .field-learning-examples,
  .hiriya-gallery-support,
  .study-details,
  .coral-quest-local {
    grid-template-columns: 1fr;
  }

  .ranum-collage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: clamp(190px, 58vw, 260px) clamp(150px, 42vw, 210px);
    gap: 7px;
    margin-top: 28px;
  }

  .ranum-collage-item figcaption {
    padding: 32px 7px 7px;
    font-size: 0.55rem;
    line-height: 1.25;
  }

  .study-details dt {
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .study-details dd {
    padding-top: 0;
  }

  .learning-message,
  .coral-quest-callout,
  .coral-quest-local {
    padding: 22px 18px;
  }

  .coral-quest-collage {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .coral-quest-collage .coral-quest-photo-tall {
    grid-row: auto;
  }

  .coral-quest-collage img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .coral-quest-collage .content-image-expand {
    height: auto;
  }

  .coral-quest-collage .content-image-expand img {
    height: auto;
  }

  .content-image-lightbox {
    width: 96vw;
    max-height: 92vh;
  }

  .content-image-lightbox figure {
    max-height: 92vh;
  }

  .content-image-lightbox img {
    max-height: calc(92vh - 68px);
  }

  .content-image-lightbox figcaption {
    min-height: 68px;
    padding: 14px 58px 14px 14px;
    font-size: 0.64rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .field-learning-example,
  .ranum-collage-item img,
  .hiriya-photo img,
  .coral-quest-photo img {
    transition: none;
  }
}
