@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

.programs-page {
  width: 100%;
  background: #fffdf8;
  color: #17462f;
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
}

.programs-page * {
  box-sizing: border-box;
}

.programs-page h1,
.programs-page h2,
.programs-page h3 {
  font-family: 'Playfair Display', serif;
}

.programs-page em {
  color: #4f97ac;
  font-style: italic;
}

/* HERO */

.programs-hero {
  min-height: 570px;
  padding: 100px 9%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  color: white;

  background:
    linear-gradient(
      90deg,
      rgba(8, 42, 27, .96),
      rgba(8, 42, 27, .75)
    ),
    url("/programs/4.jpeg") center/cover no-repeat;
}

.programs-hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.programs-eyebrow,
.programs-label {
  display: inline-block;
  color: #b7dfe7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.programs-hero h1 {
  font-size: clamp(45px, 6vw, 76px);
  line-height: 1.12;
  margin-bottom: 25px;
}

.programs-hero-content p {
  max-width: 650px;
  color: #e3ebe5;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 32px;
}

.programs-main-btn,
.programs-partner-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 16px 25px;
  background: #4f97ac;
  color: #102f36;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: .3s ease;
}

.programs-main-btn:hover,
.programs-partner-btn:hover {
  background: white;
  transform: translateY(-3px);
}

.programs-hero-decoration {
  position: absolute;
  bottom: 35px;
  right: 8%;
  display: flex;
  gap: 25px;
  color: rgba(255,255,255,.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* INTRODUCTION */

.programs-introduction {
  padding: 110px 9%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.programs-intro-heading h2,
.strategic-heading h2,
.development-heading h2,
.audience-content h2,
.program-values-heading h2,
.programs-partnership h2 {
  font-size: clamp(35px, 4vw, 49px);
  line-height: 1.2;
  margin-bottom: 20px;
}

.programs-intro-description p {
  color: #68776d;
  font-size: 14px;
  line-height: 2;
  margin-bottom: 15px;
}

/* STRATEGIC PROGRAMS */

.strategic-programs {
  background: #f2f5ef;
  padding: 105px 9%;
}

.strategic-heading {
  max-width: 700px;
  margin-bottom: 55px;
}

.strategic-heading p {
  color: #718077;
  line-height: 1.9;
  font-size: 14px;
}

.strategic-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
  align-items: start;
}

/* PROGRAM NAVIGATION */

.program-navigation {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.program-nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  padding: 20px;
  background: white;
  border: 1px solid #e7ece5;
  cursor: pointer;
  color: #17462f;
  transition: .3s ease;
  width: 100%;
}

.program-nav-number {
  color: #4f97ac;
  font-size: 12px;
  font-weight: 800;
}

.program-nav-item strong {
  font-size: 12px;
  flex: 1;
  line-height: 1.5;
}

.program-nav-arrow {
  font-size: 18px;
}

.program-nav-item:hover,
.program-nav-item.active {
  background: #17462f;
  color: white;
  border-color: #17462f;
}

.program-nav-item.active .program-nav-number {
  color: #b7dfe7;
}

/* PROGRAM DETAILS */

.program-details {
  background: white;
  padding: 45px;
  border: 1px solid #e7ece5;
  min-height: 0;
  animation: detailsFade .3s ease;
}

@keyframes detailsFade {
  from {
    opacity: .5;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.program-details-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.program-large-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  background: #edf3ec;
  color: #4f97ac;
  border-radius: 50%;
  font-size: 27px;
}

.program-details-top > span {
  color: #4f97ac;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.program-details h3 {
  font-size: 33px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.program-details h4 {
  font-size: 13px;
  font-weight: 600;
  color: #36798a;
  margin-bottom: 35px;
}

.program-detail-block {
  margin-bottom: 28px;
}

.program-detail-block strong,
.program-outcome strong {
  font-size: 10px;
  letter-spacing: 2px;
  color: #17462f;
}

.program-detail-block p,
.program-outcome p {
  font-size: 13px;
  line-height: 1.9;
  color: #718077;
  margin-top: 12px;
}

.program-detail-block ul {
  padding: 0;
  list-style: none;
  margin-top: 15px;
}

.program-detail-block li {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #68776d;
  margin-bottom: 13px;
}

.program-detail-block li span {
  color: #4f97ac;
  font-weight: 900;
}

.program-outcome {
  background: #edf3ec;
  padding: 25px;
  border-left: 4px solid #4f97ac;
}

.program-scripture {
  margin-top: 25px;
  padding: 25px;
  background: #17462f;
  color: white;
}

.program-scripture > span {
  font-size: 10px;
  color: #b7dfe7;
  letter-spacing: 2px;
  font-weight: 800;
}

.program-scripture p {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  line-height: 1.7;
  font-style: italic;
}

.program-scripture strong {
  color: #b7dfe7;
  font-size: 11px;
  letter-spacing: 2px;
}

/* PROGRAM PHOTOGRAPHS */

.program-gallery {
  padding: 100px 9%;
  background: #fffdf8;
}

.program-gallery-heading {
  max-width: 700px;
  margin-bottom: 42px;
}

.program-gallery-heading h2 {
  margin: 0 0 16px;
  font-size: clamp(35px, 4vw, 49px);
  line-height: 1.2;
}

.program-gallery-heading p {
  color: #718077;
  font-size: 14px;
  line-height: 1.8;
}

.program-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.program-gallery-item {
  position: relative;
  height: 260px;
  margin: 0;
  overflow: hidden;
  background: #eaf3ed;
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.program-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-image-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 18px 20px;
  background: linear-gradient(transparent, rgba(8, 42, 27, .82));
  color: white;
  opacity: 0;
  transition: opacity .25s ease;
}

.program-gallery-item:hover .gallery-image-overlay,
.program-gallery-item:focus-within .gallery-image-overlay {
  opacity: 1;
}

.gallery-image-overlay span {
  color: #b7dfe7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}

.gallery-image-overlay h3 {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.35;
}

.program-gallery-item:hover img {
  transform: scale(1.04);
}

.program-gallery-item figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: rgba(11, 57, 41, .85);
  color: #b7dfe7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

@media (prefers-reduced-motion: reduce) {
  .program-gallery-item img,
  .gallery-image-overlay {
    transition: none;
  }
}

/* DEVELOPMENT APPROACH */

.program-development {
  padding: 110px 9%;
}

.development-heading {
  max-width: 700px;
  margin-bottom: 55px;
}

.development-heading > p {
  color: #718077;
  line-height: 1.9;
  font-size: 14px;
}

.development-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.development-step {
  padding: 30px 22px;
  background: #f7f8f4;
  border-top: 3px solid #4f97ac;
}

.development-step > span {
  font-size: 30px;
  font-weight: 800;
  color: #4f97ac;
}

.development-step h3 {
  font-size: 23px;
  margin: 20px 0 12px;
}

.development-step p {
  font-size: 13px;
  color: #718077;
  line-height: 1.8;
}

/* AUDIENCE */

.program-audience {
  background: #17462f;
  color: white;
  padding: 100px 9%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.audience-content h2 {
  color: white;
}

.audience-content p {
  color: #d3e0d6;
  font-size: 14px;
  line-height: 2;
}

.audience-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.audience-list div {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.audience-list span {
  color: #b7dfe7;
  font-weight: 800;
  font-size: 12px;
}

.audience-list strong {
  font-size: 14px;
}

/* CORE VALUES */

.program-values {
  padding: 100px 9%;
}

.program-values-heading {
  margin-bottom: 50px;
}

.program-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.program-values-grid > div {
  padding: 30px 22px;
  background: #f4f6f1;
  border-bottom: 3px solid #4f97ac;
}

.program-values-grid span {
  color: #4f97ac;
  font-size: 12px;
  font-weight: 800;
}

.program-values-grid h3 {
  font-size: 21px;
  margin: 18px 0 12px;
}

.program-values-grid p {
  color: #718077;
  font-size: 13px;
  line-height: 1.8;
}

/* SCRIPTURE */

.programs-scripture {
  padding: 100px 10%;
  text-align: center;
  background: #f1f5f0;
}

.scripture-cross {
  display: block;
  font-size: 32px;
  color: #4f97ac;
  margin-bottom: 20px;
}

.programs-scripture > span:nth-child(2) {
  color: #4f97ac;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 800;
}

.programs-scripture blockquote {
  max-width: 850px;
  margin: 30px auto;
  font-family: 'Playfair Display', serif;
  font-size: clamp(25px, 4vw, 39px);
  line-height: 1.5;
  font-style: italic;
}

.programs-scripture strong {
  color: #17462f;
  letter-spacing: 3px;
  font-size: 12px;
}

/* PARTNERSHIP */

.programs-partnership {
  padding: 90px 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.programs-partnership > div {
  max-width: 700px;
}

.programs-partnership p {
  color: #718077;
  line-height: 1.9;
  font-size: 14px;
}

.programs-partner-btn {
  white-space: nowrap;
}

/* RESPONSIVE */

@media(max-width: 1050px) {

  .strategic-layout {
    grid-template-columns: 280px 1fr;
  }

  .development-steps,
  .program-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media(max-width: 800px) {

  .programs-introduction,
  .program-audience {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .strategic-layout {
    grid-template-columns: 1fr;
  }

  .program-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .program-details {
    min-height: auto;
  }

  .program-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .programs-hero-decoration {
    display: none;
  }

}

@media(max-width: 550px) {

  .programs-hero {
    min-height: 500px;
    padding: 75px 7%;
  }

  .programs-hero h1 {
    font-size: 43px;
  }

  .programs-introduction,
  .strategic-programs,
  .program-gallery,
  .program-development,
  .program-audience,
  .program-values {
    padding: 75px 7%;
  }

  .program-navigation {
    grid-template-columns: 1fr;
  }

  .program-details {
    padding: 25px;
  }

  .program-details h3 {
    font-size: 27px;
  }

  .development-steps,
  .program-values-grid,
  .program-gallery-grid {
    grid-template-columns: 1fr;
  }

  .program-gallery-item {
    height: 240px;
  }

  .programs-partnership {
    padding: 75px 7%;
    flex-direction: column;
    align-items: flex-start;
  }

  .programs-scripture {
    padding: 75px 7%;
  }

}