/*
Theme Name: SpeedUp
Theme URI: https://speedup.ir/
Author: SpeedUp
Author URI: https://speedup.ir/
Description: اسپید آپ — قالب بلوکی بهینه‌سازی سرعت وردپرس، Core Web Vitals، ابزارهای سرعت و سئوی فنی.
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: online-lms
Tags: blog, portfolio, full-site-editing, block-patterns, block-styles, custom-colors, custom-menu, custom-logo, editor-style, featured-images, flexible-header, one-column, two-columns, three-columns, threaded-comments, translation-ready, wide-blocks, rtl-language-support
*/

html,
body,
.wp-block-post-author__avatar,
.wp-block-social-links,
.wp-block-post-excerpt__excerpt,
.wp-block-separator {
	margin: 0;
	padding: 0;
}

html,
body {
	overflow-x: hidden;
}

.no-margin-top {
	margin-top: 0 !important;
}

/* Box sizing
--------------------------------------------- */
/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
html {
	font-smooth: antialiased;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: antialiased;
 }

body {
	font-smooth: auto;
	font-smooth: inherit;
	-webkit-font-smoothing: inherit;
}

.wp-site-blocks > .wp-block-group  {
	margin-block-start: 0;
}

.wp-block-columns{
	margin-block-start: 0;
	margin-block-end: 0;
}

.wp-block-cover{
	margin-block-start: 0;
	margin-block-end: 0;
}

.wp-site-blocks > header,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Header: hide Sign In + Get Started group when hamburger is active (below 600px) */
@media (max-width: 599px) {
	.online-lms-d-none {
		display: none !important;
	}
}

/* Header button: never wrap text */
header .wp-element-button {
	white-space: nowrap;
}

/* Masteriyo compatibility: restore nav link cursor and hover underline.
   Mirrors TwentyTwentyFive's selector pattern (.wp-block-navigation + .wp-block-navigation-item
   + .wp-block-navigation-item__content = specificity 30) which beats Masteriyo's
   masteriyo-dependencies.css rule (.wp-block-navigation-item .wp-block-navigation-item__content
   { cursor:text } = specificity 20). Also fixes hover underline lost to public.css
   body.masteriyo a { text-decoration:none } on all Masteriyo pages. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	cursor: pointer;
}

body.masteriyo .wp-block-navigation a:not(.wp-element-button):hover {
	text-decoration: underline;
}

/* Masteriyo LMS pages: expand constrained content width beyond the 720px blog default */
body.masteriyo-account-page,
body.masteriyo-courses-page,
body.masteriyo-checkout-page,
body.masteriyo-learn-page,
body.masteriyo-instructor-registration-page {
	--wp--style--global--content-size: 1100px;
}

/* Skip link â€” visible on keyboard focus, hidden otherwise */
.skip-link.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	background-color: var(--wp--preset--color--primary, #dd2c00);
	clip: auto !important;
	clip-path: none;
	color: #fff;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 12px 20px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
	border-radius: 4px;
}

/*--------------------------------------------------------------
# Speed service book accordion
--------------------------------------------------------------*/
.speedup-service-book__chapters {
	position: relative;
}

.speedup-service-book__chapter {
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.speedup-service-book__chapter:has(details[open]) {
	border-color: #dd2c004d !important;
	background-color: #fff !important;
	box-shadow: 0 8px 28px rgba(71, 67, 59, 0.08);
}

.speedup-service-book__chapter .wp-block-details > summary {
	display: flex;
	align-items: center;
	gap: 14px;
	cursor: pointer;
	list-style: none;
}

.speedup-service-book__chapter .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.speedup-service-book__chapter .wp-block-details > summary::after {
	content: "";
	width: 10px;
	height: 10px;
	margin-inline-start: auto;
	flex-shrink: 0;
	border-inline-end: 2px solid var(--wp--preset--color--text-gray, #47433b);
	border-bottom: 2px solid var(--wp--preset--color--text-gray, #47433b);
	transform: rotate(45deg);
	transition: transform 0.2s ease, border-color 0.2s ease;
	opacity: 0.55;
}

.speedup-service-book__chapter .wp-block-details[open] > summary::after {
	transform: rotate(-135deg);
	border-color: var(--wp--preset--color--primary, #dd2c00);
	opacity: 1;
}

.speedup-service-book__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 8px;
	border-radius: 8px;
	background: #fdeae3;
	color: var(--wp--preset--color--primary, #dd2c00);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	flex-shrink: 0;
}

.speedup-service-book__chapter .wp-block-details[open] .speedup-service-book__num {
	background: var(--wp--preset--color--primary, #dd2c00);
	color: #fff;
}

@media (max-width: 781px) {
	.speedup-service-book .wp-block-columns {
		flex-direction: column;
	}
}

/*--------------------------------------------------------------
# Speed test page (native WP UI â†’ onlinetest API)
--------------------------------------------------------------*/
.speedup-test-page {
	min-height: 60vh;
}

/*--------------------------------------------------------------
# Archive category description accordion
--------------------------------------------------------------*/
.speedup-archive-desc-slot {
	width: 100%;
	max-width: 820px;
	margin: 24px auto 0;
}

.speedup-archive-desc {
	width: 100%;
}

.speedup-archive-desc__details {
	border: 1px solid var(--wp--preset--color--border, #ebe4d8);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.speedup-archive-desc__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	cursor: pointer;
	list-style: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wp--preset--color--text-dark, #1a1814);
	user-select: none;
}

.speedup-archive-desc__summary::-webkit-details-marker {
	display: none;
}

.speedup-archive-desc__chevron {
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	border-inline-end: 2px solid var(--wp--preset--color--text-gray, #47433b);
	border-bottom: 2px solid var(--wp--preset--color--text-gray, #47433b);
	transform: rotate(45deg);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.speedup-archive-desc__details[open] .speedup-archive-desc__chevron {
	transform: rotate(-135deg);
	border-color: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-archive-desc__details[open] {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary, #dd2c00) 30%, transparent);
	box-shadow: 0 8px 28px rgba(71, 67, 59, 0.08);
}

.speedup-archive-desc__body {
	padding: 0 20px 20px;
	font-size: 15px;
	line-height: 1.85;
	color: var(--wp--preset--color--text-gray, #47433b);
	text-align: right;
}

.speedup-archive-desc__body > *:first-child {
	margin-top: 0;
}

.speedup-archive-desc__body > *:last-child {
	margin-bottom: 0;
}

.speedup-archive-desc__body p {
	margin: 0 0 1em;
}

.speedup-archive-desc__body a {
	color: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-archive-desc__body h2,
.speedup-archive-desc__body h3,
.speedup-archive-desc__body h4 {
	color: var(--wp--preset--color--text-dark, #1a1814);
	margin: 1.25em 0 0.5em;
	line-height: 1.35;
}

.speedup-archive-desc__body ul,
.speedup-archive-desc__body ol {
	margin: 0 0 1em;
	padding-inline-start: 1.25em;
}

/*--------------------------------------------------------------
# Blog (Blogy-inspired, brand colors)
--------------------------------------------------------------*/
.speedup-blog__featured-track,
.speedup-blog__featured-query .wp-block-post-template {
	display: flex !important;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start !important;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 12px;
	margin: 0;
	list-style: none;
}

.speedup-blog__featured-query .wp-block-post {
	flex: 0 0 320px;
	width: 320px;
	max-width: 320px;
	scroll-snap-align: start;
	align-self: flex-start !important;
	margin: 0 !important;
	padding: 0 !important;
}

.speedup-blog-card--featured {
	width: 100%;
	gap: 0 !important;
	align-items: stretch !important;
}

.speedup-blog-card--featured > .wp-block-post-featured-image {
	width: 100%;
	aspect-ratio: 4 / 5;
	height: auto;
	margin: 0 0 16px !important;
	overflow: hidden;
	border-radius: 16px;
}

.speedup-blog-card--featured > .wp-block-post-featured-image a,
.speedup-blog-card--featured > .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.speedup-blog-card--featured > .wp-block-post-terms,
.speedup-blog-card--featured > .taxonomy-category {
	min-height: 28px;
	margin: 0 0 10px !important;
}

.speedup-blog-card--featured > .wp-block-post-title {
	min-height: 2.7em;
	margin: 0 0 10px !important;
	font-size: 20px !important;
	line-height: 1.35 !important;
}

.speedup-blog-card--featured > .wp-block-post-excerpt {
	margin: 0 !important;
}

.speedup-blog__grid.wp-block-post-template {
	gap: 28px !important;
}

@media (max-width: 1024px) {
	.speedup-blog__grid.wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.speedup-blog__grid.wp-block-post-template.is-layout-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

.speedup-blog-card {
	gap: 16px !important;
}

.speedup-blog-card:not(.speedup-blog-card--compact):not(.speedup-blog-card--featured) > .wp-block-post-featured-image {
	margin: 0 0 32px !important;
	padding-bottom: 0 !important;
	display: block;
}

.speedup-blog-card:not(.speedup-blog-card--compact):not(.speedup-blog-card--featured) > .wp-block-post-terms,
.speedup-blog-card:not(.speedup-blog-card--compact):not(.speedup-blog-card--featured) > .taxonomy-category {
	margin: 0 0 8px !important;
	padding-top: 0 !important;
}

.speedup-blog-card .wp-block-post-featured-image img,
.speedup-blog-card .wp-block-post-featured-image a {
	border-radius: 16px;
	overflow: hidden;
	display: block;
	vertical-align: bottom;
}

.speedup-blog-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--text-dark, #1a1814);
}

.speedup-blog-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-blog-card__tags,
.speedup-blog-card .wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.speedup-blog-card .wp-block-post-terms a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--primary, #dd2c00) 10%, transparent);
	color: var(--wp--preset--color--primary, #dd2c00);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.4;
}

.speedup-blog-card .wp-block-post-terms a:hover {
	background: var(--wp--preset--color--primary, #dd2c00);
	color: #fff;
}

.speedup-home-blog .speedup-blog__grid {
	margin-top: 0;
}

.speedup-home-blog .speedup-home-blog__featured {
	margin-bottom: 48px;
}

.speedup-home-blog .speedup-home-blog__query {
	margin-top: 0;
}

.speedup-home-blog .speedup-blog__grid--home.is-layout-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 40px !important;
}

.speedup-home-blog .speedup-blog__grid--home .speedup-blog-card > .wp-block-post-featured-image {
	margin-bottom: 28px !important;
}

.speedup-home-blog .speedup-blog__grid--home .wp-block-post-title {
	font-size: clamp(1.25rem, 2.2vw, 1.5rem) !important;
	line-height: 1.35 !important;
}

.speedup-home-blog .speedup-blog__grid--home .wp-block-post-excerpt {
	font-size: 15px !important;
	line-height: 1.7 !important;
}

@media (max-width: 640px) {
	.speedup-home-blog .speedup-blog__grid--home.is-layout-grid {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 32px !important;
	}
}

.speedup-blog__grid--compact.wp-block-post-template {
	gap: 20px 24px !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 1024px) {
	.speedup-blog__grid--compact.wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.speedup-blog__grid--compact.wp-block-post-template {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

.speedup-blog-card--compact {
	gap: 14px !important;
	align-items: flex-start !important;
}

.speedup-blog-card--compact > .wp-block-post-featured-image {
	flex: 0 0 88px;
	width: 88px;
	margin: 0 !important;
}

.speedup-blog-card--compact > .wp-block-post-featured-image img,
.speedup-blog-card--compact > .wp-block-post-featured-image a {
	border-radius: 12px;
	width: 88px;
	height: 88px;
	object-fit: cover;
}

.speedup-blog-card--compact .wp-block-post-terms {
	margin-top: 0;
}

.speedup-blog-card--compact .wp-block-post-terms a {
	padding: 2px 8px;
	font-size: 11px;
}

.speedup-blog-card--compact .wp-block-post-title {
	margin: 0;
}

.speedup-tool-card .wp-block-heading a:hover {
	color: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-tools-grid .wp-block-columns {
	align-items: stretch !important;
}

.speedup-tools-grid .wp-block-column {
	display: flex;
	flex-direction: column;
}

.speedup-tools-grid .speedup-tool-card {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
	width: 100%;
	box-sizing: border-box;
}

.speedup-tools-grid .speedup-tool-card > .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 16px;
}

/*--------------------------------------------------------------
# Squoosh native embed (no iframe) â€” site header + app + footer
# One page scroll only (kill Squoosh nested overflow traps)
--------------------------------------------------------------*/
.speedup-compress-shell {
	display: block;
	width: 100%;
	padding: 0 !important;
	margin: 0 !important;
	background: #fff;
}

.speedup-compress-native {
	display: block;
	width: 100%;
	position: relative;
	overflow: visible;
}

.speedup-compress-native #app {
	position: relative;
	width: 100%;
	min-height: calc(100vh - 80px);
	overflow: visible !important;
	height: auto !important;
	contain: none !important;
}

/* Squoosh sets html/body overflow:hidden â€” undo so site footer is reachable */
html:has(body.speedup-compress-page),
body.speedup-compress-page {
	height: auto !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	contain: none !important;
}

/*
 * After hydration DOM is: #app > ._app_ > file-drop > ._intro_
 * Squoosh App/Drop use height:100% + overflow:hidden â†’ fake â€œiframeâ€ double scroll.
 * Intro mode: unwind all of that so only the WP page scrolls.
 */
body.speedup-compress-page .speedup-compress-native:has([class*="_intro_"]) #app,
body.speedup-compress-page .speedup-compress-native:has([class*="_intro_"]) [class*="_app_"],
body.speedup-compress-page .speedup-compress-native:has([class*="_intro_"]) file-drop,
body.speedup-compress-page .speedup-compress-native:has([class*="_intro_"]) [class*="_drop_"] {
	position: relative !important;
	left: auto !important;
	top: auto !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
	contain: none !important;
	touch-action: pan-y !important;
}

/* Trackpad / wheel: never trap gestures on intro chrome */
body.speedup-compress-page .speedup-compress-native:has([class*="_intro_"]),
body.speedup-compress-page .speedup-compress-native:has([class*="_intro_"]) * {
	touch-action: pan-y !important;
}

body.speedup-compress-page .speedup-compress-native:has([class*="_intro_"]) a,
body.speedup-compress-page .speedup-compress-native:has([class*="_intro_"]) button {
	touch-action: manipulation !important;
}

body.speedup-compress-page .speedup-compress-native [class*="_intro_"],
body.speedup-compress-page .speedup-compress-native [class*="_intro_"].abs-fill {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	width: 100% !important;
	height: auto !important;
	min-height: calc(100vh - 80px);
	overflow: visible !important;
	overscroll-behavior: auto !important;
	contain: none !important;
	-webkit-overflow-scrolling: auto !important;
}

/* Hero blob stays inside the main block only â€” not a second scrollport */
body.speedup-compress-page .speedup-compress-native:has([class*="_intro_"]) [class*="_main_"] {
	position: relative;
	overflow: hidden; /* clip canvas to hero, still no scrollport */
}

body.speedup-compress-page .speedup-compress-native:has([class*="_intro_"]) [class*="_blob-canvas_"] {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	pointer-events: none;
}

/* Editor / compress UI (no intro): fill under header */
body.speedup-compress-page .speedup-compress-native:not(:has([class*="_intro_"])) #app {
	position: relative;
	min-height: calc(100vh - 80px);
	height: calc(100vh - 80px);
	overflow: hidden !important;
}

body.speedup-compress-page .speedup-compress-native:not(:has([class*="_intro_"])) [class*="_app_"],
body.speedup-compress-page .speedup-compress-native:not(:has([class*="_intro_"])) file-drop,
body.speedup-compress-page .speedup-compress-native:not(:has([class*="_intro_"])) [class*="_drop_"] {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	overflow: hidden !important;
}

body.speedup-compress-page .wp-site-blocks > header,
body.speedup-compress-page header.wp-block-template-part,
body.speedup-compress-page header.wp-block-group,
body.speedup-compress-page .is-position-sticky {
	position: static !important;
	top: auto !important;
	inset: auto !important;
	z-index: auto !important;
}

/* WP block-gap (spacing--40) adds 30px between main and footer on this page */
body.speedup-compress-page {
	--wp--style--block-gap: 0px !important;
}

body.speedup-compress-page .wp-site-blocks {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	row-gap: 0 !important;
	column-gap: 0 !important;
}

body.speedup-compress-page .wp-site-blocks > *,
body.speedup-compress-page .wp-site-blocks > * + * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.speedup-compress-page .wp-site-blocks > main,
body.speedup-compress-page .wp-site-blocks > main.speedup-compress-shell {
	margin-block: 0 !important;
	overflow: visible !important;
}

body.speedup-compress-page .wp-site-blocks > footer,
body.speedup-compress-page .wp-site-blocks > .wp-block-template-part,
body.speedup-compress-page footer.wp-block-template-part {
	display: block !important;
	visibility: visible !important;
	position: relative !important;
	z-index: 1;
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

/* Drop zone â€” solid brand red + white text/icon (readable, like header CTA) */
body.speedup-compress-page .speedup-compress-native [class*="_main_"] {
	--blob-pink: #dd2c00 !important;
	--center-blob-opacity: 1 !important;
}

body.speedup-compress-page .speedup-compress-native [class*="_load-img_"],
body.speedup-compress-page .speedup-compress-native [class*="_load-img-content_"],
body.speedup-compress-page .speedup-compress-native [class*="_drop-text_"],
body.speedup-compress-page .speedup-compress-native [class*="_paste-btn_"],
body.speedup-compress-page .speedup-compress-native [class*="_load-img-content_"] > div {
	color: #fff !important;
}

body.speedup-compress-page .speedup-compress-native [class*="_paste-btn_"] {
	font-weight: 700 !important;
	text-underline-offset: 0.2em;
}

body.speedup-compress-page .speedup-compress-native [class*="_load-icon_"] {
	fill: #fff !important;
}

/* Squoosh footer re-added on hydrate â€” strip from layout */
body.speedup-compress-page .speedup-compress-native [class*="_footer_"],
body.speedup-compress-page .speedup-compress-native [class*="_intro_"] > footer,
body.speedup-compress-page .speedup-compress-native footer[class*="_footer_"] {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
}

/* Last intro block flush with site footer â€” no white gap */
body.speedup-compress-page .speedup-compress-native [class*="_intro_"] section[class*="_info_"]:last-of-type {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

@media (min-width: 1200px) {
	body.speedup-compress-page .speedup-compress-native [class*="_intro_"] section[class*="_info_"]:last-of-type {
		padding: 5em 0 0 !important;
	}
}

body.speedup-compress-page .speedup-compress-native [class*="_intro_"] section[class*="_info_"]:last-of-type [class*="_info-container_"],
body.speedup-compress-page .speedup-compress-native [class*="_intro_"] section[class*="_info_"]:last-of-type [class*="_info-content_"],
body.speedup-compress-page .speedup-compress-native [class*="_intro_"] section[class*="_info_"]:last-of-type [class*="_info-caption_"] {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

body.speedup-compress-page .speedup-compress-native [class*="_intro_"] {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

body.speedup-compress-page .speedup-compress-shell,
body.speedup-compress-page .speedup-compress-native,
body.speedup-compress-page .speedup-compress-native #app {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

body.speedup-compress-page .wp-site-blocks > main + .wp-block-template-part,
body.speedup-compress-page .wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0 !important;
}

body.speedup-compress-page .speedup-compress-native img[class*="_logo_"] {
	width: 189px !important;
	height: auto !important;
	max-width: min(189px, 72vw);
	object-fit: contain;
	transform: none !important;
}

/* Homepage video hero */
.speedup-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(92vh, 920px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-color: #121212;
	background-image: url('assets/images/hero-poster.jpg');
	background-size: cover;
	background-position: center;
}

.speedup-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	pointer-events: none;
}

.speedup-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(8, 8, 10, 0.72) 0%, rgba(8, 8, 10, 0.55) 45%, rgba(8, 8, 10, 0.82) 100%);
	pointer-events: none;
}

.speedup-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
}

.speedup-hero .has-text-dark-color,
.speedup-hero h1.has-text-color {
	color: #fff !important;
}

.speedup-hero .has-text-gray-color {
	color: rgba(255, 255, 255, 0.88) !important;
}

.speedup-hero h1 .has-primary-color {
	color: var(--wp--preset--color--primary) !important;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.speedup-hero .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.85) !important;
	color: #fff !important;
	background: rgba(255, 255, 255, 0.08) !important;
}

.speedup-hero .wp-block-button.is-style-outline .wp-block-button__link .has-primary-color {
	color: #fff !important;
}

@media (max-width: 781px) {
	.speedup-hero {
		min-height: min(88vh, 780px);
		padding-top: 96px !important;
		padding-bottom: 72px !important;
	}

	.speedup-hero h1.has-text-color {
		font-size: clamp(2rem, 8vw, 2.75rem) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.speedup-hero__video {
		display: none;
	}

	.speedup-hero__overlay {
		background: #121212;
	}
}

/* Homepage: overlay header on video hero */
body.speedup-home-hero {
	--speedup-overlay-header-height: 94px;
}

body.speedup-home-hero .wp-site-blocks {
	position: relative;
}

body.speedup-home-hero header.wp-block-template-part,
body.speedup-home-hero .wp-site-blocks header.wp-block-template-part {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	width: 100%;
	max-width: none;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

body.speedup-home-hero main,
body.speedup-home-hero .wp-site-blocks main {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

body.speedup-home-hero .wp-site-blocks > .wp-block-group,
body.speedup-home-hero .wp-site-blocks > .wp-block-group > * {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

body.speedup-home-hero .speedup-site-header--overlay,
body.speedup-home-hero header.speedup-site-header--overlay {
	background: transparent !important;
	background-color: transparent !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

body.speedup-home-hero .speedup-site-header--overlay.has-background,
body.speedup-home-hero .speedup-site-header--overlay.has-white-background-color {
	background: transparent !important;
	background-color: transparent !important;
}

body.speedup-home-hero .speedup-site-header--overlay .wp-block-navigation-item__content,
body.speedup-home-hero .speedup-site-header--overlay .wp-block-navigation-item__label,
body.speedup-home-hero .speedup-site-header--overlay .online-lms-d-none .has-text-color,
body.speedup-home-hero .speedup-site-header--overlay .online-lms-d-none a {
	color: #fff !important;
}

body.speedup-home-hero .speedup-site-header--overlay .wp-block-navigation .wp-block-navigation__responsive-container-open,
body.speedup-home-hero .speedup-site-header--overlay .wp-block-navigation .wp-block-navigation__responsive-container-close {
	color: #fff !important;
}

body.speedup-home-hero .speedup-site-header--overlay .wp-block-navigation__responsive-container-open svg,
body.speedup-home-hero .speedup-site-header--overlay .wp-block-navigation__responsive-container-close svg {
	fill: currentColor;
}

body.speedup-home-hero .speedup-hero {
	min-height: min(92vh, 920px);
	margin-top: 0 !important;
	padding-top: calc(120px + var(--speedup-overlay-header-height)) !important;
}

body.speedup-home-hero .speedup-hero__overlay {
	background:
		linear-gradient(180deg, rgba(8, 8, 10, 0.82) 0%, rgba(8, 8, 10, 0.55) 42%, rgba(8, 8, 10, 0.82) 100%);
}

@media (max-width: 781px) {
	body.speedup-home-hero .speedup-hero {
		padding-top: calc(96px + var(--speedup-overlay-header-height)) !important;
	}
}

/*--------------------------------------------------------------
# Service product cards (what-we-do)
--------------------------------------------------------------*/
.speedup-product-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px 40px;
	margin-top: 0;
	margin-bottom: 40px;
	padding-top: 24px;
}

.speedup-product-card {
	position: relative;
	max-width: 400px;
	width: 100%;
	margin-inline: auto;
	padding: 40px;
	padding-bottom: 56px;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 30px 25px -20px rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.speedup-product-card:hover {
	box-shadow: 0 36px 28px -20px rgba(0, 0, 0, 0.2);
}

.speedup-product-card__badge {
	position: absolute;
	top: -30px;
	inset-inline-start: -30px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100px;
	height: 100px;
	background-color: rgba(0, 0, 0, 0.95);
	color: #fff;
	border-radius: 50%;
	font-size: 0.8em;
	letter-spacing: 1.4px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
}

.speedup-product-card__image {
	display: block;
	width: 180%;
	max-width: none;
	height: auto;
	margin-top: -5px;
	margin-bottom: 30px;
	margin-inline-start: -40%;
	margin-inline-end: -40%;
	object-fit: cover;
}

.speedup-product-card__category {
	display: block;
	margin-bottom: 1em;
	color: var(--wp--preset--color--primary, #dd2c00);
	font-size: 0.8em;
	letter-spacing: 1.4px;
	font-weight: 700;
}

.speedup-product-card__title {
	margin: 0 0 0.5em;
	color: #1a1210;
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 600;
	line-height: 1.15;
}

.speedup-product-card__rule {
	border: 0;
	width: 30px;
	height: 3px;
	margin: 22px 0 20px;
	background-color: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-product-card__desc {
	margin: 0 0 1.25em;
	color: #666;
	font-size: 15px;
	line-height: 1.7;
}

.speedup-product-card__features {
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
	color: var(--wp--preset--color--text-dark, #47433b);
}

.speedup-product-card__features li {
	position: relative;
	margin-bottom: 10px;
	padding-inline-start: 1.25em;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

.speedup-product-card__features li::before {
	content: "âœ“";
	position: absolute;
	inset-inline-start: 0;
	color: var(--wp--preset--color--primary, #dd2c00);
	font-weight: 700;
}

.speedup-product-card__btn {
	position: absolute;
	bottom: -30px;
	inset-inline-end: 30px;
	display: inline-block;
	padding: 1.25em 2.25em;
	border-radius: 5px;
	background-color: rgba(221, 44, 0, 0.95);
	color: #fff;
	font-size: 0.8em;
	letter-spacing: 1.2px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 30px 25px -20px rgba(0, 0, 0, 0.15);
	transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.speedup-product-card__btn:hover {
	background-color: #b82400;
	box-shadow: 0 36px 28px -20px rgba(0, 0, 0, 0.2);
	color: #fff;
}

@media (max-width: 900px) {
	.speedup-product-cards {
		grid-template-columns: 1fr;
		gap: 56px;
		max-width: 420px;
		margin-inline: auto;
	}

	.speedup-product-card__badge {
		top: -24px;
		inset-inline-start: -16px;
		width: 84px;
		height: 84px;
		font-size: 0.75em;
	}

	.speedup-product-card__btn {
		inset-inline-end: 20px;
		padding: 1.1em 1.75em;
		font-size: 0.75em;
	}
}

/*--------------------------------------------------------------
# Hover expand cards (whats-included)
--------------------------------------------------------------*/
.speedup-hover-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 32px;
	margin-bottom: 24px;
	padding-top: 8px;
}

.speedup-hover-card {
	position: relative;
	width: 100%;
	max-width: 300px;
	height: 300px;
	margin-inline: auto;
	background-color: #fff;
	box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	transition: height 0.3s cubic-bezier(0.3, 0, 0, 1.3), box-shadow 0.3s cubic-bezier(0.3, 0, 0, 1.3);
}

.speedup-hover-card:hover,
.speedup-hover-card:focus-within {
	height: 420px;
	z-index: 5;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.speedup-hover-card__circle {
	position: absolute;
	inset-inline-start: 50%;
	width: 450px;
	height: 400px;
	margin-inline-start: -225px;
	margin-top: -270px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--primary, #dd2c00);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: cover;
	transition: border-radius 0.3s cubic-bezier(0.3, 0, 0, 1.3), margin-top 0.3s cubic-bezier(0.3, 0, 0, 1.3);
}

.speedup-hover-card:hover .speedup-hover-card__circle,
.speedup-hover-card:focus-within .speedup-hover-card__circle {
	border-radius: 0;
	margin-top: -130px;
}

.speedup-hover-card__title {
	position: absolute;
	top: 0;
	inset-inline: 0;
	z-index: 3;
	margin: 150px 0 0;
	padding: 0 12px;
	color: var(--wp--preset--color--primary, #dd2c00);
	font-size: clamp(17px, 1.6vw, 22px);
	font-weight: 400;
	line-height: 1.35;
	text-align: center;
	transition: margin-top 0.3s cubic-bezier(0.3, 0, 0, 1.3), background-color 0.3s cubic-bezier(0.3, 0, 0, 1.3), color 0.3s cubic-bezier(0.3, 0, 0, 1.3);
}

.speedup-hover-card:hover .speedup-hover-card__title,
.speedup-hover-card:focus-within .speedup-hover-card__title {
	margin-top: 100px;
	padding: 8px 12px;
	background-color: var(--wp--preset--color--primary, #dd2c00);
	color: #fff;
}

.speedup-hover-card__desc {
	position: absolute;
	top: 0;
	inset-inline: 0;
	z-index: 3;
	margin: 200px 0 0;
	padding: 0 20px;
	color: rgba(0, 0, 0, 0.6);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
	text-align: center;
	transition: margin-top 0.3s cubic-bezier(0.3, 0, 0, 1.3);
}

.speedup-hover-card:hover .speedup-hover-card__desc,
.speedup-hover-card:focus-within .speedup-hover-card__desc {
	margin-top: 268px;
}

.speedup-hover-card__cta {
	position: absolute;
	top: 0;
	inset-inline: 0;
	z-index: 3;
	display: none;
	margin-top: 340px;
	text-align: center;
	transition: margin-top 0.3s cubic-bezier(0.3, 0, 0, 1.3);
}

.speedup-hover-card:hover .speedup-hover-card__cta,
.speedup-hover-card:focus-within .speedup-hover-card__cta {
	display: block;
	margin-top: 360px;
}

.speedup-hover-card__btn {
	display: inline-block;
	height: 36px;
	padding: 0 1.5rem;
	border: 2px solid var(--wp--preset--color--primary, #dd2c00);
	border-radius: 2px;
	color: var(--wp--preset--color--primary, #dd2c00);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.5px;
	line-height: 32px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease-out, color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.speedup-hover-card__btn:hover {
	background-color: var(--wp--preset--color--primary, #dd2c00);
	box-shadow: 0 8px 17px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
	color: #fff;
}

@media (max-width: 960px) {
	.speedup-hover-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 24px;
	}
}

@media (max-width: 600px) {
	.speedup-hover-cards {
		grid-template-columns: 1fr;
		gap: 56px;
	}
}

@media (hover: none) {
	.speedup-hover-card {
		height: auto;
		min-height: 380px;
		max-width: 320px;
		padding-bottom: 28px;
		overflow: visible;
	}

	.speedup-hover-card__circle {
		position: relative;
		inset-inline-start: auto;
		width: calc(100% + 48px);
		height: 160px;
		margin-inline: -24px 0;
		margin-top: -24px;
		margin-bottom: 16px;
		border-radius: 0;
	}

	.speedup-hover-card__title {
		position: relative;
		margin: 0 0 12px;
		padding: 8px 12px;
		background-color: var(--wp--preset--color--primary, #dd2c00);
		color: #fff;
	}

	.speedup-hover-card__desc {
		position: relative;
		margin: 0 0 20px;
		padding: 0 4px;
	}

	.speedup-hover-card__cta {
		position: relative;
		display: block;
		margin-top: 0;
	}
}

/*--------------------------------------------------------------
/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.speedup-breadcrumbs-slot {
	width: 100%;
	margin: 0 0 4px;
}

.speedup-breadcrumbs {
	width: 100%;
}

.speedup-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 13px;
	line-height: 1.5;
}

.speedup-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	color: var(--wp--preset--color--text-gray, #47433b);
}

.speedup-breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin-inline: 8px;
	color: color-mix(in srgb, var(--wp--preset--color--text-gray, #47433b) 55%, transparent);
	font-weight: 400;
}

.speedup-breadcrumbs__link {
	color: var(--wp--preset--color--text-gray, #47433b);
	text-decoration: none;
	transition: color 0.2s ease;
}

.speedup-breadcrumbs__link:hover {
	color: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-breadcrumbs__current {
	display: -webkit-box;
	overflow: hidden;
	max-width: min(100%, 42ch);
	color: var(--wp--preset--color--text-dark, #47433b);
	font-weight: 500;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.speedup-blog__hero .speedup-breadcrumbs__list,
.speedup-blog .speedup-breadcrumbs__list {
	justify-content: center;
}

.speedup-single .speedup-breadcrumbs-slot {
	margin: 0 0 4px;
}

.speedup-single .speedup-breadcrumbs__list {
	justify-content: flex-start;
}

.speedup-single__card .speedup-breadcrumbs__list {
	justify-content: center;
}

.speedup-tools-page .speedup-breadcrumbs__list,
.speedup-why-page .speedup-breadcrumbs__list,
.speedup-test-page .speedup-breadcrumbs__list,
.speedup-services-page__crumbs .speedup-breadcrumbs__list,
.speedup-compress-page__crumbs .speedup-breadcrumbs__list {
	justify-content: flex-start;
}

.speedup-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 4px;
	margin: 16px 0 28px;
	color: var(--wp--preset--color--text-gray, #47433b);
	font-size: 14px;
	line-height: 1.5;
}

.speedup-single__meta-sep {
	margin-inline: 6px;
	color: color-mix(in srgb, var(--wp--preset--color--text-gray, #47433b) 50%, transparent);
}

.speedup-single__meta-date,
.speedup-single__meta-read {
	color: var(--wp--preset--color--text-gray, #47433b);
}

.speedup-single__meta-cat {
	color: var(--wp--preset--color--primary, #dd2c00);
	font-weight: 600;
	text-decoration: none;
}

.speedup-single__meta-cat:hover {
	text-decoration: underline;
}

.speedup-single__meta-cat-sep {
	margin-inline: 2px;
	color: var(--wp--preset--color--text-gray, #47433b);
}

.speedup-single__rule {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border, #ebe4d8);
	width: 100%;
	opacity: 1;
}

.wp-block-post-date {
	font-variant-numeric: normal;
}

/*--------------------------------------------------------------
# Single post / article content
--------------------------------------------------------------*/
.wp-block-post-content {
	font-size: 17px;
	line-height: 1.85;
	color: var(--wp--preset--color--text-dark, #47433b);
}

.wp-block-post-content > * + * {
	margin-top: 1.35em;
}

.wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link) {
	color: var(--wp--preset--color--primary, #dd2c00);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.wp-block-post-content a:not(.wp-element-button):not(.wp-block-button__link):hover {
	color: color-mix(in srgb, var(--wp--preset--color--primary, #dd2c00) 80%, #000);
	text-decoration-thickness: 2px;
}

.wp-block-post-content mark,
.wp-block-post-content .has-inline-color.has-primary-background-color,
.wp-block-post-content span[style*="background-color"] {
	border-radius: 3px;
	padding: 0.1em 0.28em;
}

.wp-block-post-content mark {
	background-color: color-mix(in srgb, var(--wp--preset--color--primary, #dd2c00) 18%, #fff);
	color: inherit;
}

.wp-block-post-content strong,
.wp-block-post-content b {
	color: #1a1210;
	font-weight: 700;
}

.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
	color: #1a1210;
	line-height: 1.35;
	margin-top: 1.75em;
	margin-bottom: 0.55em;
}

.wp-block-post-content h2 {
	font-size: clamp(26px, 3vw, 32px);
	font-weight: 700;
}

.wp-block-post-content h3 {
	font-size: clamp(22px, 2.4vw, 26px);
	font-weight: 650;
}

.wp-block-post-content h4 {
	font-size: 20px;
	font-weight: 600;
}

.wp-block-post-content hr,
.wp-block-post-content .wp-block-separator {
	border: 0;
	border-top: 2px solid color-mix(in srgb, var(--wp--preset--color--primary, #dd2c00) 35%, transparent);
	margin: 2.5em auto;
	width: min(100%, 200px);
	background: none;
	opacity: 1;
}

.wp-block-post-content code {
	background: var(--wp--preset--color--bg-light, #fcf9f3);
	border: 1px solid var(--wp--preset--color--border, #ebe4d8);
	border-radius: 4px;
	color: var(--wp--preset--color--primary, #dd2c00);
	font-size: 0.9em;
	padding: 0.12em 0.4em;
}

.wp-block-post-content pre {
	background: #1a1210;
	border-radius: 10px;
	color: #f7f4ef;
	overflow-x: auto;
	padding: 1.25em 1.4em;
}

.wp-block-post-content pre code {
	background: transparent;
	border: 0;
	color: inherit;
	padding: 0;
}

/* Lists — brand red markers / numbers */
.wp-block-post-content ul,
.wp-block-post-content ol,
.wp-block-post-content .wp-block-list {
	padding-inline-start: 1.5em;
	margin-block: 1.25em;
}

.wp-block-post-content ul {
	list-style: none;
	padding-inline-start: 0;
}

.wp-block-post-content ul > li {
	position: relative;
	padding-inline-start: 1.5em;
	margin-bottom: 0.65em;
}

.wp-block-post-content ul > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.72em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary, #dd2c00);
}

.wp-block-post-content ol {
	list-style: none;
	counter-reset: speedup-ol;
	padding-inline-start: 0;
}

.wp-block-post-content ol > li {
	position: relative;
	counter-increment: speedup-ol;
	padding-inline-start: 2.1em;
	margin-bottom: 0.7em;
}

.wp-block-post-content ol > li::before {
	content: counter(speedup-ol);
	position: absolute;
	inset-inline-start: 0;
	top: 0.05em;
	min-width: 1.55em;
	height: 1.55em;
	padding: 0 0.2em;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--primary, #dd2c00) 12%, #fff);
	color: var(--wp--preset--color--primary, #dd2c00);
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1.55em;
	text-align: center;
}

/* Quote — side accent (otro style, brand red) */
.wp-block-post-content .wp-block-quote,
.wp-block-post-content blockquote:not(.wp-block-pullquote) {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 2em 0;
	padding-block: 1.25em;
	padding-inline-start: 1.75em;
	padding-inline-end: 1.5em;
	border: 0;
	border-inline-start: 8px solid var(--wp--preset--color--primary, #dd2c00);
	border-radius: 0;
	border-start-end-radius: 8px;
	border-end-end-radius: 8px;
	background: var(--wp--preset--color--bg-light, #fcf9f3);
	color: #555;
	font-size: 1.15em;
	font-style: italic;
	line-height: 1.65;
	box-shadow: none;
}

.wp-block-post-content .wp-block-quote::before,
.wp-block-post-content blockquote:not(.wp-block-pullquote)::before {
	content: "\201C";
	position: absolute;
	inset-inline-start: 12px;
	top: -8px;
	color: var(--wp--preset--color--primary, #dd2c00);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 3.5em;
	font-style: normal;
	line-height: 1;
	opacity: 0.9;
	pointer-events: none;
}

.wp-block-post-content .wp-block-quote::after,
.wp-block-post-content blockquote:not(.wp-block-pullquote)::after {
	content: none;
}

.wp-block-post-content .wp-block-quote p,
.wp-block-post-content blockquote:not(.wp-block-pullquote) p {
	margin: 0;
	font-size: inherit;
	font-style: inherit;
	line-height: inherit;
}

.wp-block-post-content .wp-block-quote cite,
.wp-block-post-content .wp-block-quote footer,
.wp-block-post-content blockquote cite {
	display: block;
	margin-top: 1em;
	color: #333;
	font-size: 0.85em;
	font-style: normal;
	font-weight: 700;
	text-align: left;
}

/* Pullquote — large decorative quote */
.wp-block-post-content .wp-block-pullquote {
	position: relative;
	margin: 2.5em 0;
	padding: 60px 40px 40px;
	border: 0;
	background: transparent;
	text-align: center;
}

.wp-block-post-content .wp-block-pullquote::before {
	content: "\201C";
	position: absolute;
	top: 0;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	color: rgba(0, 0, 0, 0.08);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(120px, 18vw, 200px);
	font-weight: 700;
	line-height: 0.8;
	pointer-events: none;
}

.wp-block-post-content .wp-block-pullquote::after {
	content: "";
	position: absolute;
	top: 28px;
	inset-inline-start: 50%;
	width: 200px;
	height: 0;
	margin-inline-start: -100px;
	border-bottom: 3px solid var(--wp--preset--color--primary, #dd2c00);
}

.wp-block-post-content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.wp-block-post-content .wp-block-pullquote p {
	position: relative;
	z-index: 1;
	margin: 0;
	color: #1a1210;
	font-size: clamp(22px, 3.2vw, 32px);
	font-style: italic;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.wp-block-post-content .wp-block-pullquote cite {
	display: block;
	margin-top: 1em;
	color: var(--wp--preset--color--primary, #dd2c00);
	font-size: 0.9rem;
	font-style: normal;
	font-weight: 600;
}

@media (max-width: 600px) {
	.wp-block-post-content .wp-block-quote,
	.wp-block-post-content blockquote:not(.wp-block-pullquote) {
		padding-block: 1.1em;
		padding-inline-start: 1.35em;
		padding-inline-end: 1.1em;
		font-size: 1.05em;
	}

	.wp-block-post-content .wp-block-pullquote {
		padding: 48px 16px 28px;
	}

	.wp-block-post-content .wp-block-pullquote::after {
		width: 120px;
		margin-inline-start: -60px;
	}
}

/*--------------------------------------------------------------
# News ticker widget
--------------------------------------------------------------*/
.speedup-news-widget-slot {
	margin: 0 0 36px;
	width: 100%;
}

.nw {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.nw svg:not(:root) {
	overflow: visible;
}

.nw__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	position: relative;
	padding: 14px 18px;
	border: 1px solid var(--wp--preset--color--border, #e8e4dc);
	border-radius: 12px;
	background: var(--wp--preset--color--bg-light, #f7f4ef);
}

.nw__wrapper {
	overflow: hidden;
	flex: 1 1 auto;
	min-width: 0;
	height: 2.4em;
}

.nw__slider {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	transform: translate3d(0, 0, 0);
	transition: transform 0.5s ease-in-out;
	will-change: transform;
}

.nw__slider__item {
	display: flex;
	align-items: center;
	height: 2.4em;
	max-width: 100%;
}

.nw__slider__link {
	width: 100%;
	line-height: 1.2;
	letter-spacing: 0.02em;
	max-height: 2.4em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-decoration: none;
	color: var(--wp--preset--color--text-dark, #1a1210);
	font-size: 15px;
	font-weight: 400;
	text-align: right;
}

.nw__slider__link strong {
	color: var(--wp--preset--color--primary, #dd2c00);
	font-weight: 700;
	margin-inline-end: 0.35em;
}

.nw__slider__link:hover {
	color: var(--wp--preset--color--primary, #dd2c00);
}

.nw__progress {
	width: 3em;
	height: 3em;
	flex-shrink: 0;
	position: relative;
	color: var(--wp--preset--color--primary, #dd2c00);
}

.nw__progress__icon {
	width: 30px;
	height: 30px;
	position: absolute;
	top: calc(50% - 1px);
	left: calc(50% - 1px);
	transform: translate(-50%, -50%);
}

.nw__progress__indicator {
	display: block;
	width: 100%;
	height: 100%;
}

.nw__progress__indicator path {
	stroke-width: 3;
}

.nw__progress__indicator path:nth-child(1) {
	stroke: rgba(221, 44, 0, 0.15);
}

.nw__progress__indicator path:nth-child(2) {
	stroke: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-home-blog .speedup-news-widget-slot,
.speedup-blog__recent .speedup-news-widget-slot {
	margin-bottom: 28px;
}

.wp-block-post-content + .speedup-news-widget-slot,
.wp-block-post-content ~ .speedup-news-widget-slot {
	margin-top: 36px;
	margin-bottom: 0;
}

/*--------------------------------------------------------------
# Features grid (featured card + 2x2 cards)
--------------------------------------------------------------*/
.speedup-features__layout.wp-block-columns {
	display: grid !important;
	grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
	gap: var(--wp--preset--spacing--40);
	align-items: stretch;
}

.speedup-features__layout.wp-block-columns > .wp-block-column {
	width: 100% !important;
	min-width: 0;
}

.speedup-features__grid.wp-block-column > .wp-block-columns {
	margin-bottom: var(--wp--preset--spacing--40) !important;
}

.speedup-features__grid.wp-block-column > .wp-block-columns:last-child {
	margin-bottom: 0 !important;
}

.features-featured-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.features-featured-card > .wp-block-image {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0 0 16px !important;
	overflow: hidden;
}

.features-featured-card .speedup-features__featured-img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 120px;
	max-height: 200px;
	object-fit: cover;
	border-radius: 12px;
}

.features-featured-card > .wp-block-buttons {
	margin-top: auto;
}

@media (max-width: 781px) {
	.speedup-features__layout.wp-block-columns {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*--------------------------------------------------------------
# Homepage blog category pills
--------------------------------------------------------------*/
.speedup-home-categories__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.speedup-home-categories__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	border: 1px solid var(--wp--preset--color--border, #ebe4d8);
	border-radius: 999px;
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--text-dark, #47433b);
	font-size: var(--wp--preset--font-size--medium, 15px);
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.speedup-home-categories__pill:hover {
	border-color: var(--wp--preset--color--primary, #dd2c00);
	color: var(--wp--preset--color--primary, #dd2c00);
	box-shadow: 0 4px 14px rgba(221, 44, 0, 0.08);
}

.speedup-home-categories__count {
	color: var(--wp--preset--color--text-gray, #6b665c);
	font-size: 14px;
	font-weight: 400;
}

.speedup-home-categories__pill:hover .speedup-home-categories__count {
	color: inherit;
}

/*--------------------------------------------------------------
# Partner wordmarks (text placeholders)
--------------------------------------------------------------*/
.speedup-partner-wordmark {
	display: block;
	width: 100%;
	color: var(--wp--preset--color--primary, #dd2c00);
	font-size: clamp(1rem, 2vw, 1.35rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

/*--------------------------------------------------------------
# Avatar icon stack (FAQ support team)
--------------------------------------------------------------*/
.speedup-avatar-stack {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
}

.speedup-avatar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.9);
}

.speedup-avatar-icon + .speedup-avatar-icon {
	margin-inline-start: -14px;
}

/*--------------------------------------------------------------
# Testimonials slider
--------------------------------------------------------------*/
.speedup-testimonials {
	position: relative;
	overflow: visible;
}

.speedup-testimonials__stage {
	position: relative;
	width: min(800px, 100%);
	margin-inline: auto;
}

.speedup-testimonials__nav {
	position: absolute;
	top: 50%;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border, #ebe4d8);
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--primary, #dd2c00);
	box-shadow: 0 4px 16px rgba(71, 67, 59, 0.1);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.speedup-testimonials__nav:hover {
	background: #fdeae3;
	border-color: #dd2c004d;
	box-shadow: 0 6px 20px rgba(221, 44, 0, 0.12);
}

.speedup-testimonials__nav:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, #dd2c00);
	outline-offset: 3px;
}

.speedup-testimonials__nav--prev {
	left: -56px;
}

.speedup-testimonials__nav--next {
	right: -56px;
}

.speedup-testimonials__slider {
	width: 100%;
	overflow: hidden;
}

.speedup-testimonials__row {
	display: flex;
	width: 400%;
	transition: transform 0.5s ease;
	will-change: transform;
}

.speedup-testimonials__col {
	position: relative;
	flex: 0 0 25%;
	width: 25%;
	height: 400px;
}

.speedup-testimonials__hero {
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	height: 100%;
	z-index: 1;
}

.speedup-testimonials__hero img {
	height: 100%;
	width: 320px;
	border-radius: 10px;
	object-fit: cover;
	pointer-events: none;
	user-select: none;
}

.speedup-testimonials__content {
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	transform: translateY(-50%);
	width: min(520px, 68%);
	min-height: 270px;
	color: #47433b;
	background: #fff;
	border: 2px solid var(--wp--preset--color--primary, #dd2c00);
	box-shadow: 0 8px 28px rgba(71, 67, 59, 0.08);
	border-radius: 10px;
	padding: 40px 44px;
	z-index: 2;
	user-select: none;
	text-align: right;
}

.speedup-testimonials__quote {
	margin: 0;
	font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.2rem);
	font-weight: 400;
	line-height: 1.7;
	color: #47433b;
}

.speedup-testimonials__name {
	margin: 28px 0 6px;
	font-size: clamp(1.1rem, 1rem + 0.3vw, 1.4rem);
	font-weight: 600;
	line-height: 1.3;
	color: #1a1210;
}

.speedup-testimonials__role {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.4;
	color: #47433b;
	opacity: 0.75;
}

.speedup-testimonials__indicator {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-top: 2.5rem;
}

.speedup-testimonials__btn {
	display: inline-block;
	height: 12px;
	width: 12px;
	margin: 4px;
	padding: 0;
	border: 0;
	border-radius: 15px;
	background: var(--wp--preset--color--border, #ebe4d8);
	box-shadow: none;
	cursor: pointer;
	transition: width 0.4s ease, background-color 0.3s ease;
}

.speedup-testimonials__btn.is-active {
	width: 28px;
	background: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-testimonials__btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, #dd2c00);
	outline-offset: 3px;
}

@media (max-width: 850px) {
	.speedup-testimonials__nav--prev {
		left: 4px;
	}

	.speedup-testimonials__nav--next {
		right: 4px;
	}

	.speedup-testimonials__nav {
		width: 38px;
		height: 38px;
		background: rgba(255, 255, 255, 0.95);
	}

	.speedup-testimonials__col {
		height: 280px;
	}

	.speedup-testimonials__hero img {
		width: 200px;
	}

	.speedup-testimonials__content {
		width: min(320px, 66%);
		min-height: 200px;
		padding: 20px 22px;
	}

	.speedup-testimonials__quote {
		font-size: 0.9rem;
		line-height: 1.6;
	}

	.speedup-testimonials__name {
		margin-top: 18px;
		font-size: 1.1rem;
	}
}

@media (max-width: 550px) {
	.speedup-testimonials__col {
		height: 340px;
	}

	.speedup-testimonials__hero {
		top: auto;
		bottom: 0;
		inset-inline-end: 12px;
		height: 110px;
		z-index: 5;
	}

	.speedup-testimonials__hero img {
		width: 100px;
		height: 100px;
		border-radius: 12px;
	}

	.speedup-testimonials__content {
		width: calc(100% - 8px);
		min-height: 240px;
		top: 0;
		transform: none;
		padding: 22px 20px 70px;
	}

	.speedup-testimonials__indicator {
		margin-top: 1.75rem;
	}
}

