/* Page sections (templates/partials/sections.html), used by the focus-area,
   project and home pages. Sizes follow the old site at 1366px. */

.sec { position: relative; background: var(--green); padding: 40px 10px; color: var(--white); }
.sec--wave { padding-top: 60px; }
.sec > .wave { position: absolute; top: -1px; left: 0; right: 0; }
.sec > * { position: relative; }

.sec-title { margin: 0 auto 30px; font: 600 56px/1.3 Helvetica, Arial, sans-serif; color: var(--white); text-align: center; max-width: 1080px; }
.sec-title--bold { font-weight: 700; }
.sec--lead .sec-title { line-height: 1.3; }
.sec--project-lead { padding-top: 70px; }
.sec--project-lead .sec-title { font-size: 50px; line-height: 1; margin-bottom: 40px; }

.sec-inner--text { max-width: 1080px; margin: 0 auto; }
.sec-text { font: 400 17px/1.4 var(--font-ui); text-align: justify; }
.sec-text p { margin: 17px 0; }
.sec-text--lg { font-size: var(--fs-22); text-align: left; }
.sec-text--lg p { margin: 22px 0; }
.sec-text a { color: var(--gold); }
.text-gold { color: #ffcc00; }
.sec-updated { margin: -8px 0 0; font: 500 21px/1 var(--font-ui); text-align: center; }

.btn-gold {
  display: inline-flex; align-items: center; gap: 6px; padding: 15px 30px; border: 4px double var(--white); border-radius: 30px;
  background: #f2d700; color: #000; font: 500 15px/1 var(--font-ui); text-decoration: none;
}
.btn-gold:hover { background: var(--gold); }

/* hero banner: the banner images carry their own title text */
.sec-banner { height: 520px; background: var(--green) center / cover no-repeat; }

/* two pathways (Social Protection) */
.pathways-title { margin: 30px 0 0; font: 500 22px/1.3 var(--font-ui); color: var(--gold); text-align: center; }
.pathways { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; border: 2px solid #f2b700; }
.pathways__col { padding: 30px; text-align: center; }
.pathways__col + .pathways__col { border-left: 2px solid #f2b700; }
.pathways__col h4 { margin: 0 0 10px; font: 600 22px/1.3 var(--font-ui); color: var(--gold); }
.pathways__col .sec-text { margin-bottom: 20px; }

/* how we work */
.steps { display: flex; max-width: 1129px; margin: 0 auto; padding: 0 0 20px; list-style: none; }
.steps__item { flex: 1; display: flex; flex-direction: column; }
.steps__mark { display: flex; align-items: center; }
.steps__line { flex: 1; height: 2px; background: #d9d9d9; margin: 0 3px; }
.steps__item:first-child .steps__line:first-child, .steps__item:last-child .steps__line:last-child { opacity: 0; }
.steps__icon {
  display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; flex: none;
  border: 5px solid var(--white); border-radius: 50%; background: #ffc400; color: #000; box-shadow: 0 0 10px rgba(0, 0, 0, .5); font-size: 27px;
}
.steps__text { margin: 10px 0 0; padding: 0 10px; font: 400 15px/1.4 'Noto Serif', serif; text-align: center; }

/* our program */
.program { display: flex; max-width: 1002px; margin: 31px auto 10px; }
.program__card { flex: 571 1 0; margin-right: 20px; padding: 30px; border: 2px solid #f2b700; text-align: center; }
.program__card h3 { margin: 0 0 20px; font: 600 44px/1 var(--font-ui); }
.program__text { font: 400 18px/1.4 var(--font-ui); }
.program__text p { margin: 18px 0; }
.program__card .btn-gold { margin-top: 10px; }
.program__image { flex: 401 1 0; min-height: 435px; border: 4px solid #f2b700; background: center / cover no-repeat; }

/* project cards */
.sec--projects, .sec--wheel, .sec--stories { padding-left: 30px; padding-right: 30px; padding-bottom: 50px; }
.sec--projects .sec-title, .sec--wheel .sec-title, .sec--stories .sec-title { margin-bottom: 40px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1224px; margin: 0 auto; }
.project-card { display: flex; flex-direction: column; align-items: center; border: 3px solid #ffdf00; box-shadow: 0 0 10px rgba(189, 189, 189, .5); text-align: center; }
.project-card img { display: block; width: 100%; height: 300px; object-fit: cover; }
.project-card h3 { margin: 18px 20px 20px; font: 400 17px/30px var(--font-body); }
.project-card__btn { display: inline-flex; align-items: center; margin-bottom: 30px; padding: 8px 60px 10px; border: 1px solid var(--white); color: var(--white); font: 300 var(--fs-22)/1.4 var(--font-body); text-decoration: none; }

/* counters */
.sec--counters { padding: 60px 10px 31px; }
.sec--counters .sec-title { margin-bottom: 30px; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1346px; margin: 0 auto; }
.counter-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 221px; margin: 25px; padding: 30px;
  border: 2px solid var(--gold); border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, .5); text-align: center;
}
.counter-card__approx { font: 600 25px/1 var(--font-ui); }
.counter-card__num { font: 600 69px/1 var(--font-ui); color: var(--gold); white-space: nowrap; }
.counter-card__label { font: 400 13px/23px 'Noto Serif', serif; }
.sec--counters-gold .counter-card { background: var(--gold); border-color: var(--white); }
.sec--counters-gold .counter-card__num { color: var(--green); }
.sec--counters-gold .counter-card__label { color: #000; }

/* impact rings */
.sec--impact { padding-bottom: 50px; }
.rings { display: flex; justify-content: space-around; max-width: 1180px; margin: 0 auto; padding-top: 20px; }
.ring { --value: 0; width: 220px; height: 220px; padding: 10px; border-radius: 50%; box-shadow: 0 0 10px var(--gold); }
.ring__inner {
  position: relative; width: 200px; height: 200px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--gold) calc(var(--shown, var(--value)) * 1%), var(--green) 0);
  color: #111; text-align: center; padding: 0 30px;
}
.ring__inner::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--white); }
.ring__inner > * { position: relative; }
.ring__title { font: 600 15px/21px var(--font-ui); }
.ring__value { font: 700 28px/1.4 var(--font-ui); }

/* feature cards (project pages) */
.features { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1366px; margin: -10px auto 0; }
.feature-card {
  display: flex; flex-direction: column; align-items: center; gap: 20px; min-height: 335px; margin: 25px; padding: 30px;
  background: var(--gold); border: 2px solid var(--white); border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, .5); color: #000; text-align: center;
}
.feature-card__icon { font-size: 28px; line-height: 1; }
.feature-card h3 { margin: 0; font: 500 15px/1 var(--font-slab); }
.feature-card p { margin: 0; font: 400 13px/1.4 var(--font-ui); }

/* tabs (project pages) */
.sec--tabs { padding: 0 10px 10px; }
.tabs { max-width: 1140px; margin: 0 auto; }
.tabs__nav { display: flex; }
.tabs__nav button {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px 33px; border: 0;
  background: #f1f1f1; color: #333; font: 300 var(--fs-22)/1.4 var(--font-body); cursor: pointer;
}
.tabs__nav button .icon { width: 16px; height: 16px; }
.tabs__nav button[aria-selected="true"] { background: var(--gold); color: #000; }
.tabs__panel { padding: 22px; font: 300 var(--fs-22)/1.4 var(--font-body); color: var(--white); }
.tabs__panel p { margin: 22px 0; }

/* story carousel */
.carousel { max-width: 1304px; margin: 0 auto; overflow: hidden; }
.carousel__track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.carousel__track::-webkit-scrollbar { display: none; }
.story-card { flex: 0 0 303px; scroll-snap-align: start; display: flex; flex-direction: column; border: 3px solid #ffdf02; border-radius: 21px; overflow: hidden; }
.story-card__image { display: block; height: 293px; background: center / cover no-repeat; }
.story-card__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 163px; padding: 30px; background: #e8e8e8; text-align: center; }
.story-card h3 { margin: 0; font: 500 20px/1.4 var(--font-ui); text-transform: uppercase; }
.story-card h3 a { color: #000; text-decoration: none; }
.story-card__more { margin-top: 20px; padding: 10px 20px; border: 2px solid #000; border-radius: 24px; background: #ffdf00; color: #000; font: 400 var(--fs-22)/1.4 var(--font-ui); text-decoration: none; }
.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; min-height: 31px; align-items: center; }
.carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .5; cursor: pointer; }
.carousel__dots button[aria-current="true"] { background: var(--white); opacity: 1; }

/* endless photo strip */
.marquee { overflow: hidden; }
.marquee__track { display: flex; align-items: center; gap: 5px; width: max-content; animation: marquee var(--duration, 60s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--photos img { width: 300px; height: 300px; object-fit: cover; }
.marquee--products img { max-width: 400px; max-height: 300px; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { overflow-x: auto; } }

.sec-image { display: block; max-width: 100%; margin: 0 auto; }

/* ---------- smaller screens ---------- */
@media (max-width: 1024px) {
  .sec-title { font-size: 44px; }
  /* seven steps no longer fit in a row: show them as a list */
  .steps { flex-direction: column; gap: 14px; max-width: 640px; }
  .steps__item { flex-direction: row; align-items: center; gap: 12px; }
  .steps__line { display: none; }
  .steps__text { margin: 0; padding: 0; text-align: left; }
  .cards3 { gap: 14px; }
  .counters, .features { grid-template-columns: repeat(2, 1fr); }
  .rings { flex-wrap: wrap; gap: 30px; }
  /* below desktop show the whole banner: its title text is part of the image */
  .sec-banner { height: auto; aspect-ratio: 1366 / 520; }
}
@media (max-width: 767px) {
  .sec { padding: 30px 16px; }
  .sec--wave { padding-top: 70px; }
  .sec-title, .sec--project-lead .sec-title { font-size: 30px; line-height: 1.2; margin-bottom: 20px; }
  .pathways { grid-template-columns: 1fr; }
  .pathways__col + .pathways__col { border-left: 0; border-top: 2px solid #f2b700; }
  .program { flex-direction: column; }
  .program__card { margin: 0 0 20px; padding: 24px 16px; }
  .program__card h3 { font-size: 32px; }
  .program__image { min-height: 300px; }
  .cards3, .counters, .features { grid-template-columns: 1fr; }
  .counter-card, .feature-card { margin: 12px 0; min-height: 0; }
  .counter-card__num { font-size: 52px; }
  .tabs__nav { flex-direction: column; }
  .tabs__panel { padding: 16px 0; }
  .ring { width: 180px; height: 180px; }
  .ring__inner { width: 160px; height: 160px; padding: 0 22px; }
  .story-card { flex-basis: 260px; }
  .marquee--photos img { width: 220px; height: 220px; }
}
