/* ============================================================
   Beyond Beauty Academy × Glowtech — Graduates gallery
   Section 8. Infinite auto-scrolling marquee (two rows,
   opposite directions) → "endless wall of graduates" feel.
   .grads is the query container → reflows per artboard width.
   ============================================================ */

.grads {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
  font-family: var(--font-sans);
  direction: rtl;
  text-align: right;
  background: var(--gt-pink-soft);
  color: var(--gt-ink);
}
.grads *, .grads *::before, .grads *::after { box-sizing: border-box; }

.grads .blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.grads .blob-1 { width: 360px; height: 360px; background: #f3d5de; top: -160px; right: -110px; opacity: .5; }
.grads .blob-2 { width: 320px; height: 320px; background: #edc9d3; bottom: -160px; left: -110px; opacity: .4; }

.grads .inner {
  position: relative; z-index: 1;
  padding: 62px 0 68px;
  display: flex; flex-direction: column;
}

/* ---- header (keeps side padding) ---- */
.grads .head { text-align: center; max-width: 720px; margin: 0 auto 40px; padding: 0 72px; }
.grads .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; letter-spacing: .04em;
  color: var(--gt-burgundy); margin-bottom: 14px;
}
.grads .eyebrow svg { width: 17px; height: 17px; }
.grads h2 {
  font-size: 40px; font-weight: 800; line-height: 1.12;
  letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance;
}
.grads h2 em { font-style: normal; color: var(--gt-burgundy); }
.grads .sub { font-size: 18px; line-height: 1.55; color: var(--gt-body); margin: 0; }

/* ---- masonry gallery (matches the reviews section) ---- */
.grads .shots {
  column-count: 3;
  column-gap: 18px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 72px;
}
.grads .shot {
  break-inside: avoid;
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(184,51,106,.18), 0 2px 6px rgba(110,28,64,.08);
  border: 1px solid rgba(255,255,255,.7);
}
.grads .shot img { display: block; width: 100%; height: auto; }

@container (max-width: 820px) {
  .grads .shots { column-count: 2; max-width: 560px; }
}

/* ---- closing line ---- */
.grads .closer {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 46px; padding: 0 72px;
}
.grads .closer .ln { height: 2px; width: 64px; background: var(--gt-pink); border-radius: 2px; }
.grads .closer .txt {
  font-size: 30px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--gt-burgundy); white-space: nowrap;
}
.grads .closer .arrow { width: 28px; height: 28px; color: var(--gt-burgundy); }

/* ============================================================
   MOBILE — ≤ 560px artboard width
   ============================================================ */
@container (max-width: 560px) {
  .grads .blob-1, .grads .blob-2 { width: 220px; height: 220px; }
  .grads .inner { padding: 40px 0 46px; }
  .grads .head { margin-bottom: 28px; padding: 0 22px; }
  .grads h2 { font-size: 27px; line-height: 1.16; }
  .grads .sub { font-size: 15.5px; }
  .grads .shots { column-count: 1; max-width: 340px; padding: 0 22px; }
  .grads .shot { margin-bottom: 16px; }
  .grads .closer { margin-top: 32px; gap: 12px; padding: 0 22px; }
  .grads .closer .ln { width: 36px; }
  .grads .closer .txt { font-size: 23px; }
}
