/* ==========================================================================
   Foundation "About us" (nafas.com/foundation, Global version)
   Live: frame .framer-1x41csw (desktop >= 1200 and tablet 810-1199.98, one tree) and .framer-18cidr5 (phone).
   The section is the 12px-padded column slot (padding 0 12px 12px); the rounded #f5f5f5 frame is its child.
   Desktop: a fixed 936 x 1228 box (overflow clip) with absolutely placed children (intro top 0, marquee top 170,
   photo top 316, body anchored bottom 1px, so an opened accordion item grows the body upward like live).
   Tablet: the same children stacked in a flex column (gap 40). Phone: frame padding 80 20, 24px text, gap 40.
   Ticker (Framer Ticker): one logo set 3908px wide + gap 10, two copies, translateX(0 -> -3918px) at 50px/s,
   linear, starts the first time it is in view, pauses while out of view, hover does nothing, edge mask 0.2 alpha.
   Text fades (opacity only) in at >= 50% in view and out again below it, spring fitted to live
   (stiffness ~202, damping ~25.6, ~0.5s). Accordion: all start closed, several can be open, whole item toggles;
   item height and arrow rotation (0 -> -180deg) share one spring fitted to live (~0.4s, 1.5% overshoot);
   gap 0 -> 20 and answer colour black -> #91c851 switch at once.
   ========================================================================== */

.nf-fd-about {
  --nf-fd-about-font: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif;
  --nf-fd-about-fade: linear(0, 0.0142, 0.051, 0.1032, 0.1653, 0.2329, 0.3026, 0.372, 0.4394, 0.5033, 0.5632, 0.6184, 0.6688, 0.7143, 0.7551, 0.7913, 0.8232, 0.8511, 0.8754, 0.8964, 0.9145, 0.9299, 0.943, 0.954, 0.9633, 0.971, 0.9774, 0.9826, 0.9869, 0.9904, 0.9931, 0.9953, 0.9971, 0.9984, 0.9994, 1.0001, 1.0007, 1.0011, 1.0013, 1.0015, 1);
  --nf-fd-about-spring: linear(0, 0.0232, 0.082, 0.1629, 0.2555, 0.3523, 0.4477, 0.538, 0.6208, 0.6947, 0.7594, 0.8147, 0.8611, 0.8994, 0.9303, 0.9548, 0.9738, 0.988, 0.9985, 1.0058, 1.0106, 1.0134, 1.0148, 1.0152, 1.0147, 1.0138, 1.0125, 1.0111, 1.0096, 1.0082, 1.0068, 1.0056, 1.0045, 1.0035, 1.0027, 1.002, 1.0015, 1.001, 1.0006, 1.0004, 1);
  position: relative;
  width: 100%;
  padding: 0 12px 12px;
  background: var(--nf-white);
}

/* ---------- desktop (>= 1200) ---------- */
.nf-fd-about__frame {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  width: 100%; height: min-content; padding: 140px;
  background-color: rgb(245, 245, 245); border-radius: 12px;
  overflow: visible;
}
.nf-fd-about__inner { position: relative; flex: none; width: 936px; height: 1228px; overflow: clip; }

.nf-fd-about__intro { position: absolute; top: 0; left: 0; width: 100%; }
.nf-fd-about__lead, .nf-fd-about__text {
  font-family: var(--nf-fd-about-font); font-weight: 400; font-style: normal;
  font-size: 36px; line-height: 1.2em; letter-spacing: normal; text-align: left; color: rgb(0, 0, 0);
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-fd-about__green { color: rgb(145, 200, 81); }

/* marquee row: label + ticker (819 x 106, clipped by the row) */
.nf-fd-about__marquee {
  position: absolute; top: 170px; left: 0;
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 40px;
  width: 936px; height: min-content; padding: 0; overflow: clip;
}
.nf-fd-about__label-box { position: relative; flex: none; width: auto; height: auto; }
.nf-fd-about__label {
  font-family: var(--nf-fd-about-font); font-weight: 400; font-size: 18px; line-height: 1.2em;
  letter-spacing: normal; text-align: left; color: rgb(0, 0, 0); white-space: pre;
}
.nf-fd-about__ticker {
  position: relative; flex: none; width: 819px; height: 106px;
  display: flex; place-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgb(0, 0, 0) 12.5%, rgb(0, 0, 0) 87.5%, rgba(0, 0, 0, 0.2) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgb(0, 0, 0) 12.5%, rgb(0, 0, 0) 87.5%, rgba(0, 0, 0, 0.2) 100%);
}
.nf-fd-about__track {
  position: relative;
  display: flex; flex-direction: row; place-items: center; gap: 10px;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; list-style: none;
  will-change: transform;
}
.nf-fd-about__ticker-item { display: block; flex: none; }
.nf-fd-about__logos {
  position: relative; z-index: 1;
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 60px;
  width: min-content; height: min-content; padding: 0; overflow: hidden;
}
.nf-fd-about__logo { position: relative; flex: none; height: auto; overflow: visible; }
.nf-fd-about__logo img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.nf-fd-about__logo-end {
  position: relative; flex: none;
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px;
  width: min-content; height: min-content; padding: 0 40px 0 0; overflow: clip;
}
.nf-fd-about__logo--ucl { width: 140px; aspect-ratio: 3.40909 / 1; }
.nf-fd-about__logo--uchicago { width: 193px; aspect-ratio: 4.57995 / 1; }
.nf-fd-about__logo--adb { width: 73px; aspect-ratio: 1.25 / 1; }
.nf-fd-about__logo--nihr { width: 280px; aspect-ratio: 10.0074 / 1; }
.nf-fd-about__logo--georgetown { width: 207px; aspect-ratio: 3 / 1; }
.nf-fd-about__logo--dbsf { width: 215px; aspect-ratio: 6.13514 / 1; }
.nf-fd-about__logo--brin { width: 138px; aspect-ratio: 2.59361 / 1; }
.nf-fd-about__logo--halodoc { width: 153px; aspect-ratio: 3.98936 / 1; }
.nf-fd-about__logo--dlh-bogor { width: 107px; aspect-ratio: 1 / 1; }
.nf-fd-about__logo--dlh-bogor img { object-fit: contain; }
.nf-fd-about__logo--rccc-ui { width: 202px; aspect-ratio: 2.76301 / 1; }
.nf-fd-about__logo--fkm-ui { width: 210px; aspect-ratio: 2.52778 / 1; }
.nf-fd-about__logo--itb { width: 420px; aspect-ratio: 4.16578 / 1; }
.nf-fd-about__logo--ugm { width: 322px; aspect-ratio: 5.58533 / 1; }
.nf-fd-about__logo--brawijaya { width: 103px; aspect-ratio: 0.994626 / 1; }
.nf-fd-about__logo--bu { width: 86px; aspect-ratio: 1.15924 / 1; }
.nf-fd-about__logo--iyctc { width: 119px; aspect-ratio: 1.83784 / 1; }

/* photo: 401 x 271 white rounded frame, image 420 x 280 offset (-9, -4) like live */
.nf-fd-about__photo {
  position: absolute; top: 316px; left: 0;
  flex: none; width: 401px; height: 271px;
  background-color: rgb(255, 255, 255); border-radius: 12px; overflow: clip; will-change: transform;
}
.nf-fd-about__photo-in { position: absolute; left: -9px; right: -10px; bottom: -5px; aspect-ratio: 1.5 / 1; }
.nf-fd-about__img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}

/* body: statement + accordion, anchored to the bottom of the 1228px box */
.nf-fd-about__body {
  position: absolute; bottom: 1px; left: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px;
  width: 936px; height: min-content; padding: 0; overflow: clip;
}
.nf-fd-about__text-box { position: relative; flex: none; width: 100%; }

/* accordion */
.nf-fd-about__acc {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  width: 100%; height: min-content; padding: 0; overflow: clip;
}
.nf-fd-about__item {
  position: relative; flex: none;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
  width: 100%; height: min-content; padding: 24px 24px 24px 0;
  overflow: clip; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nf-fd-about__item::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-style: solid; border-color: rgb(158, 158, 158); border-width: 0 0 1px 0;
  border-radius: inherit; box-sizing: border-box; pointer-events: none;
}
.nf-fd-about__item.is-open { gap: 20px; }
.nf-fd-about__q {
  position: relative; flex: none;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  width: 100%; height: min-content; padding: 0; overflow: clip; outline: none;
}
.nf-fd-about__q-text {
  position: relative; flex: 1 0 0px; width: 1px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px;
  overflow: clip;
}
.nf-fd-about__q-p, .nf-fd-about__a-p {
  width: 100%;
  font-family: var(--nf-fd-about-font); font-weight: 400; font-style: normal;
  font-size: 18px; line-height: 1.4em; letter-spacing: 0em; text-align: left; color: rgb(0, 0, 0);
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-fd-about__arrow-box {
  position: relative; flex: none; width: 48px; height: 48px;
  transition: transform 0.4s var(--nf-fd-about-spring);
}
.nf-fd-about__item.is-open .nf-fd-about__arrow-box { transform: rotate(-180deg); }
.nf-fd-about__arrow { position: absolute; top: calc(50% - 12px); left: calc(50% - 12px); width: 24px; height: 24px; }
.nf-fd-about__a {
  position: relative; flex: none;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px;
  width: 100%; height: 1px; padding: 0; overflow: clip;
}
.nf-fd-about__item.is-open .nf-fd-about__a { height: min-content; }
.nf-fd-about__a-text { position: relative; flex: none; width: 100%; }
.nf-fd-about__item.is-open .nf-fd-about__a-p { color: rgb(145, 200, 81); }

/* text fades */
.nf-fd-about [data-fd-fade] { opacity: 0; transition: opacity 0.5s var(--nf-fd-about-fade); }
.nf-fd-about [data-fd-fade].is-in { opacity: 1; }
@media (scripting: none) { .nf-fd-about [data-fd-fade] { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .nf-fd-about [data-fd-fade] { opacity: 1; transition: none; }
  .nf-fd-about__arrow-box { transition: none; }
}

/* ---------- tablet (810 - 1199.98): the same children stacked ---------- */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .nf-fd-about__inner {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
    width: 100%; height: min-content;
  }
  .nf-fd-about__intro { position: relative; top: auto; left: auto; flex: none; }
  .nf-fd-about__marquee { position: relative; top: auto; left: auto; flex: none; width: 100%; }
  .nf-fd-about__photo { position: relative; top: auto; left: auto; }
  .nf-fd-about__body { position: relative; bottom: auto; left: auto; flex: none; width: 100%; }
}

/* ---------- phone (<= 809.98) ---------- */
@media (max-width: 809.98px) {
  .nf-fd-about__frame {
    align-items: flex-start; justify-content: flex-start; gap: 40px;
    padding: 80px 20px; overflow: clip; will-change: transform;
  }
  .nf-fd-about__inner {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 40px;
    width: 100%; height: min-content; overflow: visible;
  }
  .nf-fd-about__intro { position: relative; top: auto; left: auto; flex: none; }
  .nf-fd-about__lead, .nf-fd-about__text { font-size: 24px; }
  .nf-fd-about__marquee {
    position: relative; top: auto; left: auto; flex: none;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 20px; width: 100%;
  }
  .nf-fd-about__ticker { height: 129px; }
  .nf-fd-about__photo {
    position: relative; top: auto; left: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: min-content;
  }
  .nf-fd-about__photo-in { position: relative; left: auto; right: auto; bottom: auto; flex: none; width: 100%; }
  .nf-fd-about__body { position: relative; bottom: auto; left: auto; flex: none; width: 100%; gap: 20px; }
  .nf-fd-about__q-p, .nf-fd-about__a-p { font-size: 16px; }
}
