
/* ==========================================
   PROGRAMS: JOURNEY NAVIGATION
   ========================================== */

section[id] {
  scroll-margin-top: 90px;
}

.journey {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.journey a {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  color: var(--green-900);
  transition: background .2s, color .2s;
}

.journey a:hover {
  background: var(--green-900);
  color: #fff;
  border-color: var(--green-900);
}


/* ==========================================
   PROGRAMME BACKGROUND IMAGES
   ========================================== */

/*
  Each programme gets a full-section background.
  Images remain proportional and cover the section.
  A gradient blends the image into the left side.
*/

.program-stay,
.program-learn,
.program-lead,
.program-thrive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Individual image references */

.program-stay {
  --program-image: url("../images/work-1.jpg");
}

.program-learn {
  --program-image: url("../images/work-2.jpg");
}

.program-lead {
  --program-image: url("../images/work-3.jpg");
}

.program-thrive {
  --program-image: url("../images/work-4.jpg");
}


/* White background sections */

.program-stay::before,
.program-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background-image:
    linear-gradient(
      to right,
      #ffffff 0%,
      #ffffff 23%,
      rgba(255,255,255,0.97) 38%,
      rgba(255,255,255,0.85) 52%,
      rgba(255,255,255,0.55) 70%,
      rgba(255,255,255,0.15) 100%
    ),
    var(--program-image);

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;

  pointer-events: none;
}


/* Cream background sections */

.program-learn::before,
.program-thrive::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background-image:
    linear-gradient(
      to right,
      var(--cream) 0%,
      var(--cream) 23%,
      rgba(248,245,237,0.97) 38%,
      rgba(248,245,237,0.85) 52%,
      rgba(248,245,237,0.55) 70%,
      rgba(248,245,237,0.15) 100%
    ),
    var(--program-image);

  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;

  pointer-events: none;
}


/* Ensure all programme content remains above the image */

.program {
  position: relative;
  z-index: 1;
}


/* ==========================================
   PROGRAMME HEADINGS
   ========================================== */

.block-title {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--green-900);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}


/* ==========================================
   KEY ACTIVITIES TABLE
   ========================================== */

.activity-table {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.act-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}

.act-row:last-child {
  border-bottom: none;
}

.act-head {
  background: var(--green-900);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.act-area {
  font-weight: 500;
  color: var(--ink);
}

.act-row span:last-child {
  color: var(--muted);
}

.act-head span:last-child {
  color: #fff;
}


/* ==========================================
   EXPECTED OUTCOMES
   ========================================== */

.outcome-box {
  background: var(--cream);
  border-radius: 14px;
  padding: 8px 24px;
}

.outcome-box .checklist {
  margin-bottom: 0;
}

.outcome-box .checklist li {
  font-size: 15px;
}


/* ==========================================
   PARTNERS
   ========================================== */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.partner-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 32px 20px;
  min-height: 130px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.partner-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  color: var(--green-900);
}


/* ==========================================
   DESKTOP AND LAPTOP
   ========================================== */

@media (min-width: 901px) {

  .program-stay::before,
  .program-learn::before,
  .program-lead::before,
  .program-thrive::before {
    background-size: cover;
    background-position: center right;
  }

}


/* ==========================================
   TABLETS
   ========================================== */

@media (min-width: 561px) and (max-width: 900px) {

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .act-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .act-head {
    display: none;
  }

  .act-row span:last-child {
    color: var(--muted);
  }

  .program-stay::before,
  .program-learn::before,
  .program-lead::before,
  .program-thrive::before {
    background-position: 68% center;
    background-size: cover;
  }

}


/* ==========================================
   MOBILE PHONES
   ========================================== */

@media (max-width: 560px) {

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .journey a {
    font-size: 13px;
    padding: 8px 14px;
  }

  .outcome-box {
    padding: 4px 18px;
  }

  .act-row {
    padding: 14px 16px;
  }


  /* 
     Mobile image positioning.
     Keep the photograph visible on the right,
     while protecting text readability on the left.
  */

  .program-stay::before,
  .program-lead::before {
    background-image:
      linear-gradient(
        to right,
        #ffffff 0%,
        rgba(255,255,255,0.98) 18%,
        rgba(255,255,255,0.90) 38%,
        rgba(255,255,255,0.72) 55%,
        rgba(255,255,255,0.35) 78%,
        rgba(255,255,255,0.12) 100%
      ),
      var(--program-image);
  }

  .program-learn::before,
  .program-thrive::before {
    background-image:
      linear-gradient(
        to right,
        var(--cream) 0%,
        rgba(248,245,237,0.98) 18%,
        rgba(248,245,237,0.90) 38%,
        rgba(248,245,237,0.72) 55%,
        rgba(248,245,237,0.35) 78%,
        rgba(248,245,237,0.12) 100%
      ),
      var(--program-image);
  }

  .program-stay::before,
  .program-learn::before,
  .program-lead::before,
  .program-thrive::before {
    background-size: cover;
    background-position: 68% center;
    background-repeat: no-repeat;
  }

}
