/*
 * MyFxEdu Global Design System
 * Dark-mode-first, professional trading education site.
 */

/* Sitewide: prevent horizontal scroll (full-bleed 100vw + nested flex/grid) */
html {
	overflow-x: clip;
	max-width: 100%;
}
@supports not (overflow: clip) {
	html {
		overflow-x: hidden;
	}
}
#primary,
.site-main,
.content-area,
.inside-article {
	min-width: 0;
}

/* WordPress embeds / tables inside content */
.entry-content iframe,
.entry-content embed,
.entry-content video,
.wp-block-embed iframe,
.wp-block-embed__wrapper {
	max-width: 100%;
}
.entry-content pre,
.entry-content code,
.fx-legal-prose pre {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.entry-content .wp-block-table,
.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}

.entry-content .wp-block-image img {
	height: auto;
}

/* ==============================
   DESIGN TOKENS
   ============================== */
:root {
	--fx-black:       #0a0c0f;
	--fx-dark:        #0e1117;
	--fx-dark-elev:   #141820;
	--fx-card:        #1a1f2b;
	--fx-card-hover:  #1f2535;
	--fx-border:      #252d3d;
	--fx-border-soft: #1e2635;

	--fx-text:        #e8eef8;
	--fx-text-muted:  #8794aa;
	--fx-text-dim:    #5b6578;

	--fx-green:       #00d084;
	--fx-green-glow:  rgba(0,208,132,.15);
	--fx-green-dim:   rgba(0,208,132,.10);
	/* Primary / secondary CTA pair (hero & sitewide) */
	--fx-btn-radius:  9px;
	--fx-btn-primary-fg: #ffffff;
	--fx-btn-secondary-bg: #ffffff;
	--fx-btn-secondary-fg: #0056d2;
	--fx-btn-secondary-border: #d1d9e6;
	--fx-blue:        #2f8cff;
	--fx-blue-glow:   rgba(47,140,255,.15);
	--fx-amber:       #f0a830;
	--fx-red:         #e05252;

	--fx-radius-sm:   6px;
	--fx-radius:      12px;
	--fx-radius-lg:   18px;
	--fx-radius-xl:   24px;

	--fx-shadow:      0 4px 20px rgba(0,0,0,.3);
	--fx-shadow-card: 0 2px 12px rgba(0,0,0,.2);

	--fx-transition:  all .2s ease;

	--fx-container:   1180px;
	--fx-section-pad: 80px 20px;

	/* Override GP global palette for dark-first mode */
	--contrast:       #e8eef8;
	--contrast-2:     #8794aa;
	--contrast-3:     #5b6578;
	--base:           #141820;
	--base-2:         #0e1117;
	--base-3:         #0a0c0f;
	--accent:         #2f8cff;
}

/* Light mode overrides */
body.myfx-mode-light {
	--fx-black:       #ffffff;
	--fx-dark:        #f4f7fb;
	--fx-dark-elev:   #eef2f8;
	--fx-card:        #ffffff;
	--fx-card-hover:  #f8faff;
	--fx-border:      #dde3f0;
	--fx-border-soft: #e8edf8;
	--fx-text:        #0d1b2a;
	--fx-text-muted:  #4a5a72;
	--fx-text-dim:    #8494aa;
	--fx-green-glow:  rgba(0,160,110,.08);
	--fx-blue-glow:   rgba(30,100,210,.08);
	--fx-shadow:      0 4px 20px rgba(16,35,60,.08);
	--fx-shadow-card: 0 2px 12px rgba(16,35,60,.06);

	/* Restore GP palette for light mode */
	--contrast:       #222222;
	--contrast-2:     #575760;
	--contrast-3:     #b2b2be;
	--base:           #f0f0f0;
	--base-2:         #f4f7fb;
	--base-3:         #ffffff;
	--accent:         #1858bc;

	--fx-btn-primary-fg: #000000;
}

/* ==============================
   GENERATEPRESS LAYOUT OVERRIDE
   Force block layout so sections stack vertically, not side-by-side.
   ============================== */
body #page .site-content,
body #page .content-area,
body #primary,
body #main,
body .site-main {
	display: block !important;
	flex: unset !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/*
 * GeneratePress main.css: .separate-containers .site-main { margin: 20px; } (0,2,0) overrides the
 * reset above (0,1,0) and creates a visible “boxed” frame around full-bleed block pages.
 */
body.home.separate-containers .site-main,
body.page-broker-reviews.separate-containers .site-main,
body.page-prop-firm-reviews.separate-containers .site-main,
body.page-ea-indicator-reviews.separate-containers .site-main,
body.page-education.separate-containers .site-main,
body.page-free-resources.separate-containers .site-main,
body.myfxedu-learning-path-page.separate-containers .site-main,
body.myfxedu-courses-archive-page.separate-containers .site-main,
body.page-about-us.separate-containers .site-main,
body.error404.separate-containers .site-main {
	margin: 0 !important;
}

/* Ensure GP article/content areas don't paint an opaque background over our sections */
.inside-article,
.site-content,
.content-area,
.site-main,
.site,
#page {
	background: transparent !important;
}

body, #page {
	background: var(--fx-dark) !important;
}

/* GP separate containers add white boxes in the middle */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .inside-article {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.one-container .site-content {
	padding: 0 !important;
}

/* Hide GP sidebars only when layout is no-sidebar; blog single uses right-sidebar (see generate_sidebar_layout) */
body.no-sidebar .widget-area,
body.no-sidebar #secondary,
body.no-sidebar #right-sidebar {
	display: none !important;
}

/* Defensive: global .widget-area rule must not apply when GP body has right-sidebar */
body.right-sidebar #right-sidebar {
	display: block !important;
}

/* ==============================
   BASE RESETS & TYPOGRAPHY
   ============================== */
body {
	background: var(--fx-dark) !important;
	color: var(--fx-text) !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

/* Exclude CTA classes: bare a/a:visited beats .myfxedu-button (0,1,0) and paints visited links blue */
a:not(.fx-btn):not(.myfxedu-button):not(.myfx-header-cta-btn):not(.fx-footer-brand-link):not(.fx-footer-foundation-link):not(.fx-review-title-link):not(.fx-404-card) {
	color: var(--fx-blue);
	text-decoration: none;
	transition: var(--fx-transition);
}
a:not(.fx-btn):not(.myfxedu-button):not(.myfx-header-cta-btn):not(.fx-footer-brand-link):not(.fx-footer-foundation-link):not(.fx-review-title-link):not(.fx-404-card):hover {
	color: var(--fx-green);
}
a:not(.fx-btn):not(.myfxedu-button):not(.myfx-header-cta-btn):not(.fx-footer-brand-link):not(.fx-footer-foundation-link):not(.fx-review-title-link):not(.fx-404-card):visited {
	color: var(--fx-blue);
}

/* Override GP link color without breaking button-links */
.site a:not(.fx-btn):not(.myfxedu-button):not(.myfx-header-cta-btn):not(.fx-footer-brand-link):not(.fx-footer-foundation-link):not(.fx-review-title-link):not(.fx-404-card) {
	color: var(--fx-blue);
}
body.myfx-mode-light .site a:not(.fx-btn):not(.myfxedu-button):not(.myfx-header-cta-btn):not(.fx-footer-brand-link):not(.fx-footer-foundation-link):not(.fx-review-title-link):not(.fx-404-card) {
	color: var(--accent);
}

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

/* Homepage + review hubs + education portal: full-bleed block layout (same as Home) */
body.home,
body.page-broker-reviews,
body.page-prop-firm-reviews,
body.page-ea-indicator-reviews,
body.page-education,
body.page-free-resources,
body.myfxedu-learning-path-page,
body.myfxedu-courses-archive-page,
body.home #page,
body.page-broker-reviews #page,
body.page-prop-firm-reviews #page,
body.page-ea-indicator-reviews #page,
body.page-education #page,
body.page-free-resources #page,
body.myfxedu-learning-path-page #page,
body.myfxedu-courses-archive-page #page,
body.home .site,
body.page-broker-reviews .site,
body.page-prop-firm-reviews .site,
body.page-ea-indicator-reviews .site,
body.page-education .site,
body.page-free-resources .site,
body.myfxedu-learning-path-page .site,
body.myfxedu-courses-archive-page .site {
	background: var(--fx-dark);
}

body.home #page,
body.page-broker-reviews #page,
body.page-prop-firm-reviews #page,
body.page-ea-indicator-reviews #page,
body.page-education #page,
body.page-free-resources #page,
body.myfxedu-learning-path-page #page,
body.myfxedu-courses-archive-page #page,
body.home .site,
body.page-broker-reviews .site,
body.page-prop-firm-reviews .site,
body.page-ea-indicator-reviews .site,
body.page-education .site,
body.page-free-resources .site,
body.myfxedu-learning-path-page .site,
body.myfxedu-courses-archive-page .site {
	max-width: 100% !important;
	margin: 0 !important;
}

/* GP flex layout: force full column */
body.home .site-content .content-area,
body.home #primary.content-area,
body.page-broker-reviews .site-content .content-area,
body.page-broker-reviews #primary.content-area,
body.page-prop-firm-reviews .site-content .content-area,
body.page-prop-firm-reviews #primary.content-area,
body.page-ea-indicator-reviews .site-content .content-area,
body.page-ea-indicator-reviews #primary.content-area,
body.page-education .site-content .content-area,
body.page-education #primary.content-area,
body.page-free-resources .site-content .content-area,
body.page-free-resources #primary.content-area,
body.myfxedu-learning-path-page .site-content .content-area,
body.myfxedu-learning-path-page #primary.content-area,
body.myfxedu-courses-archive-page .site-content .content-area,
body.myfxedu-courses-archive-page #primary.content-area {
	flex: 1 1 100% !important;
	min-width: 0 !important;
	width: 100% !important;
	max-width: none !important;
}

/* Do not clip full-bleed alignfull sections */
body.home,
body.page-broker-reviews,
body.page-prop-firm-reviews,
body.page-ea-indicator-reviews,
body.page-education,
body.page-free-resources,
body.myfxedu-learning-path-page,
body.myfxedu-courses-archive-page {
	overflow-x: visible;
}
body.home #page,
body.page-broker-reviews #page,
body.page-prop-firm-reviews #page,
body.page-ea-indicator-reviews #page,
body.page-education #page,
body.page-free-resources #page,
body.myfxedu-learning-path-page #page,
body.myfxedu-courses-archive-page #page {
	overflow-x: visible;
}

/* No dark strip under header */
body.home #masthead,
body.home .site-header,
body.page-broker-reviews #masthead,
body.page-broker-reviews .site-header,
body.page-prop-firm-reviews #masthead,
body.page-prop-firm-reviews .site-header,
body.page-ea-indicator-reviews #masthead,
body.page-ea-indicator-reviews .site-header,
body.page-education #masthead,
body.page-education .site-header,
body.myfxedu-education-hub #masthead,
body.myfxedu-education-hub .site-header,
body.page-free-resources #masthead,
body.page-free-resources .site-header,
body.myfxedu-learning-path-page #masthead,
body.myfxedu-learning-path-page .site-header,
body.myfxedu-courses-archive-page #masthead,
body.myfxedu-courses-archive-page .site-header {
	margin-bottom: 0 !important;
}

body.home .site-content,
body.home #primary.content-area,
body.home .site-main,
body.page-broker-reviews .site-content,
body.page-broker-reviews #primary.content-area,
body.page-broker-reviews .site-main,
body.page-prop-firm-reviews .site-content,
body.page-prop-firm-reviews #primary.content-area,
body.page-prop-firm-reviews .site-main,
body.page-ea-indicator-reviews .site-content,
body.page-ea-indicator-reviews #primary.content-area,
body.page-ea-indicator-reviews .site-main,
body.page-education .site-content,
body.page-education #primary.content-area,
body.page-education .site-main,
body.myfxedu-education-hub .site-content,
body.myfxedu-education-hub #primary.content-area,
body.myfxedu-education-hub .site-main,
body.myfxedu-education-hub #content,
body.page-free-resources .site-content,
body.page-free-resources #primary.content-area,
body.page-free-resources .site-main,
body.myfxedu-learning-path-page .site-content,
body.myfxedu-learning-path-page #primary.content-area,
body.myfxedu-learning-path-page .site-main,
body.myfxedu-courses-archive-page .site-content,
body.myfxedu-courses-archive-page #primary.content-area,
body.myfxedu-courses-archive-page .site-main {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Education hub & full-width hubs: flush under header (#content = GP site-content wrapper) */
body.page-education #content.site-content,
body.myfxedu-education-hub #content.site-content,
body.page-education #primary.content-area,
body.myfxedu-education-hub #primary.content-area,
body.page-education #main.site-main,
body.myfxedu-education-hub #main.site-main,
body.page-free-resources #content.site-content,
body.page-free-resources #primary.content-area,
body.page-free-resources #main.site-main,
body.myfxedu-learning-path-page #content.site-content,
body.myfxedu-learning-path-page #primary.content-area,
body.myfxedu-learning-path-page #main.site-main,
body.myfxedu-courses-archive-page #content.site-content,
body.myfxedu-courses-archive-page #primary.content-area,
body.myfxedu-courses-archive-page #main.site-main {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.home .site-main > article.fx-home-entry,
body.page-broker-reviews .site-main > article.fx-home-entry,
body.page-prop-firm-reviews .site-main > article.fx-home-entry,
body.page-ea-indicator-reviews .site-main > article.fx-home-entry,
body.page-education .site-main > article.fx-home-entry,
body.myfxedu-education-hub .site-main > article.fx-home-entry,
body.page-free-resources .site-main > article.fx-home-entry,
body.myfxedu-learning-path-page .site-main > article.fx-home-entry,
body.myfxedu-courses-archive-page .site-main > article.fx-home-entry {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.home .fx-home-entry .entry-content > :first-child,
body.page-broker-reviews .fx-home-entry .entry-content > :first-child,
body.page-prop-firm-reviews .fx-home-entry .entry-content > :first-child,
body.page-ea-indicator-reviews .fx-home-entry .entry-content > :first-child,
body.page-education .fx-home-entry .entry-content > :first-child,
body.myfxedu-education-hub .fx-home-entry .entry-content > :first-child,
body.page-free-resources .fx-home-entry .entry-content > :first-child,
body.myfxedu-learning-path-page .fx-home-entry .entry-content > :first-child,
body.myfxedu-courses-archive-page .fx-home-entry .entry-content > :first-child {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

/*
 * GP (Customizer) often adds ~40px padding to .wp-block-group__inner-container.
 */
body.home .fx-home-entry .entry-content > .wp-block-group:first-child,
body.home .fx-home-entry .entry-content > .wp-block-group:first-child .wp-block-group__inner-container,
body.page-broker-reviews .fx-home-entry .entry-content > .wp-block-group:first-child,
body.page-broker-reviews .fx-home-entry .entry-content > .wp-block-group:first-child .wp-block-group__inner-container,
body.page-prop-firm-reviews .fx-home-entry .entry-content > .wp-block-group:first-child,
body.page-prop-firm-reviews .fx-home-entry .entry-content > .wp-block-group:first-child .wp-block-group__inner-container,
body.page-ea-indicator-reviews .fx-home-entry .entry-content > .wp-block-group:first-child,
body.page-ea-indicator-reviews .fx-home-entry .entry-content > .wp-block-group:first-child .wp-block-group__inner-container,
body.page-education .fx-home-entry .entry-content > .wp-block-group:first-child,
body.page-education .fx-home-entry .entry-content > .wp-block-group:first-child .wp-block-group__inner-container,
body.myfxedu-education-hub .fx-home-entry .entry-content > .wp-block-group:first-child,
body.myfxedu-education-hub .fx-home-entry .entry-content > .wp-block-group:first-child .wp-block-group__inner-container,
body.page-free-resources .fx-home-entry .entry-content > .wp-block-group:first-child,
body.page-free-resources .fx-home-entry .entry-content > .wp-block-group:first-child .wp-block-group__inner-container,
body.myfxedu-learning-path-page .fx-home-entry .entry-content > .wp-block-group:first-child,
body.myfxedu-learning-path-page .fx-home-entry .entry-content > .wp-block-group:first-child .wp-block-group__inner-container,
body.myfxedu-courses-archive-page .fx-home-entry .entry-content > .wp-block-group:first-child,
body.myfxedu-courses-archive-page .fx-home-entry .entry-content > .wp-block-group:first-child .wp-block-group__inner-container {
	padding-top: 0 !important;
	padding-block-start: 0 !important;
}

body.home .fx-home-entry .entry-content > .wp-block-html:first-child,
body.page-broker-reviews .fx-home-entry .entry-content > .wp-block-html:first-child,
body.page-prop-firm-reviews .fx-home-entry .entry-content > .wp-block-html:first-child,
body.page-ea-indicator-reviews .fx-home-entry .entry-content > .wp-block-html:first-child,
body.page-education .fx-home-entry .entry-content > .wp-block-html:first-child,
body.myfxedu-education-hub .fx-home-entry .entry-content > .wp-block-html:first-child,
body.page-free-resources .fx-home-entry .entry-content > .wp-block-html:first-child,
body.myfxedu-learning-path-page .fx-home-entry .entry-content > .wp-block-html:first-child,
body.myfxedu-courses-archive-page .fx-home-entry .entry-content > .wp-block-html:first-child {
	padding-top: 0 !important;
	padding-block-start: 0 !important;
}

/* Block editor: no article padding */
body.home .fx-home-entry,
body.page-broker-reviews .fx-home-entry,
body.page-prop-firm-reviews .fx-home-entry,
body.page-ea-indicator-reviews .fx-home-entry,
body.page-education .fx-home-entry,
body.myfxedu-education-hub .fx-home-entry,
body.page-free-resources .fx-home-entry,
body.myfxedu-learning-path-page .fx-home-entry,
body.myfxedu-courses-archive-page .fx-home-entry {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}
body.home .fx-home-entry .entry-content,
body.page-broker-reviews .fx-home-entry .entry-content,
body.page-prop-firm-reviews .fx-home-entry .entry-content,
body.page-ea-indicator-reviews .fx-home-entry .entry-content,
body.page-education .fx-home-entry .entry-content,
body.myfxedu-education-hub .fx-home-entry .entry-content,
body.page-free-resources .fx-home-entry .entry-content,
body.myfxedu-learning-path-page .fx-home-entry .entry-content,
body.myfxedu-courses-archive-page .fx-home-entry .entry-content {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Tutor course listing: inner width matches .fx-wrap / home sections (--fx-container) */
body.myfxedu-courses-archive-page .tutor-container {
	max-width: min( var( --fx-container ), 100% ) !important;
	padding-left: max(20px, env(safe-area-inset-left, 0px));
	padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* /courses/ — hero + CTAs: phones & notches (site-shell has base + 600px tweaks; we add safe-area) */
body.myfxedu-courses-archive-page .mfx-courses-archive-hero {
	padding-top: calc(env(safe-area-inset-top, 0px) + clamp(1.5rem, 5vw, 2.5rem));
	padding-bottom: clamp(1.5rem, 5vw, 2.75rem);
}

@media (max-width: 600px) {
	body.myfxedu-courses-archive-page .mfx-courses-archive-hero {
		padding-top: calc(env(safe-area-inset-top, 0px) + 1.65rem);
		padding-bottom: 2rem;
	}
}

@media (max-width: 560px) {
	body.myfxedu-courses-archive-page .mfx-courses-archive-nav {
		flex-direction: column;
		align-items: stretch;
		gap: 0.65rem;
	}

	body.myfxedu-courses-archive-page .mfx-courses-archive-nav .mfx-courses-archive-pill {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
		min-height: 44px;
	}

	body.myfxedu-courses-archive-page .mfx-courses-archive-title {
		overflow-wrap: anywhere;
	}
}

/* Single course: full-width column + Tutor inner width (matches Home / /courses/) */
body.myfxedu-single-course-page.separate-containers .site-main {
	margin: 0 !important;
}

body.myfxedu-single-course-page,
body.myfxedu-single-course-page #page,
body.myfxedu-single-course-page .site {
	background: var(--fx-dark);
	max-width: 100% !important;
	margin: 0 !important;
}

body.myfxedu-single-course-page .site-content .content-area,
body.myfxedu-single-course-page #primary.content-area {
	flex: 1 1 100% !important;
	min-width: 0 !important;
	width: 100% !important;
	max-width: none !important;
}

body.myfxedu-single-course-page .site-content,
body.myfxedu-single-course-page #primary.content-area,
body.myfxedu-single-course-page .site-main {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.myfxedu-single-course-page #masthead,
body.myfxedu-single-course-page .site-header {
	margin-bottom: 0 !important;
}

body.myfxedu-single-course-page .tutor-container {
	max-width: min( var( --fx-container ), 100% ) !important;
	padding-left: max(20px, env(safe-area-inset-left, 0px));
	padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Single course (/courses/…/): notches, touch targets, no horizontal scroll */
body.myfxedu-single-course-page .mfx-course-hero {
	padding-top: calc(env(safe-area-inset-top, 0px) + clamp(1.5rem, 5vw, 2.5rem));
	padding-bottom: clamp(1.25rem, 4vw, 2.35rem);
}

@media (max-width: 600px) {
	body.myfxedu-single-course-page .mfx-course-hero {
		padding-top: calc(env(safe-area-inset-top, 0px) + 1.5rem);
		padding-bottom: 1.25rem;
	}
}

body.myfxedu-single-course-page .mfx-course-title {
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (max-width: 768px) {
	body.myfxedu-single-course-page .tutor-course-details-page {
		padding-top: 1.5rem !important;
		padding-bottom: 2.5rem !important;
	}

	body.myfxedu-single-course-page .tutor-wrap-parent.tutor-course-top-info {
		margin-top: 1.25rem !important;
	}

	body.myfxedu-single-course-page .mfx-course-sidebar {
		position: static !important;
		top: auto !important;
	}

	body.myfxedu-single-course-page .mfx-course-section,
	body.myfxedu-single-course-page .mfx-course-tabs .tutor-tab-item {
		padding-left: 1.1rem !important;
		padding-right: 1.1rem !important;
	}
}

@media (max-width: 560px) {
	body.myfxedu-single-course-page .tutor-sidebar-card .tutor-btn-primary,
	body.myfxedu-single-course-page .tutor-sidebar-card a.tutor-btn-primary,
	body.myfxedu-single-course-page .tutor-sidebar-card .tutor-btn-outline-primary {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
		min-height: 44px;
	}

	body.myfxedu-single-course-page .tutor-nav .tutor-nav-link {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		box-sizing: border-box;
	}

	body.myfxedu-single-course-page .mfx-tab-nav-wrap .tutor-nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 0.35rem;
		padding-bottom: 2px;
	}

	body.myfxedu-single-course-page .mfx-tab-nav-wrap .tutor-nav::-webkit-scrollbar {
		display: none;
	}

	body.myfxedu-single-course-page .mfx-tab-nav-wrap .tutor-nav .tutor-nav-link {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

body.myfxedu-single-course-page .mfx-course-tabs .tutor-tab-item img,
body.myfxedu-single-course-page .mfx-course-section img,
body.myfxedu-single-course-page .mfx-course-tabs .tutor-tab-item video {
	max-width: 100%;
	height: auto;
}

body.myfxedu-single-course-page .mfx-course-tabs .tutor-tab-item iframe {
	max-width: 100%;
}

body.myfxedu-single-course-page .mfx-course-tabs .tutor-tab-item pre,
body.myfxedu-single-course-page .mfx-course-section pre {
	overflow-x: auto;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

body.myfxedu-single-course-page .tutor-course-details-page .tutor-col-xl-8 {
	min-width: 0;
}

/* Single resource + blog post: same shell as Tutor course single */
body.myfxedu-single-resource-page.separate-containers .site-main,
body.myfxedu-single-blog-page.separate-containers .site-main {
	margin: 0 !important;
}

body.myfxedu-single-resource-page,
body.myfxedu-single-resource-page #page,
body.myfxedu-single-resource-page .site,
body.myfxedu-single-blog-page,
body.myfxedu-single-blog-page #page,
body.myfxedu-single-blog-page .site {
	background: var(--fx-dark);
	max-width: 100% !important;
	margin: 0 !important;
}

body.myfxedu-single-resource-page .site-content .content-area,
body.myfxedu-single-resource-page #primary.content-area,
body.myfxedu-single-blog-page .site-content .content-area,
body.myfxedu-single-blog-page #primary.content-area {
	flex: 1 1 100% !important;
	min-width: 0 !important;
	width: 100% !important;
	max-width: none !important;
}

body.myfxedu-single-resource-page .site-content,
body.myfxedu-single-resource-page #primary.content-area,
body.myfxedu-single-resource-page .site-main,
body.myfxedu-single-blog-page .site-content,
body.myfxedu-single-blog-page #primary.content-area,
body.myfxedu-single-blog-page .site-main {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.myfxedu-single-resource-page #masthead,
body.myfxedu-single-resource-page .site-header,
body.myfxedu-single-blog-page #masthead,
body.myfxedu-single-blog-page .site-header {
	margin-bottom: 0 !important;
}

body.myfxedu-single-resource-page .tutor-container,
body.myfxedu-single-blog-page .tutor-container {
	max-width: min( var( --fx-container ), 100% ) !important;
	padding-left: 20px;
	padding-right: 20px;
}

body.myfxedu-single-resource-page .mfx-resource-sidebar .myfxedu-button,
body.myfxedu-single-blog-page .mfx-blog-sidebar-shell .myfxedu-button {
	width: 100%;
	justify-content: center;
}

.mfx-blog-hero-author-link {
	color: inherit;
	font-weight: 700;
	text-decoration: none;
}

.mfx-blog-hero-author-link:hover {
	color: var(--fx-blue);
	text-decoration: underline;
}

body.myfxedu-single-blog-page .mfx-blog-comments-area {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--fx-border);
	max-width: min( var( --fx-container ), 100% );
	margin-left: auto;
	margin-right: auto;
}

.mfx-resource-sidebar-heading {
	font-size: 1rem;
	font-weight: 700;
	color: var(--fx-text);
	margin: 0 0 0.65rem;
}

.mfx-resource-sidebar-text {
	font-size: 0.9rem;
	color: var(--fx-text-muted);
	line-height: 1.55;
	margin: 0 0 1rem;
}

.mfx-resource-related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.mfx-resource-related-list a {
	color: var(--fx-blue);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.92rem;
}

.mfx-resource-related-list a:hover {
	text-decoration: underline;
	color: var(--fx-green);
}

body.myfx-mode-light .mfx-resource-sidebar-heading {
	color: #112240;
}

body.myfx-mode-light .mfx-resource-sidebar-text {
	color: #3d5473;
}

/*
 * Full-viewport bands (alignfull + bleed helpers).
 */
body.home .fx-home-entry .entry-content .alignfull,
body.home .fx-home-entry .wp-block-post-content .alignfull,
body.page-broker-reviews .fx-home-entry .entry-content .alignfull,
body.page-broker-reviews .fx-home-entry .wp-block-post-content .alignfull,
body.page-prop-firm-reviews .fx-home-entry .entry-content .alignfull,
body.page-prop-firm-reviews .fx-home-entry .wp-block-post-content .alignfull,
body.page-ea-indicator-reviews .fx-home-entry .entry-content .alignfull,
body.page-ea-indicator-reviews .fx-home-entry .wp-block-post-content .alignfull,
body.page-education .fx-home-entry .entry-content .alignfull,
body.page-education .fx-home-entry .wp-block-post-content .alignfull,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .alignfull,
body.myfxedu-learning-path-page .fx-home-entry .wp-block-post-content .alignfull,
body.page-free-resources .fx-home-entry .entry-content .alignfull,
body.page-free-resources .fx-home-entry .wp-block-post-content .alignfull {
	max-width: 100vw !important;
	width: auto !important;
	margin-left: calc(-100vw / 2 + 100% / 2) !important;
	margin-right: calc(-100vw / 2 + 100% / 2) !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box !important;
	position: relative;
	left: auto;
	right: auto;
}

body.home .fx-home-entry .wp-block-group.alignfull.is-layout-constrained,
body.home .fx-home-entry .wp-block-group.alignfull .is-layout-constrained,
body.page-broker-reviews .fx-home-entry .wp-block-group.alignfull.is-layout-constrained,
body.page-broker-reviews .fx-home-entry .wp-block-group.alignfull .is-layout-constrained,
body.page-prop-firm-reviews .fx-home-entry .wp-block-group.alignfull.is-layout-constrained,
body.page-prop-firm-reviews .fx-home-entry .wp-block-group.alignfull .is-layout-constrained,
body.page-ea-indicator-reviews .fx-home-entry .wp-block-group.alignfull.is-layout-constrained,
body.page-ea-indicator-reviews .fx-home-entry .wp-block-group.alignfull .is-layout-constrained,
body.page-education .fx-home-entry .wp-block-group.alignfull.is-layout-constrained,
body.page-education .fx-home-entry .wp-block-group.alignfull .is-layout-constrained,
body.myfxedu-learning-path-page .fx-home-entry .wp-block-group.alignfull.is-layout-constrained,
body.myfxedu-learning-path-page .fx-home-entry .wp-block-group.alignfull .is-layout-constrained,
body.page-free-resources .fx-home-entry .wp-block-group.alignfull.is-layout-constrained,
body.page-free-resources .fx-home-entry .wp-block-group.alignfull .is-layout-constrained {
	max-width: none !important;
}

body.home .fx-home-entry .alignfull .wp-block-html,
body.page-broker-reviews .fx-home-entry .alignfull .wp-block-html,
body.page-prop-firm-reviews .fx-home-entry .alignfull .wp-block-html,
body.page-ea-indicator-reviews .fx-home-entry .alignfull .wp-block-html,
body.page-education .fx-home-entry .alignfull .wp-block-html,
body.myfxedu-learning-path-page .fx-home-entry .alignfull .wp-block-html,
body.page-free-resources .fx-home-entry .alignfull .wp-block-html {
	margin: 0;
	max-width: none !important;
	width: 100% !important;
}

body.home .fx-home-entry .entry-content .fx-hero,
body.home .fx-home-entry .entry-content .fx-trust-bar,
body.home .fx-home-entry .entry-content section[class^="fx-section"],
body.home .fx-home-entry .entry-content section[class*=" fx-section"],
body.page-broker-reviews .fx-home-entry .entry-content .fx-hero,
body.page-broker-reviews .fx-home-entry .entry-content .fx-trust-bar,
body.page-broker-reviews .fx-home-entry .entry-content section[class^="fx-section"],
body.page-broker-reviews .fx-home-entry .entry-content section[class*=" fx-section"],
body.page-prop-firm-reviews .fx-home-entry .entry-content .fx-hero,
body.page-prop-firm-reviews .fx-home-entry .entry-content .fx-trust-bar,
body.page-prop-firm-reviews .fx-home-entry .entry-content section[class^="fx-section"],
body.page-prop-firm-reviews .fx-home-entry .entry-content section[class*=" fx-section"],
body.page-ea-indicator-reviews .fx-home-entry .entry-content .fx-hero,
body.page-ea-indicator-reviews .fx-home-entry .entry-content .fx-trust-bar,
body.page-ea-indicator-reviews .fx-home-entry .entry-content section[class^="fx-section"],
body.page-ea-indicator-reviews .fx-home-entry .entry-content section[class*=" fx-section"],
body.page-education .fx-home-entry .entry-content .fx-hero,
body.page-education .fx-home-entry .entry-content .fx-trust-bar,
body.page-education .fx-home-entry .entry-content section[class^="fx-section"],
body.page-education .fx-home-entry .entry-content section[class*=" fx-section"],
body.page-education .fx-home-entry .entry-content .myfxedu-education-hub,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .fx-hero,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .fx-trust-bar,
body.myfxedu-learning-path-page .fx-home-entry .entry-content section[class^="fx-section"],
body.myfxedu-learning-path-page .fx-home-entry .entry-content section[class*=" fx-section"],
body.page-free-resources .fx-home-entry .entry-content .fx-hero,
body.page-free-resources .fx-home-entry .entry-content .fx-trust-bar,
body.page-free-resources .fx-home-entry .entry-content section[class^="fx-section"],
body.page-free-resources .fx-home-entry .entry-content section[class*=" fx-section"] {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-top: 0 !important;
	margin-block-start: 0 !important;
	box-sizing: border-box !important;
	position: relative;
	left: auto;
	right: auto;
}

/* Review hub seeds use .fx-page-hero in blocks; match Home-style edge bleed */
body.page-broker-reviews .fx-home-entry .entry-content .fx-page-hero,
body.page-prop-firm-reviews .fx-home-entry .entry-content .fx-page-hero,
body.page-ea-indicator-reviews .fx-home-entry .entry-content .fx-page-hero,
body.page-education .fx-home-entry .entry-content .fx-page-hero,
body.page-free-resources .fx-home-entry .entry-content .fx-page-hero,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .fx-page-hero {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-top: 0 !important;
	margin-block-start: 0 !important;
	box-sizing: border-box !important;
	position: relative;
	left: auto;
	right: auto;
}

/* Block hubs: alignfull group inner must not cap band width (same as broker-reviews full-bleed HTML) */
body.page-broker-reviews .fx-home-entry .entry-content .wp-block-group.alignfull .wp-block-group__inner-container,
body.page-prop-firm-reviews .fx-home-entry .entry-content .wp-block-group.alignfull .wp-block-group__inner-container,
body.page-ea-indicator-reviews .fx-home-entry .entry-content .wp-block-group.alignfull .wp-block-group__inner-container,
body.page-education .fx-home-entry .entry-content .wp-block-group.alignfull .wp-block-group__inner-container,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-group.alignfull .wp-block-group__inner-container,
body.page-free-resources .fx-home-entry .entry-content .wp-block-group.alignfull .wp-block-group__inner-container {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/*
 * Education hub (/education/): every top-level block = full viewport width (same breakout as .alignfull).
 * Inner group containers lose theme “content width” so bands stack edge-to-edge.
 */
body.page-education .fx-home-entry .entry-content.is-layout-constrained,
body.page-education .fx-home-entry .entry-content.wp-block-post-content.is-layout-constrained,
body.myfxedu-learning-path-page .fx-home-entry .entry-content.is-layout-constrained,
body.myfxedu-learning-path-page .fx-home-entry .entry-content.wp-block-post-content.is-layout-constrained {
	max-width: none !important;
}

body.page-education .fx-home-entry .entry-content > *,
body.myfxedu-learning-path-page .fx-home-entry .entry-content > * {
	max-width: 100vw !important;
	width: auto !important;
	margin-left: calc(-100vw / 2 + 100% / 2) !important;
	margin-right: calc(-100vw / 2 + 100% / 2) !important;
	box-sizing: border-box !important;
	position: relative;
	left: auto;
	right: auto;
}

body.page-education .fx-home-entry .entry-content .wp-block-group.is-layout-constrained,
body.page-education .fx-home-entry .entry-content .wp-block-group .is-layout-constrained,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-group.is-layout-constrained,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-group .is-layout-constrained {
	max-width: none !important;
}

body.page-education .fx-home-entry .entry-content .wp-block-group .wp-block-group__inner-container,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-group .wp-block-group__inner-container {
	max-width: none !important;
	width: 100% !important;
}

body.page-education .fx-home-entry .entry-content > .alignwide,
body.myfxedu-learning-path-page .fx-home-entry .entry-content > .alignwide {
	max-width: none !important;
	width: auto !important;
	margin-left: calc(-100vw / 2 + 100% / 2) !important;
	margin-right: calc(-100vw / 2 + 100% / 2) !important;
}

/*
 * /education/ serialized bands: wp:group.alignfull.fx-block-bleed → wp:html → section.fx-section
 * Block library / layout CSS can cap .wp-block-group__inner-container after theme rules; lock the full chain.
 */
body.page-education .fx-home-entry .entry-content .wp-block-group.fx-block-bleed,
body.page-free-resources .fx-home-entry .entry-content .wp-block-group.fx-block-bleed,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-group.fx-block-bleed {
	max-width: 100vw !important;
	width: 100% !important;
	margin-left: calc(-100vw / 2 + 100% / 2) !important;
	margin-right: calc(-100vw / 2 + 100% / 2) !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

body.page-education .fx-home-entry .entry-content .wp-block-group.fx-block-bleed .wp-block-group__inner-container,
body.page-education .fx-home-entry .entry-content .wp-block-group.fx-block-bleed .wp-block-html,
body.page-free-resources .fx-home-entry .entry-content .wp-block-group.fx-block-bleed .wp-block-group__inner-container,
body.page-free-resources .fx-home-entry .entry-content .wp-block-group.fx-block-bleed .wp-block-html,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-group.fx-block-bleed .wp-block-group__inner-container,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-group.fx-block-bleed .wp-block-html {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.page-education .fx-home-entry .entry-content .wp-block-group.fx-block-bleed section[class^="fx-section"],
body.page-education .fx-home-entry .entry-content .wp-block-group.fx-block-bleed section[class*=" fx-section"],
body.page-free-resources .fx-home-entry .entry-content .wp-block-group.fx-block-bleed section[class^="fx-section"],
body.page-free-resources .fx-home-entry .entry-content .wp-block-group.fx-block-bleed section[class*=" fx-section"],
body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-group.fx-block-bleed section[class^="fx-section"],
body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-group.fx-block-bleed section[class*=" fx-section"] {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box !important;
}

body.page-education .fx-home-entry .entry-content .myfxedu-education-hub .myfxedu-section {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box !important;
}

/* Custom HTML: section.fx-section > .fx-wrap - .fx-wrap is the real width cap (~1180px); stretch to band edges on /education/, /free-resources/, and learning-path pages */
body.page-education .fx-home-entry .entry-content .fx-section .fx-wrap,
body.page-free-resources .fx-home-entry .entry-content .fx-section .fx-wrap,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .fx-section .fx-wrap {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: clamp(1.25rem, 4vw, 5rem) !important;
	padding-right: clamp(1.25rem, 4vw, 5rem) !important;
	box-sizing: border-box !important;
}

/*
 * GeneratePress: Layout → Content Container → Full Width adds body.full-width-content.
 * Hub pages (page-education, etc.) already get .fx-hero bleed via body.page-* rules above.
 * Any other page with Full Width still needs the same viewport breakout so the band isn’t stuck in .grid-container.
 */
body.full-width-content .entry-content .fx-hero,
body.full-width-content .entry-content .fx-page-hero {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-top: 0 !important;
	margin-block-start: 0 !important;
	box-sizing: border-box !important;
	position: relative;
	left: auto;
	right: auto;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--fx-text) !important;
	line-height: 1.18;
	font-weight: 700;
	margin-top: 0;
}

body.myfx-mode-light h1,
body.myfx-mode-light h2,
body.myfx-mode-light h3,
body.myfx-mode-light h4,
body.myfx-mode-light h5,
body.myfx-mode-light h6 {
	color: var(--fx-text) !important;
}

p { margin-top: 0; color: var(--fx-text); }

img { max-width: 100%; height: auto; display: block; }

/* ==============================
   LAYOUT HELPERS
   ============================== */
.fx-wrap    { max-width: var(--fx-container); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }

/* Learning path: Core courses, Free Resources, Related areas, FAQ, Risk - same width as shell .fx-wrap */
body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-myfxedu-learning-path {
	max-width: var(--fx-container);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
	width: 100%;
}

body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-myfxedu-learning-path.alignfull,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-myfxedu-learning-path.alignwide {
	max-width: var(--fx-container) !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

body.myfxedu-learning-path-page .fx-home-entry .entry-content > .myfxedu-learning-path {
	max-width: var(--fx-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
	width: 100%;
}

/* Plugin markers (.myfxedu-learning-path-block--contained / --contained): override alignfull without relying on body class */
.fx-home-entry .entry-content .wp-block-myfxedu-learning-path.myfxedu-learning-path-block--contained,
.fx-home-entry .entry-content .wp-block-myfxedu-learning-path.myfxedu-learning-path-block--contained.alignfull,
.fx-home-entry .entry-content .wp-block-myfxedu-learning-path.myfxedu-learning-path-block--contained.alignwide {
	width: 100% !important;
	max-width: min(var(--fx-container), 100%) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	box-sizing: border-box !important;
	position: relative !important;
	left: auto !important;
	right: auto !important;
}

.fx-home-entry .entry-content .myfxedu-learning-path.myfxedu-learning-path--contained {
	max-width: min(var(--fx-container), 100%);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

/* Education hub & any band that should span the full content column (two classes beat single .fx-wrap) */
.fx-wrap--full,
.fx-wrap.fx-wrap--full {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: clamp(1.25rem, 4vw, 5rem) !important;
	padding-right: clamp(1.25rem, 4vw, 5rem) !important;
	box-sizing: border-box !important;
}
.fx-section { padding: var(--fx-section-pad); }
.fx-section--dark { background: var(--fx-dark); }
.fx-section--card { background: var(--fx-dark-elev); }
/* Same gradient as .fx-page-hero (Education Portal band) - use instead of --card when bands should match hero */
.fx-section--hero-bg {
	background: linear-gradient(160deg, #070f1c 0%, #0d1e35 100%);
	border-bottom: 1px solid var(--fx-border);
}
body.myfx-mode-light .fx-section--hero-bg {
	background: linear-gradient(160deg, #eff5ff 0%, #f8fbff 100%);
	border-bottom-color: var(--fx-border);
}

/* Featured courses band: full-viewport gradient; inner .fx-wrap keeps content width */
body.page-education .fx-home-entry .entry-content .fx-section--hero-bg,
body.myfxedu-education-hub .fx-home-entry .entry-content .fx-section--hero-bg {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	box-sizing: border-box !important;
	position: relative;
	left: auto;
	right: auto;
}

/* Explore by topic: no section band background (only .fx-card tiles) */
.fx-section--no-bg {
	background: transparent !important;
	background-image: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}
body.myfx-mode-light .fx-section--no-bg {
	background: transparent !important;
	background-image: none !important;
}
body.page-education .fx-home-entry .entry-content .fx-section--no-bg,
body.myfxedu-education-hub .fx-home-entry .entry-content .fx-section--no-bg {
	background: transparent !important;
	background-image: none !important;
	border-bottom: none !important;
}

/* Explore by topic: no band (editor may still save fx-section--card + inline hacks) */
body.page-education .fx-home-entry .entry-content .fx-section-explore-topics,
body.myfxedu-education-hub .fx-home-entry .entry-content .fx-section-explore-topics,
body.page-education .fx-home-entry .entry-content .fx-section.fx-section--card:has(.fx-grid-3),
body.myfxedu-education-hub .fx-home-entry .entry-content .fx-section.fx-section--card:has(.fx-grid-3) {
	background: transparent !important;
	background-image: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}
body.myfx-mode-light.page-education .fx-home-entry .entry-content .fx-section-explore-topics,
body.myfx-mode-light.myfxedu-education-hub .fx-home-entry .entry-content .fx-section-explore-topics,
body.myfx-mode-light.page-education .fx-home-entry .entry-content .fx-section.fx-section--card:has(.fx-grid-3),
body.myfx-mode-light.myfxedu-education-hub .fx-home-entry .entry-content .fx-section.fx-section--card:has(.fx-grid-3) {
	background: transparent !important;
	background-image: none !important;
}

.fx-section--accent {
	background: linear-gradient(135deg, #051022 0%, #091830 50%, #071a2e 100%);
}

body.myfx-mode-light .fx-section--accent {
	background: linear-gradient(135deg, #eef5ff 0%, #f7fbff 55%, #edf4ff 100%);
}

body.myfx-mode-light .fx-section--accent h2,
body.myfx-mode-light .fx-section--accent h3,
body.myfx-mode-light .fx-section--accent p {
	color: var(--fx-text);
}

body.myfx-mode-light .fx-section--dark {
	background: var(--fx-dark);
}

body.myfx-mode-light .fx-section--card {
	background: var(--fx-dark-elev);
}

/* Explore by topic: always transparent after .fx-section--card (light) - data attr + class sync from plugin */
body.page-education .fx-home-entry .entry-content section[data-fx-explore-topics="1"],
body.myfxedu-education-hub .fx-home-entry .entry-content section[data-fx-explore-topics="1"] {
	background: transparent !important;
	background-image: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}
body.myfx-mode-light.page-education .fx-home-entry .entry-content section[data-fx-explore-topics="1"],
body.myfx-mode-light.myfxedu-education-hub .fx-home-entry .entry-content section[data-fx-explore-topics="1"] {
	background: transparent !important;
	background-image: none !important;
}

/* ==============================
   SECTION HEADERS
   ============================== */
.fx-section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.fx-section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.fx-section-head p { color: var(--fx-text-muted); font-size: 17px; line-height: 1.7; margin: 0; }

.fx-section-head--left { text-align: left; margin-left: 0; }

.fx-badge-label {
	display: inline-block;
	background: var(--fx-green-dim);
	border: 1px solid rgba(0,200,143,.25);
	color: var(--fx-green);
	border-radius: 999px;
	padding: 5px 13px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	margin-bottom: 14px;
}

/* ==============================
   GRIDS
   ============================== */
.fx-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fx-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fx-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1024px) {
	.fx-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.fx-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.fx-grid-2,
	.fx-grid-3,
	.fx-grid-4 { grid-template-columns: 1fr; }

	body.page-education .fx-home-entry .fx-grid-3,
	body.page-education .fx-home-entry .fx-grid-4,
	body.page-free-resources .fx-home-entry .fx-grid-3,
	body.page-free-resources .fx-home-entry .fx-grid-4,
	body.myfxedu-education-hub .fx-home-entry .fx-grid-3,
	body.myfxedu-education-hub .fx-home-entry .fx-grid-4 {
		gap: 16px;
	}
}

/* /education/ & /free-resources/ hubs: grid items must shrink (long intros on path + topic cards) */
body.page-education .fx-home-entry .fx-grid-2 > *,
body.page-education .fx-home-entry .fx-grid-3 > *,
body.page-education .fx-home-entry .fx-grid-4 > *,
body.page-free-resources .fx-home-entry .fx-grid-2 > *,
body.page-free-resources .fx-home-entry .fx-grid-3 > *,
body.page-free-resources .fx-home-entry .fx-grid-4 > *,
body.myfxedu-education-hub .fx-home-entry .fx-grid-2 > *,
body.myfxedu-education-hub .fx-home-entry .fx-grid-3 > *,
body.myfxedu-education-hub .fx-home-entry .fx-grid-4 > * {
	min-width: 0;
}

/* ==============================
   CARDS
   ============================== */
.fx-card {
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius);
	padding: 24px;
	box-shadow: var(--fx-shadow-card);
	transition: var(--fx-transition);
}
.fx-card:hover {
	background: var(--fx-card-hover);
	border-color: rgba(47,140,255,.22);
	transform: translateY(-2px);
	box-shadow: var(--fx-shadow);
}

.fx-card-icon {
	width: 44px; height: 44px;
	border-radius: 10px;
	background: var(--fx-blue-glow);
	color: var(--fx-blue);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 16px;
	margin-bottom: 14px;
}
.fx-card-icon--green {
	background: var(--fx-green-glow);
	color: var(--fx-green);
}

.fx-card h3 { font-size: 18px; margin-bottom: 8px; }
.fx-card p  { color: var(--fx-text-muted); font-size: 15px; margin: 0; line-height: 1.6; }

/* ==============================
   BUTTONS
   ============================== */
.fx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 24px;
	border-radius: var(--fx-btn-radius);
	font-weight: 600; font-size: 15px; line-height: 1;
	text-decoration: none;
	transition: var(--fx-transition);
	cursor: pointer; border: none;
}
.fx-btn--primary {
	background: var(--fx-green);
	color: var(--fx-btn-primary-fg) !important;
	border: 1px solid transparent;
}
.fx-btn--primary:hover,
.fx-btn--primary:focus,
.fx-btn--primary:focus-visible,
.fx-btn--primary:active {
	filter: brightness(.95);
	transform: translateY(-1px);
	color: var(--fx-btn-primary-fg) !important;
}
.fx-btn--primary:visited {
	color: var(--fx-btn-primary-fg) !important;
}
body.myfx-mode-light .fx-btn--secondary {
	background: var(--fx-btn-secondary-bg);
	color: var(--fx-btn-secondary-fg);
	border-color: var(--fx-btn-secondary-border);
}
body.myfx-mode-light .fx-btn--secondary:hover {
	background: #edf4ff;
	color: #0047c4;
	border-color: #8ab4e0;
}
body.myfx-mode-light .fx-btn--ghost {
	background: rgba(47,140,255,.1);
	border-color: rgba(47,140,255,.3);
	color: #1b5fae;
}
body.myfx-mode-light .fx-btn--ghost:hover {
	background: rgba(47,140,255,.2);
	color: #1046a0;
}
.fx-btn--secondary {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(209, 217, 230, 0.32);
	color: #9ec8ff;
}
.fx-btn--secondary:hover {
	border-color: rgba(209, 217, 230, 0.5);
	color: #c8e0ff;
	background: rgba(255, 255, 255, 0.1);
}
.fx-btn--ghost {
	background: var(--fx-blue-glow);
	border: 1px solid rgba(47,140,255,.25);
	color: var(--fx-blue);
}
.fx-btn--ghost:hover { background: rgba(47,140,255,.25); color: var(--fx-text); }

.fx-btn--lg { padding: 14px 28px; font-size: 16px; }
.fx-btn--sm { padding: 10px 18px; font-size: 13px; }
.fx-btn--full { width: 100%; }

.fx-actions { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }

/* ==============================
   RISK / DISCLOSURE BARS
   ============================== */
.fx-risk-bar {
	background: rgba(240,168,48,.08);
	border: 1px solid rgba(240,168,48,.2);
	border-radius: var(--fx-radius-sm);
	padding: 12px 16px;
	color: var(--fx-amber);
	font-size: 13px;
	line-height: 1.6;
}
.fx-risk-bar strong { color: var(--fx-amber); }
body.myfx-mode-light .fx-risk-bar { color: #7a5413; }
body.myfx-mode-light .fx-risk-bar strong { color: #8a5e10; }

.fx-disclosure-bar {
	background: var(--fx-blue-glow);
	border: 1px solid rgba(47,140,255,.2);
	border-radius: var(--fx-radius-sm);
	padding: 10px 16px;
	color: var(--fx-text-muted);
	font-size: 13px;
}
.fx-disclosure-bar a { color: var(--fx-blue); }

/* ==============================
   RATINGS / SCORE
   ============================== */
.fx-score {
	display: inline-flex; align-items: baseline; gap: 4px;
}
.fx-score-num {
	font-size: 28px; font-weight: 700; color: var(--fx-green);
}
.fx-score-max { font-size: 14px; color: var(--fx-text-muted); }

.fx-stars { color: #f0a830; letter-spacing: 2px; }

.fx-rating-bar {
	display: flex; align-items: center; gap: 12px;
	margin-bottom: 10px;
}
.fx-rating-bar-label { font-size: 14px; min-width: 130px; color: var(--fx-text-muted); }
.fx-rating-bar-track {
	flex: 1; height: 6px;
	background: var(--fx-border);
	border-radius: 999px;
	overflow: hidden;
}
.fx-rating-bar-fill {
	height: 100%; background: var(--fx-green); border-radius: 999px;
}
.fx-rating-bar-val { font-size: 13px; font-weight: 600; min-width: 26px; text-align: right; }

@media (max-width: 480px) {
	.fx-rating-bar {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 8px;
	}
	.fx-rating-bar-label {
		min-width: 0;
		flex: 1 1 100%;
	}
	.fx-rating-bar-track {
		flex: 1 1 auto;
		min-width: 0;
	}
	.fx-rating-bar-val {
		flex: 0 0 auto;
	}
}

/* ==============================
   PROS / CONS
   ============================== */
.fx-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fx-pros, .fx-cons {
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius-sm);
	padding: 20px;
}
.fx-pros { border-top: 3px solid var(--fx-green); }
.fx-cons { border-top: 3px solid var(--fx-red); }
.fx-pros h4 { color: var(--fx-green); margin-bottom: 12px; font-size: 15px; }
.fx-cons h4 { color: var(--fx-red); margin-bottom: 12px; font-size: 15px; }
.fx-pros ul, .fx-cons ul { margin: 0; padding: 0; list-style: none; }
.fx-pros li, .fx-cons li { padding-left: 20px; position: relative; margin-bottom: 8px; font-size: 14px; color: var(--fx-text-muted); }
.fx-pros li::before { content: "✓"; position: absolute; left: 0; color: var(--fx-green); font-weight: 700; }
.fx-cons li::before { content: "✗"; position: absolute; left: 0; color: var(--fx-red); }

@media (max-width: 600px) { .fx-pros-cons { grid-template-columns: 1fr; } }

/* ==============================
   TABLE
   ============================== */
.fx-table-wrap { overflow-x: auto; border-radius: var(--fx-radius-sm); border: 1px solid var(--fx-border); }
.fx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fx-table th {
	background: var(--fx-dark-elev);
	color: var(--fx-text-muted);
	font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
	padding: 12px 16px; text-align: left;
	border-bottom: 1px solid var(--fx-border);
}
.fx-table td {
	padding: 13px 16px;
	border-bottom: 1px solid var(--fx-border-soft);
	color: var(--fx-text);
	vertical-align: middle;
}
.fx-table tr:last-child td { border-bottom: 0; }
.fx-table tr:hover td { background: var(--fx-card); }
.fx-table .fx-table-cta { text-align: right; }

/* ==============================
   FAQ ACCORDION
   ============================== */
.fx-faq { border: 1px solid var(--fx-border); border-radius: var(--fx-radius); overflow: hidden; }
.fx-faq-item { border-bottom: 1px solid var(--fx-border-soft); }
.fx-faq-item:last-child { border-bottom: 0; }
.fx-faq-q {
	width: 100%; text-align: left;
	background: transparent; border: none; cursor: pointer;
	padding: 18px 20px;
	display: flex; justify-content: space-between; align-items: center;
	color: var(--fx-text); font-size: 15px; font-weight: 600;
	transition: var(--fx-transition);
}
.fx-faq-q:hover { background: var(--fx-card); }
.fx-faq-q-arrow { font-size: 12px; color: var(--fx-text-muted); transition: transform .2s; flex-shrink: 0; }
.fx-faq-item.open .fx-faq-q-arrow { transform: rotate(180deg); }
.fx-faq-a {
	display: none; padding: 0 20px 18px;
	font-size: 14px; color: var(--fx-text-muted); line-height: 1.7;
}
.fx-faq-item.open .fx-faq-a { display: block; }

/* ==============================
   BREADCRUMB
   ============================== */
.fx-breadcrumb { font-size: 13px; color: var(--fx-text-dim); margin-bottom: 20px; }
.fx-breadcrumb a { color: var(--fx-text-muted); }
.fx-breadcrumb a:hover { color: var(--fx-blue); }
.fx-breadcrumb span { margin: 0 6px; }

/* ==============================
   NEWSLETTER / OPT-IN
   ============================== */
.fx-optin {
	background: var(--fx-dark-elev);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius-lg);
	padding: 48px 40px;
	text-align: center;
}
.fx-optin h2 { margin-bottom: 10px; }
.fx-optin p  { color: var(--fx-text-muted); max-width: 560px; margin: 0 auto 24px; }
.fx-optin-form {
	display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
}
.fx-optin-form input[type="email"] {
	flex: 1;
	background: var(--fx-dark);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius-sm);
	padding: 13px 16px;
	color: var(--fx-text);
	font-size: 15px;
	outline: none;
	transition: var(--fx-transition);
}
.fx-optin-form input[type="email"]:focus { border-color: var(--fx-blue); }
.fx-optin-note { font-size: 12px; color: var(--fx-text-dim); margin-top: 12px; }

@media (max-width: 540px) {
	.fx-optin { padding: 32px 20px; }
	.fx-optin-form { flex-direction: column; }
	.fx-optin-form .fx-btn { width: 100%; }
}

/* ==============================
   AUTHOR BOX
   ============================== */
.fx-author {
	display: flex; gap: 18px; align-items: flex-start;
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius);
	padding: 22px;
}
.fx-author-avatar {
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--fx-blue-glow);
	color: var(--fx-blue);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.fx-author-name { font-weight: 700; margin-bottom: 4px; }
.fx-author-bio  { font-size: 14px; color: var(--fx-text-muted); margin: 0; }

/* ==============================
   HERO - edge-to-edge background, centered inner column (Tailwind-like: w-full + px-* outer, max-w-* inner)
   ============================== */
.fx-hero {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
	background: linear-gradient(135deg, #07101c 0%, #0d1e34 55%, #0a1628 100%);
	/* Horizontal: ~px-6 → md:px-12 → lg:px-20 via clamp */
	padding-top: clamp(72px, 10vw, 96px);
	padding-bottom: clamp(72px, 10vw, 96px);
	padding-left: clamp(1.25rem, 4vw, 5rem);
	padding-right: clamp(1.25rem, 4vw, 5rem);
	position: relative;
	overflow: hidden;
}
.fx-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 70% 50%, rgba(47,140,255,.06), transparent 65%);
	pointer-events: none;
}
/* Optional inner wrapper: same role as max-w-7xl mx-auto (content only) */
.fx-hero-inner {
	width: 100%;
	max-width: var(--fx-container);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}
/* Two-column layout lives on the grid only */
.fx-hero-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: center;
	width: 100%;
	max-width: var(--fx-container);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}
/* If you wrap: <div class="fx-hero-inner"><div class="fx-hero-grid">… avoid double max-width */
.fx-hero-inner > .fx-hero-grid {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}
/* Same inner column when markup uses .fx-page-hero-inner inside .fx-hero (readability width + stacking over ::after) */
.fx-hero .fx-page-hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
}
/* Optional: drop the inner max-width so copy can use the full band (add class on the inner wrapper) */
.fx-hero-inner--full,
.fx-hero .fx-page-hero-inner.fx-hero-inner--full,
.fx-hero .fx-hero-inner.fx-hero-inner--full {
	max-width: none !important;
}
.fx-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin-bottom: 18px; color: var(--fx-text); }
.fx-hero p  { font-size: 18px; line-height: 1.7; color: var(--fx-text-muted); margin-bottom: 32px; }

body.myfx-mode-light .fx-hero {
	background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 55%, #eef4ff 100%);
}

body.myfx-mode-light .fx-hero::after {
	background: radial-gradient(ellipse at 70% 50%, rgba(47,140,255,.12), transparent 65%);
}

body.myfx-mode-light .fx-hero h1 { color: #112240; }
body.myfx-mode-light .fx-hero p  { color: #3d5472; }

@media (min-width: 768px) {
	.fx-hero {
		padding-left: clamp(2rem, 5vw, 5rem);
		padding-right: clamp(2rem, 5vw, 5rem);
	}
}

@media (max-width: 900px) {
	.fx-hero-grid {
		grid-template-columns: 1fr;
	}
	.fx-hero {
		padding-top: 72px;
		padding-bottom: 72px;
	}
}

/* ==============================
   TRUST BAR
   ============================== */
.fx-trust-bar {
	background: var(--fx-dark-elev);
	border-top: 1px solid var(--fx-border);
	border-bottom: 1px solid var(--fx-border);
	padding: 18px 20px;
}
.fx-trust-bar-inner {
	display: flex; justify-content: center; flex-wrap: wrap; gap: 32px;
	max-width: var(--fx-container); margin: 0 auto;
}
.fx-trust-item {
	display: flex; align-items: center; gap: 8px;
	font-size: 14px; font-weight: 600; color: var(--fx-text-muted);
}
.fx-trust-item span { color: var(--fx-green); }

/* Trust bar: single column on narrow viewports (wrapped flex caused 1-col + 2-col rows and uneven alignment) */
@media (max-width: 768px) {
	.fx-trust-bar {
		padding: 14px max(16px, env(safe-area-inset-left, 0px)) 16px max(16px, env(safe-area-inset-right, 0px));
	}
	.fx-trust-bar-inner {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		flex-wrap: nowrap;
		gap: 0;
		max-width: 100%;
	}
	.fx-trust-item {
		width: 100%;
		min-width: 0;
		justify-content: flex-start;
		text-align: left;
		padding: 12px 0;
		margin: 0;
		border-bottom: 1px solid var(--fx-border-soft);
		font-size: 13px;
		line-height: 1.45;
	}
	.fx-trust-item:first-child {
		padding-top: 2px;
	}
	.fx-trust-item:last-child {
		border-bottom: 0;
		padding-bottom: 2px;
	}
	.fx-trust-item span {
		flex-shrink: 0;
		width: 1.1em;
		text-align: center;
	}
}

/* ==============================
   STAT CARDS
   ============================== */
.fx-stat {
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius);
	padding: 24px;
	text-align: center;
}
.fx-stat strong { display: block; font-size: 36px; color: var(--fx-green); line-height: 1; margin-bottom: 6px; }
.fx-stat span { font-size: 14px; color: var(--fx-text-muted); }

/* ==============================
   PATH / LEVEL CARDS
   ============================== */
.fx-path-card {
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius-lg);
	padding: 28px;
	display: flex; flex-direction: column;
	transition: var(--fx-transition);
}
.fx-path-card:hover {
	border-color: rgba(47,140,255,.3);
	transform: translateY(-3px);
	box-shadow: var(--fx-shadow);
}
.fx-path-level {
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
	margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.fx-path-card h3 { font-size: 20px; margin-bottom: 10px; }
.fx-path-card p  { color: var(--fx-text-muted); font-size: 14px; margin-bottom: 20px; flex: 1; }
.fx-path-modules { list-style: none; padding: 0; margin: 0 0 22px; }
.fx-path-modules li {
	padding: 7px 0; border-bottom: 1px solid var(--fx-border-soft);
	font-size: 14px; color: var(--fx-text-muted);
	display: flex; align-items: center; gap: 8px;
}
.fx-path-modules li::before { content: "›"; color: var(--fx-blue); font-weight: 700; }
.fx-path-modules li:last-child { border-bottom: 0; }

/* ==============================
   REVIEW CARD
   ============================== */
.fx-review-card {
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius);
	padding: 24px;
	display: flex; flex-direction: column; gap: 14px;
	transition: var(--fx-transition);
}
.fx-review-card:hover {
	border-color: rgba(0,200,143,.25);
	transform: translateY(-2px);
	box-shadow: var(--fx-shadow);
}
.fx-review-card-header { display: flex; align-items: center; gap: 16px; }
.fx-review-logo {
	width: 80px;
	height: 80px;
	border-radius: 12px;
	background: var(--fx-dark-elev);
	border: 1px solid var(--fx-border);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; color: var(--fx-text-muted); font-size: 14px;
	overflow: hidden;
	flex-shrink: 0;
}
.fx-review-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.fx-review-title h3 { font-size: 17px; margin: 0 0 3px; }
.fx-review-title span { font-size: 13px; color: var(--fx-text-muted); }

.fx-review-title-link {
	color: var(--fx-text);
	text-decoration: none;
	transition: color 0.18s ease;
}
.fx-review-title-link:hover {
	color: var(--fx-green);
}

body.myfx-mode-light .fx-review-title-link {
	color: #0f2140;
}
body.myfx-mode-light .fx-review-title-link:hover {
	color: #1a7a50;
}
.fx-review-score {
	margin-left: auto; text-align: right;
}
.fx-review-score .fx-score-num { font-size: 22px; }
.fx-review-excerpt { font-size: 14px; color: var(--fx-text-muted); line-height: 1.65; margin: 0; }
.fx-review-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 480px) {
	.fx-review-card-header {
		flex-wrap: wrap;
		align-items: flex-start;
	}
	.fx-review-score {
		margin-left: 0;
		width: 100%;
		text-align: left;
	}
}

.fx-review-verdict { font-size: 13px; font-weight: 600; }
.fx-verdict-positive { color: var(--fx-green); }
.fx-verdict-neutral  { color: var(--fx-amber); }

/* ==============================
   BLOG-STYLE REVIEW LIST CARDS
   ============================== */
.fx-blog-card-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.fx-blog-card {
	display: grid;
	grid-template-columns: 200px 1fr;
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius);
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.fx-blog-card:hover {
	border-color: rgba(0,200,143,.3);
	box-shadow: 0 8px 30px rgba(0,0,0,.25), 0 0 0 1px rgba(0,200,143,.1);
	transform: translateY(-2px);
}

/* Left: thumbnail area */
.fx-blog-card-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--fx-dark-elev);
}
.fx-blog-card-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.fx-blog-card:hover .fx-blog-card-thumb-img {
	transform: scale(1.06);
}
.fx-blog-card-no-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--fx-dark-elev) 0%, rgba(0,200,143,.06) 100%);
	font-size: 36px;
	font-weight: 800;
	color: rgba(255,255,255,.08);
	letter-spacing: 2px;
}

/* Score badge overlaid on thumbnail */
.fx-blog-card-score {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	align-items: baseline;
	gap: 1px;
	padding: 5px 10px;
	border-radius: 8px;
	background: rgba(10,15,28,.85);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,.08);
	line-height: 1;
	z-index: 2;
}
.fx-blog-card-score.fx-verdict-positive { border-color: rgba(0,200,143,.4); }
.fx-blog-card-score.fx-verdict-neutral  { border-color: rgba(245,185,70,.35); }
.fx-blog-score-num { font-size: 18px; font-weight: 700; color: #fff; }
.fx-blog-card-score.fx-verdict-positive .fx-blog-score-num { color: var(--fx-green); }
.fx-blog-card-score.fx-verdict-neutral  .fx-blog-score-num { color: var(--fx-amber); }
.fx-blog-score-max { font-size: 10px; color: rgba(255,255,255,.5); }

/* Right: content body */
.fx-blog-card-body {
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.fx-blog-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12px;
}
.fx-blog-card-type {
	color: var(--fx-text-muted);
	background: var(--fx-dark-elev);
	border: 1px solid var(--fx-border);
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.fx-blog-card-title {
	font-size: 17px;
	font-weight: 700;
	margin: 2px 0 0;
	line-height: 1.35;
}
.fx-blog-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
}

/* Responsive */
@media (max-width: 700px) {
	.fx-blog-card {
		grid-template-columns: 1fr;
	}
	.fx-blog-card-thumb {
		height: 170px;
	}
	.fx-blog-card-body {
		padding: 14px 16px;
	}
	.fx-blog-card-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Light mode */
body.myfx-mode-light .fx-blog-card { background: #fff; }
body.myfx-mode-light .fx-blog-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08), 0 0 0 1px rgba(0,160,100,.15); }
body.myfx-mode-light .fx-blog-card-no-thumb { background: linear-gradient(135deg, #f4f6f9 0%, rgba(0,160,100,.04) 100%); color: rgba(0,0,0,.05); }
body.myfx-mode-light .fx-blog-card-score { background: rgba(255,255,255,.9); border-color: rgba(0,0,0,.08); }
body.myfx-mode-light .fx-blog-score-num { color: #1a2940; }
body.myfx-mode-light .fx-blog-card-score.fx-verdict-positive .fx-blog-score-num { color: #0a8f55; }
body.myfx-mode-light .fx-blog-card-score.fx-verdict-neutral .fx-blog-score-num { color: #b8860b; }
body.myfx-mode-light .fx-blog-score-max { color: rgba(0,0,0,.4); }
body.myfx-mode-light .fx-blog-card-type { background: #f0f3f7; }

/* Review hubs (broker / prop / EA): search (left) + filters + actions (one smart row) */
.fx-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.fx-review-hub-toolbar {
	display: grid;
	grid-template-columns: minmax(200px, 1fr) minmax(0, auto);
	align-items: end;
	gap: 16px 24px;
	margin-bottom: 20px;
	padding: 14px 16px 16px;
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius);
}
.fx-review-hub-toolbar__search {
	min-width: 0;
	max-width: 440px;
}
.fx-review-hub-toolbar__search-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--fx-text-muted);
	margin-bottom: 4px;
	letter-spacing: 0.02em;
}
.fx-review-hub-toolbar__search-combo {
	position: relative;
	display: flex;
	align-items: center;
}
.fx-review-hub-toolbar__input {
	width: 100%;
	padding: 10px 44px 10px 14px;
	font-size: 14px;
	line-height: 1.35;
	border: 1px solid var(--fx-border);
	border-radius: 10px;
	background: var(--fx-dark-elev);
	color: var(--fx-text);
	box-sizing: border-box;
}
.fx-review-hub-toolbar__input:focus {
	outline: 2px solid rgba(0, 200, 143, 0.35);
	outline-offset: 1px;
}
body.myfx-mode-light .fx-review-hub-toolbar__input {
	background: #fff;
	color: #1a2940;
	border-color: rgba(0, 0, 0, 0.12);
}
.fx-review-hub-toolbar__search-submit {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 34px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: rgba(0, 200, 143, 0.22);
	color: var(--fx-green);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.fx-review-hub-toolbar__search-submit:hover {
	background: rgba(0, 200, 143, 0.32);
	color: #fff;
}
.fx-review-hub-toolbar__search-submit:focus-visible {
	outline: 2px solid rgba(0, 200, 143, 0.5);
	outline-offset: 2px;
}
body.myfx-mode-light .fx-review-hub-toolbar__search-submit {
	background: rgba(0, 160, 100, 0.15);
	color: #0a8f55;
}
body.myfx-mode-light .fx-review-hub-toolbar__search-submit:hover {
	background: rgba(0, 160, 100, 0.28);
	color: #fff;
}
.fx-review-hub-toolbar__right {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 12px 14px;
	min-width: 0;
}
.fx-review-hub-toolbar__criteria {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 2px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.fx-review-hub-toolbar__criteria::-webkit-scrollbar {
	height: 5px;
}
.fx-review-hub-toolbar__criteria::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.18);
	border-radius: 4px;
}
body.myfx-mode-light .fx-review-hub-toolbar__criteria::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.15);
}
.fx-review-hub-toolbar__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	margin: 0;
	flex: 0 0 auto;
}
.fx-review-hub-toolbar__label {
	color: var(--fx-text-muted);
	font-weight: 600;
	white-space: nowrap;
}
.fx-review-hub-toolbar__select {
	padding: 8px 28px 8px 10px;
	font-size: 13px;
	min-width: 104px;
	max-width: 150px;
	border: 1px solid var(--fx-border);
	border-radius: 8px;
	background-color: var(--fx-dark-elev);
	color: var(--fx-text);
	box-sizing: border-box;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2399a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
}
body.myfx-mode-light .fx-review-hub-toolbar__select {
	background-color: #fff;
	color: #1a2940;
	border-color: rgba(0, 0, 0, 0.12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.fx-review-hub-toolbar__actions {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 10px;
	flex-shrink: 0;
	padding-left: 12px;
	margin-left: 4px;
	border-left: 1px solid var(--fx-border);
	min-height: 38px;
}
.fx-review-hub-toolbar__reset {
	font-size: 13px;
	font-weight: 600;
	color: var(--fx-text-muted);
	text-decoration: none;
	padding: 8px 10px;
	border-radius: 8px;
	white-space: nowrap;
	line-height: 1.2;
	align-self: flex-end;
	margin-bottom: 1px;
	transition: color 0.2s ease, background 0.2s ease;
}
.fx-review-hub-toolbar__reset:hover {
	color: var(--fx-text);
	background: rgba(255, 255, 255, 0.06);
}
body.myfx-mode-light .fx-review-hub-toolbar__reset:hover {
	background: rgba(0, 0, 0, 0.05);
}
.fx-review-hub-layout {
	display: inline-flex;
	border: 1px solid var(--fx-border);
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	align-self: flex-end;
}
.fx-review-hub-layout__btn {
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 600;
	border: none;
	background: var(--fx-dark-elev);
	color: var(--fx-text-muted);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	line-height: 1.25;
	min-height: 36px;
	box-sizing: border-box;
}
.fx-review-hub-layout__btn + .fx-review-hub-layout__btn {
	border-left: 1px solid var(--fx-border);
}
.fx-review-hub-layout__btn:hover {
	color: var(--fx-text);
}
.fx-review-hub-layout__btn.is-active,
.fx-review-hub-layout__btn[aria-pressed="true"] {
	background: rgba(0, 200, 143, 0.15);
	color: var(--fx-green);
}
body.myfx-mode-light .fx-review-hub-layout__btn.is-active,
body.myfx-mode-light .fx-review-hub-layout__btn[aria-pressed="true"] {
	background: rgba(0, 160, 100, 0.12);
	color: #0a8f55;
}
.fx-blog-card-list--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 16px;
}
.fx-blog-card-list--grid .fx-blog-card {
	grid-template-columns: 1fr;
}
.fx-blog-card-list--grid .fx-blog-card-thumb,
.fx-blog-card-list--grid .fx-blog-card-no-thumb {
	min-height: 170px;
}
.fx-blog-card-list--grid .fx-blog-card-thumb-img {
	height: 100%;
	min-height: 170px;
}
.fx-review-hub-empty {
	color: var(--fx-text-muted);
	text-align: center;
	padding: 48px 16px;
	margin: 0;
}
.fx-review-hub-pagination {
	margin-top: 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
}

/* paginate_links() default "plain": a.page-numbers / span.page-numbers as direct children */
.fx-review-hub-pagination a.page-numbers,
.fx-review-hub-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	background: var(--fx-dark-elev);
	border: 1px solid var(--fx-border);
	color: var(--fx-text-muted);
	box-sizing: border-box;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.fx-review-hub-pagination a.page-numbers:hover {
	border-color: rgba(47, 140, 255, 0.35);
	color: var(--fx-text);
}
.fx-review-hub-pagination span.page-numbers.current {
	background: var(--fx-blue-glow);
	border-color: rgba(47, 140, 255, 0.35);
	color: var(--fx-blue);
}
.fx-review-hub-pagination span.page-numbers.dots {
	border: none;
	background: transparent;
	min-width: auto;
	padding: 0 4px;
}

@media (max-width: 960px) {
	.fx-review-hub-toolbar {
		grid-template-columns: 1fr;
		max-width: 100%;
	}
	.fx-review-hub-toolbar__search {
		max-width: none;
	}
	.fx-review-hub-toolbar__right {
		flex-direction: column;
		align-items: stretch;
	}
	.fx-review-hub-toolbar__criteria {
		flex-wrap: nowrap;
		justify-content: flex-start;
		padding-bottom: 4px;
	}
	.fx-review-hub-toolbar__actions {
		border-left: none;
		padding-left: 0;
		margin-left: 0;
		border-top: 1px solid var(--fx-border);
		padding-top: 12px;
		margin-top: 4px;
		justify-content: space-between;
		min-height: 0;
	}
	.fx-review-hub-layout {
		align-self: stretch;
	}
	.fx-review-hub-layout__btn {
		flex: 1;
		text-align: center;
	}
}

/* Review hub listing band: safe-area + readable gutters on phones (toolbar lives outside .entry-content) */
@media (max-width: 560px) {
	body.page-broker-reviews .site-main > article.fx-home-entry + .fx-section .fx-wrap,
	body.page-prop-firm-reviews .site-main > article.fx-home-entry + .fx-section .fx-wrap,
	body.page-ea-indicator-reviews .site-main > article.fx-home-entry + .fx-section .fx-wrap {
		padding-left: max(16px, env(safe-area-inset-left, 0px));
		padding-right: max(16px, env(safe-area-inset-right, 0px));
		box-sizing: border-box;
	}

	body.page-broker-reviews .fx-review-hub-risk-strip .fx-wrap,
	body.page-prop-firm-reviews .fx-review-hub-risk-strip .fx-wrap,
	body.page-ea-indicator-reviews .fx-review-hub-risk-strip .fx-wrap {
		padding-left: max(16px, env(safe-area-inset-left, 0px));
		padding-right: max(16px, env(safe-area-inset-right, 0px));
		box-sizing: border-box;
	}
}

@media (max-width: 480px) {
	.fx-review-hub-toolbar {
		padding: 12px 12px 14px;
	}
	.fx-review-hub-toolbar__criteria {
		flex-wrap: wrap;
		overflow-x: visible;
		overflow-y: visible;
		justify-content: flex-start;
		row-gap: 10px;
	}
}

/* Review hub pages: affiliate disclosure strip (broker / prop / EA hubs) */
.fx-review-hub-disclosure {
	background: var(--fx-dark-elev);
	border-bottom: 1px solid var(--fx-border);
	padding: 12px clamp(14px, 4vw, 20px);
	padding-left: max(14px, env(safe-area-inset-left, 0px));
	padding-right: max(14px, env(safe-area-inset-right, 0px));
	box-sizing: border-box;
}

body.myfx-mode-light .fx-review-hub-disclosure {
	background: #f4f7fb;
	border-bottom-color: var(--fx-border);
}

.fx-review-hub-disclosure .fx-disclosure-bar {
	overflow-wrap: anywhere;
}

/* Legacy hub markup saved before .fx-review-hub-disclosure (inline padding) */
@media (max-width: 560px) {
	body.page-broker-reviews .fx-home-entry .entry-content div[style*="padding:12px 20px"],
	body.page-prop-firm-reviews .fx-home-entry .entry-content div[style*="padding:12px 20px"],
	body.page-ea-indicator-reviews .fx-home-entry .entry-content div[style*="padding:12px 20px"] {
		padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
		padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
	}
}

/* ==============================
   RESOURCE CARD
   ============================== */
.fx-resource-card {
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius);
	padding: 24px;
	display: flex; flex-direction: column; gap: 12px;
	transition: var(--fx-transition);
}
.fx-resource-card:hover { border-color: rgba(0,200,143,.25); transform: translateY(-2px); }
.fx-resource-type {
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
	color: var(--fx-green);
}
.fx-resource-card h3 { font-size: 17px; margin: 0; }
.fx-resource-card p  { font-size: 14px; color: var(--fx-text-muted); margin: 0; flex: 1; }
.fx-resource-meta { font-size: 12px; color: var(--fx-text-dim); }

/* /free-resources/ hub: shortcode grid must not force horizontal scroll; tap-friendly CTAs on phones */
body.page-free-resources .fx-home-entry .entry-content .wp-block-shortcode {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

@media (max-width: 560px) {
	body.page-free-resources .fx-resource-card .fx-btn {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
	}

	body.page-free-resources .fx-section--card .fx-card .fx-btn {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
	}
}

/* ==============================
   POST CARD (BLOG)
   ============================== */
.fx-post-card {
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius);
	overflow: hidden;
	display: flex; flex-direction: column;
	transition: var(--fx-transition);
}
.fx-post-card:hover { border-color: rgba(47,140,255,.25); transform: translateY(-2px); box-shadow: var(--fx-shadow); }
.fx-post-card-img {
	height: 180px; background: var(--fx-dark-elev);
	display: flex; align-items: center; justify-content: center;
	color: var(--fx-text-dim); font-size: 13px;
}
.fx-post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.fx-post-category {
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
	color: var(--fx-blue); margin-bottom: 8px;
}
.fx-post-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.35; }
.fx-post-card p  { font-size: 14px; color: var(--fx-text-muted); flex: 1; margin: 0; }
.fx-post-meta { font-size: 12px; color: var(--fx-text-dim); margin-top: 14px; }

/* Blog archive: card links + media */
.fx-post-card--blog .fx-post-card__title {
	font-size: 17px; font-weight: 600; margin: 0 0 8px; line-height: 1.35;
}
.fx-post-card--blog .fx-post-card__title a {
	color: var(--fx-text);
	text-decoration: none;
	transition: color .2s;
}
.fx-post-card--blog .fx-post-card__title a:hover { color: var(--fx-blue); }
.fx-post-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--fx-dark-elev);
}
.fx-post-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}
.fx-post-card--blog:hover .fx-post-card__img { transform: scale(1.04); }
.fx-post-card__placeholder {
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: linear-gradient(135deg, rgba(47,140,255,.12) 0%, rgba(0,200,143,.08) 100%);
}
.fx-post-card__excerpt {
	font-size: 14px;
	color: var(--fx-text-muted);
	line-height: 1.5;
	margin: 0;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.fx-blog-card-meta-sep { opacity: .5; padding: 0 4px; }

/* Blog page hero tweak */
.fx-page-hero--blog {
	background:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(47, 140, 255, 0.12), transparent 55%),
		linear-gradient(165deg, #070f1c 0%, #0d1e35 100%);
}

/* Topic filter bar */
.fx-blog-topic-bar {
	background: var(--fx-dark-elev);
	border-bottom: 1px solid var(--fx-border);
	padding: 18px 20px;
}
.fx-blog-topic-bar__inner {
	max-width: var(--fx-container);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px 20px;
}
.fx-blog-topic-bar__label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--fx-text-dim);
	padding-top: 6px;
	flex-shrink: 0;
}
.fx-blog-topic-bar__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
a.fx-blog-topic-link {
	text-decoration: none;
	color: inherit;
	transition: border-color .2s, background .2s, color .2s;
}
a.fx-blog-topic-link:hover {
	border-color: rgba(47,140,255,.35);
	color: var(--fx-text);
}
a.fx-blog-topic-link.is-active {
	background: var(--fx-blue-glow);
	border-color: rgba(47,140,255,.35);
	color: var(--fx-blue);
}

/* Featured post */
.fx-blog-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 40px);
	align-items: stretch;
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius);
	overflow: hidden;
	margin-bottom: clamp(36px, 5vw, 52px);
	box-shadow: var(--fx-shadow-card);
	transition: border-color .2s, box-shadow .2s;
}
.fx-blog-featured:hover {
	border-color: rgba(47,140,255,.22);
	box-shadow: var(--fx-shadow);
}
.fx-blog-featured__media {
	display: block;
	position: relative;
	min-height: 220px;
	background: var(--fx-dark-elev);
}
.fx-blog-featured__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 220px;
	transition: transform .5s ease;
}
.fx-blog-featured:hover .fx-blog-featured__img { transform: scale(1.03); }
.fx-blog-featured__placeholder {
	width: 100%;
	height: 100%;
	min-height: 220px;
	background: linear-gradient(145deg, rgba(47,140,255,.15) 0%, rgba(0,200,143,.1) 50%, var(--fx-dark-elev) 100%);
}
.fx-blog-featured__body {
	padding: clamp(24px, 3vw, 36px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.fx-blog-featured__title {
	font-size: clamp(22px, 2.5vw, 28px);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 12px;
}
.fx-blog-featured__title a {
	color: var(--fx-text);
	text-decoration: none;
}
.fx-blog-featured__title a:hover { color: var(--fx-blue); }
.fx-blog-featured__excerpt {
	font-size: 15px;
	color: var(--fx-text-muted);
	line-height: 1.55;
	margin: 0 0 20px;
}
.fx-blog-featured__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.fx-blog-post-grid { margin-top: 8px; }

/* Pagination */
.fx-blog-pagination {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--fx-border);
}
.fx-blog-pagination .page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.fx-blog-pagination li { margin: 0; }
.fx-blog-pagination a.page-numbers,
.fx-blog-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	background: var(--fx-dark-elev);
	border: 1px solid var(--fx-border);
	color: var(--fx-text-muted);
	transition: background .2s, border-color .2s, color .2s;
}
.fx-blog-pagination a.page-numbers:hover {
	border-color: rgba(47,140,255,.35);
	color: var(--fx-text);
}
.fx-blog-pagination span.page-numbers.current {
	background: var(--fx-blue-glow);
	border-color: rgba(47,140,255,.35);
	color: var(--fx-blue);
}
.fx-blog-pagination span.page-numbers.dots {
	border: none;
	background: transparent;
	min-width: auto;
}

.fx-blog-empty {
	text-align: center;
	padding: 48px 24px;
	background: var(--fx-card);
	border: 1px dashed var(--fx-border);
	border-radius: var(--fx-radius);
}
.fx-blog-empty__title { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--fx-text); }
.fx-blog-empty__text { color: var(--fx-text-muted); margin: 0 0 20px; max-width: 420px; margin-left: auto; margin-right: auto; }

.fx-blog-more-soon {
	text-align: center;
	color: var(--fx-text-muted);
	font-size: 15px;
	margin: 0;
	padding: 8px 0 0;
}

/* Single blog post: featured/cover image comes from block content (full-width), not duplicated here */
.fx-blog-single .inside-article { max-width: 800px; margin: 0 auto; padding: 0 20px 48px; }
.single-post #primary .comments-area,
.single-post .mfx-blog-comments-area {
	box-sizing: border-box;
}
.fx-blog-single__cats {
	font-size: 13px;
	margin: 0 0 10px;
}
.fx-blog-single__cat {
	color: var(--fx-blue);
	font-weight: 600;
	text-decoration: none;
}
.fx-blog-single__cat:hover { text-decoration: underline; }
.fx-blog-single__cat-sep { opacity: .4; }
.fx-blog-single__meta-strip {
	font-size: 14px;
	color: var(--fx-text-muted);
	margin: 0 0 16px;
}
.fx-blog-single__sep { opacity: .5; padding: 0 6px; }
.fx-blog-single__author-link {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}
.fx-blog-single__author-link:hover {
	color: var(--fx-blue);
	text-decoration: underline;
}
.fx-blog-single .entry-header { margin-bottom: 24px; }
/* Featured image (GP): rounded cover below title */
.single-post .featured-image.page-header-image-single {
	border-radius: var(--fx-radius-lg);
	overflow: hidden;
	margin-bottom: 1.5rem;
}
.single-post .featured-image.page-header-image-single img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: inherit;
	vertical-align: middle;
}
.fx-blog-single .entry-header .entry-title {
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0;
}
.fx-blog-single__content {
	font-size: 17px;
	line-height: 1.75;
	color: var(--fx-text-muted);
}
.fx-blog-single__content > p:first-child { margin-top: 0; }
.fx-blog-single__content h2,
.fx-blog-single__content h3,
.fx-blog-single__content h4 {
	color: var(--fx-text);
	margin-top: 1.6em;
	margin-bottom: 0.6em;
	line-height: 1.3;
}
.fx-blog-single__content blockquote {
	border-left: 3px solid var(--fx-blue);
	margin: 1.5em 0;
	padding: 8px 0 8px 20px;
	background: rgba(47,140,255,.06);
	border-radius: 0 8px 8px 0;
}
.fx-blog-single__content img { border-radius: 8px; }

/* Blog single: in-template sidebar (single-post.php) */
.single-post .mfx-blog-sidebar-shell {
	position: sticky;
	top: 1.25rem;
	align-self: flex-start;
}
.single-post .mfx-blog-sidebar-shell .widget {
	background: linear-gradient(180deg, rgba(19, 27, 48, 0.96) 0%, rgba(10, 14, 26, 0.98) 100%);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 16px;
	padding: 1rem 1.15rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 2px 0 rgba(255, 255, 255, 0.03) inset;
}
.single-post .mfx-blog-sidebar-shell .widget:last-child {
	margin-bottom: 0;
}
.single-post .mfx-blog-sidebar-shell .widget-title {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: var(--fx-text);
	letter-spacing: -0.02em;
}
.single-post .mfx-blog-sidebar-shell .widget a {
	color: var(--fx-blue);
}
.single-post .mfx-blog-sidebar-shell .widget a:hover {
	color: #8ec5ff;
}
.single-post .mfx-blog-sidebar-shell .widget ul {
	margin: 0;
	padding-left: 1.1rem;
}
.single-post .mfx-blog-sidebar-shell .widget li {
	margin: 0.35em 0;
	color: var(--fx-text-muted);
}

/* Programmatic sidebar blocks (blog-sidebar.php): Author, CTA, Categories */
.single-post .mfx-blog-sidebar-shell .fx-blog-sidebar-widget--cta {
	margin-bottom: 1.25rem;
}
.single-post .mfx-blog-sidebar-shell .fx-blog-sidebar-widget--cta .myfxedu-newsletter-cta {
	flex-direction: column;
	align-items: stretch;
	text-align: left;
	gap: 1rem;
	padding: 1.25rem;
}
.single-post .mfx-blog-sidebar-shell .fx-blog-sidebar-widget--cta .myfxedu-newsletter-cta > .myfxedu-button {
	width: 100%;
	justify-content: center;
	text-align: center;
}
.fx-blog-sidebar-author {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.fx-blog-sidebar-author__avatar {
	border-radius: 50%;
	flex-shrink: 0;
}
.fx-blog-sidebar-author__name {
	font-weight: 700;
	color: var(--fx-text);
	margin-bottom: 6px;
	font-size: 1rem;
}
.fx-blog-sidebar-author__bio {
	font-size: 14px;
	color: var(--fx-text-muted);
	margin: 0 0 10px;
	line-height: 1.5;
}
.fx-blog-sidebar-author__link {
	font-size: 13px;
	font-weight: 600;
	color: var(--fx-blue);
}
.fx-blog-sidebar-author__link:hover {
	color: var(--fx-green);
}
.fx-blog-sidebar-categories {
	list-style: none;
	padding: 0;
	margin: 0;
}
.fx-blog-sidebar-categories li {
	margin: 0.45em 0;
}
.fx-blog-sidebar-empty {
	margin: 0;
	font-size: 14px;
	color: var(--fx-text-muted);
}

/* Blog single: Related Resources / Related Posts / Risk - full width below main + sidebar row */
.single-post .myfxedu-blog-below-columns {
	width: 100%;
	margin: 0;
	padding: 2rem 20px 3rem;
	box-sizing: border-box;
	border-top: 1px solid var(--fx-border);
	background: rgba(5, 12, 22, 0.5);
}
.single-post .myfxedu-blog-below-columns__inner {
	max-width: min(var(--fx-container, 1180px), 100%);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}
.single-post .myfxedu-blog-below-columns .myfxedu-blog-related-posts {
	margin: 0;
}

@media (max-width: 900px) {
	.fx-blog-featured { grid-template-columns: 1fr; }
	.fx-blog-featured__media { min-height: 200px; }
	.single-post .mfx-blog-sidebar-shell {
		position: static;
	}
}

body.myfx-mode-light .fx-blog-featured {
	background: #fff;
	border-color: #dde3f0;
}
body.myfx-mode-light .fx-blog-featured__title a { color: #112240; }
body.myfx-mode-light .fx-post-card--blog .fx-post-card__title a { color: #112240; }
body.myfx-mode-light .fx-post-card__placeholder,
body.myfx-mode-light .fx-blog-featured__placeholder {
	background: linear-gradient(145deg, rgba(30,100,210,.08) 0%, rgba(0,160,100,.06) 100%);
}
body.myfx-mode-light .fx-blog-topic-bar { background: #f4f7fb; border-color: #dde3f0; }
body.myfx-mode-light a.fx-blog-topic-link.is-active {
	background: rgba(30,100,210,.08);
	color: #1858bc;
	border-color: rgba(30,100,210,.2);
}
body.myfx-mode-light .fx-blog-pagination a.page-numbers,
body.myfx-mode-light .fx-blog-pagination span.page-numbers {
	background: #fff;
	border-color: #dde3f0;
	color: #3d5473;
}
body.myfx-mode-light .fx-review-hub-pagination a.page-numbers,
body.myfx-mode-light .fx-review-hub-pagination span.page-numbers {
	background: #fff;
	border-color: #dde3f0;
	color: #3d5473;
}
body.myfx-mode-light .fx-review-hub-pagination span.page-numbers.current {
	background: rgba(30, 100, 210, 0.08);
	border-color: rgba(30, 100, 210, 0.2);
	color: #1858bc;
}
body.myfx-mode-light .fx-blog-single__content { color: #3d5473; }
body.myfx-mode-light .fx-blog-single .entry-header .entry-title { color: #112240; }
body.myfx-mode-light .single-post .mfx-blog-sidebar-shell .widget {
	background: #fff;
	border-color: #dde3f0;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
body.myfx-mode-light .single-post .mfx-blog-sidebar-shell .widget-title { color: #112240; }
body.myfx-mode-light .single-post .mfx-blog-sidebar-shell .widget li { color: #3d5473; }
body.myfx-mode-light .single-post .myfxedu-blog-below-columns {
	background: #f4f7fb;
	border-color: #dde3f0;
}

/* ==============================
   STEP / PROCESS BLOCK
   ============================== */
.fx-steps { display: flex; flex-direction: column; gap: 0; }
.fx-step {
	display: flex; gap: 18px;
	padding: 20px 0;
	border-bottom: 1px solid var(--fx-border-soft);
}
.fx-step:last-child { border-bottom: 0; }
.fx-step-num {
	width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
	background: var(--fx-blue);
	color: #ffffff; font-weight: 700; font-size: 14px;
	display: flex; align-items: center; justify-content: center;
}
.fx-step h3 { font-size: 16px; margin-bottom: 6px; }
.fx-step p  { font-size: 14px; color: var(--fx-text-muted); margin: 0; }

/* ==============================
   TAG / PILL
   ============================== */
.fx-tag {
	display: inline-block;
	background: var(--fx-dark-elev);
	border: 1px solid var(--fx-border);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12px; color: var(--fx-text-muted);
}
.fx-tag--green { background: var(--fx-green-dim); border-color: rgba(0,200,143,.2); color: var(--fx-green); }
.fx-tag--blue  { background: var(--fx-blue-glow); border-color: rgba(47,140,255,.2); color: var(--fx-blue); }

/* ==============================
   FORM
   ============================== */
.fx-form-group { margin-bottom: 18px; }
.fx-form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.fx-form-group input,
.fx-form-group textarea,
.fx-form-group select {
	width: 100%;
	background: var(--fx-dark);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius-sm);
	padding: 12px 14px;
	color: var(--fx-text); font-size: 15px;
	outline: none; transition: border-color .2s;
}
.fx-form-group input:focus,
.fx-form-group textarea:focus,
.fx-form-group select:focus { border-color: var(--fx-blue); }
.fx-form-group textarea { min-height: 130px; resize: vertical; }

/* ==============================
   FOOTER
   ============================== */
.fx-footer {
	background: var(--fx-black);
	border-top: 1px solid var(--fx-border);
	padding: 60px 20px 0;
}
.fx-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: 40px;
	max-width: var(--fx-container);
	margin: 0 auto 40px;
	padding: 0;
	box-sizing: border-box;
	text-align: left;
}
.fx-footer-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.fx-footer-tags {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 4px;
	justify-content: flex-start;
}
.fx-footer-brand p { font-size: 14px; color: var(--fx-text-muted); margin: 12px 0 18px; line-height: 1.7; max-width: 42rem; }
.fx-footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--fx-text-muted); margin-bottom: 14px; }
.fx-footer-col ul { list-style: none; padding: 0; margin: 0; }

/* ==============================
  HOMEPAGE UTILITIES
   ============================== */
.fx-home-grid-gap {
	margin-bottom: 32px;
}

.fx-home-center {
	text-align: center;
}

.fx-home-note-gap {
	margin-top: 20px;
}

.fx-home-risk-link {
	color: var(--fx-amber);
}

.fx-home-hero-sidecard {
	background: var(--fx-card);
	border-color: var(--fx-border);
}

.fx-home-hero-sidecard-title {
	color: var(--fx-text);
	margin-bottom: 16px;
	font-size: 17px;
}

.fx-home-benefits-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.fx-home-benefit-item {
	padding: 8px 0 8px 24px;
	position: relative;
	border-bottom: 1px solid var(--fx-border-soft);
	color: var(--fx-text-muted);
	font-size: 14px;
}

.fx-home-benefit-check {
	position: absolute;
	left: 0;
	color: var(--fx-green);
	font-weight: 700;
}

.fx-home-market-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.fx-home-market-lead {
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 24px;
	color: var(--fx-text-muted);
}

.fx-home-market-card {
	background: var(--fx-card);
	border-color: var(--fx-border);
}

.fx-home-market-kicker {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: var(--fx-blue);
	margin-bottom: 10px;
}

.fx-home-market-title {
	color: var(--fx-text);
	font-size: 18px;
	margin-bottom: 10px;
}

.fx-home-market-excerpt {
	color: var(--fx-text-muted);
	font-size: 14px;
	margin-bottom: 18px;
}

.fx-home-market-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.fx-home-market-time {
	font-size: 12px;
	color: var(--fx-text-dim);
}

.fx-home-trust-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}

.fx-home-trust-lead {
	color: var(--fx-text-muted);
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 28px;
}

.fx-home-trust-card-first {
	margin-bottom: 16px;
}

.fx-home-trust-emoji {
	font-size: 22px;
	margin-bottom: 8px;
}

.fx-home-trust-card-title {
	font-size: 17px;
	margin-bottom: 6px;
}

.fx-home-trust-card-link {
	margin-top: 14px;
}

body.myfx-mode-light .fx-home-hero-sidecard,
body.myfx-mode-light .fx-home-market-card {
	background: #ffffff;
	border-color: #dde3f0;
}

body.myfx-mode-light .fx-home-benefit-item {
	border-bottom-color: #e5ecf7;
	color: #3f516d;
}

body.myfx-mode-light .fx-home-market-excerpt {
	color: #4c607d;
}

body.myfx-mode-light .fx-home-market-time {
	color: #6f84a2;
}

body.myfx-mode-light .fx-footer {
	background: #f2f6fd;
	border-top-color: #dde3f0;
}

/* Footer brand link */
.fx-footer-brand-link {
	font-size: clamp(17px, 2.8vw, 20px);
	font-weight: 700;
	color: #f3f7ff;
	text-decoration: none;
	word-break: break-word;
}
.fx-footer-brand-accent { color: var(--fx-green); }

body.myfx-mode-light .fx-footer-brand-link { color: #0f2140; }
body.myfx-mode-light .fx-footer-brand-accent { color: #0a8f55; }

body.myfx-mode-light .fx-footer-col h4 { color: #3d5473; }
body.myfx-mode-light .fx-footer-col ul li a { color: #4a6080; }
body.myfx-mode-light .fx-footer-col ul li a:hover { color: #0f2140; }
body.myfx-mode-light .fx-footer-bottom { border-top-color: #dde3f0; }
body.myfx-mode-light .fx-footer-disclaimer { color: #5a7090; }
body.myfx-mode-light .fx-footer-disclaimer strong { color: #3d5473; }
body.myfx-mode-light .fx-footer-disclaimer a { color: #4a6080; }
body.myfx-mode-light .fx-footer-copy { color: #6a80a0; }
body.myfx-mode-light .fx-footer-foundation { color: #6a80a0; }
body.myfx-mode-light .fx-footer-foundation-link,
body.myfx-mode-light .fx-footer-foundation-link:hover,
body.myfx-mode-light .fx-footer-foundation-link:focus {
	color: inherit;
	text-decoration: none;
}

/* Review score box in hero */
.fx-review-score-box {
	background: rgba(0,200,143,.12);
	border: 1px solid rgba(0,200,143,.25);
	border-radius: var(--fx-radius);
	padding: 20px;
	text-align: center;
	min-width: 120px;
}
body.myfx-mode-light .fx-review-score-box {
	background: rgba(0,160,100,.06);
	border-color: rgba(0,160,100,.18);
}

/* Stars color (stays amber in both modes) */
body.myfx-mode-light .fx-stars { color: #c98a10; }

@media (max-width: 900px) {
	.fx-home-market-grid,
	.fx-home-trust-grid {
		grid-template-columns: 1fr;
	}
}
.fx-footer-col ul li { margin-bottom: 9px; }
.fx-footer-col ul li a { font-size: 14px; color: var(--fx-text-muted); }
.fx-footer-col ul li a:hover { color: var(--fx-text); }
.fx-footer-bottom {
	max-width: var(--fx-container);
	margin: 0 auto;
	padding: 20px 0;
	border-top: 1px solid var(--fx-border-soft);
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 16px;
	box-sizing: border-box;
	text-align: left;
}
.fx-footer-disclaimer {
	font-size: 12px;
	color: var(--fx-text-dim);
	line-height: 1.7;
	width: 100%;
	max-width: 100%;
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
	box-sizing: border-box;
}
.fx-footer-copy {
	font-size: 13px;
	color: var(--fx-text-dim);
	white-space: normal;
	flex: 0 1 auto;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}
.fx-footer-copy-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.fx-footer-foundation {
	font-size: 13px;
	color: var(--fx-text-dim);
}
.fx-footer-foundation-link {
	color: inherit;
	text-decoration: none;
}
.fx-footer-foundation-link:hover,
.fx-footer-foundation-link:focus {
	color: inherit;
	text-decoration: none;
}

/* Footer: phones / small tablets — center columns like typical mobile footers */
@media (max-width: 720px) {
	.fx-footer-grid {
		text-align: center;
	}
	.fx-footer-brand {
		align-items: center;
	}
	.fx-footer-tags {
		justify-content: center;
	}
	.fx-footer-bottom {
		justify-content: center;
		align-items: center;
		text-align: center;
	}
	.fx-footer-disclaimer {
		margin-left: auto;
		margin-right: auto;
	}
	.fx-footer-copy-row {
		align-items: center;
	}
}

/* Footer: tablet — brand full width, three link columns */
@media (max-width: 1024px) {
	.fx-footer {
		padding: 48px 20px 0;
	}
	.fx-footer-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 32px 24px;
		margin-bottom: 32px;
	}
	.fx-footer-brand {
		grid-column: 1 / -1;
	}
}

/* Footer: small tablet / large phone — two columns, legal row full width */
@media (max-width: 720px) {
	.fx-footer {
		padding: 40px 16px 0;
	}
	.fx-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}
	.fx-footer-brand {
		grid-column: 1 / -1;
	}
	.fx-footer-col:last-child {
		grid-column: 1 / -1;
	}
}

/* Footer bottom: comfortable padding on narrow screens */
@media (max-width: 640px) {
	.fx-footer-bottom {
		padding: 18px 0 20px;
		gap: 14px;
	}
	.fx-footer-disclaimer {
		max-width: 100%;
	}
}

/* Footer: single column link blocks */
@media (max-width: 520px) {
	.fx-footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.fx-footer-col:last-child {
		grid-column: auto;
	}
}

/* ==============================
   PAGE HERO (INNER PAGES)
   ============================== */
.fx-page-hero {
	background: linear-gradient(160deg, #070f1c 0%, #0d1e35 100%);
	padding: 64px 20px;
	border-bottom: 1px solid var(--fx-border);
}
.fx-page-hero-inner { max-width: var(--fx-container); margin: 0 auto; }
.fx-page-hero h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; color: var(--fx-text); }
.fx-page-hero p  { color: var(--fx-text-muted); font-size: 17px; margin: 0; max-width: 680px; }

body.myfx-mode-light .fx-page-hero {
	background: linear-gradient(160deg, #eff5ff 0%, #f8fbff 100%);
}
body.myfx-mode-light .fx-page-hero h1 { color: #112240; }
body.myfx-mode-light .fx-page-hero p  { color: #3d5472; }

/* Education + learning paths + free resources: top padding clears notch/status bar (hero CTAs were clipping on iPhone) */
body.page-education .fx-home-entry .entry-content .fx-page-hero,
body.myfxedu-education-hub .fx-home-entry .entry-content .fx-page-hero,
body.page-free-resources .fx-home-entry .entry-content .fx-page-hero,
body.myfxedu-learning-path-page .fx-home-entry .entry-content .fx-page-hero {
	padding-top: calc(env(safe-area-inset-top, 0px) + clamp(20px, 4vw, 40px)) !important;
}

/* Review hubs: clear sticky header + notch/status bar (broker / prop / EA) */
body.page-broker-reviews .fx-home-entry .entry-content .fx-page-hero,
body.page-prop-firm-reviews .fx-home-entry .entry-content .fx-page-hero,
body.page-ea-indicator-reviews .fx-home-entry .entry-content .fx-page-hero {
	padding-top: calc(env(safe-area-inset-top, 0px) + clamp(24px, 4vw, 44px)) !important;
}

/* /education/, learning-path & review hubs — hero CTAs stack full-width on narrow screens */
@media (max-width: 560px) {
	body.page-education .fx-home-entry .entry-content .fx-page-hero .fx-actions,
	body.myfxedu-education-hub .fx-home-entry .entry-content .fx-page-hero .fx-actions,
	body.myfxedu-learning-path-page .fx-home-entry .entry-content .fx-page-hero .fx-actions,
	body.page-broker-reviews .fx-home-entry .entry-content .fx-page-hero .fx-actions,
	body.page-prop-firm-reviews .fx-home-entry .entry-content .fx-page-hero .fx-actions,
	body.page-ea-indicator-reviews .fx-home-entry .entry-content .fx-page-hero .fx-actions {
		flex-direction: column;
		align-items: stretch;
	}
	body.page-education .fx-home-entry .entry-content .fx-page-hero .fx-actions .fx-btn,
	body.myfxedu-education-hub .fx-home-entry .entry-content .fx-page-hero .fx-actions .fx-btn,
	body.myfxedu-learning-path-page .fx-home-entry .entry-content .fx-page-hero .fx-actions .fx-btn,
	body.page-broker-reviews .fx-home-entry .entry-content .fx-page-hero .fx-actions .fx-btn,
	body.page-prop-firm-reviews .fx-home-entry .entry-content .fx-page-hero .fx-actions .fx-btn,
	body.page-ea-indicator-reviews .fx-home-entry .entry-content .fx-page-hero .fx-actions .fx-btn {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
	}

	/* /education/ hub & /free-resources/: same phone hero spacing + body copy as learning-path pages */
	body.page-education .fx-home-entry .entry-content .fx-page-hero,
	body.myfxedu-education-hub .fx-home-entry .entry-content .fx-page-hero,
	body.page-free-resources .fx-home-entry .entry-content .fx-page-hero,
	body.page-broker-reviews .fx-home-entry .entry-content .fx-page-hero,
	body.page-prop-firm-reviews .fx-home-entry .entry-content .fx-page-hero,
	body.page-ea-indicator-reviews .fx-home-entry .entry-content .fx-page-hero {
		padding-left: max(16px, env(safe-area-inset-left, 0px));
		padding-right: max(16px, env(safe-area-inset-right, 0px));
		padding-bottom: clamp(36px, 10vw, 64px);
	}
	body.page-education .fx-home-entry .entry-content .fx-page-hero p,
	body.myfxedu-education-hub .fx-home-entry .entry-content .fx-page-hero p,
	body.page-free-resources .fx-home-entry .entry-content .fx-page-hero p,
	body.page-broker-reviews .fx-home-entry .entry-content .fx-page-hero p,
	body.page-prop-firm-reviews .fx-home-entry .entry-content .fx-page-hero p,
	body.page-ea-indicator-reviews .fx-home-entry .entry-content .fx-page-hero p {
		font-size: 16px;
		line-height: 1.55;
	}

	/* Learning path (/education/risk-management/, etc.): safe-area insets + readable intro on phones */
	body.myfxedu-learning-path-page .fx-home-entry .entry-content .fx-page-hero {
		padding-left: max(16px, env(safe-area-inset-left, 0px));
		padding-right: max(16px, env(safe-area-inset-right, 0px));
		padding-bottom: clamp(36px, 10vw, 64px);
	}
	body.myfxedu-learning-path-page .fx-home-entry .entry-content .fx-page-hero p {
		font-size: 16px;
		line-height: 1.55;
	}

	body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-myfxedu-learning-path,
	body.myfxedu-learning-path-page .fx-home-entry .entry-content > .myfxedu-learning-path {
		padding-left: max(16px, env(safe-area-inset-left, 0px));
		padding-right: max(16px, env(safe-area-inset-right, 0px));
	}

	body.myfxedu-learning-path-page .fx-home-entry .entry-content .wp-block-myfxedu-learning-path.myfxedu-learning-path-block--contained {
		padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
		padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
	}
}

/* /education/ — “Recommended start” card (stack on phones; !important beats legacy inline grid in post_content) */
body.page-education .fx-education-recommended-row,
body.myfxedu-education-hub .fx-education-recommended-row,
#fx-education-recommended {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, auto);
	gap: clamp(1rem, 3vw, 1.5rem);
	align-items: center;
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	border-radius: var(--fx-radius-lg);
	padding: clamp(1.25rem, 4vw, 2.25rem);
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

body.page-education .fx-education-recommended-row__copy,
body.myfxedu-education-hub .fx-education-recommended-row__copy {
	min-width: 0;
}

/* Old synced HTML used inline grid — force readable mobile layout */
@media (max-width: 900px) {
	body.page-education .fx-education-recommended-row,
	body.myfxedu-education-hub .fx-education-recommended-row,
	#fx-education-recommended,
	body.page-education .fx-wrap--full [style*="1fr auto"],
	body.myfxedu-education-hub .fx-wrap--full [style*="1fr auto"] {
		display: grid !important;
		grid-template-columns: 1fr !important;
		justify-items: stretch !important;
		align-items: stretch !important;
		text-align: center !important;
		gap: 1rem !important;
	}

	body.page-education .fx-education-recommended-row__cta,
	body.myfxedu-education-hub .fx-education-recommended-row__cta,
	#fx-education-recommended > a,
	body.page-education .fx-wrap--full [style*="1fr auto"] > a,
	body.myfxedu-education-hub .fx-wrap--full [style*="1fr auto"] > a {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		justify-content: center !important;
		box-sizing: border-box !important;
		white-space: normal !important;
	}

	body.page-education .fx-education-recommended-row__copy,
	body.myfxedu-education-hub .fx-education-recommended-row__copy,
	#fx-education-recommended > div:first-child {
		text-align: center;
	}
}

@media (max-width: 600px) {
	.fx-education-recommended-row h2,
	#fx-education-recommended h2 {
		font-size: clamp(1.3rem, 5.5vw, 1.5rem) !important;
		line-height: 1.22 !important;
	}

	body.page-education .fx-section--dark .fx-wrap--full,
	body.myfxedu-education-hub .fx-section--dark .fx-wrap--full {
		padding-left: max(14px, env(safe-area-inset-left, 0px)) !important;
		padding-right: max(14px, env(safe-area-inset-right, 0px)) !important;
	}
}

/* /education/ — featured courses band: center CTAs, full-width buttons when stacked */
@media (max-width: 560px) {
	body.page-education .fx-section--hero-bg .fx-actions .fx-btn,
	body.myfxedu-education-hub .fx-section--hero-bg .fx-actions .fx-btn {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
	}
}

/* /education/ — topic cards are links; prevent grid blowout */
body.page-education .fx-education-topic-card-link,
body.myfxedu-education-hub .fx-education-topic-card-link {
	text-decoration: none;
	color: inherit;
	min-width: 0;
	display: block;
}

/* Learning path pages: “Start Learning →” links to #modules; offset for sticky site header */
.fx-section.fx-learning-path-modules#modules {
	scroll-margin-top: 96px;
}

/* Learning path shell (prop-trading, beginner, …): main column + sidebar — plugin shell uses .fx-learning-path-layout */
.fx-learning-path-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 4vw, 2.5rem);
	align-items: start;
}

.fx-learning-path-layout__main,
.fx-learning-path-layout__aside {
	min-width: 0;
}

/* Path Details rows: allow label/value to wrap on narrow screens */
.fx-learning-path-layout__aside .fx-card [style*="flex-direction:column"] > div[style*="justify-content:space-between"] {
	flex-wrap: wrap;
	row-gap: 0.35rem;
	column-gap: 1rem;
	align-items: baseline;
}

.fx-learning-path-layout__aside .fx-card [style*="flex-direction:column"] > div[style*="justify-content:space-between"] span:last-child {
	text-align: right;
}

@media (max-width: 900px) {
	.fx-learning-path-layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	/* Legacy shell (inline 2fr 1fr grid) saved in post content before class-based layout */
	.fx-section.fx-learning-path-modules .fx-wrap > div[style*="grid-template-columns:2fr 1fr"] {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 1.5rem !important;
	}
}

@media (max-width: 560px) {
	.fx-section.fx-learning-path-modules#modules {
		scroll-margin-top: 72px;
	}

	/* Modules band: slightly tighter on phones */
	.fx-section.fx-learning-path-modules .fx-wrap {
		padding-left: max(16px, env(safe-area-inset-left, 0px));
		padding-right: max(16px, env(safe-area-inset-right, 0px));
	}

	.fx-learning-path-modules .fx-step {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 16px 0;
	}

	.fx-learning-path-modules .fx-step-num {
		width: 40px;
		height: 40px;
		font-size: 13px;
	}
}

/* Light mode tag pills */
body.myfx-mode-light .fx-tag {
	background: #eef3fb;
	border-color: #d0dae8;
	color: #3d5473;
}
body.myfx-mode-light .fx-tag--green {
	background: rgba(0,160,100,.06);
	border-color: rgba(0,160,100,.18);
	color: #0a7a4a;
}
body.myfx-mode-light .fx-tag--blue {
	background: rgba(30,100,210,.06);
	border-color: rgba(30,100,210,.18);
	color: #1858bc;
}

/* Light mode risk bar adjustments */
body.myfx-mode-light .fx-risk-bar {
	background: rgba(200,140,20,.06);
	border-color: rgba(180,120,10,.2);
}

/* Light mode disclosure bar */
body.myfx-mode-light .fx-disclosure-bar {
	background: rgba(47,140,255,.05);
	border-color: rgba(47,140,255,.15);
	color: #3d5473;
}

/* Light mode optin section */
body.myfx-mode-light .fx-optin {
	background: #ffffff;
	border-color: #dde3f0;
}

/* Light mode author box */
body.myfx-mode-light .fx-author {
	background: #ffffff;
	border-color: #dde3f0;
}

/* Light mode FAQ */
body.myfx-mode-light .fx-faq {
	border-color: #dde3f0;
}
body.myfx-mode-light .fx-faq-item {
	border-bottom-color: #e8edf8;
}
body.myfx-mode-light .fx-faq-q:hover {
	background: #f4f7fb;
}

/* Light mode table */
body.myfx-mode-light .fx-table-wrap {
	border-color: #dde3f0;
}
body.myfx-mode-light .fx-table th {
	background: #f0f4fb;
	border-bottom-color: #dde3f0;
}

/* Light mode badge label */
body.myfx-mode-light .fx-badge-label {
	background: rgba(0,160,100,.06);
	border-color: rgba(0,160,100,.18);
	color: #0a7a4a;
}

/* ==============================
   RESOURCE THANK YOU (/resource-thank-you/)
   ============================== */

/* Global reset sets padding: 0 !important — one override on the wrapper before the footer. */
body.page-resource-thank-you #page .site-content {
	padding-bottom: clamp(3rem, 8vw, 5.5rem) !important;
}

/* ==============================
   CONTACT PAGE (/contact/)
   ============================== */

/* Match Education / review hubs: full-width primary + entry (contact uses page-contact.php, not .fx-home-entry). */
body.page-contact,
body.page-contact #page,
body.page-contact .site {
	max-width: 100% !important;
	margin: 0 !important;
}

body.page-contact .site-content .content-area,
body.page-contact #primary.content-area {
	flex: 1 1 100% !important;
	min-width: 0 !important;
	width: 100% !important;
	max-width: none !important;
}

body.page-contact .site-content,
body.page-contact #primary.content-area,
body.page-contact .site-main {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.page-contact.separate-containers .site-main {
	margin: 0 !important;
}

body.page-contact .fx-contact-page {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

body.page-contact .fx-contact-page .entry-content,
body.page-contact .fx-contact-page__content {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.page-contact {
	overflow-x: visible;
}

body.page-contact #page {
	overflow-x: visible;
}

body.page-contact .fx-contact-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 50% at 15% -10%, rgba(79, 209, 139, 0.14) 0%, transparent 55%),
		radial-gradient(ellipse 55% 40% at 92% 18%, rgba(47, 140, 255, 0.1) 0%, transparent 50%),
		linear-gradient(165deg, #060d18 0%, #0e1c32 48%, #0a1424 100%);
}

body.page-contact .fx-contact-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 70%);
	pointer-events: none;
}

body.page-contact .fx-contact-hero .fx-page-hero-inner {
	position: relative;
	z-index: 1;
}

body.page-contact .fx-contact-hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	margin-top: 1.25rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(180, 198, 220, 0.85);
}

body.page-contact .fx-contact-hero-meta__dot {
	opacity: 0.45;
	font-weight: 400;
}

body.page-contact .fx-contact-body {
	padding-top: 0 !important;
	padding-bottom: clamp(2.5rem, 5vw, 3.75rem) !important;
}

body.page-contact .fx-contact-columns {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	gap: clamp(1.25rem, 3vw, 2.25rem);
	align-items: start;
}

@media (max-width: 900px) {
	body.page-contact .fx-contact-columns {
		grid-template-columns: 1fr;
	}
}

body.page-contact .fx-contact-form-card,
body.page-contact .fx-contact-aside-card {
	position: relative;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	background: linear-gradient(155deg, rgba(22, 32, 54, 0.98) 0%, rgba(9, 13, 24, 0.99) 100%);
	padding: 1.65rem 1.45rem 1.75rem;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.05) inset,
		0 22px 48px rgba(0, 0, 0, 0.35);
	transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

body.page-contact .fx-contact-form-card:hover,
body.page-contact .fx-contact-aside-card:hover {
	border-color: rgba(79, 209, 139, 0.15);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 26px 56px rgba(0, 0, 0, 0.38),
		0 0 0 1px rgba(47, 140, 255, 0.06);
}

body.page-contact .fx-contact-form-card .wp-block-heading,
body.page-contact .fx-contact-aside-card .wp-block-heading {
	margin-top: 0;
	font-size: clamp(1.15rem, 2.2vw, 1.38rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

body.page-contact .fx-contact-form-card .wp-block-heading {
	padding-bottom: 0.9rem;
	margin-bottom: 0.85rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-contact .fx-contact-aside-card .wp-block-heading {
	margin-bottom: 1.1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

p.fx-contact-lead {
	font-size: 0.96rem;
	color: var(--fx-text-muted);
	line-height: 1.68;
	margin-bottom: 1.4rem !important;
}

body.page-contact .fx-contact-form-card .wp-block-shortcode,
body.page-contact .fx-contact-form-card .fframe,
body.page-contact .fx-contact-form-card .fluentform {
	margin-top: 0.15rem;
}

/* Fluent Forms - contact card */
body.page-contact .fx-contact-form-card .fluentform .ff-el-group {
	margin-bottom: 1rem;
}

body.page-contact .fx-contact-form-card .fluentform .ff-el-input--label label,
body.page-contact .fx-contact-form-card .fluentform label.ff-el-input--label {
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(200, 210, 228, 0.95);
	margin-bottom: 0.4rem;
}

body.page-contact .fx-contact-form-card .fluentform .ff-el-form-control,
body.page-contact .fx-contact-form-card .fluentform input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.page-contact .fx-contact-form-card .fluentform textarea,
body.page-contact .fx-contact-form-card .fluentform select {
	width: 100%;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(5, 8, 16, 0.55);
	color: var(--fx-text);
	padding: 0.65rem 0.85rem;
	font-size: 0.95rem;
	line-height: 1.45;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.page-contact .fx-contact-form-card .fluentform textarea {
	min-height: 120px;
	resize: vertical;
}

body.page-contact .fx-contact-form-card .fluentform .ff-el-form-control:focus,
body.page-contact .fx-contact-form-card .fluentform input:focus,
body.page-contact .fx-contact-form-card .fluentform textarea:focus,
body.page-contact .fx-contact-form-card .fluentform select:focus {
	outline: none;
	border-color: rgba(47, 140, 255, 0.45);
	box-shadow: 0 0 0 3px rgba(47, 140, 255, 0.12);
	background: rgba(8, 12, 22, 0.75);
}

body.page-contact .fx-contact-form-card .fluentform .ff-btn-submit,
body.page-contact .fx-contact-form-card .fluentform button[type="submit"],
body.page-contact .fx-contact-form-card .fluentform input[type="submit"] {
	margin-top: 0.35rem;
	border-radius: 10px;
	padding: 0.7rem 1.5rem;
	font-weight: 700;
	font-size: 0.95rem;
	border: none;
	cursor: pointer;
	background: linear-gradient(180deg, #2b8cff 0%, #1e6fd4 100%);
	color: #fff;
	box-shadow: 0 2px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 24px rgba(30, 111, 212, 0.35);
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.page-contact .fx-contact-form-card .fluentform .ff-btn-submit:hover,
body.page-contact .fx-contact-form-card .fluentform button[type="submit"]:hover,
body.page-contact .fx-contact-form-card .fluentform input[type="submit"]:hover {
	filter: brightness(1.06);
	box-shadow: 0 2px 0 rgba(255, 255, 255, 0.15) inset, 0 10px 28px rgba(30, 111, 212, 0.42);
}

body.page-contact .fx-contact-topics {
	list-style: none;
	margin: 0 0 1.15rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

body.page-contact .fx-contact-topic {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
}

body.page-contact .fx-contact-topic__icon {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: rgba(120, 200, 255, 0.95);
	background: rgba(47, 140, 255, 0.12);
	border: 1px solid rgba(47, 140, 255, 0.2);
}

body.page-contact .fx-contact-topic__body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

body.page-contact .fx-contact-topic__title {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--fx-text);
	letter-spacing: -0.01em;
}

body.page-contact .fx-contact-topic__text {
	font-size: 0.86rem;
	line-height: 1.55;
	color: var(--fx-text-muted);
}

body.page-contact .fx-contact-topic__text strong {
	color: rgba(220, 228, 240, 0.95);
	font-weight: 700;
}

body.page-contact .fx-risk-bar--contact {
	margin-top: 0.25rem;
	border-radius: 12px;
}

body.page-contact .fx-contact-details-wrap {
	position: relative;
	width: 100%;
	max-width: min(var(--fx-container, 1180px), 100%) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: clamp(2.5rem, 5vw, 3.5rem) 20px 3.25rem;
	box-sizing: border-box;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

body.page-contact .fx-contact-details-wrap .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: min(var(--fx-container, 1180px), 100%);
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

body.page-contact .fx-contact-details-wrap .wp-block-shortcode {
	width: 100%;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	justify-content: center;
}

body.page-contact .fx-contact-details-wrap::before {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin: 0 auto 1.25rem;
	border-radius: 3px;
	background: linear-gradient(90deg, transparent, rgba(79, 209, 139, 0.7), rgba(47, 140, 255, 0.6), transparent);
	opacity: 0.85;
}

p.fx-contact-details-eyebrow {
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: rgba(140, 160, 190, 0.9);
	margin: 0 0 0.35rem !important;
}

body.page-contact .fx-contact-details-wrap .wp-block-heading,
body.page-contact .fx-contact-details-wrap h2 {
	text-align: center;
	margin-top: 0;
	margin-bottom: 1.35rem;
	font-size: clamp(1.28rem, 2.5vw, 1.55rem);
	letter-spacing: -0.02em;
	width: 100%;
}

.myfxedu-contact-email-panel {
	position: relative;
	overflow: hidden;
	max-width: 520px;
	width: 100%;
	margin: 0 auto;
	padding: 1.35rem 1.4rem 1.45rem;
	text-align: left;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	background: linear-gradient(165deg, rgba(14, 20, 36, 0.95) 0%, rgba(8, 11, 20, 0.98) 100%);
	box-sizing: border-box;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.myfxedu-contact-email-panel__accent {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, rgba(47, 140, 255, 0.2), rgba(79, 209, 139, 0.65), rgba(47, 140, 255, 0.35));
	opacity: 0.95;
}

.myfxedu-contact-email-panel__row {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
}

.myfxedu-contact-email-panel__label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #7a8a9e;
}

.myfxedu-contact-email-panel__link {
	font-size: 1.06rem;
	font-weight: 700;
	color: var(--fx-blue);
	text-decoration: none;
	word-break: break-word;
	transition: color 0.15s ease;
}

.myfxedu-contact-email-panel__link:hover {
	color: var(--fx-green);
	text-decoration: underline;
}

.myfxedu-contact-email-panel__hint {
	margin: 0.7rem 0 0;
	font-size: 0.9rem;
	color: var(--fx-text-muted);
	line-height: 1.55;
}

.myfxedu-contact-email-panel__cta {
	margin-top: 1.05rem;
}

.myfxedu-contact-email-panel__cta .myfxedu-button {
	width: 100%;
	justify-content: center;
}

.fx-contact-quick-wrap {
	width: 100%;
	max-width: min(var(--fx-container, 1180px), 100%);
	margin-left: auto;
	margin-right: auto;
	padding: 2.25rem 20px 0.5rem;
	box-sizing: border-box;
	text-align: center;
}

/* Legacy quick row (inline links) + ensure nav is centered on contact */
body.page-contact .fx-contact-page__content .fx-contact-quick,
body.page-contact .entry-content .fx-contact-quick {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	max-width: min(var(--fx-container, 1180px), 100%);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
	gap: 0.45rem 0.65rem;
}

.fx-contact-quick-label {
	margin: 0 0 0.85rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(150, 168, 195, 0.88);
}

.fx-contact-quick {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.fx-contact-quick__pill {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--fx-text);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.fx-contact-quick__pill:hover {
	color: var(--fx-blue);
	background: rgba(47, 140, 255, 0.1);
	border-color: rgba(47, 140, 255, 0.28);
	transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
	body.page-contact .fx-contact-form-card,
	body.page-contact .fx-contact-aside-card,
	.fx-contact-quick__pill {
		transition: none;
	}
	.fx-contact-quick__pill:hover {
		transform: none;
	}
}

/* Legacy quick links (older synced content) */
.fx-contact-quick__link {
	color: var(--fx-blue);
	font-weight: 600;
	font-size: 0.93rem;
	text-decoration: none;
}

.fx-contact-quick__link:hover {
	color: var(--fx-green);
	text-decoration: underline;
}

.fx-contact-quick__sep {
	opacity: 0.35;
	color: var(--fx-text-muted);
}

body.myfx-mode-light.page-contact .fx-contact-hero {
	background:
		radial-gradient(ellipse 80% 50% at 12% -10%, rgba(79, 209, 139, 0.12) 0%, transparent 55%),
		radial-gradient(ellipse 60% 40% at 92% 15%, rgba(47, 140, 255, 0.1) 0%, transparent 50%),
		linear-gradient(180deg, #f0f5fc 0%, #fafcff 100%);
	border-bottom-color: rgba(20, 50, 100, 0.09);
}

body.myfx-mode-light.page-contact .fx-contact-hero::before {
	background-image: linear-gradient(rgba(15, 40, 90, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 40, 90, 0.06) 1px, transparent 1px);
}

body.myfx-mode-light.page-contact .fx-contact-hero-meta {
	color: #5a6f8c;
}

body.myfx-mode-light.page-contact .fx-contact-form-card,
body.myfx-mode-light.page-contact .fx-contact-aside-card {
	background: #fff;
	border-color: #dde3f0;
	box-shadow: 0 10px 36px rgba(16, 36, 72, 0.07);
}

body.myfx-mode-light.page-contact .fx-contact-form-card:hover,
body.myfx-mode-light.page-contact .fx-contact-aside-card:hover {
	border-color: rgba(30, 100, 200, 0.22);
	box-shadow: 0 14px 40px rgba(16, 36, 72, 0.1);
}

body.myfx-mode-light.page-contact .fx-contact-form-card .wp-block-heading,
body.myfx-mode-light.page-contact .fx-contact-aside-card .wp-block-heading {
	border-bottom-color: #e8edf5;
}

body.myfx-mode-light.page-contact .fx-contact-topic__icon {
	color: #1858bc;
	background: rgba(30, 100, 210, 0.08);
	border-color: rgba(30, 100, 210, 0.18);
}

body.myfx-mode-light.page-contact .fx-contact-topic__title {
	color: #112240;
}

body.myfx-mode-light.page-contact .fx-contact-topic__text strong {
	color: #1a3050;
}

body.myfx-mode-light.page-contact .fx-contact-form-card .fluentform .ff-el-form-control,
body.myfx-mode-light.page-contact .fx-contact-form-card .fluentform input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.myfx-mode-light.page-contact .fx-contact-form-card .fluentform textarea,
body.myfx-mode-light.page-contact .fx-contact-form-card .fluentform select {
	background: #f7f9fc;
	border-color: #d0dae8;
	color: #112240;
}

body.myfx-mode-light.page-contact .fx-contact-form-card .fluentform .ff-el-form-control:focus,
body.myfx-mode-light.page-contact .fx-contact-form-card .fluentform input:focus,
body.myfx-mode-light.page-contact .fx-contact-form-card .fluentform textarea:focus,
body.myfx-mode-light.page-contact .fx-contact-form-card .fluentform select:focus {
	background: #fff;
	border-color: rgba(30, 100, 200, 0.45);
	box-shadow: 0 0 0 3px rgba(30, 100, 200, 0.1);
}

body.myfx-mode-light.page-contact .fx-contact-form-card .fluentform .ff-el-input--label label,
body.myfx-mode-light.page-contact .fx-contact-form-card .fluentform label.ff-el-input--label {
	color: #3d5472;
}

body.myfx-mode-light .fx-contact-quick-label,
body.myfx-mode-light p.fx-contact-details-eyebrow {
	color: #6a7f9c;
}

body.myfx-mode-light .fx-contact-quick__pill {
	background: #fff;
	border-color: #dde3f0;
	color: #1a3050;
}

body.myfx-mode-light .fx-contact-quick__pill:hover {
	background: #f0f5ff;
	border-color: rgba(30, 100, 200, 0.35);
	color: #1858bc;
}

body.myfx-mode-light .myfxedu-contact-email-panel {
	background: #fff;
	border-color: #dde3f0;
	box-shadow: 0 12px 32px rgba(16, 36, 72, 0.08);
}

body.myfx-mode-light .myfxedu-contact-email-panel__label {
	color: #5a6f8c;
}

/* ==============================
   PAGE TEMPLATES — responsive (per-template layouts)
   ============================== */

/* Single Review Page (page-single-review.php) */
.fx-single-review-hero-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: start;
	margin-top: 12px;
}

@media (max-width: 640px) {
	.fx-single-review-hero-row {
		grid-template-columns: 1fr;
	}
	.fx-single-review-hero-row .fx-review-score-box {
		justify-self: center;
		max-width: 320px;
		width: 100%;
		box-sizing: border-box;
	}
}

.fx-single-review-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 3vw, 2.25rem);
	align-items: start;
}

@media (max-width: 900px) {
	.fx-single-review-layout {
		grid-template-columns: 1fr;
	}
}

.fx-single-review-sidebar {
	position: sticky;
	top: 90px;
	align-self: start;
}

@media (max-width: 900px) {
	.fx-single-review-sidebar {
		position: static;
		top: auto;
	}
}

.fx-table .fx-table-label-cell {
	font-weight: 600;
	width: 40%;
	max-width: 220px;
}

@media (max-width: 520px) {
	.fx-table .fx-table-label-cell {
		width: auto;
		max-width: none;
	}
}

/* Review Archive demo template (page-review-archive.php) — uses .fx-grid-2; optional tighter gap on small screens */
@media (max-width: 640px) {
	.fx-review-archive-cta-grid {
		gap: 16px;
	}
}

/* WordPress block / GP pagination (archive templates, blog) */
.site-main .navigation.pagination .nav-links,
.site-main .paging-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	align-items: center;
	justify-content: center;
}

.site-main .navigation.pagination .nav-links a.page-numbers,
.site-main .navigation.pagination .nav-links span.page-numbers:not(.dots),
.site-main .paging-navigation .nav-links a.page-numbers,
.site-main .paging-navigation .nav-links span.page-numbers:not(.dots) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0 12px;
	box-sizing: border-box;
}

.site-main .navigation.pagination .nav-links .prev,
.site-main .navigation.pagination .nav-links .next,
.site-main .paging-navigation .nav-links .prev,
.site-main .paging-navigation .nav-links .next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 14px;
	box-sizing: border-box;
}

/* ==============================
   CONTENT AREA
   ============================== */
.fx-content { max-width: var(--fx-container); margin: 0 auto; padding: 60px 20px; }
.fx-content-narrow { max-width: 860px; margin: 0 auto; padding: 60px 20px; }

/* ==============================
   RESPONSIVE MISC
   ============================== */
@media (max-width: 768px) {
	:root { --fx-section-pad: 56px 20px; }
	.fx-optin { padding: 32px 20px; }
	.fx-page-hero { padding: 48px 20px; }
	.fx-content, .fx-content-narrow { padding: 44px 20px; }
}

/* ==============================
   ABOUT US PAGE (trust hub)
   Calm, premium, editorial - wp_plan design system
   ============================== */

/*
 * Block markup uses div.wp-block-group for bands (not <section>), so hub-style full-bleed
 * rules elsewhere do not apply. Break top-level groups out to viewport width; .fx-wrap caps copy.
 */
body.page-about-us .fx-about-page .entry-content > .wp-block-group.fx-page-hero,
body.page-about-us .fx-about-page .entry-content > .wp-block-group.fx-section {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	box-sizing: border-box !important;
	position: relative;
	left: auto;
	right: auto;
}

body.page-about-us .fx-about-page .entry-content > .wp-block-group.fx-section .wp-block-group__inner-container,
body.page-about-us .fx-about-page .entry-content > .wp-block-group.fx-page-hero .wp-block-group__inner-container {
	max-width: none !important;
	width: 100% !important;
}

body.page-about-us .fx-about-page__content > .wp-block-group:first-child {
	margin-top: 0 !important;
}

body.page-about-us .fx-about-page__content .wp-block-group.fx-section {
	position: relative;
}

/* Hero: depth + subtle glow (no gimmicks) */
.fx-page-hero.fx-about-hero {
	background:
		radial-gradient(ellipse 90% 60% at 50% -20%, rgba(47, 140, 255, 0.14), transparent 55%),
		linear-gradient(168deg, #060d18 0%, #0a1628 42%, #0c1e32 100%);
	border-top: 1px solid rgba(0, 200, 143, 0.22);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	padding-top: 72px;
	padding-bottom: 72px;
}
body.myfx-mode-light .fx-page-hero.fx-about-hero {
	background:
		radial-gradient(ellipse 80% 50% at 50% 0%, rgba(47, 140, 255, 0.08), transparent 50%),
		linear-gradient(168deg, #f5f8ff 0%, #ffffff 45%, #f9fbff 100%);
	border-bottom-color: rgba(15, 33, 64, 0.08);
}
.fx-about-hero .fx-page-hero-inner {
	position: relative;
	z-index: 1;
}
.fx-page-hero.fx-about-hero h1 {
	font-size: clamp(32px, 4.5vw, 46px) !important;
	letter-spacing: -0.02em;
	line-height: 1.12 !important;
	margin-bottom: 16px !important;
	max-width: 18ch;
}
.fx-about-hero-lede {
	font-size: clamp(16px, 1.5vw, 18px) !important;
	letter-spacing: 0.01em;
	color: var(--fx-text-muted) !important;
	max-width: 42rem;
	line-height: 1.7 !important;
	margin-bottom: 0 !important;
}

.fx-legal-page__updated {
	margin: 16px 0 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(200, 214, 235, 0.88);
}

.fx-legal-page__updated time {
	text-decoration: none;
}

body.myfx-mode-light .fx-legal-page__updated {
	color: #5a6f8f;
}

.fx-about-hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px 6px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(200, 214, 235, 0.72);
}
.fx-about-hero-meta__dot {
	opacity: 0.45;
	padding: 0 2px;
	user-select: none;
}
body.myfx-mode-light .fx-about-hero-meta {
	border-top-color: rgba(15, 33, 64, 0.1);
	color: #5a6f8f;
}

.fx-about-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: stretch;
}
.fx-about-pillar {
	position: relative;
	background: linear-gradient(165deg, rgba(28, 34, 46, 0.98) 0%, rgba(18, 22, 32, 0.99) 100%);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	padding: 24px 22px 26px;
	border-left: 3px solid rgba(0, 200, 143, 0.6);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.04) inset,
		var(--fx-shadow-card);
	transition: var(--fx-transition);
	overflow: hidden;
}
.fx-about-pillar::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 120px;
	height: 120px;
	background: radial-gradient(circle at 100% 0%, rgba(47, 140, 255, 0.06), transparent 70%);
	pointer-events: none;
}
.fx-about-pillar:hover {
	border-color: rgba(47, 140, 255, 0.28);
	transform: translateY(-3px);
	box-shadow: var(--fx-shadow);
}
.fx-about-pillar__num {
	font-family: ui-monospace, "Cascadia Code", monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: rgba(47, 140, 255, 0.85);
	margin: 0 0 14px;
	opacity: 0.95;
}
.fx-about-pillar__k {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fx-green);
	margin: 0 0 10px;
}
.fx-about-pillar__t {
	font-size: 18px;
	font-weight: 700;
	color: var(--fx-text) !important;
	margin: 0 0 12px;
	line-height: 1.28;
	letter-spacing: -0.01em;
}
.fx-about-pillar__p {
	font-size: 14px;
	color: var(--fx-text-muted);
	margin: 0;
	line-height: 1.68;
}

/* Mission: subtle band + aside card */
.fx-about-mission-section {
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.fx-about-mission-col .wp-block-heading {
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.fx-about-mission-col p:not(.fx-badge-label) {
	color: var(--fx-text-muted);
	line-height: 1.75;
	font-size: 16px;
}
.fx-about-mission-col--aside {
	display: flex;
	align-items: flex-start;
}
@media (min-width: 961px) {
	.fx-about-mission-col--aside {
		padding-top: 6px;
	}
}

.fx-about-diff-card {
	position: relative;
	border-radius: 14px;
	border: 1px solid var(--fx-border);
	background: var(--fx-card);
	box-shadow: var(--fx-shadow-card);
	padding: 28px 24px;
	overflow: hidden;
}
.fx-about-diff-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, rgba(0, 200, 143, 0.75), rgba(47, 140, 255, 0.65));
	opacity: 0.95;
}
.fx-about-diff-card h3 {
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fx-text-muted) !important;
	margin: 0 0 20px !important;
	padding-top: 4px;
}
.fx-about-diff-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--fx-border-soft);
	font-size: 14px;
	line-height: 1.52;
	color: var(--fx-text-muted);
}
.fx-about-diff-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.fx-about-diff-row span:first-child {
	color: var(--fx-green);
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 1px;
	font-size: 13px;
}
.fx-about-diff-row span:not(:first-child) {
	min-width: 0;
	flex: 1;
}

.fx-about-meth-intro {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 48px;
	padding: 0 12px;
}
.fx-about-meth-intro .fx-badge-label {
	margin-bottom: 14px;
	display: inline-block;
}
.fx-about-meth-intro h2 {
	margin-bottom: 14px !important;
	font-size: clamp(26px, 3.5vw, 38px);
	line-height: 1.16;
	letter-spacing: -0.02em;
}
.fx-about-meth-intro p {
	color: var(--fx-text-muted);
	font-size: 17px;
	line-height: 1.72;
	margin: 0;
}

.fx-about-meth-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.fx-about-meth-card {
	background: var(--fx-card);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	padding: 0;
	overflow: hidden;
	box-shadow: var(--fx-shadow-card);
	transition: var(--fx-transition);
	position: relative;
}
.fx-about-meth-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, rgba(0, 200, 143, 0.85), rgba(47, 140, 255, 0.75));
	opacity: 0.9;
}
.fx-about-meth-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--fx-shadow);
	border-color: rgba(47, 140, 255, 0.25);
}
.fx-about-meth-card__body {
	padding: 22px 22px 24px;
}
.fx-about-meth-card .fx-step-num {
	width: 40px;
	height: 40px;
	font-size: 13px;
	margin-bottom: 14px;
	background: linear-gradient(135deg, var(--fx-blue) 0%, #2563c4 100%);
}
.fx-about-meth-card h3 {
	font-size: 17px !important;
	margin-bottom: 14px !important;
}
.fx-about-meth-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.fx-about-meth-card li {
	padding: 10px 0 10px 12px;
	border-bottom: 1px solid var(--fx-border-soft);
	border-left: 2px solid transparent;
	font-size: 13px;
	color: var(--fx-text-muted);
	line-height: 1.5;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.fx-about-meth-card li:hover {
	border-left-color: rgba(0, 200, 143, 0.35);
	background: rgba(0, 200, 143, 0.03);
}
.fx-about-meth-card li:last-child {
	border-bottom: 0;
}

.fx-about-editorial {
	max-width: 780px;
	margin: 0 auto;
	padding: 8px 0 4px;
}
.fx-about-editorial .fx-section-head {
	margin-bottom: 36px;
}
.fx-about-editorial .fx-section-head h2 {
	letter-spacing: -0.02em;
}
.fx-about-editorial-card {
	background: var(--fx-card);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	padding: 26px 26px 24px;
	margin-bottom: 18px;
	box-shadow: var(--fx-shadow-card);
	transition: var(--fx-transition);
}
.fx-about-editorial-card:hover {
	border-color: rgba(47, 140, 255, 0.15);
}
.fx-about-editorial-card h3 {
	font-size: 16px !important;
	margin-bottom: 10px !important;
}
.fx-about-editorial-card p {
	font-size: 14px;
	color: var(--fx-text-muted);
	line-height: 1.65;
	margin: 0;
}
.fx-about-editorial-card a {
	color: var(--fx-blue);
	text-decoration: none;
	font-weight: 600;
}
.fx-about-editorial-card a:hover {
	text-decoration: underline;
}

.fx-section--accent .fx-about-cta {
	margin: 0 auto;
	max-width: 560px;
	padding: 44px 32px 48px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.12) 100%);
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}
.fx-about-cta {
	text-align: center;
	padding: 8px 0 12px;
}
.fx-about-cta h2 {
	margin-bottom: 14px !important;
	font-size: clamp(24px, 3vw, 32px) !important;
	letter-spacing: -0.02em;
	line-height: 1.2 !important;
}
.fx-about-cta > p {
	color: rgba(220, 230, 248, 0.82);
	font-size: 17px;
	line-height: 1.68;
	margin: 0 auto 32px;
	max-width: 420px;
}
.fx-about-cta .fx-actions {
	justify-content: center;
	gap: 14px !important;
}
body.myfx-mode-light .fx-section--accent .fx-about-cta {
	border-color: rgba(47, 140, 255, 0.14);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 249, 255, 0.98) 100%);
	box-shadow: 0 8px 32px rgba(15, 33, 64, 0.08);
}
body.myfx-mode-light .fx-about-cta > p {
	color: #4a6080;
}

body.myfx-mode-light .fx-about-pillar {
	background: linear-gradient(165deg, #ffffff 0%, #f8faff 100%);
	border-left-color: rgba(0, 160, 100, 0.45);
}
body.myfx-mode-light .fx-about-pillar__t {
	color: #112240 !important;
}
body.myfx-mode-light .fx-about-pillar__num {
	color: rgba(24, 88, 188, 0.9);
}
body.myfx-mode-light .fx-about-diff-card {
	background: #ffffff;
}
body.myfx-mode-light .fx-about-meth-card {
	background: #ffffff;
}

@media (max-width: 960px) {
	.fx-about-pillars,
	.fx-about-meth-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.fx-page-hero.fx-about-hero {
		padding-top: 56px;
		padding-bottom: 56px;
	}
	.fx-section--accent .fx-about-cta {
		padding: 32px 20px 36px;
		margin-left: 12px;
		margin-right: 12px;
	}
}

/* ==============================
   LEGAL PAGES (About-style hero + sidebar)
   ============================== */
.fx-legal-page {
	display: block;
	width: 100%;
}

.fx-legal-body {
	padding-top: clamp(48px, 6vw, 72px);
	padding-bottom: clamp(56px, 7vw, 88px);
}

.fx-legal-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
	gap: clamp(32px, 4vw, 48px);
	align-items: start;
}

.fx-legal-layout__main {
	min-width: 0;
}

.fx-legal-layout__aside {
	position: sticky;
	top: 92px;
	align-self: start;
}

.fx-legal-prose {
	font-size: 17px;
	line-height: 1.78;
	color: var(--fx-text-muted);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.fx-legal-prose > *:first-child {
	margin-top: 0;
}

.fx-legal-section {
	margin-bottom: clamp(32px, 3.5vw, 44px);
}

.fx-legal-section:last-child {
	margin-bottom: 0;
}

.fx-legal-section h2,
.fx-legal-prose h2,
.fx-legal-prose h2.wp-block-heading {
	font-size: clamp(18px, 2vw, 21px) !important;
	font-weight: 700 !important;
	letter-spacing: -0.015em;
	line-height: 1.28 !important;
	margin: 0 0 12px !important;
	color: var(--fx-text) !important;
}

.fx-legal-prose h3,
.fx-legal-prose h3.wp-block-heading {
	font-size: clamp(16px, 1.6vw, 18px) !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
	line-height: 1.32 !important;
	margin: 1.35em 0 10px !important;
	color: var(--fx-text) !important;
}

.fx-legal-prose h3:first-child,
.fx-legal-prose h2 + h3 {
	margin-top: 0 !important;
}

.fx-legal-section p,
.fx-legal-prose p {
	margin: 0 0 1.1em;
	color: var(--fx-text-muted);
	line-height: 1.78;
	font-size: 17px;
}

.fx-legal-prose p:last-child {
	margin-bottom: 0;
}

.fx-legal-prose ul,
.fx-legal-prose ol {
	margin: 0 0 1.25em 1.15em;
	padding: 0;
	color: var(--fx-text-muted);
}

.fx-legal-prose li {
	margin-bottom: 0.55em;
}

.fx-legal-prose li:last-child {
	margin-bottom: 0;
}

.fx-legal-prose a {
	color: var(--fx-green);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease, opacity 0.15s ease;
}

.fx-legal-prose a:hover {
	color: var(--fx-text);
}

.fx-legal-sidebar-card {
	position: relative;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(165deg, rgba(28, 34, 46, 0.98) 0%, rgba(18, 22, 32, 0.99) 100%);
	box-shadow: var(--fx-shadow-card);
	padding: 22px 20px 18px;
	overflow: hidden;
}

.fx-legal-sidebar-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, rgba(0, 200, 143, 0.75), rgba(47, 140, 255, 0.65));
	opacity: 0.95;
	pointer-events: none;
}

.fx-legal-sidebar-card__title {
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fx-text-muted) !important;
	margin: 0 0 14px !important;
	padding-top: 2px;
}

.fx-legal-sidebar-card__nav {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.fx-legal-sidebar-card__link {
	display: block;
	padding: 11px 0;
	border-bottom: 1px solid var(--fx-border-soft);
	font-size: 14px;
	line-height: 1.45;
	font-weight: 500;
	color: var(--fx-text-muted);
	text-decoration: none;
	transition: color 0.15s ease, padding-left 0.15s ease;
}

.fx-legal-sidebar-card__link:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.fx-legal-sidebar-card__link:hover {
	color: var(--fx-text);
	padding-left: 4px;
}

.fx-legal-sidebar-card__link.is-active {
	color: var(--fx-green);
	font-weight: 700;
}

body.myfx-mode-light .fx-legal-sidebar-card {
	background: linear-gradient(165deg, #ffffff 0%, #f8faff 100%);
	border-color: rgba(15, 33, 64, 0.1);
	box-shadow: 0 8px 28px rgba(15, 33, 64, 0.07);
}

body.myfx-mode-light .fx-legal-sidebar-card__link.is-active {
	color: #0a7a4a;
}

@media (max-width: 960px) {
	.fx-legal-layout {
		grid-template-columns: 1fr;
	}

	.fx-legal-layout__aside {
		position: static;
		top: auto;
	}

	.fx-legal-sidebar-card {
		padding: 20px 18px 16px;
	}
}

@media (max-width: 560px) {
	.fx-legal-body {
		padding-top: 40px;
		padding-bottom: 48px;
	}
}

/* =============================================================================
   MOBILE POLISH (sitewide) — readable type, no sideways scroll, stacked CTAs
   ============================================================================= */

body {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

#page,
.site {
	overflow-x: clip;
	max-width: 100%;
	min-width: 0;
}

/* Block editor: multi-column rows stack on small screens (respect “not stacked” override) */
@media (max-width: 600px) {
	.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile),
	.fx-home-entry .entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
	}
	.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) .wp-block-column,
	.fx-home-entry .entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) .wp-block-column {
		flex-basis: auto !important;
		width: 100% !important;
	}
}

/* Core group / align blocks: never wider than viewport */
.entry-content .wp-block-group.alignwide,
.entry-content .wp-block-group.alignfull,
.fx-home-entry .entry-content .wp-block-group {
	max-width: 100%;
	box-sizing: border-box;
}

/* Tighter vertical rhythm on phones */
@media (max-width: 480px) {
	:root {
		--fx-section-pad: 40px max(14px, env(safe-area-inset-left, 0px)) 40px max(14px, env(safe-area-inset-right, 0px));
	}
	.fx-section-head {
		margin-bottom: 28px;
	}
	.fx-section-head h2 {
		font-size: clamp(22px, 6vw, 32px);
	}
	.fx-page-hero {
		padding-left: max(16px, env(safe-area-inset-left, 0px));
		padding-right: max(16px, env(safe-area-inset-right, 0px));
	}
	.fx-card,
	.fx-path-card {
		padding: 20px 18px;
	}
}

/* Long titles / URLs */
.fx-page-hero h1,
.fx-hero h1,
.fx-section-head h2,
.fx-about-pillar__t {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* CTA rows: full-width buttons on narrow viewports (hero, sections, opt-in) */
@media (max-width: 520px) {
	.fx-page-hero .fx-actions,
	.fx-hero .fx-actions,
	.fx-section .fx-actions,
	.fx-optin .fx-actions,
	.fx-about-cta .fx-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.fx-page-hero .fx-actions .fx-btn,
	.fx-hero .fx-actions .fx-btn,
	.fx-section .fx-actions .fx-btn,
	.fx-optin .fx-actions .fx-btn,
	.fx-about-cta .fx-actions .fx-btn {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
	}
}

/* Forms in content: never overflow viewport */
@media (max-width: 600px) {
	.fluentform .ff-el-form-control,
	.fluentform input:not([type="checkbox"]):not([type="radio"]),
	.fluentform textarea,
	.fluentform select,
	.ff-el-group input,
	.ff-el-group textarea,
	.ff-el-group select {
		max-width: 100%;
		box-sizing: border-box;
	}
}

/* GP / theme pagination links wrap */
.post-navigation .nav-links,
.posts-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

/*
 * Sitewide mobile gutters (~10px) — block pages, GP .inside-article, Tutor shells, archives
 * Matches: @media (max-width: 768px) { .site-main .wp-block-group__inner-container { padding: 10px; } }
 */
@media (max-width: 768px) {
	body .site-main .wp-block-group__inner-container {
		padding: 10px;
		box-sizing: border-box;
	}

	body .site-main .inside-article {
		padding: 10px;
		box-sizing: border-box;
	}

	body .site-main .wp-block-post-content {
		padding-left: 10px;
		padding-right: 10px;
		box-sizing: border-box;
	}

	/* Tutor LMS: course / lesson / dashboard-style wrappers */
	body .site-main .tutor-container,
	body .site-main .tutor-page-wrap,
	body .site-main .tutor-wrap-parent {
		padding-left: max(10px, env(safe-area-inset-left, 0px));
		padding-right: max(10px, env(safe-area-inset-right, 0px));
		box-sizing: border-box;
	}

	body .site-main .course-archive-page {
		padding-left: max(10px, env(safe-area-inset-left, 0px));
		padding-right: max(10px, env(safe-area-inset-right, 0px));
		box-sizing: border-box;
	}
}

/* ==============================
   404 — Page not found
   ============================== */
.fx-404 {
	padding: var(--fx-section-pad);
	padding-top: clamp(32px, 6vw, 72px);
	padding-bottom: clamp(48px, 8vw, 96px);
	box-sizing: border-box;
}

.fx-404__inner {
	max-width: var(--fx-container);
	margin: 0 auto;
}

.fx-404__intro {
	margin-bottom: clamp(28px, 4vw, 40px);
}

.fx-404__title {
	margin: 0 0 12px;
	font-family: var(--myfxedu-font-heading, "Inter", system-ui, sans-serif);
	font-size: clamp(2rem, 4.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--fx-text);
	letter-spacing: -0.02em;
}

.fx-404__lead {
	margin: 0;
	max-width: 42rem;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--fx-text);
	opacity: 0.92;
}

.fx-404__grid {
	list-style: none;
	margin: 0 0 clamp(32px, 5vw, 48px);
	padding: 0;
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.fx-404__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.fx-404__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 18px;
	}
}

.fx-404-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 20px 18px;
	border-radius: var(--fx-radius);
	background: var(--fx-card);
	border: 1px solid var(--fx-border);
	box-shadow: var(--fx-shadow-card);
	text-decoration: none;
	box-sizing: border-box;
	transition: var(--fx-transition);
	color: inherit;
}

.fx-404-card:hover {
	background: var(--fx-card-hover);
	border-color: var(--fx-blue);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.fx-404-card:hover .fx-404-card__title {
	color: var(--fx-green);
}

.fx-404-card:focus-visible {
	outline: 2px solid var(--fx-green);
	outline-offset: 3px;
}

.fx-404-card__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--fx-blue);
	line-height: 1.35;
}

.fx-404-card__desc {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--fx-text-muted);
}

.fx-404-search {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
	max-width: min(100%, 420px);
}

.fx-404-search__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	font-size: 0.9375rem;
	font-family: inherit;
	color: var(--fx-text);
	background: var(--fx-dark-elev);
	border: 1px solid var(--fx-border);
	border-right: none;
	border-radius: var(--fx-radius-sm) 0 0 var(--fx-radius-sm);
	box-sizing: border-box;
}

.fx-404-search__input::placeholder {
	color: var(--fx-text-dim);
}

.fx-404-search__input:focus {
	outline: none;
	border-color: var(--fx-blue);
	box-shadow: 0 0 0 1px var(--fx-blue-glow);
	z-index: 1;
}

.fx-404-search__btn {
	flex: 0 0 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: #3a4558;
	border: 1px solid var(--fx-border);
	border-radius: 0 var(--fx-radius-sm) var(--fx-radius-sm) 0;
	color: var(--fx-text);
	cursor: pointer;
	transition: var(--fx-transition);
}

.fx-404-search__btn:hover {
	background: #4a566b;
	color: #fff;
}

.fx-404-search__btn:focus-visible {
	outline: 2px solid var(--fx-green);
	outline-offset: 2px;
}

body.myfx-mode-light .fx-404-search__input {
	background: var(--fx-card);
}

body.myfx-mode-light .fx-404-search__btn {
	background: #e2e8f3;
	color: var(--fx-text);
	border-color: var(--fx-border);
}

body.myfx-mode-light .fx-404-search__btn:hover {
	background: #d5dde9;
}
