/* 2026-11-19 (user: "thora aur sahi formal look and card image thora chota jaha steps wo steps animated ho"):
   Overview, Objectives, Our Approach, Our Partners (+ the steps on As a Partner Organisation).
   Loaded LAST on those pages. Calmer cards (small radius, thin border, no lift/glow), smaller photos and
   logos, and the step rows (Theory of Change, How a Partnership Works) play in one by one -- steps.js. */

/* ---------- formal cards: small radius, thin border, no hover jump ---------- */
.uplift-classic-card, .ulf-app-card, .ppart, .ppart__projects > *, .regs__item, .sec-card {
  border-radius: 6px !important;
}
.uplift-classic-card, .ulf-app-card, .ppart, .regs__item {
  border-width: 1px !important;
  border-color: rgba(255, 215, 0, .42) !important;
  box-shadow: none !important;
}
.uplift-classic-card:hover, .ulf-app-card:hover, .ppart:hover {
  transform: none !important; box-shadow: none !important; border-color: #ffd700 !important;
}
.uplift-classic-card::after, .ulf-app-card::before, .ulf-app-card::after { display: none !important; }
.ulf-app-icon-wrapper, .uplift-classic-icon { border-radius: 4px !important; }
.ulf-app-card:hover .ulf-app-icon-wrapper, .uplift-classic-card:hover .uplift-classic-icon { transform: none !important; }
.ulf-app-tag, .ulf-app-card-meta, .uplift-classic-header > span { letter-spacing: .14em; }

/* ---------- photo beside the heading ---------- */
/* 2026-11-19 (user: "jitna size overview mein hai utna hi objective, approach, partners mein bhi lagao"):
   the side photo = Overview's Vision photo, 484 x 363 (4:3). */
.pph { grid-template-columns: minmax(0, 1fr) minmax(0, 484px); }
figure.pph__pic { border-radius: 6px; width: 100%; max-width: 484px; justify-self: end; }
.pph__pic img { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .pph { grid-template-columns: 1fr; }
  figure.pph__pic { justify-self: center; width: 100%; max-width: 484px; }
}

/* ---------- Overview: Mission / Vision headings (photo size stays as before -- user 2026-11-19: 'about us image size pehle jaisa') ---------- */
.mv__row h2 { font: 700 34px/1.25 var(--font-head, Georgia, serif); margin: 0 0 10px; color: #ffd700; }
.mv__row h2::after { content: ''; display: block; width: 48px; height: 2px; margin-top: 10px; background: #ffd700; }
.about__quote { border-radius: 6px !important; }
@media (max-width: 900px) {
  .mv__row h2 { font-size: 28px; }
}

/* ---------- Our Partners: smaller logos ---------- */
.ppart__logo { width: 72px; height: 72px; border-radius: 4px; }
.ppart-logos { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ppart-logos li { height: 78px; border-radius: 4px; padding: 8px 10px; }
@media (max-width: 600px) { .ppart__logo { width: 60px; height: 60px; } .ppart-logos li { height: 68px; } }

/* ---------- animated steps (steps.js adds .steps-anim, then .is-in when on screen) ---------- */
.steps-anim > li { opacity: 0; transform: translateY(18px); }
.steps-anim.is-in > li { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; transition-delay: calc(var(--i, 0) * 220ms); }

/* Our Approach - Theory of Change: arrows appear after their step */
.steps-anim .toc__arrow { opacity: 0; }
.steps-anim.is-in .toc__arrow { opacity: 1; transition: opacity .4s ease calc(var(--i, 0) * 220ms + 300ms); animation: stepNudge 1.6s ease-in-out calc(var(--i, 0) * 220ms + 900ms) 2; }
@keyframes stepNudge { 50% { translate: 5px 0; } }

/* As a Partner Organisation - How a Partnership Works: the dashed line draws, numbers pop in turn */
.psteps.steps-anim::before { transform: scaleX(0); transform-origin: left center; }
.psteps.steps-anim.is-in::before { transform: scaleX(1); transition: transform 1.3s ease .1s; }
.steps-anim.is-in .psteps__n { animation: stepPop .6s ease calc(var(--i, 0) * 220ms + 200ms) both; }
@keyframes stepPop { 0% { transform: scale(.6); box-shadow: 0 0 0 0 rgba(255, 215, 0, .5); } 60% { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(255, 215, 0, .18); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); } }
@media (max-width: 900px) {
  .psteps.steps-anim::before { transform: scaleY(0); transform-origin: center top; }
  .psteps.steps-anim.is-in::before { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .steps-anim > li, .steps-anim .toc__arrow { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .psteps.steps-anim::before { transform: none !important; transition: none !important; }
  .steps-anim .psteps__n { animation: none !important; }
}

/* ---------- 2026-11-19 (user: "Our Theory of Change ke card aur acche karo"): timeline cards ----------
   Gold numbered circles on one line across the top, an icon per step, the step-3 MIS numbers as tiles.
   Phones/tablets: a vertical timeline on the left. Arrows are replaced by the line. */
.toc__flow { position: relative; gap: 18px; padding-top: 74px !important; align-items: stretch; }
.toc__flow::before { content: ''; position: absolute; left: 10%; right: 10%; top: 25px; height: 2px;
  background: linear-gradient(90deg, rgba(255, 215, 0, .25), #ffd700 50%, rgba(255, 215, 0, .25)); }
.toc__arrow { display: none !important; }
.toc__step { position: relative; padding: 26px 20px 24px !important; border-radius: 6px !important;
  background: linear-gradient(180deg, rgba(255, 215, 0, .07), rgba(255, 255, 255, .015) 46%) !important;
  border: 1px solid rgba(255, 215, 0, .38) !important; border-top: 3px solid #ffd700 !important; }
.toc__step::after { content: '' !important; display: block !important; position: absolute; left: 50% !important; top: -49px !important;
  width: 2px !important; height: 46px !important; background: rgba(255, 215, 0, .55) !important; transform: translateX(-50%); }
.toc__num { position: absolute; left: 50%; top: -74px; transform: translateX(-50%); display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%; background: #ffd700; color: #1d2a1b; font: 800 20px/1 var(--font-ui);
  box-shadow: 0 0 0 6px rgba(255, 215, 0, .14); z-index: 2; }
.toc__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 4px; margin-bottom: 14px;
  border: 1px solid rgba(255, 215, 0, .45); color: #ffd700; background: rgba(255, 215, 0, .06); }
.toc__ic svg { width: 22px; height: 22px; }
.toc__step .ulf-app-card-meta { font-size: 11px; opacity: .85; }
.toc__step h3 { font-size: 18px !important; margin: 6px 0 10px !important; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 215, 0, .25); }
.toc__step p { font-size: 14.5px !important; line-height: 1.6 !important; }
.toc__step--3 { background: linear-gradient(180deg, rgba(255, 215, 0, .14), rgba(255, 255, 255, .02) 50%) !important; border-color: #ffd700 !important; }
.toc__nums { grid-template-columns: 1fr 1fr; gap: 8px !important; margin-top: 14px !important; }
.toc__nums div { padding: 8px 9px; border-radius: 4px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 215, 0, .25); }
.toc__nums dt { font-size: 19px !important; }
.toc__nums dd { font-size: 11.5px !important; }
@media (max-width: 1100px) {
  .toc__flow { padding-top: 0 !important; padding-left: 70px !important; gap: 22px !important; max-width: 680px; }
  .toc__flow::before { left: 24px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto;
    background: linear-gradient(180deg, #ffd700, rgba(255, 215, 0, .3)); }
  .toc__step::after { left: -22px !important; top: 24px !important; width: 22px !important; height: 2px !important; transform: none; }
  .toc__num { left: -70px; top: 0; transform: none; }
  .toc__nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .toc__flow { padding-left: 58px !important; }
  .toc__flow::before { left: 19px; }
  .toc__num { left: -58px; width: 40px; height: 40px; font-size: 17px; }
  .toc__step::after { left: -18px !important; top: 19px !important; width: 18px !important; }
  .toc__nums { grid-template-columns: 1fr 1fr; }
}
/* animation: the line draws, circles pop in turn (cards already fade in one by one) */
.toc__flow.steps-anim::before { transform: scaleX(0); transform-origin: left center; }
.toc__flow.steps-anim.is-in::before { transform: scaleX(1); transition: transform 1.3s ease .1s; }
.steps-anim.is-in .toc__num { animation: tocPop .6s ease calc(var(--i, 0) * 220ms + 200ms) both; }
@keyframes tocPop { 0% { transform: translateX(-50%) scale(.6); } 60% { transform: translateX(-50%) scale(1.12); } 100% { transform: translateX(-50%) scale(1); } }
@media (max-width: 1100px) {
  .toc__flow.steps-anim::before { transform: scaleY(0); transform-origin: center top; }
  .toc__flow.steps-anim.is-in::before { transform: scaleY(1); }
  @keyframes tocPop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .toc__flow.steps-anim::before { transform: none !important; transition: none !important; }
  .steps-anim .toc__num { animation: none !important; }
}
