/*
Theme Name: Teacher Fernanda
Theme URI: https://teacherfernanda.com.br
Author: Teacher Fernanda
Description: Custom theme for Teacher Fernanda I Online English. Lightweight, no Elementor, pages editable in the WordPress block editor, testimonials, course and post grids, on-site login and WooCommerce store support.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teacherfernanda
*/

/* ==========================================================================
   Base
   ========================================================================== */
:root {
	--tf-navy: #1A1C2A;
	--tf-red: #C70807;
	--tf-text: #333333;
	--tf-grey-light: #EAEBEC;
	--tf-grey-mid: #AEAEAE;
	--tf-grey-dark: #8F8F8F;
	--tf-white: #FFFFFF;
	--tf-radius: 5px;
	--tf-radius-lg: 10px;
	--tf-wide: 1200px;
	--tf-gutter: 20px;
	--tf-header-h: 84px;
	--tf-shadow: 0 10px 30px rgba(26, 28, 42, .10);
	--tf-shadow-hover: 0 16px 40px rgba(26, 28, 42, .16);
	--tf-ease: cubic-bezier(.2, .7, .2, 1);
	/* One frame for every page: band padding, space above and below the content */
	--tf-band-pad: clamp(44px, 5.5vw, 64px);
	--tf-body-top: clamp(40px, 5vw, 60px);
	--tf-body-bottom: clamp(56px, 6.5vw, 88px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tf-header-h) + 10px); }

body {
	margin: 0;
	background: var(--tf-white);
	color: var(--tf-text);
	font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
.tf-content img { display: inline-block; }
.tf-content figure img { display: block; }

a { color: var(--tf-red); font-weight: 800; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--tf-navy); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--tf-red); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { color: var(--tf-red); font-weight: 900; line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 900; }

.tf-icon { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.tf-skip:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	z-index: 100000; top: 10px; left: 10px; padding: 12px 20px;
	background: var(--tf-navy); color: #fff; border-radius: var(--tf-radius);
}

.tf-container { width: 100%; max-width: calc(var(--tf-wide) + 2 * var(--tf-gutter)); margin-inline: auto; padding-inline: var(--tf-gutter); }
.tf-section { padding-block: var(--tf-body-bottom); }
.tf-rule { border: 0; border-top: 1px solid var(--tf-grey-light); margin: 30px 0; }
.tf-empty { text-align: center; color: var(--tf-grey-dark); font-weight: 800; padding: 30px 0; }

/* Buttons */
.tf-btn,
.wp-block-button__link,
.wp-element-button,
button.tf-btn,
input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--tf-navy); color: var(--tf-white);
	border: 0; border-radius: var(--tf-radius);
	padding: 12px 26px;
	font-family: inherit; font-size: 16px; font-weight: 900; line-height: 1.2;
	cursor: pointer; text-decoration: none;
	transition: background-color .25s, color .25s, transform .25s var(--tf-ease), box-shadow .25s;
}
.tf-btn:hover, .tf-btn:focus,
.wp-block-button__link:hover, .wp-block-button__link:focus,
input[type="submit"]:hover {
	background: var(--tf-red); color: var(--tf-white); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(199, 8, 7, .25);
}
.tf-btn .tf-icon { width: 16px; height: 16px; }
.tf-btn--small { padding: 10px 18px; }
.tf-btn--block { width: 100%; }

.wp-block-button.is-style-tf-soft .wp-block-button__link { background: var(--tf-grey-light); color: var(--tf-red); font-size: 16px; }
.wp-block-button.is-style-tf-soft .wp-block-button__link:hover { background: var(--tf-navy); color: var(--tf-white); box-shadow: none; }

.tf-btn-icon-book .wp-block-button__link::before {
	content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: url("assets/icons/book-open-reader.svg") center / contain no-repeat;
	mask: url("assets/icons/book-open-reader.svg") center / contain no-repeat;
}

/* ==========================================================================
   Header
   ========================================================================== */
.tf-header {
	position: sticky; top: 0; z-index: 1000;
	background: rgba(255, 255, 255, .97);
	backdrop-filter: saturate(160%) blur(8px);
	transition: box-shadow .3s;
}
.admin-bar .tf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tf-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tf-header { top: 0; } }
.tf-header.is-scrolled { box-shadow: 0 4px 20px rgba(26, 28, 42, .10); }

.tf-header__inner {
	display: flex; align-items: center; gap: 20px;
	max-width: 1400px; margin: 0 auto; padding: 10px var(--tf-gutter);
	min-height: var(--tf-header-h);
}
.tf-header__logo { flex: 0 0 auto; }
.tf-header__logo img { max-height: 64px; width: auto; }
.tf-header__name { display: flex; flex-direction: column; color: var(--tf-navy); font-size: 22px; font-weight: 900; line-height: 1.1; }
.tf-header__name span { color: var(--tf-red); font-size: 16px; font-weight: 800; }

.tf-nav { flex: 1 1 auto; display: flex; justify-content: center; }
/* Desktop: logo and account area share the side space equally, so the menu sits in the true centre. */
@media (min-width: 961px) {
	.tf-header__logo { flex: 1 1 0; min-width: 0; }
	.tf-nav { flex: 0 1 auto; }
	.tf-header__inner > .tf-header__actions { flex: 1 1 0; display: flex; justify-content: flex-end; }
}
.tf-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.tf-menu > li { position: relative; }
.tf-menu a {
	display: block; padding: 10px 16px; border-radius: var(--tf-radius);
	color: var(--tf-navy); font-size: 16px; font-weight: 900;
}
.tf-menu a:hover,
.tf-menu .current-menu-item > a,
.tf-menu .current_page_item > a { color: var(--tf-red); }
.tf-menu > li > a { position: relative; }
.tf-menu > li > a::after {
	content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
	background: var(--tf-red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--tf-ease);
}
.tf-menu > li > a:hover::after,
.tf-menu > .current-menu-item > a::after { transform: scaleX(1); }
.tf-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border-radius: var(--tf-radius-lg); box-shadow: var(--tf-shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.tf-menu li:hover > .sub-menu, .tf-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.tf-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.tf-account { display: flex; align-items: center; gap: 10px; }

.tf-cart { position: relative; display: inline-flex; color: var(--tf-navy); padding: 8px; }
.tf-cart .tf-icon { width: 22px; height: 22px; }
.tf-cart:hover { color: var(--tf-red); }
.tf-cart__count {
	position: absolute; top: 0; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 10px; background: var(--tf-red); color: #fff; font-size: 16px; font-weight: 900;
	display: grid; place-items: center; line-height: 1;
}

.tf-usermenu { position: relative; }
.tf-usermenu__toggle { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; display: block; }
.tf-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--tf-grey-light); transition: border-color .2s; }
.tf-usermenu__toggle:hover .tf-avatar, .tf-usermenu__toggle[aria-expanded="true"] .tf-avatar { border-color: var(--tf-red); }
.tf-usermenu__panel {
	position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px;
	background: #fff; border-radius: var(--tf-radius-lg); box-shadow: var(--tf-shadow); z-index: 10;
	animation: tf-pop .18s var(--tf-ease);
}
.tf-usermenu__name { margin: 0; padding: 10px 12px 8px; color: var(--tf-navy); font-weight: 900; border-bottom: 1px solid var(--tf-grey-light); }
.tf-usermenu__panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--tf-radius); color: var(--tf-navy); font-weight: 800; }
.tf-usermenu__panel a:hover { background: var(--tf-grey-light); color: var(--tf-red); }

.tf-burger { display: none; border: 0; background: var(--tf-grey-light); color: var(--tf-navy); width: 44px; height: 44px; border-radius: var(--tf-radius); cursor: pointer; place-items: center; }
.tf-burger .tf-icon { width: 20px; height: 20px; }
.tf-burger__close { display: none; }
.tf-burger[aria-expanded="true"] .tf-burger__open { display: none; }
.tf-burger[aria-expanded="true"] .tf-burger__close { display: block; }

@media (max-width: 960px) {
	.tf-burger { display: grid; }
	.tf-nav {
		position: fixed; inset: var(--tf-header-h) 0 auto 0; z-index: 999;
		background: #fff; box-shadow: 0 20px 30px rgba(26, 28, 42, .12);
		max-height: 0; overflow: hidden; transition: max-height .35s var(--tf-ease);
	}
	.admin-bar .tf-nav { top: calc(var(--tf-header-h) + 46px); }
	.tf-nav.is-open { max-height: 80vh; overflow-y: auto; }
	.tf-menu { flex-direction: column; align-items: stretch; width: 100%; padding: 10px var(--tf-gutter) 20px; gap: 0; }
	.tf-menu a { padding: 14px 10px; font-size: 18px; border-bottom: 1px solid var(--tf-grey-light); }
	.tf-menu > li > a::after { display: none; }
	.tf-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
	.tf-header__logo img { max-height: 52px; }
	.tf-account .tf-btn span { display: none; }
	.tf-account .tf-btn { padding: 12px; }
	.tf-account .tf-btn .tf-icon { width: 18px; height: 18px; }
}

/* ==========================================================================
   Content / blocks
   ========================================================================== */
.tf-main { display: block; min-height: 50vh; }
.tf-content { padding-block: var(--tf-body-top) var(--tf-body-bottom); }
.tf-content--full { padding-block: 0; }
.tf-content > *:first-child { margin-top: 0; }
.tf-content--full > .alignfull:first-child { margin-top: 0; }
.tf-content--full > .alignfull { margin-block: 0; }
.tf-content--full > .alignfull + .alignfull { margin-top: 0; }

.tf-content :where(ul, ol) { padding-left: 1.4em; }
.tf-content li { margin-bottom: .35em; }
.tf-content li::marker { color: var(--tf-red); }
.tf-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 16px; }
.tf-content th, .tf-content td { border: 1px solid var(--tf-grey-light); padding: 10px 14px; text-align: left; vertical-align: top; }
.tf-content thead th, .tf-content tr:first-child th { background: var(--tf-grey-light); color: var(--tf-navy); }
.tf-content th :where(h1, h2, h3, h4, h5, h6) { margin: 0; font-size: 17px; color: var(--tf-navy); }
.tf-content tbody tr:nth-child(even) td { background: #F7F7F8; }
.tf-content .wp-block-table, .tf-content .mce-table-wrap { overflow-x: auto; }
@media (max-width: 700px) {
	.tf-content table { display: block; overflow-x: auto; white-space: nowrap; }
}
.tf-content iframe { max-width: 100%; border: 0; border-radius: var(--tf-radius-lg); }
.tf-content audio, .wp-audio-shortcode { width: 100%; }
.tf-content .mejs-container { border-radius: var(--tf-radius-lg); overflow: hidden; }
.tf-content .mejs-container, .tf-content .mejs-container .mejs-controls { background: var(--tf-navy) !important; }

.tf-post-icon { display: flex; justify-content: center; margin: 10px 0; color: var(--tf-navy); }
.tf-post-icon .tf-icon { width: 46px; height: 46px; }

.wp-block-separator { border: 0; border-top: 1px solid var(--tf-grey-light); margin-block: 30px; }
.wp-block-separator.has-background:not(.is-style-dots) { height: 1px; border: 0; }
.wp-block-separator.is-style-tf-accent { width: 30%; max-width: 160px; height: 4px !important; border-radius: 2px; margin: 18px 0 22px !important; background-color: var(--tf-red); opacity: 1; }
.has-text-align-center + .wp-block-separator.is-style-tf-accent { margin-inline: auto !important; }

.is-style-tf-eyebrow {
	color: var(--tf-red); font-size: 16px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px;
}
.wp-block-group.is-style-tf-card { border: 1px solid var(--tf-grey-light); border-radius: var(--tf-radius-lg); padding: 30px; background: #fff; }
.wp-block-image.is-style-tf-zoom { overflow: hidden; border-radius: var(--tf-radius-lg); }
.wp-block-image.is-style-tf-zoom img { transition: transform .6s var(--tf-ease); }
.wp-block-image.is-style-tf-zoom:hover img { transform: scale(1.06); }

/* Palette colors (fallback for older content) */
.has-navy-color { color: var(--tf-navy) !important; }
.has-red-color { color: var(--tf-red) !important; }
.has-white-color { color: #fff !important; }
.has-navy-background-color { background-color: var(--tf-navy) !important; }
.has-grey-light-background-color { background-color: var(--tf-grey-light) !important; }

/* Section heading (eyebrow + title + text) */
.tf-section-head { text-align: center; margin-bottom: 40px; }
.tf-section-head .wp-block-heading { margin: 0 0 14px; }
.tf-section-head p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Home sections
   ========================================================================== */
.tf-hero { padding-block: clamp(40px, 6vw, 80px); overflow: hidden; position: relative; }
.tf-hero::before {
	content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
	right: -160px; top: -200px; background: radial-gradient(circle, rgba(199, 8, 7, .22), rgba(199, 8, 7, 0) 70%);
	pointer-events: none;
}
.tf-hero .wp-block-heading { line-height: 1.08; letter-spacing: -1px; margin-bottom: 0; }
.tf-hero .wp-block-columns { gap: clamp(20px, 4vw, 60px); position: relative; }
.tf-hero__img img { width: 100%; }
.tf-hero__buttons { margin-top: 10px; }

.tf-about-intro .wp-block-column p { margin-bottom: .9em; }
.tf-about-intro__photo img { width: 100%; border-radius: var(--tf-radius-lg); }
.tf-signature { margin-top: 18px; padding: 14px 18px; border-radius: var(--tf-radius); background: var(--tf-grey-light); }
.tf-signature .wp-block-heading { margin: 0; }
.tf-signature .wp-block-heading a { color: var(--tf-navy); }
.tf-signature .wp-block-heading a:hover { color: var(--tf-red); }
.tf-signature p { margin: 0; letter-spacing: 0; text-transform: none; }

.tf-distance .wp-block-image img { width: 100%; }

.tf-features { gap: 24px; }
.tf-feature {
	background: #fff; border: 1px solid var(--tf-grey-light); border-radius: var(--tf-radius-lg);
	padding: 34px 22px 28px; transition: transform .3s var(--tf-ease), box-shadow .3s, border-color .3s;
}
.tf-feature:hover { transform: translateY(-6px); box-shadow: var(--tf-shadow-hover); border-color: transparent; }
.tf-feature .wp-block-heading { margin: 10px 0 8px; }
.tf-feature__icon img { transition: transform .4s var(--tf-ease); }
.tf-feature:hover .tf-feature__icon img { transform: scale(1.1) rotate(-4deg); }
.tf-feature p { min-height: 4.8em; }

.tf-about-hero .wp-block-heading { letter-spacing: -.5px; }
.tf-video video { width: 100%; border-radius: var(--tf-radius-lg); box-shadow: var(--tf-shadow); background: #000; }
.tf-about-text { padding-bottom: 10px; }

/* ==========================================================================
   Course and post grids
   ========================================================================== */
.tf-grid { display: grid; gap: 30px; grid-template-columns: repeat(var(--tf-cols, 3), minmax(0, 1fr)); }
.tf-cols-1 { --tf-cols: 1; }
.tf-cols-2 { --tf-cols: 2; }
.tf-cols-3 { --tf-cols: 3; }
.tf-cols-4 { --tf-cols: 4; }
@media (max-width: 1024px) { .tf-cols-3, .tf-cols-4 { --tf-cols: 2; } }
@media (max-width: 640px) { .tf-grid { --tf-cols: 1 !important; gap: 22px; } }

.tf-card {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--tf-grey-light); border-radius: var(--tf-radius);
	overflow: hidden; transition: transform .3s var(--tf-ease), box-shadow .3s;
}
.tf-card:hover { transform: translateY(-6px); box-shadow: var(--tf-shadow-hover); }
.tf-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tf-grey-light); }
.tf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--tf-ease); }
.tf-card:hover .tf-card__media img { transform: scale(1.08); }
.tf-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--tf-grey-mid); }
.tf-card__placeholder .tf-icon { width: 56px; height: 56px; }
.tf-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.tf-card__date { margin: 0 0 6px; font-size: 16px; color: var(--tf-grey-dark); font-weight: 800; }
.tf-card__title { margin: 0 0 8px; font-size: 22px; font-weight: 900; letter-spacing: -.5px; line-height: 1.2; }
.tf-card__title a { color: var(--tf-red); }
.tf-card__title a:hover { color: var(--tf-navy); }
.tf-card__excerpt { margin: 0 0 20px; color: var(--tf-text); }
.tf-card__btn { margin-top: auto; align-self: flex-start; }

.tf-search { display: flex; max-width: 560px; margin: 0 auto 36px; border: 1px solid var(--tf-grey-mid); border-radius: var(--tf-radius-lg); overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s; }
.tf-search:focus-within { border-color: var(--tf-navy); box-shadow: 0 0 0 3px rgba(26, 28, 42, .12); }
.tf-search input { flex: 1; border: 0; padding: 13px 18px; font: inherit; font-size: 16px; color: var(--tf-navy); background: transparent; min-width: 0; }
.tf-search input:focus { outline: none; }
.tf-search button { border: 0; background: var(--tf-navy); color: #fff; width: 54px; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.tf-search button:hover { background: var(--tf-red); }
.tf-search .tf-icon { width: 18px; height: 18px; }

.tf-pagination { margin-top: 40px; }
.tf-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tf-pagination a, .tf-pagination span {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
	border-radius: var(--tf-radius); background: var(--tf-grey-light); color: var(--tf-navy); font-weight: 900;
}
.tf-pagination a:hover { background: var(--tf-navy); color: #fff; }
.tf-pagination .current { background: var(--tf-red); color: #fff; }
.tf-pagination .tf-icon { width: 14px; height: 14px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.tf-testimonials { position: relative; --tf-gap: 30px; }
.tf-testimonials__track {
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--tf-per-view, 2) - 1) * var(--tf-gap)) / var(--tf-per-view, 2));
	gap: var(--tf-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 6px 2px 30px; scrollbar-width: none;
}
.tf-testimonials__track::-webkit-scrollbar { display: none; }
@media (max-width: 800px) { .tf-testimonials__track { grid-auto-columns: 100%; } }
.tf-testimonial { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.tf-testimonial__bubble {
	position: relative; margin: 0 0 26px; padding: 28px 28px 24px;
	background: #fff; border: 1px solid var(--tf-grey-light); border-radius: var(--tf-radius);
	font-size: 16px; font-weight: 700; flex: 1; transition: box-shadow .3s, border-color .3s;
}
.tf-testimonial__bubble::before {
	content: ""; position: absolute; top: 18px; right: 22px; width: 34px; height: 34px; opacity: .12; background: var(--tf-red);
	-webkit-mask: url("assets/icons/quote-left.svg") center / contain no-repeat;
	mask: url("assets/icons/quote-left.svg") center / contain no-repeat;
}
.tf-testimonial__bubble::after {
	content: ""; position: absolute; left: 34px; bottom: -9px; width: 16px; height: 16px;
	background: #fff; border-right: 1px solid var(--tf-grey-light); border-bottom: 1px solid var(--tf-grey-light);
	transform: rotate(45deg);
}
.tf-testimonial:hover .tf-testimonial__bubble { box-shadow: var(--tf-shadow); border-color: transparent; }
.tf-testimonial__bubble p:last-child { margin-bottom: 0; }
.tf-testimonial__author { display: flex; align-items: center; gap: 14px; padding-left: 18px; }
.tf-testimonial__author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(26, 28, 42, .15); }
.tf-testimonial__author > span { display: flex; flex-direction: column; line-height: 1.3; }
.tf-testimonial__name { color: var(--tf-red); font-size: 16px; font-weight: 900; }
.tf-testimonial__role { color: var(--tf-navy); font-size: 16px; font-weight: 900; }
.tf-testimonials__nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.tf-testimonials__arrow { border: 0; background: var(--tf-grey-light); color: var(--tf-navy); width: 40px; height: 40px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.tf-testimonials__arrow:hover { background: var(--tf-navy); color: #fff; }
.tf-testimonials__arrow .tf-icon { width: 14px; height: 14px; }
.tf-testimonials__dots { display: flex; gap: 8px; }
.tf-testimonials__dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; padding: 0; background: var(--tf-grey-dark); cursor: pointer; transition: width .3s, background .3s; }
.tf-testimonials__dots button[aria-selected="true"] { width: 28px; background: var(--tf-red); }

/* ==========================================================================
   Title band, posts and sidebar
   ========================================================================== */

.tf-single { max-width: calc(var(--tf-wide) + 2 * var(--tf-gutter)); margin: 0 auto; padding: var(--tf-body-top) var(--tf-gutter) var(--tf-body-bottom); }
.tf-single--sidebar { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 50px; }
@media (max-width: 960px) { .tf-single--sidebar { grid-template-columns: 1fr; } }
.tf-single__main { min-width: 0; }
.tf-single__main .tf-content { padding: 0; }
.tf-single__main .tf-content > * { max-width: none; }
.tf-single__image { margin: 0 0 24px; }
.tf-single__image img { width: 100%; border-radius: var(--tf-radius-lg); }
.tf-single__excerpt { color: var(--tf-navy); font-size: 18px; font-weight: 900; margin: 0; }

/* Blog sidebar: fixed while reading, always fits the screen, button always visible */
.tf-sidebar {
	position: sticky; top: calc(var(--tf-header-h) + 24px); align-self: start;
	display: flex; flex-direction: column; max-height: calc(100vh - var(--tf-header-h) - 48px);
}
.admin-bar .tf-sidebar { top: calc(var(--tf-header-h) + 56px); max-height: calc(100vh - var(--tf-header-h) - 80px); }
.tf-sidebar__title { color: var(--tf-navy); font-size: 20px; font-weight: 900; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.tf-sidebar__title::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--tf-red); }
.tf-sidebar__list { list-style: none; margin: 0 0 16px; padding: 0; overflow: hidden; flex: 0 1 auto; min-height: 0; }
.tf-sidebar__list li { border-bottom: 1px solid var(--tf-grey-light); }
.tf-sidebar__list li:nth-child(n+7) { display: none; }
.js .tf-sidebar__list[data-shuffle] li { display: none; }
.js .tf-sidebar__list[data-shuffle] li.is-shown { display: block; animation: tf-rise .5s var(--tf-ease) both; }
.tf-sidebar__list a { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--tf-navy); font-weight: 900; line-height: 1.3; transition: color .2s, transform .25s var(--tf-ease); }
.tf-sidebar__list a:hover { color: var(--tf-red); transform: translateX(4px); }
.tf-sidebar__list img, .tf-sidebar__ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.tf-sidebar__ph { display: grid; place-items: center; background: var(--tf-grey-light); color: var(--tf-grey-mid); }
.tf-sidebar__ph .tf-icon { width: 22px; height: 22px; }
.tf-sidebar .tf-btn { flex-shrink: 0; }
@media (max-width: 960px) { .tf-sidebar { position: static; max-height: none; } }

/* Previous / next post: clean, no grey boxes */
.tf-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--tf-grey-light); }
.tf-postnav__link { display: flex; align-items: center; gap: 16px; color: var(--tf-navy); }
.tf-postnav__next { grid-column: 2; justify-content: flex-end; text-align: right; }
.tf-postnav__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tf-postnav__label { color: var(--tf-grey-dark); font-size: 16px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.tf-postnav__link strong { font-size: 18px; font-weight: 900; line-height: 1.3; transition: color .2s; }
.tf-postnav__arrow { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 6px; border: 2px solid var(--tf-grey-light); color: var(--tf-red); transition: border-color .25s, background .25s, color .25s, transform .3s var(--tf-ease); }
.tf-postnav__arrow .tf-icon { width: 14px; height: 14px; }
.tf-postnav__link:hover strong { color: var(--tf-red); }
.tf-postnav__link:hover .tf-postnav__arrow { border-color: var(--tf-red); background: var(--tf-red); color: #fff; }
.tf-postnav__prev:hover .tf-postnav__arrow { transform: translateX(-4px); }
.tf-postnav__next:hover .tf-postnav__arrow { transform: translateX(4px); }
@media (max-width: 600px) { .tf-postnav { grid-template-columns: 1fr; } .tf-postnav__next { grid-column: 1; } }

.tf-comments { margin-top: 40px; }
.tf-comments textarea, .tf-comments input[type="text"], .tf-comments input[type="email"], .tf-comments input[type="url"] {
	width: 100%; padding: 12px 14px; border: 1px solid var(--tf-grey-mid); border-radius: var(--tf-radius-lg); font: inherit;
}

.tf-404 { text-align: center; max-width: 720px; }
.tf-404__code { font-size: clamp(90px, 18vw, 160px); font-weight: 900; line-height: 1; color: var(--tf-grey-light); margin: 0; }
.tf-404__title { color: var(--tf-navy); }

/* ==========================================================================
   Footer
   ========================================================================== */
.tf-footer { background: var(--tf-navy); color: #fff; margin-top: 0; }
.tf-content--full + .tf-footer, .tf-main:has(.tf-content--full) + .tf-footer { margin-top: 0; }
.tf-footer__inner { max-width: calc(var(--tf-wide) + 2 * var(--tf-gutter)); margin: 0 auto; padding: 60px var(--tf-gutter) 30px; }
.tf-footer__cols { display: grid; grid-template-columns: 3fr 2fr 2fr 3fr; gap: 30px; }
@media (max-width: 900px) { .tf-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tf-footer__cols { grid-template-columns: 1fr; } }
.tf-footer__title { color: var(--tf-grey-light); font-size: 18px; font-weight: 900; margin: 0 0 16px; }
.tf-footer__col p { color: #fff; font-size: 16px; font-weight: 700; margin: 0; }
.tf-footer-list, .tf-footer-contact { list-style: none; margin: 0; padding: 0; }
.tf-footer-list li, .tf-footer-contact li { margin-bottom: 8px; }
.tf-footer-list a, .tf-footer-contact a { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; transition: color .2s, transform .2s; }
.tf-footer-list a::before { content: ""; width: 6px; height: 6px; background: currentColor; flex-shrink: 0; }
.tf-footer-list a:hover, .tf-footer-contact a:hover { color: var(--tf-red); transform: translateX(3px); }
.tf-footer-contact .tf-icon { width: 20px; height: 20px; }
.tf-footer-contact span { word-break: break-word; }
.tf-footer__copy { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(234, 235, 236, .15); font-size: 16px; font-weight: 900; text-align: center; color: #fff; }

/* ==========================================================================
   Floating buttons, login and animations
   ========================================================================== */
.tf-totop {
	position: fixed; right: 20px; z-index: 900; border: 0; cursor: pointer;
	display: grid; place-items: center; color: #fff; transition: transform .25s var(--tf-ease), background .2s, opacity .3s;
}
.tf-totop { bottom: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--tf-red); }
.tf-totop .tf-icon { width: 15px; height: 15px; }
.tf-totop:hover { transform: translateY(-3px); }

.tf-login { border: 0; padding: 0; border-radius: 10px; width: min(440px, calc(100% - 30px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.tf-login::backdrop { background: rgba(26, 28, 42, .7); backdrop-filter: blur(3px); }
.tf-login[open] { animation: tf-pop .25s var(--tf-ease); }
.tf-login__form { position: relative; padding: 34px 30px 28px; display: flex; flex-direction: column; gap: 6px; }
.tf-login__close { position: absolute; top: 12px; right: 12px; border: 0; background: var(--tf-grey-light); width: 36px; height: 36px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; color: var(--tf-navy); }
.tf-login__close:hover { background: var(--tf-red); color: #fff; }
.tf-login__close .tf-icon { width: 14px; height: 14px; }
.tf-login__logo img { max-height: 70px; width: auto; margin: 0 auto 6px; }
.tf-login__title { text-align: center; color: var(--tf-navy); font-size: 26px; margin: 0 0 10px; }
.tf-login label { color: var(--tf-navy); font-weight: 800; margin-top: 8px; }
.tf-login input[type="text"], .tf-login input[type="password"] {
	width: 100%; padding: 12px 15px; border: 1px solid var(--tf-grey-mid); border-radius: var(--tf-radius-lg);
	font: inherit; font-size: 16px; color: var(--tf-navy); transition: border-color .2s, box-shadow .2s;
}
.tf-login input:focus { outline: none; border-color: var(--tf-navy); box-shadow: 0 0 0 3px rgba(26, 28, 42, .12); }
.tf-login__pass { position: relative; }
.tf-login__pass input { padding-right: 70px; }
.tf-login__show { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--tf-red); font: inherit; font-weight: 900; cursor: pointer; padding: 6px; }
.tf-login__remember { display: flex; align-items: center; gap: 8px; font-weight: 700 !important; }
.tf-login__remember input { width: 18px; height: 18px; accent-color: var(--tf-navy); }
.tf-login__submit { margin-top: 12px; width: 100%; padding: 14px; }
.tf-login__submit[disabled] { opacity: .7; cursor: wait; }
.tf-login__lost { text-align: center; margin-top: 10px; color: var(--tf-navy); }
.tf-login__lost:hover { color: var(--tf-red); }
.tf-login__error { margin: 0 0 6px; padding: 10px 14px; border-radius: var(--tf-radius); background: #FBEAEA; color: var(--tf-red); font-weight: 800; }

@keyframes tf-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tf-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes tf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.tf-float img { animation: tf-float 6s ease-in-out infinite; }
.js .tf-reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s var(--tf-ease), transform .45s var(--tf-ease); }
.js .tf-reveal.is-visible { opacity: 1; transform: none; }
.js .tf-grid > .tf-card { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--tf-ease), transform .4s var(--tf-ease), box-shadow .3s; }
.js .tf-grid.is-visible > .tf-card { opacity: 1; transform: none; }
.js .tf-grid.is-visible > .tf-card:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .tf-reveal, .js .tf-grid > .tf-card { opacity: 1; transform: none; }
}

@media print {
	.tf-header, .tf-footer, .tf-totop, .tf-progressbar { display: none !important; }
}

/* Login inside a page */
.tf-login-inline { max-width: 440px; margin: 30px auto; padding: 30px; border: 1px solid var(--tf-grey-light); border-radius: 10px; box-shadow: var(--tf-shadow); }
.tf-login-inline label { display: block; color: var(--tf-navy); font-weight: 800; margin-bottom: 4px; }
.tf-login-inline input[type="text"], .tf-login-inline input[type="password"] { width: 100%; padding: 12px 15px; border: 1px solid var(--tf-grey-mid); border-radius: var(--tf-radius-lg); font: inherit; font-size: 16px; }
.tf-login-inline .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.tf-login-inline .login-submit input { width: 100%; }

/* PDF inside the page */
.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wp-block-file__embed { border: 1px solid var(--tf-grey-light); border-radius: var(--tf-radius-lg); margin-bottom: 6px; }
.wp-block-file .wp-block-file__button { padding: 10px 20px; font-size: 16px; }

/* Simple notice inside content */
.tf-notice { display: flex; flex-direction: column; gap: 4px; margin: 24px 0; padding: 18px 22px; border-radius: var(--tf-radius); background: var(--tf-grey-light); color: var(--tf-navy); }
.tf-notice strong { font-size: 18px; }


/* =========================================================================
   Typography rules: titles 900, subtitles 800, body 700 #333 — and no underlined links
   ========================================================================= */
body, .tf-content, .tf-content p, .tf-content li, .tf-content td { color: #333333; font-weight: 700; }
h1, h2, .tf-titlebar__title, .tf-card__title, .tf-section-head .wp-block-heading, .tf-footer__title, .tf-sidebar__title { font-weight: 900; }
h3, h4, h5, h6, .is-style-tf-eyebrow, .tf-titlebar__meta, .tf-single__excerpt, .tf-testimonial__role, .tf-card__date { font-weight: 800; }
.tf-content h3, .tf-content h4, .tf-content h5, .tf-content h6 { font-weight: 800; }
a, a:hover, a:focus, a:visited, .tf-content a, .woocommerce a, .wp-block-button__link { text-decoration: none !important; }
.tf-content a { border-bottom: 0; }

/* Blog search: small and discreet, on the right */
.tf-search.tf-search--compact { max-width: 280px; margin: 0 0 26px auto; border-radius: 6px; border-color: var(--tf-grey-light); box-shadow: none; }
.tf-search.tf-search--compact input { padding: 8px 4px 8px 16px; font-size: 16px; }
.tf-search.tf-search--compact button { background: transparent; color: var(--tf-navy); width: 42px; }
.tf-search.tf-search--compact button:hover { background: transparent; color: var(--tf-red); }
.tf-search.tf-search--compact:focus-within { border-color: var(--tf-grey-mid); box-shadow: none; }
@media (max-width: 600px) { .tf-search.tf-search--compact { max-width: none; margin-left: 0; } }

/* Blog search row */
.tf-search-row { display: flex; justify-content: flex-end; width: 100%; max-width: var(--wp--style--global--wide-size, 1200px); margin-left: auto !important; margin-right: auto !important; }
.tf-search-row .tf-search--compact { margin: 0 0 26px !important; width: 100%; }


/* =========================================================================
   One frame for every page
   Grey band on top (same height, same type), then the content in the
   1200px container with the same space above and below on every page.
   ========================================================================= */
.tf-titlebar {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--tf-grey-light); padding: var(--tf-band-pad) var(--tf-gutter); text-align: center;
}
.tf-titlebar::before, .tf-titlebar::after {
	content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
}
.tf-titlebar::before { width: 320px; height: 320px; right: -100px; top: -140px; border: 44px solid rgba(199, 8, 7, .07); animation: tf-drift 14s ease-in-out infinite alternate; }
.tf-titlebar::after { width: 160px; height: 160px; left: -60px; bottom: -80px; border: 26px solid rgba(26, 28, 42, .05); animation: tf-drift 18s ease-in-out infinite alternate-reverse; }
.tf-titlebar__inner { max-width: var(--tf-wide); margin: 0 auto; }
.tf-titlebar__eyebrow { margin: 0 0 12px; color: var(--tf-red); font-size: 16px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.tf-titlebar__title {
	margin: 0 auto; max-width: 900px; color: var(--tf-navy) !important;
	font-size: clamp(32px, 4.4vw, 48px) !important; font-weight: 900; line-height: 1.15; letter-spacing: -.5px;
}
.tf-titlebar__title::after { content: ""; display: block; width: 64px; height: 4px; margin: 18px auto 0; border-radius: 2px; background: var(--tf-red); transform-origin: center; animation: tf-grow .9s .2s var(--tf-ease) both; }
.tf-titlebar__meta { max-width: 720px; margin: 16px auto 0 !important; color: var(--tf-text); font-size: 18px; font-weight: 800; }
.tf-titlebar__meta p { margin: 0; }
.tf-titlebar > *, .tf-pagehead > * { animation: tf-rise .7s var(--tf-ease) both; }
.tf-titlebar > *:nth-child(2), .tf-pagehead > *:nth-child(2) { animation-delay: .08s; }
.tf-titlebar > *:nth-child(3), .tf-pagehead > *:nth-child(3) { animation-delay: .16s; }

/* Band inside the pages built with blocks (Courses, Blog, About) */
.tf-content--full > .tf-pagehead { margin-top: 0 !important; margin-bottom: 0 !important; padding-block: var(--tf-band-pad); }
.tf-pagehead + .tf-section { padding-top: var(--tf-body-top); }
.tf-about-hero { text-align: left; }
.tf-about-hero .tf-titlebar__title { margin-left: 0; }
.tf-about-hero .tf-titlebar__title::after { margin-left: 0; }
.tf-about-hero .tf-titlebar__meta { margin-left: 0 !important; }
.tf-about-hero .wp-block-buttons { margin-top: 26px; }

/* Content area */
.tf-body { padding-block: var(--tf-body-top) var(--tf-body-bottom); }
.tf-page--bar .tf-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: var(--tf-wide); }
.tf-page--dashboard .tf-content { padding-top: 0; }
.tf-404 { text-align: center; }
.tf-404__code { margin-bottom: 10px; }

/* =========================================================================
   Buttons: arrow, shine, ghost (on navy) and outline (on white)
   ========================================================================= */
.tf-btn-arrow .wp-block-button__link::after {
	content: ""; width: 16px; height: 16px; background: currentColor; transition: transform .3s var(--tf-ease);
	-webkit-mask: url("assets/icons/arrow-right.svg") center / contain no-repeat; mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
}
.tf-btn-arrow .wp-block-button__link:hover::after { transform: translateX(5px); }
.tf-btn-shine .wp-block-button__link { position: relative; overflow: hidden; }
.tf-btn-shine .wp-block-button__link::before {
	content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
	background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg);
	animation: tf-shine 4.5s 1.5s ease-in-out infinite;
}
.wp-block-button.is-style-tf-ghost .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.wp-block-button.is-style-tf-ghost .wp-block-button__link:hover { background: #fff; color: var(--tf-navy); box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.wp-block-button.is-style-tf-outline .wp-block-button__link { background: transparent; color: var(--tf-navy); box-shadow: inset 0 0 0 2px var(--tf-navy); }
.wp-block-button.is-style-tf-outline .wp-block-button__link:hover { background: var(--tf-navy); color: #fff; box-shadow: 0 8px 18px rgba(26, 28, 42, .2); }
.wp-block-buttons { gap: 14px; }

/* =========================================================================
   Icons (any block with a tf-ic-* class gets a red icon in front)
   ========================================================================= */
[class*="tf-ic-"]::before {
	content: ""; flex-shrink: 0; width: 18px; height: 18px; background: var(--tf-red);
	-webkit-mask: var(--tf-ic) center / contain no-repeat; mask: var(--tf-ic) center / contain no-repeat;
}
.tf-ic-school { --tf-ic: url("assets/icons/school.svg"); }
.tf-ic-trophy { --tf-ic: url("assets/icons/trophy.svg"); }
.tf-ic-gamepad { --tf-ic: url("assets/icons/gamepad.svg"); }
.tf-ic-clock { --tf-ic: url("assets/icons/clock.svg"); }
.tf-ic-graduation-cap { --tf-ic: url("assets/icons/graduation-cap.svg"); }
.tf-ic-certificate { --tf-ic: url("assets/icons/certificate.svg"); }
.tf-ic-earth-americas { --tf-ic: url("assets/icons/earth-americas.svg"); }
.tf-ic-laptop { --tf-ic: url("assets/icons/laptop.svg"); }
.tf-ic-mobile-screen-button { --tf-ic: url("assets/icons/mobile-screen-button.svg"); }
.tf-ic-chart-line { --tf-ic: url("assets/icons/chart-line.svg"); }
.tf-ic-credit-card { --tf-ic: url("assets/icons/credit-card.svg"); }
.tf-ic-medal { --tf-ic: url("assets/icons/medal.svg"); }
.tf-ic-rocket { --tf-ic: url("assets/icons/rocket.svg"); }
.tf-ic-circle-check { --tf-ic: url("assets/icons/circle-check.svg"); }
.tf-ic-book-open { --tf-ic: url("assets/icons/book-open.svg"); }
.tf-ic-star { --tf-ic: url("assets/icons/star.svg"); }
.tf-ic-headset { --tf-ic: url("assets/icons/headset.svg"); }
.tf-ic-comments { --tf-ic: url("assets/icons/comments.svg"); }
.tf-ic-person-chalkboard { --tf-ic: url("assets/icons/person-chalkboard.svg"); }
.tf-ic-list-check { --tf-ic: url("assets/icons/list-check.svg"); }

/* Eyebrow with a small red line */
.is-style-tf-eyebrow { display: flex; align-items: center; gap: 12px; }
.is-style-tf-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; flex-shrink: 0; }
.is-style-tf-eyebrow.has-text-align-center { justify-content: center; }
.is-style-tf-eyebrow.has-text-align-center::after { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; flex-shrink: 0; }
.tf-section-head { margin-bottom: 48px; }

/* Chips (hero) */
.tf-chips { list-style: none; margin: 30px 0 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.tf-chips li { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 12px; border-radius: 6px; font-size: 16px; font-weight: 800; line-height: 1.2; }
.tf-chips li .tf-icon, .tf-chips li::before { width: 14px !important; height: 14px !important; }
.tf-chips--dark li { background: transparent; border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .9); transition: background .25s, transform .25s var(--tf-ease); }
.tf-chips--dark li:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

/* Check list with icons in circles */
.tf-checklist { list-style: none; margin: 24px 0 30px !important; padding: 0 !important; display: grid; gap: 14px; }
.tf-checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
@media (max-width: 600px) { .tf-checklist--2 { grid-template-columns: 1fr; } }
.tf-checklist li { position: relative; display: flex; align-items: center; min-height: 44px; padding-left: 58px; margin: 0; color: var(--tf-navy); font-weight: 800; line-height: 1.35; }
.tf-checklist li::after { content: ""; position: absolute; left: 0; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(26, 28, 42, .08); transition: transform .3s var(--tf-ease); }
.tf-checklist li::before { position: absolute; left: 13px; top: 50%; margin-top: -9px; z-index: 1; }
.tf-section:not(.has-background) .tf-checklist li::after { background: var(--tf-grey-light); box-shadow: none; }
.tf-checklist li:hover::after { transform: scale(1.12); }

/* =========================================================================
   Home: hero
   ========================================================================= */
.tf-hero { padding-block: clamp(56px, 7vw, 100px); isolation: isolate; }
.tf-hero::before { animation: tf-drift 12s ease-in-out infinite alternate; }
.tf-hero::after {
	content: ""; position: absolute; z-index: -1; left: -120px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%;
	border: 50px solid rgba(255, 255, 255, .04); animation: tf-drift 16s ease-in-out infinite alternate-reverse; pointer-events: none;
}
.tf-hero .wp-block-heading { margin-bottom: 0; }
.tf-hero__eyebrow { color: #fff !important; margin-bottom: 18px; }
.tf-hero__eyebrow::before { background: var(--tf-red); }
.tf-hero__lead { max-width: 540px; margin-top: 22px !important; opacity: .94; font-size: clamp(17px, 1.5vw, 19px) !important; line-height: 1.6; }
.tf-hero__buttons { margin-top: 28px; }
.tf-hero__text > * { animation: tf-rise .8s var(--tf-ease) both; }
.tf-hero__text > *:nth-child(2) { animation-delay: .1s; }
.tf-hero__text > *:nth-child(3) { animation-delay: .2s; }
.tf-hero__text > *:nth-child(4) { animation-delay: .3s; }
.tf-hero__text > *:nth-child(5) { animation-delay: .4s; }
.tf-hero__text > *:nth-child(6) { animation-delay: .5s; }
.tf-hero__media { position: relative; animation: tf-rise 1s .3s var(--tf-ease) both; }
.tf-hero__media::before {
	content: ""; position: absolute; left: 7%; width: 86%; aspect-ratio: 1; top: 50%; margin-top: -43%; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .18);
	animation: tf-spin 40s linear infinite; pointer-events: none;
}
.tf-hero__img { position: relative; }

/* Rotating words in the hero title */
.tf-rotate { display: block; position: relative; color: #fff; }
.tf-rotate__word { display: inline-block; position: relative; }
.tf-rotate__word::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; border-radius: 4px; background: var(--tf-red); z-index: -1; transform-origin: left; animation: tf-grow .6s .25s var(--tf-ease) both; }
.tf-rotate__word.is-in { animation: tf-word-in .55s var(--tf-ease) both; }
.tf-rotate__word.is-out { animation: tf-word-out .4s ease-in both; }

/* Moving ribbon of topics */
.tf-content--full > .tf-marquee-band { padding: 0; border-bottom: 1px solid var(--tf-grey-light); background: #fff; }
.tf-marquee { max-width: none !important; margin: 0 !important; padding: 14px 0; overflow: hidden; white-space: nowrap; text-align: left !important; }
.tf-marquee__track { display: inline-flex; animation: tf-marquee 45s linear infinite; will-change: transform; }
.tf-marquee:hover .tf-marquee__track { animation-play-state: paused; }
.tf-marquee span { display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; color: var(--tf-navy); font-size: 16px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
.tf-marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tf-red); opacity: .6; }

/* Photo with ring and floating badge */
.tf-split { gap: clamp(30px, 5vw, 70px) !important; }
.tf-photo { position: relative; isolation: isolate; }
.tf-photo::before {
	content: ""; position: absolute; z-index: -1; width: 72%; aspect-ratio: 1; top: -6%; left: -8%; border-radius: 50%;
	border: 22px solid rgba(199, 8, 7, .08); animation: tf-drift 12s ease-in-out infinite alternate;
}
.tf-photo .wp-block-image img { border-radius: 10px; }
.tf-photo__badge {
	position: absolute; right: -14px; bottom: 30px; z-index: 2; margin: 0 !important;
	display: flex; flex-direction: column; padding: 14px 20px 14px 64px; border-radius: 10px; background: #fff;
	box-shadow: var(--tf-shadow-hover); line-height: 1.3; animation: tf-float 6s ease-in-out infinite;
}
.tf-photo__badge::before { position: absolute; left: 20px; top: 50%; width: 28px !important; height: 28px !important; margin-top: -14px; }
.tf-photo__badge strong { color: var(--tf-navy); font-size: 16px; font-weight: 900; }
.tf-photo__badge span { color: var(--tf-text); font-size: 16px; font-weight: 700; }
@media (max-width: 781px) { .tf-photo__badge { right: 12px; bottom: 16px; } }

/* =========================================================================
   How it works (3 steps)
   ========================================================================= */
.tf-steps { position: relative; gap: 30px !important; }
.tf-steps::before {
	content: ""; position: absolute; top: 48px; left: 17%; right: 17%; height: 3px; z-index: 0;
	background: repeating-linear-gradient(90deg, var(--tf-red) 0 10px, transparent 10px 20px);
	transform: scaleX(0); transform-origin: left; transition: transform 1.6s .3s var(--tf-ease);
}
.tf-steps.is-visible::before { transform: scaleX(1); }
.tf-step { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.tf-step__icon { display: grid !important; place-items: center; width: 96px; height: 96px; margin: 0 auto 22px !important; border-radius: 50%; background: #fff; box-shadow: var(--tf-shadow); transition: transform .4s var(--tf-ease), box-shadow .3s; }
.tf-step:hover .tf-step__icon { transform: translateY(-6px) rotate(-6deg); box-shadow: var(--tf-shadow-hover); }
.tf-step__num {
	position: absolute; top: -4px; left: calc(50% + 24px); margin: 0 !important; width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center; background: var(--tf-red); color: #fff; font-size: 16px; font-weight: 900; line-height: 1; box-shadow: 0 6px 14px rgba(199, 8, 7, .3);
}
.tf-step .wp-block-heading { margin: 0 0 10px; }
.tf-step p:last-child { margin: 0; }
@media (max-width: 781px) { .tf-steps::before { display: none; } .tf-steps { gap: 44px !important; } }

/* Why study with me / credentials */
.tf-features .tf-feature { text-align: center; }
.tf-feature__icon { display: grid !important; place-items: center; width: 96px; height: 96px; margin: 0 auto 14px !important; border-radius: 50%; background: var(--tf-grey-light); transition: background .3s, transform .4s var(--tf-ease); }
.tf-feature:hover .tf-feature__icon { background: rgba(199, 8, 7, .1); transform: scale(1.06); }
.tf-feature p { min-height: 0; margin-bottom: 0; }
.tf-creds-section .tf-feature { border-color: transparent; }
.tf-creds + .tf-creds { margin-top: 30px; }
.js .tf-stagger.is-visible > .tf-feature:hover { transform: translateY(-6px); }

/* FAQ */
.tf-faq { gap: 20px !important; }
.tf-faq .wp-block-column { display: flex; flex-direction: column; gap: 16px; }
.tf-faq__item { margin: 0 !important; border: 1px solid var(--tf-grey-light); border-radius: 10px; background: #fff; transition: box-shadow .3s, border-color .3s; }
.tf-faq__item:hover, .tf-faq__item[open] { border-color: transparent; box-shadow: var(--tf-shadow); }
.tf-faq__item summary { position: relative; list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; color: var(--tf-navy); font-size: 17px; font-weight: 900; line-height: 1.35; }
.tf-faq__item summary::-webkit-details-marker { display: none; }
.tf-faq__item summary::after {
	content: ""; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
	background: var(--tf-grey-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5h2v14h-2zM5 11h14v2H5z' fill='%23C70807'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: transform .3s var(--tf-ease), background-color .3s;
}
.tf-faq__item[open] summary::after { transform: rotate(135deg); background-color: rgba(199, 8, 7, .1); }
.tf-faq__item > :not(summary) { margin: 0; padding: 0 22px 20px; }
.tf-faq__item[open] > :not(summary) { animation: tf-rise .4s var(--tf-ease) both; }

/* Call to action box */
.tf-cta {
	position: relative; overflow: hidden; isolation: isolate; text-align: center;
	background: var(--tf-grey-light); border-radius: 10px; padding: clamp(44px, 6vw, 76px) clamp(22px, 5vw, 60px);
}
.tf-cta::before, .tf-cta::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.tf-cta::before { width: 300px; height: 300px; right: -90px; top: -120px; border: 44px solid rgba(199, 8, 7, .07); animation: tf-drift 14s ease-in-out infinite alternate; }
.tf-cta::after { width: 200px; height: 200px; left: -70px; bottom: -90px; border: 30px solid rgba(26, 28, 42, .05); animation: tf-drift 18s ease-in-out infinite alternate-reverse; }
.tf-cta .wp-block-buttons { margin-top: 28px; }
.tf-cta .wp-block-heading { margin-bottom: 14px; }

/* Scroll progress line on top of the page */
.tf-progressbar { position: fixed; left: 0; top: 0; z-index: 1001; width: 100%; height: 3px; background: var(--tf-red); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.admin-bar .tf-progressbar { top: 32px; }

/* Staggered entrance for groups of items */
.js .tf-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--tf-ease), transform .4s var(--tf-ease), box-shadow .3s, border-color .3s; }
.js .tf-stagger.is-visible > * { opacity: 1; transform: none; }

@keyframes tf-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes tf-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tf-drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-24px, 18px) rotate(25deg); } }
@keyframes tf-spin { to { transform: rotate(360deg); } }
@keyframes tf-shine { 0% { left: -75%; } 30%, 100% { left: 130%; } }
@keyframes tf-marquee { to { transform: translateX(-50%); } }
@keyframes tf-word-in { from { opacity: 0; transform: translateY(.45em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tf-word-out { to { opacity: 0; transform: translateY(-.45em); filter: blur(4px); } }

@media (prefers-reduced-motion: reduce) {
	.js .tf-stagger > * { opacity: 1; transform: none; }
	.tf-steps::before { transform: none; }
	.tf-progressbar { display: none; }
}

/* Colours that the body-text rule above must not override */
.tf-content .is-style-tf-eyebrow, .tf-content .tf-titlebar__eyebrow { color: var(--tf-red); }
.tf-content .tf-hero__eyebrow { color: #fff; }
.tf-content .tf-step__num { color: #fff; }
.tf-content .tf-hero__lead { color: #fff; }
.tf-content .tf-marquee span { color: var(--tf-navy); }
.tf-titlebar__eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; }
.tf-titlebar__eyebrow::before, .tf-titlebar__eyebrow::after { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; flex-shrink: 0; }
.tf-about-hero .tf-titlebar__eyebrow { justify-content: flex-start; }
.tf-about-hero .tf-titlebar__eyebrow::after { display: none; }

/* Small phones: keep the header on one line */
@media (max-width: 600px) {
	.tf-header__inner { gap: 10px; }
	.tf-header__actions { gap: 6px; }
	.tf-account:has(.tf-usermenu) > .tf-btn { display: none; }
	.tf-header__logo img { max-height: 44px; }
	.tf-header__name { font-size: 19px; }
}

/* Titles that are links keep the title weight (links are 800 elsewhere). */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
.tf-card__title, .tf-card__title a, .tfl-mycourse__title a, .wp-block-post-title a, .wp-block-latest-posts__post-title { font-weight: 900 !important; }

/* =========================================================================
   Type standard for the whole site (one scale, always heavy titles)
   Body 17px · lead 18px · h4 18px · h3 20px · h2 24px · section 30px · page 36px
   Titles: weight 900. Navy titles, red key titles and accents, grey meta, near-black body.
   ========================================================================= */
:root { --tf-body: #1f1f24; --tf-meta: #6b6e78; }
body, .tf-content { color: var(--tf-body); }
body, .tf-content, .tf-content p, .tf-content li, .tf-content td { font-size: 17px; font-weight: 700; line-height: 1.7; }
.tf-chips li { font-size: 16px !important; line-height: 1.2 !important; }
.tf-chips--dark li { color: rgba(255, 255, 255, .92) !important; }
h1, h2, h3, h4, h5, h6, .tf-content h1, .tf-content h2, .tf-content h3, .tf-content h4, .tf-content h5, .tf-content h6 { font-weight: 900 !important; letter-spacing: -.2px; line-height: 1.25; }
.tf-content h1 { font-size: clamp(28px, 3vw, 36px); }
.tf-content h2 { font-size: clamp(21px, 2.2vw, 24px); }
.tf-content h3 { font-size: clamp(18px, 1.8vw, 20px); }
.tf-content h4, .tf-content h5, .tf-content h6 { font-size: 18px; }
.tf-titlebar__title { font-size: clamp(28px, 3.2vw, 36px) !important; }
.tf-section-head .wp-block-heading { font-size: clamp(24px, 2.6vw, 30px) !important; }
.tf-card__title { font-size: 20px; letter-spacing: -.2px; }
.tf-sidebar__title { font-size: 19px; }
.tf-postnav__link strong { font-size: 17px; }
.tf-titlebar__meta, .tf-card__date { color: var(--tf-meta); }
.is-style-tf-eyebrow, .tf-titlebar__eyebrow { font-size: 16px !important; font-weight: 900 !important; letter-spacing: 2px; }

/* Footer: tighter lines */
.tf-footer, .tf-footer p, .tf-footer li, .tf-footer a { line-height: 1.45 !important; }
.tf-footer__col p { margin: 0 0 6px !important; }
.tf-footer-list li, .tf-footer-contact li { margin-bottom: 5px !important; }
.tf-footer__title { margin-bottom: 12px !important; }
.tf-footer__copy { margin-top: 28px !important; padding-top: 16px !important; }

/* Home banner: big title and a larger photo */
.tf-hero h1.wp-block-heading, .tf-content .tf-hero h1.wp-block-heading { font-size: clamp(42px, 5.4vw, 70px) !important; line-height: 1.05 !important; letter-spacing: -1.2px; }
@media (min-width: 782px) {
	.tf-hero__cols > .tf-hero__text { flex-basis: 50% !important; }
	.tf-hero__cols > .tf-hero__media { flex-basis: 50% !important; }
	.tf-hero__img img { width: 118%; max-width: 118%; margin-left: -4%; }
}

/* Phones: nothing may push the page sideways */
html, body { overflow-x: clip; max-width: 100%; }

/* Student menu (photo): name + e-mail that always fit; on phones the panel spans the screen under the header */
.tf-usermenu__panel { max-width: min(320px, calc(100vw - 24px)); }
.tf-usermenu__name { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.tf-usermenu__name small { color: #6b6e78; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 960px) {
	.tf-usermenu { position: static; }
	/* The header is the panel's frame (its blur effect makes it so): the panel opens right below it. */
	.tf-usermenu__panel { position: fixed; left: 12px; right: 12px; top: calc(100% + 8px); max-width: none; min-width: 0; max-height: calc(100vh - 140px); overflow-y: auto; z-index: 1100; }
	.tf-usermenu__panel a { padding: 13px 12px; font-size: 17px; }
}
