/* ============================================================
   HWPL/IPYG үндсэн загварын class-ууд (яг анхдагч утгууд)
   ============================================================ */
.inner {
  max-width: 1100px;
  margin: 0 auto;
}
.inner2 {
  max-width: 1100px;
}
.margin-zero { margin: 0; }
.padding-zero { padding: 0; }

.menu-button {
  display: inline-block;
  background-color: #f7f7f8;
  color: #000;
  padding: 8px 60px;
  margin: 0;
  font-size: 16px;
  border: 0;
  text-decoration: none;
  transition: background-color .15s;
}
.menu-button:hover { background-color: #ececee; }
.menu-button.on {
  background-color: #000;
  color: #fff;
}

.title1 { color: #fff; }
.title1 > p { font-size: 28px; margin: 0; font-weight: 400; }
.title1 > h1 { font-size: 56px; margin: 0 0 20px 0; color: #fff; font-weight: 400; }

.title2 { font-size: 38px; font-weight: bold; color: black; }
.title3 { font-size: 32px; font-weight: bold; color: black; }

.green-title {
  font-size: 20px;
  font-weight: bold;
  color: #449235;
}

.ipyg-button { font-size: 16px; color: gray; display: inline-block; }
.ipyg-button::after {
  content: "\2197";
  background-color: #e8e8e8;
  border-radius: 20px;
  display: inline-block;
  padding: 4px 8px;
  margin-left: 5px;
}
.ipyg-button:hover { color: #449235; }
.ipyg-button:hover::after { background-color: #449235; color: #fff; }

.box-round { border-radius: 10px; overflow: hidden; }
.box-center {
  max-width: 600px;
  display: flex;
  justify-content: center;
}

.icon-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px;
}
.box-icon {
  display: block;
  flex-basis: 100px;
  text-align: center;
  font-size: 14px;
  color: #333;
  padding: 10px 0;
  text-decoration: none;
}
.box-icon:hover { color: #449235; }
.box-icon .bi {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #f2f2f2;
  font-size: 26px;
}
.box-icon:hover .bi { background: #eaf5e7; }

img { width: 100%; }

/* Анхдагч байдлаар ашигддаг бөгөөд манай хуудсанд ашигласан ширээ */
.bg-w {
  width: 100%;
  background-color: #fff;
  padding: 10px;
}
.tbag {
  width: 90%;
  margin: 15px auto;
  border-collapse: collapse;
}
.thead {
  width: 100%;
  border-top: 2px solid #449235;
  border-bottom: 1px solid #449235;
  text-align: left;
  padding: 10px 0;
  font-weight: bold;
  color: #333;
}
.tbody > td,
.tbag tbody > td {
  padding: 10px 10px 0 0;
  vertical-align: top;
}
.tbag th { font-size: 15px; padding: 10px 10px 10px 0; }
.tbag td { font-size: 15px; color: #444; }

/* ============================================================
   Header (HWPL header шиг)
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.75;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #eae9e9;
  position: relative;
  z-index: 200;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: bold;
  color: #28292b;
}
.logo-mark {
  width: 36px;
  height: 36px;
}
.logo .brand-mark { width: 60px; height: 42px; object-fit: contain; }
.logo span { font-size: 15px; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  position: relative;
  display: block;
  padding: 18px 14px;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}
.main-nav > li > a:hover { color: #449235; }
.main-nav > li > a[aria-current="page"] { color: #34752b; }
.main-nav > li > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  background: #449235;
}
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #eae9e9;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  display: none;
  z-index: 300;
}
.main-nav > li:hover .sub-menu,
.main-nav > li.open .sub-menu { display: block; }
.sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #333;
}
.sub-menu li a:hover { background: #f7f7f8; color: #449235; }
.lang-sel { color: #666; font-size: 13.5px; padding: 20px 8px; }
.burger {
  display: none;
  width: 40px;
  height: 40px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #000;
  margin: 4px auto;
}

/* ============================================================
   Page title bar (300px ногоон banner — IPYG хуудас шиг)
   ============================================================ */
.page-title-bar {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #459136;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.075) 1px, transparent 1.8px),
    radial-gradient(900px 420px at 15% -20%, rgba(255, 255, 255, .18), transparent 60%),
    radial-gradient(900px 420px at 100% 120%, rgba(0, 0, 0, .2), transparent 55%),
    linear-gradient(160deg, #459136 0%, #2f6b24 100%);
  background-size: 20px 20px, cover, cover, cover;
  border-top: 1px solid rgba(40, 45, 51, 0);
  border-bottom: 1px solid rgba(40, 45, 51, 0);
  color: #fff;
  padding: 40px 10px;
}
.page-title-bar .ptb-captions p {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 400;
}
.page-title-bar .ptb-captions h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin: 0;
  color: #fff;
  font-weight: 400;
  line-height: 1.2em;
}

/* ============================================================
   Content rows
   ============================================================ */
.menu-row {
  border-top: 1px solid #eae9e9;
  border-bottom: 1px solid #eae9e9;
  background: #fff;
}
.menu-row .inner2 { padding: 0; }

.full-row { padding: 20px; }
.full-row.tinted { background: #f7f9f4; }
.full-row.gray { background: #f7f7f8; }
.full-row .inner { padding-top: 25px; padding-bottom: 25px; }

/* 2 нугасан хуваалт — fusion margin (3.84%) шиг */
.split-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.split-row .col-half {
  width: 50%;
  margin: 25px 3.84%;
}
.split-row .col-half.narrow-img {
  display: flex;
  justify-content: center;
}

/* Зургийн орлох placeholder */
.ph-img {
  width: 100%;
  max-width: 400px;
  min-height: 260px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: #fff;
}
.ph-1 { background: linear-gradient(140deg, #449235, #7cc46d); }
.ph-2 { background: linear-gradient(140deg, #2f6b24, #66bb6a); }
.ph-3 { background: linear-gradient(140deg, #1d6b46, #4fae7c); }
.ph-4 { background: linear-gradient(140deg, #0f4c2a, #449235); }
.ph-5 { background: linear-gradient(140deg, #3d7a2e, #8bc34a); }
.ph-6 { background: linear-gradient(140deg, #275d1c, #a5d6a7); }
.ph-7 { background: linear-gradient(140deg, #459136, #2f6b24); }
.ph-8 { background: linear-gradient(140deg, #33691e, #7cb342); }

.center-text { text-align: center; }

/* Logo (box-center дотор) */
.org-logo-svg { width: 300px; max-width: 100%; }

/* Video хэсэг (box-round + f7f7f8 — IPYG шиг) */
.video-box {
  position: relative;
  padding: 56.25% 0 0 0;
  background: linear-gradient(140deg, #2f6b24, #449235);
  cursor: default;
}
.video-box .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #449235;
}
.video-caption {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  text-align: center;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
}

/* Vision мөр (20% / 40% / 40%) */
.vision-row {
  display: flex;
  align-items: flex-start;
}
.vision-row .v-head {
  width: 20%;
  margin: 25px 9.6%;
}
.vision-row .v-body {
  width: 40%;
  margin: 25px 4.8%;
}
.vision-row .v-body p { margin-bottom: 14px; }

/* YEPC тоо / статистик */
.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  text-align: center;
  padding: 20px 0 10px;
}
.stats-row .big-num {
  font-size: 48px;
  font-weight: bold;
  color: #333;
  line-height: 1.2;
}
.stats-row .num-label {
  font-size: 15px;
  color: #666;
}

/* Яагаад сонгодог вэ — дугаартай жагсаалт (YEPC хуудас шиг) */
.why-list { max-width: 860px; margin: 0 auto; }
.why-item { margin-bottom: 26px; }
.why-item .why-n {
  font-size: 18px;
  font-weight: bold;
  color: #449235;
  margin-bottom: 4px;
}
.why-item p { color: #444; }

/* Алхамууд (How to join YEPC) */
.step-line { margin-bottom: 18px; }
.step-line b { color: #111; }

/* Модал (Дэлхийн Энх Тайвны Тунхаглал) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 500;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-dialog {
  background: #fff;
  border-radius: 4px;
  max-width: 820px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px 0;
}
.modal-close {
  font-size: 26px;
  line-height: 1;
  color: #999;
  background: none;
  border: 0;
  cursor: pointer;
}
.modal-close:hover { color: #000; }
.modal-body { padding: 0 40px 10px; }
.modal-body h3 { font-size: 24px; margin-bottom: 16px; text-align: center; }
.modal-body ol { padding-left: 22px; color: #444; }
.modal-body ol li { margin-bottom: 10px; }
.modal-footer {
  padding: 16px 40px 28px;
  text-align: right;
}
.fusion-button {
  background: #e8e8e8;
  color: #333;
  border: 0;
  border-radius: 3px;
  padding: 8px 24px;
  font-size: 14px;
  cursor: pointer;
}
.fusion-button:hover { background: #ddd; }

/* Мэдээний картууд */
.news-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.news-item {
  flex: 1 1 300px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.news-item .ph-img { max-width: none; min-height: 160px; border-radius: 0; font-size: 48px; }
.news-item .n-body { padding: 18px 20px 24px; }
.news-item .n-date {
  font-size: 14px;
  font-weight: bold;
  color: #449235;
  margin-bottom: 6px;
}
.news-item h4 { font-size: 17px; margin-bottom: 8px; line-height: 1.5; }
.news-item p { font-size: 14.5px; color: #666; }

/* Холбоо барих хэсэг (Branches шиг) */
.contact-note {
  text-align: center;
  max-width: 760px;
  margin: 10px auto 0;
  color: #444;
  font-size: 15.5px;
}

/* Түүхийн товч дараалал */
.history-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 8px;
}
.history-timeline article {
  padding: 20px;
  border-left: 3px solid #449235;
  background: #f7f7f8;
}
.history-timeline strong { color: #34752b; font-size: 18px; }
.history-timeline p { margin: 8px 0 0; }
section[id], div[id] { scroll-margin-top: 90px; }

/* ============================================================
   Footer (#424242 — HWPL footer шиг)
   ============================================================ */
.site-footer {
  background: #424242;
  color: #fff;
  padding: 20px 0 8px;
}
.footer-cols {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-cols > div {
  width: 33.3333%;
  margin: 25px 5.76%;
}
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.site-footer span,
.site-footer li,
.site-footer a { color: #fff; font-size: 14px; }
.site-footer li { line-height: 1.9; }
.site-footer a:hover { text-decoration: underline; }
.footer-copy {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .65);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ============================================================
   Responsive
   ============================================================ */
@media only screen and (max-width: 1024px) {
  .split-row .col-half { margin-left: 1.92%; margin-right: 1.92%; }
  .vision-row .v-head { margin-left: 1.92%; margin-right: 1.92%; }
  .vision-row .v-body { margin-left: 1.92%; margin-right: 1.92%; }
  .footer-cols > div { margin-left: 1.92%; margin-right: 1.92%; }
}

@media only screen and (max-width: 767px) {
  .menu-button { padding: 8px 24px; font-size: 14px; }
  .title2 { font-size: 28px; }
  .title3 { font-size: 24px; }
  .page-title-bar { min-height: 200px; }
  .page-title-bar .ptb-captions p { font-size: 18px; }
  .page-title-bar .ptb-captions h1 { font-size: 34px; margin-bottom: 0; }
  .split-row { display: block; }
  .split-row .col-half { width: auto; margin: 20px auto; }
  .vision-row { display: block; }
  .vision-row .v-head,
  .vision-row .v-body { width: auto; margin: 15px 0; }
  .footer-cols { display: block; }
  .footer-cols > div { width: auto; margin: 20px; }
  .modal-body { padding: 0 20px; }
  .modal-footer { padding: 12px 20px 22px; }
  .stats-row { gap: 30px; }
  .stats-row .big-num { font-size: 36px; }
  .icon-inner { justify-content: center; gap: 6px; padding: 14px 6px; }
  .box-icon { flex-basis: 96px; }
  .history-timeline { grid-template-columns: 1fr; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid #eae9e9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    padding: 6px 0 12px;
  }
  .main-nav.open { display: flex; }
  .main-nav > li > a { padding: 12px 20px; }
  .main-nav .sub-menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding-left: 14px;
  }
  .burger { display: block; }
}

/* Portfolio content */
.eyebrow {
  margin: 0 0 10px;
  color: #449235;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.about-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
}
.about-intro h2 { margin: 0 0 18px; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.about-intro img,
.photo-feature img,
.timeline-list img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-intro img { max-height: 360px; border-radius: 12px; }
.check-list { padding-left: 22px; }
.check-list li { margin: 8px 0; }
.photo-feature { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 24px 0; }
.photo-feature img { height: 290px; border-radius: 10px; }
.program-grid,
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.program-card,
.partner-grid article { padding: 26px; border-radius: 12px; background: #f7f7f8; }
.program-card h2,
.partner-grid h2,
.timeline-list h2 { margin: 0 0 10px; font-size: 21px; }
.program-card .eyebrow { font-size: 16px; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 30px; padding-left: 22px; }
.stats-row { display: flex; justify-content: space-around; gap: 24px; flex-wrap: wrap; margin: 24px 0; text-align: center; }
.stats-row .big-num { display: block; color: #449235; font-size: clamp(32px, 5vw, 48px); font-weight: 700; line-height: 1.2; }
.stats-row p { margin: 6px 0; }
.timeline-list { display: grid; gap: 18px; margin: 28px 0; }
.timeline-list article { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(180px, 32%); align-items: center; gap: 22px; padding: 16px; background: #f7f7f8; border-radius: 12px; }
.timeline-list time { color: #34752b; font-weight: 700; }
.timeline-list p { margin: 0; }
.timeline-list img { height: 150px; border-radius: 8px; }
.partner-grid ul { padding-left: 20px; }
.partner-grid li { margin: 9px 0; }
.contact-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.contact-details p { margin: 10px 0; }
.contact-details a { color: #34752b; }
@media (max-width: 767px) {
  .about-intro, .program-grid, .partner-grid, .contact-panel { grid-template-columns: 1fr; gap: 18px; }
  .photo-feature, .topic-grid { grid-template-columns: 1fr; }
  .photo-feature img { height: 230px; }
  .timeline-list article { grid-template-columns: 1fr; gap: 10px; }
  .timeline-list img { height: 210px; }
}

/* Refined IPYG visual layer */
:root {
  --ipyg-green: #39984a;
  --ipyg-deep: #1e552d;
  --ipyg-lime: #b5c943;
  --ipyg-orange: #e35c2e;
  --ipyg-blue: #2877ad;
  --ink: #202438;
}
body { color: #343746; }
.site-header { box-shadow: 0 3px 16px rgba(25, 38, 28, .055); }
.header-inner { height: 104px; }
.logo { color: var(--ink); }
.logo .brand-mark { width: 72px; height: 72px; object-fit: contain; }
.logo span { color: var(--ink); font-size: 14px; }
.main-nav { gap: 2px; }
.main-nav > li > a { font-weight: 600; transition: color .18s ease; }
.main-nav > li > a[aria-current="page"] { color: var(--ipyg-deep); }
.main-nav > li > a[aria-current="page"]::after { background: var(--ipyg-orange); height: 3px; border-radius: 3px; }
.page-title-bar {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background-color: #3c922f;
  background-image:
    url("../assets/banner-pattern.svg"),
    linear-gradient(160deg, #459136 0%, #3d922f 54%, #37852d 100%);
  background-size: 48px 48px, cover;
  background-position: center, center;
}
.page-title-bar::before,
.page-title-bar::after {
  display: none;
}
.page-title-bar .ptb-captions { position: relative; z-index: 1; }
.page-title-bar .ptb-captions p { font-size: 28px; font-weight: 400; letter-spacing: 0; opacity: 1; }
.page-title-bar .ptb-captions h1 { font-family: "Open Sans", Arial, sans-serif; font-size: 56px; font-weight: 400; letter-spacing: 0; text-shadow: none; }
.full-row { padding: 32px 24px; }
.full-row.tinted { background: linear-gradient(135deg, #f7f9f4 0%, #f1f6ee 100%); }
.full-row.gray { background: #f6f7f8; }
.full-row .inner { padding-top: 32px; padding-bottom: 32px; }
.title3 { color: var(--ink); line-height: 1.3; letter-spacing: -.02em; }
p { text-wrap: pretty; }
.eyebrow { color: var(--ipyg-green); }
.about-intro { gap: clamp(32px, 6vw, 76px); }
.about-intro h2 { color: var(--ink); letter-spacing: -.035em; }
.motto { margin-top: 18px; color: var(--ipyg-deep); font: 600 15px/1.5 "Montserrat", sans-serif; }
.about-intro img {
  max-height: 380px;
  border: 7px solid #fff;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(36, 69, 42, .15);
}
.check-list li::marker { color: var(--ipyg-orange); }
.photo-feature { gap: 20px; }
.photo-feature img {
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(24, 38, 26, .11);
  transition: transform .25s ease, box-shadow .25s ease;
}
.photo-feature img:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(24, 38, 26, .16); }
.program-card, .partner-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(44, 76, 51, .08);
  background: #fff;
  box-shadow: 0 12px 32px rgba(32, 46, 35, .055);
  transition: transform .2s ease, box-shadow .2s ease;
}
.program-card::before, .partner-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ipyg-green);
}
.program-card:nth-child(2)::before { background: var(--ipyg-orange); }
.program-card:hover, .partner-grid article:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(32, 46, 35, .1); }
.program-card h2, .partner-grid h2, .timeline-list h2 { color: var(--ink); line-height: 1.35; }
.topic-grid { list-style: none; padding: 0; margin: 18px 0 24px; }
.topic-grid li { position: relative; padding: 12px 14px 12px 40px; border-radius: 10px; background: #fff; }
.topic-grid li::before { content: "✓"; position: absolute; left: 14px; color: var(--ipyg-green); font-weight: 700; }
.stats-row { gap: 18px; }
.stats-row > div { flex: 1 1 170px; padding: 24px 18px; border: 1px solid #e8ede5; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(32,46,35,.05); }
.stats-row .big-num { color: var(--ipyg-green); letter-spacing: -.04em; }
.timeline-list { position: relative; }
.timeline-list::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 143px; width: 2px; background: linear-gradient(var(--ipyg-green), rgba(57,152,74,.12)); }
.timeline-list article { position: relative; border: 1px solid rgba(44,76,51,.07); background: #fff; box-shadow: 0 8px 24px rgba(32,46,35,.045); }
.timeline-list time { position: relative; z-index: 1; align-self: start; padding: 6px 8px; border-radius: 7px; background: #edf6ec; color: var(--ipyg-deep); font-size: 13px; text-align: center; }
.timeline-list img { border-radius: 10px; }
.partner-grid article:nth-child(2)::before { background: var(--ipyg-blue); }
.partner-grid li { padding-left: 4px; }
.contact-panel { padding: 14px 0; }
.contact-details { padding: 20px 24px; border-radius: 14px; background: rgba(255,255,255,.82); }
.contact-details a { color: var(--ipyg-deep); font-weight: 600; }
.campaign-years,
.activities-grid,
.quote-grid { display: grid; gap: 18px; margin-top: 24px; }
.campaign-years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.campaign-years article {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32,46,35,.06);
}
.campaign-years strong { color: var(--ipyg-orange); font-family: "Montserrat", sans-serif; }
.activities-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.activities-grid article {
  padding: 22px;
  border: 1px solid rgba(44,76,51,.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32,46,35,.045);
}
.activities-grid h2 { margin: 0 0 12px; color: var(--ipyg-deep); font: 700 19px/1.4 "Montserrat", sans-serif; }
.activities-grid ul { padding-left: 20px; }
.activities-grid li { margin: 8px 0; list-style: disc; }
.quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote-grid blockquote {
  position: relative;
  padding: 22px 24px;
  border-radius: 12px;
  background: #f4f6f7;
  color: #3b3d4b;
  font-size: 15px;
  line-height: 1.7;
}
.quote-grid blockquote::before {
  display: none;
}
.audience-note { color: var(--ipyg-deep); font: 600 14px/1.6 "Montserrat", sans-serif; }
.outcome-grid { margin-top: 22px; }
.outcome-grid ul { padding-left: 20px; }
.outcome-grid li { margin: 8px 0; list-style: disc; }
.ipyg-button {
  padding: 10px 18px;
  border: 1px solid rgba(57,152,74,.22);
  border-radius: 999px;
  background: #fff;
  color: var(--ipyg-deep);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(32,46,35,.06);
}
.ipyg-button::after { background: var(--ipyg-green); color: #fff; }
.site-footer { background: #202438; }
.footer-copy { border-top-color: rgba(255,255,255,.14); }
@media (max-width: 767px) {
  .header-inner { height: 68px; }
  .logo .brand-mark { width: 54px; height: 54px; object-fit: contain; }
  .main-nav { top: 68px; }
  .page-title-bar { min-height: 220px; }
  .page-title-bar .ptb-captions p { font-size: 20px; }
  .page-title-bar .ptb-captions h1 { font-size: 36px; }
  .full-row { padding: 22px 16px; }
  .full-row .inner { padding-top: 24px; padding-bottom: 24px; }
  .timeline-list::before { display: none; }
  .timeline-list article { padding: 14px; }
  .stats-row > div { flex-basis: 100%; }
  .campaign-years, .activities-grid, .quote-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Consistent site typography */
body,
button,
input,
select,
textarea {
  font-family: "Open Sans", Arial, sans-serif;
}
h1, h2, h3, h4, p, li, a, time, button {
  font-family: inherit;
}
.logo span,
.main-nav,
.page-title-bar h1,
.title2, .title3,
.about-intro h2,
.program-card h2,
.partner-grid h2,
.timeline-list h2 {
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
}
.page-title-bar .ptb-captions h1 { font-weight: 400; }
.about-intro h2,
.program-card h2,
.partner-grid h2,
.timeline-list h2 { font-weight: 700; }
.main-nav > li > a { font-weight: 400; }

/* Language selector */
.language-switch { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; margin-left: 12px; padding: 3px; border: 1px solid #e6e8e5; border-radius: 999px; }
.language-switch button { border: 0; border-radius: 999px; padding: 6px 9px; background: transparent; color: #62666a; font: 600 11px/1 Montserrat, sans-serif; cursor: pointer; }
.language-switch button.active { background: var(--ipyg-green, #39984a); color: #fff; }
@media (max-width: 767px) { .language-switch { margin-left: auto; margin-right: 10px; } }

/* Responsive refinements for phones and tablets */
@media (max-width: 1024px) {
  .header-inner { gap: 8px; }
  .main-nav { gap: 0; }
  .main-nav > li > a { padding-left: 10px; padding-right: 10px; }
  .timeline-list article { grid-template-columns: 100px minmax(0, 1fr) minmax(150px, 28%); gap: 16px; }
  .timeline-list::before { left: 113px; }
}
@media (max-width: 900px) {
  .header-inner { position: relative; height: 78px; padding: 0 16px; flex-wrap: nowrap; }
  .logo { gap: 8px; min-width: 0; }
  .logo .brand-mark { width: 56px; height: 56px; flex: 0 0 56px; }
  .logo span { font-size: 13px; white-space: nowrap; }
  .header-inner > nav { position: static; }
  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    z-index: 210;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    background: #fff;
    border-bottom: 1px solid #eae9e9;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .main-nav.open { display: flex; }
  .main-nav > li > a { padding: 13px 20px; }
  .burger { display: block; flex: 0 0 40px; }
  .language-switch { margin-left: auto; margin-right: 4px; }
  .timeline-list article { grid-template-columns: 88px minmax(0, 1fr) minmax(130px, 26%); gap: 14px; }
  .timeline-list::before { left: 101px; }
}
@media (max-width: 767px) {
  .header-inner { height: 68px; padding: 0 12px; }
  .logo { gap: 6px; }
  .logo .brand-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .logo span { font-size: 11px; letter-spacing: .025em; }
  .main-nav { top: 68px; }
  .language-switch { gap: 0; margin-right: 2px; padding: 2px; }
  .language-switch button { padding: 6px 7px; font-size: 10px; }
  .burger { width: 36px; height: 36px; flex-basis: 36px; }
  .page-title-bar { min-height: 170px; padding: 28px 16px; }
  .page-title-bar .ptb-captions p { font-size: 16px; }
  .page-title-bar .ptb-captions h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.2; }
  .timeline-list article { grid-template-columns: 1fr; gap: 10px; }
  .timeline-list::before { display: none; }
  .timeline-list img { height: auto; max-height: 240px; }
  .photo-feature img { height: auto; max-height: 240px; }
}
@media (max-width: 360px) {
  .header-inner { padding-right: 8px; padding-left: 8px; gap: 4px; }
  .logo .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .logo span { font-size: 10px; }
  .language-switch { margin-right: 0; }
  .language-switch button { padding: 5px 6px; }
  .burger { width: 32px; height: 34px; flex-basis: 32px; }
}
/* Who We Are page: organization heading and official horizontal logo */
.organization-brand { max-width: 1200px; margin: 0 auto; padding: 26px 20px 12px; text-align: center; }
.organization-brand h2 { margin: 0 auto 20px; color: var(--ink, #202438); font-family: "Montserrat", "Open Sans", Arial, sans-serif; font-size: clamp(24px, 3vw, 34px); font-weight: 600; line-height: 1.25; }
.organization-brand img { display: block; width: min(100%, 620px); height: auto; margin: 0 auto; object-fit: contain; }
@media (max-width: 767px) { .organization-brand { padding: 22px 16px 8px; } .organization-brand h2 { max-width: 520px; margin-bottom: 14px; font-size: clamp(22px, 6vw, 29px); } .organization-brand img { width: min(100%, 520px); } }
/* Match the reference page title and compact centered logo */
.organization-brand h2 { margin-bottom: 64px; color: #111; font-family: "Open Sans", Arial, sans-serif; font-size: clamp(34px, 4.8vw, 48px); font-weight: 700; line-height: 1.15; }
.organization-brand img { width: min(100%, 420px); }
@media (max-width: 767px) {
  .organization-brand h2 { margin-bottom: 36px; font-size: clamp(25px, 7vw, 36px); }
  .organization-brand img { width: min(100%, 380px); }
}
/* Final sizing to match the reference heading and logo proportions */
.organization-brand h2 { margin-bottom: 80px; font-size: clamp(30px, 3.75vw, 42px); letter-spacing: -.03em; white-space: nowrap; }
.organization-brand img { width: min(100%, 380px); }
@media (max-width: 900px) {
  .organization-brand h2 { white-space: normal; font-size: clamp(28px, 4.2vw, 36px); }
}
@media (max-width: 767px) {
  .organization-brand h2 { margin-bottom: 40px; font-size: clamp(24px, 6vw, 34px); }
  .organization-brand img { width: min(100%, 340px); }
}@media (min-width: 901px) and (max-width: 1024px) {
  .organization-brand h2 { font-size: clamp(30px, 3.3vw, 36px); white-space: nowrap; }
}
/* Match the source page: logo followed directly by the introduction copy */
.intro-copy .inner { max-width: 1100px; }
.intro-copy p { margin: 0; font-size: clamp(16px, 2.1vw, 22px); line-height: 1.65; }
/* Justified body copy */
.full-row p:not(.eyebrow):not(.title3):not(.motto) { text-align: justify; text-justify: inter-word; }
/* DPCW image alongside its introduction */
.dpcw-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 48px); }
.dpcw-photo { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 12px; }
.dpcw-copy .title3 { margin-top: 0; }
.dpcw-copy p:last-child { margin-bottom: 0; }
@media (max-width: 767px) { .dpcw-layout { grid-template-columns: 1fr; gap: 22px; } .dpcw-photo { max-height: 360px; } }
/* Three primary activity areas on the What We Do page */
.work-section-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; max-width: 1100px; margin: 0 auto; padding: 20px; }
.work-section-nav a { display: inline-block; padding: 10px 20px; border: 1px solid rgba(57,152,74,.2); border-radius: 999px; background: #fff; color: var(--ipyg-deep, #1e552d); font-weight: 600; transition: background .18s ease, color .18s ease; }
.work-section-nav a:hover { background: var(--ipyg-green, #39984a); color: #fff; }
.work-section { scroll-margin-top: 24px; }
.work-section h2.title3 { margin: 0 0 18px; font-family: "Montserrat", "Open Sans", Arial, sans-serif; font-size: clamp(25px, 3vw, 34px); font-weight: 700; }
.work-section h3.title3 { margin: 28px 0 14px; font-family: "Montserrat", "Open Sans", Arial, sans-serif; font-size: 23px; font-weight: 700; }
.work-section h3 { color: var(--ink, #202438); }
.work-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 52px); margin: 28px 0 38px; }
.work-feature > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.work-feature > div > :first-child { margin-top: 0; }
.work-feature > div > :last-child { margin-bottom: 0; }
.work-feature-reverse > img { order: 2; }
.work-feature-reverse > div { order: 1; }
.yepw-strengths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yepw-strengths .program-card { text-align: center; }
.yepw-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 28px; }
.yepw-bottom h3 { margin: 0 0 10px; }
.yepw-bottom p { margin: 0; }
.yepw-bottom .campaign-years { margin: 0; }
.full-row.tinted.yepc-section { background: #fff; }
.yepc-intro-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 36px; align-items: stretch; }
.yepc-intro-copy { padding: 24px 0; }
.yepc-intro-copy h2, .yepc-details h3, .yepc-outcome h3, .yepc-quote-section h3 { color: #873d18; letter-spacing: .04em; }
.yepc-intro-copy h2 { max-width: 540px; }
.yepc-intro-copy p { line-height: 1.7; }
.yepc-benefits { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 28px 18px; background: #ffb900; text-align: center; }
.yepc-logo { display: block; width: min(190px, 42%); height: 88px; object-fit: contain; background: #fff; }
.yepw-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.yepw-heading h2 { flex: 1; margin: 0; }
.yepw-logo { display: block; width: min(210px, 38%); height: auto; flex: 0 0 auto; object-fit: contain; }
.yepc-benefits h3 { margin: 0; color: #fff; font-size: 18px; letter-spacing: .06em; }
.yepc-benefits article { display: grid; min-height: 94px; place-items: center; padding: 14px; border: 1.5px solid #873d18; background: #fff0c2; color: #532810; line-height: 1.45; }
.yepc-benefits { display: block; }
.yepc-benefits-heading { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 18px; }
.yepc-benefit-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.yepc-details { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: start; gap: 28px; margin: 34px 0 16px; }
.yepc-details h3, .yepc-outcome h3, .yepc-quote-section h3 { margin: 0 0 16px; }
.yepc-topics .topic-grid { display: block; margin: 0; padding-left: 30px; }
.yepc-topics .topic-grid li { margin-bottom: 8px; line-height: 1.65; }
.yepc-audience { display: flex; flex-direction: column; gap: 8px; padding: 8px 14px; border: 1px dashed #ffb900; color: #873d18; }
.yepc-outcome { margin: 18px 0 30px; text-align: center; }
.yepc-outcome p { margin: 0; line-height: 1.6; }
.yepc-quote-section .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.yepc-quote-section .quote-grid blockquote { margin: 0; padding: 14px; border-radius: 8px; background: #f0f4f5; font-size: 14px; line-height: 1.5; }
@media (max-width: 767px) { .work-section-nav { gap: 8px; padding: 14px 12px; } .work-section-nav a { padding: 9px 14px; font-size: 13px; } .work-section h3.title3 { font-size: 20px; } }
@media (max-width: 767px) { .work-feature { grid-template-columns: 1fr; gap: 18px; margin: 24px 0 30px; } .work-feature > img { order: 0; max-height: 300px; } .work-feature > div { order: 1; } .yepw-strengths, .yepw-bottom { grid-template-columns: 1fr; } .yepc-intro-layout, .yepc-details { grid-template-columns: 1fr; gap: 18px; } .yepc-intro-copy { padding: 12px 0 0; } .yepc-benefits { padding: 22px 16px; } .yepc-benefit-cards { grid-template-columns: 1fr; } .yepc-benefits-heading { flex-wrap: wrap; gap: 10px; } .yepc-logo { width: min(210px, 80%); height: 72px; } .yepc-audience { flex-direction: row; justify-content: space-around; } .yepc-quote-section .quote-grid { grid-template-columns: 1fr; } .yepw-heading { align-items: flex-start; gap: 8px; } .yepw-logo { width: 110px; } }
