/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* =============================================================
   GOAL 1 — GREEN TOP BAR
   The site header is an Elementor Pro template (ID 99482).
   Desktop top bar:  inner section data-id="7d86f5b" (was #3F7CD8 blue).
   Mobile top bar:   inner section data-id="7050596" (was #839972 green).
   Elementor's generated CSS uses:
     .elementor-99482 .elementor-element.elementor-element-{id}:not(...)
   We match that specificity pattern to override cleanly.
   ============================================================= */

/* ── Desktop top bar background ─────────────────────────── */
.elementor-99482 .elementor-element.elementor-element-7d86f5b:not(.elementor-motion-effects-element-type-background),
.elementor-99482 .elementor-element.elementor-element-7d86f5b > .elementor-motion-effects-container > .elementor-motion-effects-layer {
	background-color: #879775 !important;
}

/* ── Mobile top bar background ──────────────────────────── */
.elementor-99482 .elementor-element.elementor-element-7050596:not(.elementor-motion-effects-element-type-background),
.elementor-99482 .elementor-element.elementor-element-7050596 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
	background-color: #879775 !important;
}

/* ── Text and link colors inside both top bars ──────────── */
.elementor-99482 .elementor-element.elementor-element-7d86f5b *,
.elementor-99482 .elementor-element.elementor-element-7050596 * {
	color: #fff !important;
}

.elementor-99482 .elementor-element.elementor-element-7d86f5b a,
.elementor-99482 .elementor-element.elementor-element-7050596 a {
	color: #fff !important;
	text-decoration: none;
}

.elementor-99482 .elementor-element.elementor-element-7d86f5b a:hover,
.elementor-99482 .elementor-element.elementor-element-7d86f5b a:focus,
.elementor-99482 .elementor-element.elementor-element-7050596 a:hover,
.elementor-99482 .elementor-element.elementor-element-7050596 a:focus {
	color: #fff !important;
	text-decoration: underline;
	outline: 2px solid rgba(255, 255, 255, 0.8);
	outline-offset: 2px;
}

/* ── Sticky header state ─────────────────────────────────── */
.elementor-sticky--active .elementor-element.elementor-element-7d86f5b:not(.elementor-motion-effects-element-type-background),
.elementor-sticky--active .elementor-element.elementor-element-7050596:not(.elementor-motion-effects-element-type-background) {
	background-color: #879775 !important;
}

/* ── Fallback: Kadence .site-top-header-wrap conventions ── */
.site-top-header-wrap,
.site-top-header-wrap .site-header-row-container-inner,
.site-top-header-inner-wrap,
#masthead .site-top-header-wrap,
#mobile-header .site-top-header-wrap {
	background-color: #879775 !important;
	color: #fff !important;
}

.site-top-header-wrap a,
.site-top-header-inner-wrap a,
#mobile-header .site-top-header-wrap a {
	color: #fff !important;
	text-decoration: none;
}

.site-top-header-wrap a:hover,
.site-top-header-wrap a:focus,
.site-top-header-inner-wrap a:hover,
.site-top-header-inner-wrap a:focus {
	text-decoration: underline;
	outline: 2px solid rgba(255, 255, 255, 0.8);
	outline-offset: 2px;
}

/* =============================================================
   GOAL 2 — AUTHOR ARCHIVE STYLES
   All scoped under .gfn-author-archive
   ============================================================= */

/* ── Page layout ─────────────────────────────────────────── */

.gfn-author-archive {
	background: #fff;
	padding: 40px 0;
}

.gfn-author-archive .gfn-archive-inner {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.gfn-author-archive .gfn-archive-main {
	flex: 1 1 0;
	min-width: 0;
}

.gfn-author-archive .gfn-archive-sidebar {
	flex: 0 0 280px;
	width: 280px;
}

/* ── Page heading ────────────────────────────────────────── */

.gfn-author-archive .gfn-archive-heading {
	font-size: 2rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 32px;
	line-height: 1.2;
}

/* ── Author card ─────────────────────────────────────────── */

.gfn-author-archive .gfn-author-card {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	padding: 24px 0;
	border-bottom: 1px solid #e8e8e8;
}

.gfn-author-archive .gfn-author-card:first-of-type {
	padding-top: 0;
}

.gfn-author-archive .gfn-author-card:last-child {
	border-bottom: none;
}

/* Image column */
.gfn-author-archive .gfn-author-image {
	flex: 0 0 166px;
	width: 166px;
}

.gfn-author-archive .gfn-author-image img {
	width: 166px;
	height: 200px;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}

/* When no image — biography takes full width */
.gfn-author-archive .gfn-author-card.has-no-image .gfn-author-body {
	width: 100%;
}

/* Body column */
.gfn-author-archive .gfn-author-body {
	flex: 1 1 0;
	min-width: 0;
}

.gfn-author-archive .gfn-author-name {
	font-size: 1.25rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 12px;
	line-height: 1.3;
	word-break: break-word;
}

.gfn-author-archive .gfn-author-name a {
	color: #222;
	text-decoration: none;
}

.gfn-author-archive .gfn-author-name a:hover,
.gfn-author-archive .gfn-author-name a:focus {
	color: #879775;
	text-decoration: underline;
	outline: 2px solid #879775;
	outline-offset: 2px;
}

.gfn-author-archive .gfn-author-bio {
	color: #555;
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0 0 16px;
}

.gfn-author-archive .gfn-read-more {
	display: inline-block;
	color: #879775;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid #879775;
	padding-bottom: 1px;
	transition: color 0.15s, border-color 0.15s;
}

.gfn-author-archive .gfn-read-more:hover,
.gfn-author-archive .gfn-read-more:focus {
	color: #6b7a5e;
	border-color: #6b7a5e;
	outline: 2px solid #879775;
	outline-offset: 2px;
}

/* ── No-results message ──────────────────────────────────── */

.gfn-author-archive .gfn-no-authors {
	padding: 40px 20px;
	text-align: center;
	color: #666;
	font-size: 1rem;
}

/* ── Pagination ──────────────────────────────────────────── */

.gfn-author-archive .gfn-pagination {
	margin-top: 40px;
}

.gfn-author-archive .gfn-pagination .page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gfn-author-archive .gfn-pagination a.page-numbers,
.gfn-author-archive .gfn-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	font-size: 0.875rem;
	font-weight: 600;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	text-decoration: none;
	color: #444;
	background: #fff;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.gfn-author-archive .gfn-pagination a.page-numbers:hover,
.gfn-author-archive .gfn-pagination a.page-numbers:focus {
	background: #879775;
	color: #fff;
	border-color: #879775;
	outline: 2px solid #879775;
	outline-offset: 2px;
}

.gfn-author-archive .gfn-pagination span.page-numbers.current {
	background: #879775;
	color: #fff;
	border-color: #879775;
}

.gfn-author-archive .gfn-pagination .dots {
	border: none;
	background: transparent;
	color: #888;
}

/* ── Sidebar — shared rules live in .gfn-author-sidebar block ── */
/* Widget spacing, widget-title and tile styles inherit from     */
/* the shared .gfn-author-sidebar selectors in the Recipes       */
/* section below. No duplication needed here.                    */

/* ── RTL support ─────────────────────────────────────────── */

[dir="rtl"] .gfn-author-archive .gfn-archive-inner {
	flex-direction: row-reverse;
}

[dir="rtl"] .gfn-author-archive .gfn-author-card {
	flex-direction: row-reverse;
}

/* ── Tablet: ≤ 900px ─────────────────────────────────────── */

@media ( max-width: 900px ) {
	.gfn-author-archive .gfn-archive-inner {
		flex-direction: column;
	}

	.gfn-author-archive .gfn-archive-sidebar {
		flex: 0 0 auto;
		width: 100%;
	}

	.gfn-author-archive .gfn-author-image {
		flex: 0 0 130px;
		width: 130px;
	}

	.gfn-author-archive .gfn-author-image img {
		width: 130px;
		height: 158px;
	}

	.gfn-author-archive .gfn-archive-inner {
		gap: 24px;
	}

	.gfn-author-archive .gfn-author-card {
		gap: 16px;
	}

	/* Author sidebar: constrain fallback widgets and centre at tablet */
	.gfn-author-sidebar .widget,
	.gfn-author-sidebar .gfn-sidebar-widget {
		max-width: 420px;
		margin-left: auto;
		margin-right: auto;
	}

	.gfn-author-sidebar .gfn-cat-tiles {
		max-width: 420px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* ── Mobile: ≤ 600px ─────────────────────────────────────── */

@media ( max-width: 600px ) {
	.gfn-author-archive .gfn-author-card {
		flex-direction: column;
		gap: 12px;
	}

	.gfn-author-archive .gfn-author-image {
		flex: none;
		width: 100%;
	}

	.gfn-author-archive .gfn-author-image img {
		width: 100%;
		height: auto;
		max-height: 260px;
		object-fit: cover;
	}

	.gfn-author-archive .gfn-archive-heading {
		font-size: 1.5rem;
	}

	.gfn-author-archive .gfn-pagination .page-numbers {
		flex-wrap: wrap;
	}

	/* Author sidebar: full width, shorter tiles, touch targets */
	.gfn-author-sidebar .widget,
	.gfn-author-sidebar .gfn-sidebar-widget {
		max-width: 100%;
	}

	.gfn-author-sidebar .gfn-cat-tiles {
		max-width: 100%;
	}

	.gfn-author-sidebar .gfn-cat-tile {
		height: 100px;
		min-height: 44px;
	}

	.gfn-author-sidebar .gfn-cat-tile__name {
		white-space: normal;
		text-align: center;
	}
}

/* =============================================================
   RECIPES CATEGORY ARCHIVE
   Page wrapper: .gfn-recipes-page-wrap
   Hero outer:   .gfn-recipes-hero-outer  (full-bleed band)
   Hero inner:   .gfn-recipes-hero        (constrained 1200px, fixed height)
   Content:      main#content.site-main.gfn-recipes-archive
   Sidebar modifier: .gfn-recipes-archive--with-sidebar
   ============================================================= */

/* ── Page wrapper ────────────────────────────────────────── */

.gfn-recipes-page-wrap {
	background: #fff;
}

/* ── Hero outer band (full viewport width, dark-green bg) ── */

.gfn-recipes-hero-outer {
	background-color: #2c3b2a;
	width: 100%;
}

/* ── Hero inner (constrained to 1200px, fixed 256px height) */

.gfn-recipes-hero {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	height: 256px;
	background-color: #2c3b2a;
	background-size: cover;
	background-position: center 40%;
	background-repeat: no-repeat;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
}

.gfn-recipes-hero--no-image {
	background-image: none !important;
}

.gfn-recipes-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.45 );
	pointer-events: none;
}

.gfn-recipes-hero__inner {
	position: relative;
	z-index: 1;
	padding: 20px 20px 24px;
	width: 100%;
}

.gfn-recipes-hero__title {
	color: #fff;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	text-shadow: 0 2px 8px rgba( 0, 0, 0, 0.6 );
	text-align: left;
}

/* ── Content area: recipe list + right sidebar ───────────── */

.gfn-recipes-archive {
	display: grid;
	grid-template-columns: 1fr;  /* default: single column (no sidebar) */
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 36px 20px 48px;
	box-sizing: border-box;
	background: #fff;
}

/* Two-column layout: explicit class added in PHP when sidebar renders */
.gfn-recipes-archive.gfn-recipes-archive--with-sidebar {
	grid-template-columns: 1fr 280px;
}

/* ── Recipe list ─────────────────────────────────────────── */

.gfn-recipes-main {
	min-width: 0;
}

.gfn-recipe-list {
	display: flex;
	flex-direction: column;
}

.gfn-recipe-row {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 0 0 28px;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 28px;
}

.gfn-recipe-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

/* ── Recipe image ────────────────────────────────────────── */

.gfn-recipe-image {
	flex: 0 0 410px;
	width: 410px;
}

.gfn-recipe-image a {
	display: block;
}

.gfn-recipe-thumb,
.gfn-recipe-image img {
	width: 100%;
	height: 275px;
	object-fit: cover;
	display: block;
	border-radius: 3px;
}

/* No-image: content fills the full row width */
.gfn-recipe-row--no-image .gfn-recipe-content {
	flex: 1 1 100%;
}

/* ── Recipe content ──────────────────────────────────────── */

.gfn-recipe-content {
	flex: 1 1 0;
	min-width: 0;
}

.gfn-recipe-title {
	font-size: 26px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px;
	line-height: 1.25;
	overflow-wrap: break-word;
}

.gfn-recipe-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.gfn-recipe-title a:hover {
	color: #5a6b48;
	text-decoration: underline;
}

.gfn-recipe-title a:focus-visible {
	outline: 2px solid #5a6b48;
	outline-offset: 3px;
	border-radius: 2px;
}

.gfn-recipe-excerpt {
	color: #4a4a4a;
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
}

/* ── No-results ──────────────────────────────────────────── */

.gfn-no-recipes {
	padding: 48px 0;
	text-align: center;
	color: #666;
	font-size: 1rem;
}

/* ── Right sidebar (shared: Recipes + Author) ────────────── */

.gfn-recipes-sidebar,
.gfn-author-sidebar {
	min-width: 0;
}

.gfn-recipes-sidebar .widget,
.gfn-recipes-sidebar .gfn-sidebar-widget,
.gfn-author-sidebar .widget,
.gfn-author-sidebar .gfn-sidebar-widget {
	margin-bottom: 28px;
}

.gfn-recipes-sidebar .widget:last-child,
.gfn-recipes-sidebar .gfn-sidebar-widget:last-child,
.gfn-author-sidebar .widget:last-child,
.gfn-author-sidebar .gfn-sidebar-widget:last-child {
	margin-bottom: 0;
}

.gfn-recipes-sidebar .widget-title,
.gfn-author-sidebar .widget-title {
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e5e5;
}

/* Store promo image */
.gfn-store-promo-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 3px;
}

/* Social links */
.gfn-social-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gfn-social-links li {
	margin-bottom: 8px;
}

.gfn-social-links a {
	color: #5a6b48;
	text-decoration: none;
	font-size: 0.9rem;
}

.gfn-social-links a:hover {
	text-decoration: underline;
}

/* Category list */
.gfn-category-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gfn-category-list li {
	margin-bottom: 6px;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 6px;
}

.gfn-category-list li:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.gfn-category-list a {
	color: #333;
	text-decoration: none;
	font-size: 0.875rem;
	display: flex;
	justify-content: space-between;
}

.gfn-category-list a:hover {
	color: #5a6b48;
	text-decoration: underline;
}

.gfn-cat-count {
	color: #999;
	font-size: 0.8rem;
}

/* ── Category tile widget (Recipes + Author sidebars) ───── */

/* Override widget-title for the tiles heading in both archive sidebars */
.gfn-recipes-sidebar .gfn-cat-tiles-heading,
.gfn-author-sidebar .gfn-cat-tiles-heading {
	font-size: 21px;
	font-weight: 400;
	color: #555;
	border-bottom: 1px solid #999;
	padding-bottom: 7px;
	margin-bottom: 10px;
}

.gfn-cat-tiles {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gfn-cat-tile {
	position: relative;
	display: block;
	width: 100%;
	height: 110px;
	overflow: hidden;
	background-color: #2c3b2a; /* dark-green fallback when image missing */
	text-decoration: none;
}

/* The photo fills the tile */
.gfn-cat-tile__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 180ms ease;
}

/* Dark overlay */
.gfn-cat-tile__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.25 );
	transition: background 180ms ease;
	pointer-events: none;
	z-index: 1;
}

/* Category label */
.gfn-cat-tile__name {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	text-shadow: 0 1px 4px rgba( 0, 0, 0, 0.7 );
	white-space: nowrap;
	padding: 4px 8px;
	z-index: 2;
}

/* Hover: stronger overlay + slight image scale */
.gfn-cat-tile:hover .gfn-cat-tile__overlay,
.gfn-cat-tile:focus .gfn-cat-tile__overlay {
	background: rgba( 0, 0, 0, 0.42 );
}

.gfn-cat-tile:hover .gfn-cat-tile__img,
.gfn-cat-tile:focus .gfn-cat-tile__img {
	transform: scale( 1.03 );
}

/* Focus ring for keyboard users */
.gfn-cat-tile:focus-visible {
	outline: 3px solid #5a6b48;
	outline-offset: 2px;
}

/* ── Pagination ──────────────────────────────────────────── */

.gfn-recipes-pagination.navigation {
	margin-top: 32px;
}

.gfn-recipes-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.gfn-recipes-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	font-size: 0.875rem;
	font-weight: 600;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	background: #fff;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.gfn-recipes-pagination a.page-numbers:hover {
	background: #5a6b48;
	color: #fff;
	border-color: #5a6b48;
}

.gfn-recipes-pagination a.page-numbers:focus-visible {
	outline: 2px solid #5a6b48;
	outline-offset: 2px;
	background: #5a6b48;
	color: #fff;
	border-color: #5a6b48;
}

.gfn-recipes-pagination span.page-numbers.current {
	background: #5a6b48;
	color: #fff;
	border-color: #5a6b48;
}

.gfn-recipes-pagination span.page-numbers.dots {
	border: none;
	background: transparent;
	color: #888;
	min-width: auto;
	padding: 0 4px;
}

/* ── RTL ─────────────────────────────────────────────────── */

[dir="rtl"] .gfn-recipes-archive {
	direction: rtl;
}

[dir="rtl"] .gfn-recipe-row {
	flex-direction: row-reverse;
}

/* ── Reduced motion ──────────────────────────────────────── */

@media ( prefers-reduced-motion: reduce ) {
	.gfn-recipes-pagination .page-numbers {
		transition: none;
	}
}

/* ── Tablet: ≤ 900px — single column, sidebar stacks below ─ */

@media ( max-width: 900px ) {
	.gfn-recipes-archive,
	.gfn-recipes-archive.gfn-recipes-archive--with-sidebar {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 28px 20px 40px;
	}

	.gfn-recipes-hero {
		height: 220px;
	}

	.gfn-recipes-hero__title {
		font-size: 32px;
	}

	.gfn-recipe-image {
		flex: 0 0 260px;
		width: 260px;
	}

	.gfn-recipe-thumb,
	.gfn-recipe-image img {
		height: 174px;
	}

	.gfn-recipe-title {
		font-size: 22px;
	}

	.gfn-recipes-sidebar .widget,
	.gfn-recipes-sidebar .gfn-sidebar-widget {
		margin-bottom: 24px;
	}

	/* Tiles: constrain and centre when sidebar stacks below post list */
	.gfn-cat-tiles {
		max-width: 420px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* ── Mobile: ≤ 600px — image stacks above content ───────── */

@media ( max-width: 600px ) {
	.gfn-recipes-archive {
		padding: 20px 16px 36px;
		gap: 24px;
	}

	.gfn-recipes-hero {
		height: 170px;
	}

	.gfn-recipes-hero__title {
		font-size: 28px;
	}

	.gfn-recipe-row {
		flex-direction: column;
		gap: 12px;
		padding-bottom: 20px;
		margin-bottom: 20px;
	}

	.gfn-recipe-image {
		flex: none;
		width: 100%;
	}

	.gfn-recipe-thumb,
	.gfn-recipe-image img {
		width: 100%;
		height: auto;
		max-height: 220px;
	}

	.gfn-recipe-title {
		font-size: 20px;
	}

	.gfn-recipe-excerpt {
		font-size: 15px;
	}

	.gfn-recipes-pagination .nav-links {
		flex-wrap: wrap;
		justify-content: center;
	}

	.gfn-recipes-pagination .page-numbers {
		min-width: 44px;
		height: 44px;
	}

	.gfn-recipes-sidebar .widget,
	.gfn-recipes-sidebar .gfn-sidebar-widget {
		margin-bottom: 20px;
	}

	/* Tiles: full width, slightly shorter on mobile */
	.gfn-cat-tiles {
		max-width: 100%;
	}

	.gfn-cat-tile {
		height: 100px;
		min-height: 44px; /* touch target */
	}

	/* Allow title to wrap on very narrow screens */
	.gfn-cat-tile__name {
		white-space: normal;
		text-align: center;
	}
}

/* =============================================================
   WORKOUTS CATEGORY ARCHIVE
   Mirrors the Recipes archive layout, scoped under .gfn-workouts-*
   ============================================================= */

/* ── Page wrapper ────────────────────────────────────────── */

.gfn-workouts-page-wrap {
	background: #fff;
}

/* ── Hero outer band (full viewport width) ───────────────── */

.gfn-workouts-hero-outer {
	background-color: #2c3b2a;
	width: 100%;
}

/* ── Hero inner (1200px max-width, 256px fixed height) ───── */

.gfn-workouts-hero {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	height: 256px;
	background-color: #2c3b2a;
	background-size: cover;
	background-position: center 40%;
	background-repeat: no-repeat;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
}

.gfn-workouts-hero--no-image {
	background-image: none !important;
}

.gfn-workouts-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.45 );
	pointer-events: none;
}

.gfn-workouts-hero__inner {
	position: relative;
	z-index: 1;
	padding: 20px 20px 24px;
	width: 100%;
}

.gfn-workouts-hero__title {
	color: #fff;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	text-shadow: 0 2px 8px rgba( 0, 0, 0, 0.6 );
	text-align: left;
}

/* ── Content area: two-column grid ──────────────────────── */

.gfn-workouts-archive {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 36px 20px 48px;
	box-sizing: border-box;
	background: #fff;
}

.gfn-workouts-archive.gfn-workouts-archive--with-sidebar {
	grid-template-columns: 1fr 280px;
}

/* ── Workout list ────────────────────────────────────────── */

.gfn-workouts-main {
	min-width: 0;
}

.gfn-workout-list {
	display: flex;
	flex-direction: column;
}

.gfn-workout-row {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 0 0 28px;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 28px;
}

.gfn-workout-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

/* ── Workout image ───────────────────────────────────────── */

.gfn-workout-image {
	flex: 0 0 410px;
	width: 410px;
}

.gfn-workout-image a {
	display: block;
}

.gfn-workout-thumb,
.gfn-workout-image img {
	width: 100%;
	height: 275px;
	object-fit: cover;
	display: block;
	border-radius: 3px;
}

.gfn-workout-row--no-image .gfn-workout-content {
	flex: 1 1 100%;
}

/* ── Workout content ─────────────────────────────────────── */

.gfn-workout-content {
	flex: 1 1 0;
	min-width: 0;
}

.gfn-workout-title {
	font-size: 26px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px;
	line-height: 1.25;
	overflow-wrap: break-word;
}

.gfn-workout-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.gfn-workout-title a:hover {
	color: #5a6b48;
	text-decoration: underline;
}

.gfn-workout-title a:focus-visible {
	outline: 2px solid #5a6b48;
	outline-offset: 3px;
	border-radius: 2px;
}

.gfn-workout-excerpt {
	color: #4a4a4a;
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
}

/* ── No-results ──────────────────────────────────────────── */

.gfn-no-workouts {
	padding: 48px 0;
	text-align: center;
	color: #666;
	font-size: 1rem;
}

/* ── Right sidebar ───────────────────────────────────────── */

.gfn-workouts-sidebar {
	min-width: 0;
}

.gfn-workouts-sidebar .widget,
.gfn-workouts-sidebar .gfn-sidebar-widget {
	margin-bottom: 32px;
}

.gfn-workouts-sidebar .widget:last-child,
.gfn-workouts-sidebar .gfn-sidebar-widget:last-child {
	margin-bottom: 0;
}

.gfn-workouts-sidebar .widget-title {
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e5e5;
}

/* ── Pagination ──────────────────────────────────────────── */

.gfn-workouts-pagination.navigation {
	margin-top: 32px;
}

.gfn-workouts-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.gfn-workouts-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	font-size: 0.875rem;
	font-weight: 600;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	background: #fff;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.gfn-workouts-pagination a.page-numbers:hover {
	background: #5a6b48;
	color: #fff;
	border-color: #5a6b48;
}

.gfn-workouts-pagination a.page-numbers:focus-visible {
	outline: 2px solid #5a6b48;
	outline-offset: 2px;
	background: #5a6b48;
	color: #fff;
	border-color: #5a6b48;
}

.gfn-workouts-pagination span.page-numbers.current {
	background: #5a6b48;
	color: #fff;
	border-color: #5a6b48;
}

.gfn-workouts-pagination span.page-numbers.dots {
	border: none;
	background: transparent;
	color: #888;
	min-width: auto;
	padding: 0 4px;
}

/* ── RTL ─────────────────────────────────────────────────── */

[dir="rtl"] .gfn-workouts-archive {
	direction: rtl;
}

[dir="rtl"] .gfn-workout-row {
	flex-direction: row-reverse;
}

/* ── Reduced motion ──────────────────────────────────────── */

@media ( prefers-reduced-motion: reduce ) {
	.gfn-workouts-pagination .page-numbers {
		transition: none;
	}
}

/* ── Tablet: ≤ 900px — single column, sidebar stacks below ─ */

@media ( max-width: 900px ) {
	.gfn-workouts-archive,
	.gfn-workouts-archive.gfn-workouts-archive--with-sidebar {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 28px 20px 40px;
	}

	.gfn-workouts-hero {
		height: 220px;
	}

	.gfn-workouts-hero__title {
		font-size: 32px;
	}

	.gfn-workout-image {
		flex: 0 0 260px;
		width: 260px;
	}

	.gfn-workout-thumb,
	.gfn-workout-image img {
		height: 174px;
	}

	.gfn-workout-title {
		font-size: 22px;
	}

	.gfn-workouts-sidebar .widget,
	.gfn-workouts-sidebar .gfn-sidebar-widget {
		margin-bottom: 24px;
	}
}

/* ── Mobile: ≤ 600px — image stacks above content ───────── */

@media ( max-width: 600px ) {
	.gfn-workouts-archive {
		padding: 20px 16px 36px;
		gap: 24px;
	}

	.gfn-workouts-hero {
		height: 170px;
	}

	.gfn-workouts-hero__title {
		font-size: 28px;
	}

	.gfn-workout-row {
		flex-direction: column;
		gap: 12px;
		padding-bottom: 20px;
		margin-bottom: 20px;
	}

	.gfn-workout-image {
		flex: none;
		width: 100%;
	}

	.gfn-workout-thumb,
	.gfn-workout-image img {
		width: 100%;
		height: auto;
		max-height: 220px;
	}

	.gfn-workout-title {
		font-size: 20px;
	}

	.gfn-workout-excerpt {
		font-size: 15px;
	}

	.gfn-workouts-pagination .nav-links {
		flex-wrap: wrap;
		justify-content: center;
	}

	.gfn-workouts-pagination .page-numbers {
		min-width: 44px;
		height: 44px;
	}

	.gfn-workouts-sidebar .widget,
	.gfn-workouts-sidebar .gfn-sidebar-widget {
		margin-bottom: 20px;
	}
}
