/* =============================================================
   public/css/youth-fellowship.css
   Durable Impact — Youth Impact Fellowship page
   Depends on public/css/styles.css (Poppins, variables, .btn-green)
   ============================================================= */

/* ══════════════════════════════════════════════════════════════
   SHARED INNER WRAPPER
   ══════════════════════════════════════════════════════════════ */
.yf-hero__inner,
.yf-intro__inner,
.yf-fellows-photo__inner,
.yf-contact__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 110px;
}

/* ══════════════════════════════════════════════════════════════
   1. HERO
   ══════════════════════════════════════════════════════════════ */
.yf-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.yf-hero__bg {
  position: absolute;
  inset: 0;
}

.yf-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.yf-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.50);
}

.yf-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Sub-nav */
.yf-subnav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.yf-subnav__label {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

.yf-subnav__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.yf-subnav__tab {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 8px 18px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.yf-subnav__tab:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.yf-subnav__tab--active {
  background: #7EBB55;
  color: #fff;
  border-color: #7EBB55;
}

.yf-hero__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yf-hero__title {
  font-family: var(--font-main);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin: 0;
}

.yf-hero__sub {
  font-family: var(--font-main);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin: 0;
  max-width: 560px;
}

/* ══════════════════════════════════════════════════════════════
   2. INTRO
   Centred editorial text — mirrors #welcome layout feel
   ══════════════════════════════════════════════════════════════ */
.yf-intro {
  background: #ffffff;
  padding: 112px 0;
}

.yf-intro__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
  /* Keep left-aligned like the rest of the site, not centred */
}

.yf-intro__body {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.85;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   3. FELLOWS PHOTO
   Label above · full-width photo below
   ══════════════════════════════════════════════════════════════ */
.yf-fellows-photo {
  background: var(--color-bg-light);
  padding: 80px 0;
}

.yf-fellows-photo__label {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin: 0 0 24px;
}

.yf-fellows-photo__img {
  border-radius: 14px;
  overflow: hidden;
}

.yf-fellows-photo__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 21/8;
}

/* ══════════════════════════════════════════════════════════════
   4. CONTACT FORM
   Left: title + intro + WhatsApp QR
   Right: form label + form fields
   Mirrors impact-marketing.css .im-contact pattern exactly
   ══════════════════════════════════════════════════════════════ */
.yf-contact {
  background: #ffffff;
  padding: 112px 0;
}

.yf-contact__inner {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.yf-contact__left {
  flex: 0 0 36%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.yf-contact__title {
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  margin: 0;
}

.yf-contact__intro {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

.yf-contact__whatsapp img {
  width: 180px;
  height: auto;
  display: block;
  border-radius: 10px;
}

.yf-contact__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.yf-contact__form-label {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

/* ── Form ──────────────────────────────────────────────────── */
.yf-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.yf-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.yf-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yf-form__label {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

.yf-form__input {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}

.yf-form__input:focus {
  border-color: #7EBB55;
}

.yf-form__input::placeholder {
  color: #aaa;
}

.yf-form__textarea {
  resize: vertical;
  min-height: 140px;
}

.yf-form__submit {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
}

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL  (JS adds .yf-visible)
   ══════════════════════════════════════════════════════════════ */
.yf-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.yf-reveal.yf-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .yf-hero__inner,
  .yf-intro__inner,
  .yf-fellows-photo__inner,
  .yf-contact__inner {
    padding-left: 60px;
    padding-right: 60px;
  }

  .yf-contact__title { font-size: 38px; }
}

@media (max-width: 900px) {
  .yf-contact__inner {
    flex-direction: column;
    gap: 48px;
  }

  .yf-contact__left { flex: none; width: 100%; }
}

@media (max-width: 767px) {
  .yf-hero__inner,
  .yf-intro__inner,
  .yf-fellows-photo__inner,
  .yf-contact__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .yf-intro,
  .yf-fellows-photo,
  .yf-contact { padding: 80px 0; }

  .yf-subnav { flex-direction: column; align-items: flex-start; gap: 10px; }

  .yf-intro__body   { font-size: 17px; }
  .yf-contact__title { font-size: 30px; }

  .yf-form__row { grid-template-columns: 1fr; }

  .yf-fellows-photo__img img { aspect-ratio: 16/7; }
}