/* Teacher Fernanda – Game On page.
   The page uses the theme's components (title band, section heads, feature cards, steps, call to action);
   this file only lays them out, with the same tokens as Counseling: navy #1A1C2A, red #C4090A,
   greys #EAEBEC / #F6F6F7, Nunito bold, nothing under 16px, no italics, radius up to 10px. */

.tfg-sec, .tfg-head, .tfg {
	--n: var(--tf-navy, #1A1C2A); --r: var(--tf-red, #C4090A); --g: var(--tf-grey-light, #EAEBEC); --g2: #F6F6F7;
	--tx: var(--tf-text, #333333); --pt: #5c5f6b; --mid: var(--tf-grey-mid, #AEAEAE);
	--sh: var(--tf-shadow, 0 10px 30px rgba(26, 28, 42, .10)); --sh2: var(--tf-shadow-hover, 0 16px 40px rgba(26, 28, 42, .16));
	--ease: var(--tf-ease, cubic-bezier(.2, .7, .2, 1));
}

.tfg-wrap { max-width: var(--tf-wide, 1200px); margin: 0 auto; padding: 0 var(--tf-gutter, 20px); }
.tfg-sec .tfg-wrap { padding: 0; }
@media (max-width: 1240px) { .tfg-sec .tfg-wrap { padding: 0 var(--tf-gutter, 20px); } }

/* Portuguese translation: one style everywhere (grey, same weight, on its own line) */
.tfg-pt { display: block; margin-top: 4px; color: var(--pt); font-size: 16px; font-weight: 700; line-height: 1.45; letter-spacing: 0; text-transform: none; }
.tfg-pt.i { display: inline; margin: 0; }
.tfg small, .tfg-sec small { font-size: 16px; }
.tfg-sec h3 .tfg-pt, .tfg-sec .tf-section-head .tfg-pt { margin-top: 6px; }

/* ---------- page sections (theme components) ---------- */
.tfg-head .tf-titlebar__meta .tf-titlebar__pt { margin-bottom: 14px; }
.tfg-head .tf-titlebar__meta p { margin: 0; }
.tfg-head .tf-titlebar__meta .tfg-pt { margin-top: 8px; }
.tfg-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.tfg-sec .tf-section-head { max-width: 760px; margin-left: auto; margin-right: auto; }
.tfg-grid { display: grid; gap: 24px; }
.tfg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tfg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tfg-sec .tf-feature { display: flex; flex-direction: column; align-items: center; }
.tfg-sec .tf-feature__icon, .tfg-sec .tf-step__icon { margin-top: 0; }
.tfg-sec .tf-feature__icon img, .tfg-sec .tf-step__icon img { width: 48px; height: 48px; display: block; }
.tfg-sec .tf-feature h3, .tfg-sec .tf-step h3 { margin: 6px 0 10px; line-height: 1.3; }
.tfg-sec .tf-feature p, .tfg-sec .tf-step p.has-text-align-center { margin: 0; }
.tfg-sec .tf-creds-section .tf-feature, .tf-creds-section.tfg-sec .tf-feature { border-color: transparent; }
.tfg-sec .tf-steps { position: relative; }
.tfg-sec .tf-cta .tfg-btns { margin-top: 28px; }
.tfg-highlight {
	display: flex; gap: 18px; align-items: center; max-width: var(--tf-wide, 1200px); margin: 0 auto 34px; padding: 22px 26px;
	background: #fff; border: 2px solid var(--n); border-radius: 10px;
}
.tfg-highlight__ic { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--g); display: grid; place-items: center; }
.tfg-highlight__ic img { width: 34px; height: 34px; }
.tfg-highlight p { margin: 0; color: var(--tx); font-size: 18px; }
.tfg-highlight b { color: var(--n); font-weight: 900; }

/* Hero with her photo (same split title band as the About page). The cut-out sits on the bottom edge of the band. */
.tfg-hero { position: relative; max-width: var(--tf-wide, 1200px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: end; }
.tfg-hero__text { align-self: center; min-width: 0; }
.tfg-head--photo .tf-titlebar__meta { max-width: 660px; }
.tfg-head--photo .tfg-btns { justify-content: flex-start; }
.tfg-hero__photo { position: relative; z-index: 0; margin: 0 0 calc(-1 * var(--tf-band-pad, 64px)); line-height: 0; animation-delay: .2s; }
.tfg-hero__photo::before { content: ""; position: absolute; z-index: -1; left: 9%; right: 9%; top: 16%; bottom: 0; border-radius: 999px 999px 0 0; background: #fff; }
.tfg-hero__photo img { display: block; width: 100%; height: auto; }
@media (max-width: 1100px) { .tfg-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 36px; } }
@media (max-width: 860px) {
	.tfg-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.tfg-head--photo { text-align: center; }
	.tfg-head--photo .tf-titlebar__eyebrow { justify-content: center; }
	.tfg-head--photo .tf-titlebar__eyebrow::after { display: block; }
	.tfg-head--photo .tf-titlebar__title::after { margin-left: auto; }
	.tfg-head--photo .tf-titlebar__meta { margin-left: auto !important; }
	.tfg-head--photo .tfg-btns { justify-content: center; }
	.tfg-hero__photo { width: min(70%, 260px); margin-left: auto; margin-right: auto; }
}

.tfg-sub { margin: 40px 0 22px; text-align: center; color: var(--r); font-size: 26px; font-weight: 900; line-height: 1.3; }
.tfg-sub .tfg-pt.i { color: var(--pt); font-size: 18px; }
.tfg-sec .tf-section-head + .tfg-sub { margin-top: 8px; }
.tfg-sec .tfg-highlight { margin-bottom: 0; }

/* Screenshots of the lesson games */
.tfg-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tfg-shot { margin: 0; background: #fff; border: 1px solid var(--g); border-radius: 10px; padding: 16px 16px 18px; box-shadow: var(--sh); display: flex; flex-direction: column; justify-content: space-between; }
.tfg-shot img { display: block; width: 100%; height: auto; border-radius: 8px; }
.tfg-shot figcaption { margin-top: 12px; text-align: center; color: var(--n); font-size: 18px; font-weight: 900; }
.tfg-shot figcaption .tfg-pt.i { color: var(--pt); font-size: 16px; font-weight: 700; }

@media (max-width: 1100px) { .tfg-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
	.tfg-grid--3 { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
	.tfg-sec .tf-steps { gap: 44px; }
}
@media (max-width: 640px) {
	.tfg-shots { grid-template-columns: minmax(0, 1fr); }
	.tfg-grid--4 { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
	.tfg-highlight { flex-direction: column; text-align: center; padding: 20px; }
	.tfg-sub { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .tfg-sec * { animation: none !important; transition: none !important; } }

/* Game On Quest in action: silent clips (picture first, the clip plays on hover / when it is on screen on phones) */
.tfg-clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tfg-clip { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--g); border-radius: 10px; padding: 14px 14px 20px; box-shadow: var(--sh); color: inherit; text-decoration: none; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.tfg-clip:hover, .tfg-clip:focus-visible { box-shadow: var(--sh2); transform: translateY(-3px); text-decoration: none; }
.tfg-clip:focus-visible { outline: 2px solid var(--n); outline-offset: 3px; }
.tfg-clip__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--g); }
.tfg-clip__media img, .tfg-clip__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tfg-clip__media video { opacity: 0; transition: opacity .2s linear; }
.tfg-clip.is-playing .tfg-clip__media video { opacity: 1; }
.tfg-clip__body { display: block; padding: 16px 6px 0; text-align: center; }
.tfg-clip__name { display: block; margin-bottom: 8px; color: var(--n); font-size: 20px; font-weight: 900; line-height: 1.3; }
.tfg-clip__text { display: block; color: var(--tx); font-size: 17px; font-weight: 700; line-height: 1.5; }
.tfg-clips + .tfg-btns { margin-top: 32px; }
@media (max-width: 1100px) { .tfg-clips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tfg-clips { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tfg-clip, .tfg-clip:hover { transform: none; } }
