/* Key Programmes – Card layout
   ---------------------------------------- */

.kp-wrapper {
  padding: 0rem 8vw;
  background: #f7f9fc;
}

.kp-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1150px;
  margin: 0 auto;
}

/* Individual programme card */
.kp-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.8rem;
  border: 1px solid #263979;
  border-radius: 20px;
  background: #f9faff;
  /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04); */
}

.kp-item:hover {
  background: #f3f7ff;
  /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04); */
}


/* Image area */
.kp-image {
  flex: 0 0 32%;
  min-width: 220px;
  max-width: 360px;
}

.kp-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 16px;
}

/* Text area */
.kp-content {
  flex: 1 1 auto;
  color: #222;
}

.kp-content h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  font-family: 'Oswald';
  color: #263979;
}

.kp-content p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
  font-size: 0.98rem;
}

/* Links block on next line */
.kp-links {
  margin-top: 0.75rem;
  font-weight: 600;
}

.kp-links a {
  display: inline-block;
  margin-right: 1.25rem;
  margin-top: 0.15rem;
  color: #145c9e;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.kp-links a:hover,
.kp-links a:focus-visible {
  color: #0b3c6e;
  border-bottom-color: currentColor;
}

/* Small section heading helper (if you want one) */
.kp-section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: left;
}

/* Subtitle under title */
.kp-subtitle {
  margin: -0.25rem 0 0.75rem;
  font-style: italic;
  font-size: 0.94rem;
  color: #6b6b6b;     /* soft grey */
  line-height: 1.4;
}


/* Responsiveness
   ---------------------------------------- */

/* Medium screens */
@media (max-width: 900px) {
  .kp-item {
    padding: 1.4rem;
    gap: 1.5rem;
  }

  .kp-image {
    min-width: 200px;
  }
}

/* Phones and small tablets */
@media (max-width: 700px) {
  .kp-wrapper {
    padding: 3rem 5vw 3.5rem;
  }

  .kp-item {
    flex-direction: column;           /* image on top, text below */
  }

  .kp-image {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .kp-image img {
    max-height: 260px;
  }

  .kp-content h2 {
    font-size: 1.4rem;
  }

  .kp-links a {
    margin-right: 0.75rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .kp-item {
    padding: 1.2rem;
  }

  .kp-content p {
    font-size: 0.95rem;
  }
}
