/*
Theme Name: UK Debt Helpers One
Theme URI: https://ukdebthelpers.co.uk
Author: UK Debt Helpers
Description: 1:1 landing page layout with a multi-step Solution Finder form, lead capture, email notifications and one-click demo import. Own colour palette, fonts and copy — everything editable from the admin panel (UK Debt Helpers menu).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stopmydebts
*/

/* =========================================================
   1. Variables + base
   ========================================================= */
:root {
	--smd-ink: #0e2a56;        /* deep navy (logo) – headings, footer card */
	--smd-panel: #1e4691;      /* royal blue (logo) – quiz card / dark bands */
	--smd-teal: #1c86e0;       /* azure (logo) – secondary buttons, links */
	--smd-green: #0d76ce;      /* main CTA – strong azure */
	--smd-mint: #eaf2fc;       /* light blue backgrounds */
	--smd-muted: #3c527a;      /* body text */
	--smd-border: #dfe7f3;
	--smd-bg-soft: #f5f8fc;
	--smd-tp-green: #00b67a;   /* Trustpilot green (brand colour) */
	--smd-radius: 12px;
	--smd-shadow: 0 10px 30px rgba(35, 39, 70, 0.10);
	--smd-shadow-soft: 0 4px 14px rgba(35, 39, 70, 0.07);
	--smd-font: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--smd-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--smd-muted);
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
	color: var(--smd-ink);
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 800;
}

p { margin: 0 0 1em; }

a { color: var(--smd-teal); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; }

:focus-visible {
	outline: 3px solid rgba(28, 134, 224, 0.55);
	outline-offset: 2px;
	border-radius: 4px;
}

.smd-container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 22px;
}

.smd-section { padding: 76px 0; }

.smd-section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.smd-section-head h2 { font-size: 34px; margin-bottom: 10px; }
.smd-section-head p { font-size: 15px; margin: 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute; word-wrap: normal !important;
}

/* =========================================================
   2. Buttons
   ========================================================= */
.smd-btn {
	display: inline-block;
	border: 0;
	cursor: pointer;
	border-radius: 9px;
	font-family: inherit;
	font-weight: 800;
	font-size: 15px;
	line-height: 1;
	padding: 16px 30px;
	text-align: center;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.smd-btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: var(--smd-shadow-soft); }
.smd-btn:active { transform: translateY(0); }

.smd-btn--green { background: var(--smd-green); color: #ffffff; font-size: 17px; padding: 18px 34px; }
.smd-btn--teal { background: var(--smd-teal); color: #ffffff; }
.smd-btn--sm { padding: 11px 20px; font-size: 14px; }
.smd-btn--lg { padding: 19px 42px; font-size: 18px; }
.smd-btn--green:hover, .smd-btn--teal:hover { color: #ffffff; }

/* WhatsApp */
.smd-wa-btn { background: #25d366; color: #ffffff; padding: 12px 24px; font-size: 14px; border-radius: 8px; }
.smd-wa-btn:hover { color: #ffffff; }
.smd-contact-row--wa { margin-top: 4px; }
.smd-wa-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 940;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25d366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
	transition: transform 0.15s ease;
}
.smd-wa-float:hover { transform: scale(1.07); }
.smd-wa-float svg { width: 32px; height: 32px; display: block; }

/* =========================================================
   3. Header
   ========================================================= */
.smd-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #ffffff;
	box-shadow: 0 1px 0 rgba(35, 39, 70, 0.08);
}
.smd-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 74px;
}
.smd-logo {
	display: flex;
	align-items: center;
	gap: 9px;
	text-decoration: none !important;
	flex-shrink: 0;
}
.smd-logo img { max-height: 56px; width: auto; }
.smd-logo__text {
	font-size: 21px;
	font-weight: 800;
	color: var(--smd-ink);
	letter-spacing: -0.01em;
}
.smd-logo__mark { width: 42px; height: 42px; flex-shrink: 0; }

.smd-header__tp {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	text-decoration: none !important;
	margin: 0 auto 0 40px;
}
.smd-header__tp:hover { opacity: 0.85; }

/* Trustpilot micro-badge */
.smd-tp-word { display: inline-flex; align-items: center; gap: 5px; }
.smd-tp-word svg { display: block; }
.smd-tp-word span { font-size: 13px; font-weight: 800; color: #191919; }
.smd-tp-stars { display: inline-flex; gap: 2px; }
.smd-tp-stars i {
	width: 19px; height: 19px;
	background: var(--smd-tp-green);
	display: inline-flex; align-items: center; justify-content: center;
}
.smd-tp-stars i svg { width: 13px; height: 13px; fill: #ffffff; }
.smd-tp-stars--lg i { width: 30px; height: 30px; }
.smd-tp-stars--lg i svg { width: 20px; height: 20px; }

/* Navigation */
.smd-nav { margin-left: auto; }
.smd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.smd-nav li { position: relative; }
.smd-nav a {
	color: var(--smd-ink);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 0;
}
.smd-nav a:hover { color: var(--smd-teal); text-decoration: none; }
.smd-nav .menu-item-has-children > a::after {
	content: '';
	width: 7px; height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s;
}
.smd-nav .menu-item-has-children:hover > a::after { transform: rotate(225deg) translateY(-2px); }

.smd-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	background: #ffffff;
	border-radius: 10px;
	box-shadow: var(--smd-shadow);
	padding: 8px;
	min-width: 190px;
	flex-direction: column;
	gap: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, transform 0.18s ease;
	z-index: 40;
}
.smd-nav li:hover > .sub-menu,
.smd-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(4px);
}
.smd-nav .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 7px;
	font-size: 14px;
	white-space: nowrap;
}
.smd-nav .sub-menu a:hover { background: var(--smd-mint); color: var(--smd-ink); }

.smd-burger {
	display: none;
	margin-left: auto;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.smd-burger span {
	display: block;
	width: 24px; height: 2.5px;
	border-radius: 2px;
	background: var(--smd-ink);
	margin: 5px 0;
	transition: transform 0.2s, opacity 0.2s;
}
.smd-burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.smd-burger.is-open span:nth-child(2) { opacity: 0; }
.smd-burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   4. Hero
   ========================================================= */
.smd-hero { background: var(--smd-mint); padding: 64px 0; }
.smd-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}
.smd-hero h1 { font-size: 46px; margin-bottom: 18px; }
.smd-hero p { font-size: 16px; max-width: 440px; }
.smd-hero .smd-btn { margin-top: 14px; }
.smd-hero__media {
	border-radius: var(--smd-radius);
	overflow: hidden;
	box-shadow: var(--smd-shadow);
	background: linear-gradient(135deg, var(--smd-teal), var(--smd-panel));
	aspect-ratio: 16 / 10;
}
.smd-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   5. Three steps (accordion)
   ========================================================= */
.smd-steps__grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 56px;
	align-items: start;
}
.smd-steps__grid > h2 {
	font-size: 36px;
	position: sticky;
	top: 110px;
	max-width: 420px;
}
.smd-acc { display: flex; flex-direction: column; gap: 18px; }
.smd-acc__item {
	border: 1px solid rgba(35, 39, 70, 0.30);
	border-radius: var(--smd-radius);
	overflow: hidden;
	background: #ffffff;
	box-shadow: var(--smd-shadow-soft);
}
.smd-acc__head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: #ffffff;
	color: var(--smd-ink);
	border: 0;
	cursor: pointer;
	text-align: left;
	font-size: 17px;
	font-weight: 800;
	padding: 18px 24px;
	transition: background 0.2s ease, color 0.2s ease;
}
.smd-acc__head svg { flex-shrink: 0; transition: transform 0.25s; }
.smd-acc__head:hover { background: var(--smd-panel); color: #ffffff; }
.smd-acc__item.is-open .smd-acc__head { background: var(--smd-panel); color: #ffffff; }
.smd-acc__item.is-open .smd-acc__head svg { transform: rotate(180deg); }
.smd-acc__body {
	padding: 18px 24px;
	font-size: 15px;
	border-top: 1px solid var(--smd-border);
	display: none;
}
.smd-acc__item.is-open .smd-acc__body { display: block; }

/* =========================================================
   6. CTA band
   ========================================================= */
.smd-band { background: var(--smd-panel); padding: 44px 0; text-align: center; }

/* =========================================================
   7. Debt types / Solutions – flip cards
   ========================================================= */
.smd-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	max-width: 1000px;
	margin: 0 auto;
}
.smd-flip { perspective: 900px; height: 168px; cursor: pointer; }
.smd-flip__inner {
	position: relative;
	width: 100%; height: 100%;
	transition: transform 0.55s;
	transform-style: preserve-3d;
}
.smd-flip.is-flipped .smd-flip__inner { transform: rotateY(180deg); }
.smd-flip__face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: var(--smd-radius);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px;
}
.smd-flip__front {
	background: #ffffff;
	border: 1px solid var(--smd-border);
	box-shadow: var(--smd-shadow-soft);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.smd-flip:hover .smd-flip__front { box-shadow: var(--smd-shadow); }
.smd-flip__front svg.smd-card-ico { width: 36px; height: 36px; color: var(--smd-ink); }
.smd-flip__front strong { color: var(--smd-ink); font-size: 16px; font-weight: 800; text-align: center; }
.smd-flip__hint {
	position: absolute;
	top: 10px; right: 10px;
	color: var(--smd-teal);
	opacity: 0.75;
	width: 17px; height: 17px;
}
.smd-flip__back {
	background: var(--smd-panel);
	color: #ffffff;
	transform: rotateY(180deg);
	font-size: 13.5px;
	line-height: 1.45;
	text-align: center;
}
.smd-flip__back .smd-flip__hint { color: #ffffff; }

/* struggling-with CTA */
.smd-struggle { text-align: center; padding: 72px 0 76px; }
.smd-struggle h2 { font-size: 32px; margin-bottom: 8px; }
.smd-struggle p { font-size: 15px; }
.smd-struggle .smd-btn { margin-top: 18px; }

/* =========================================================
   8. Trustpilot reviews
   ========================================================= */
.smd-reviews { padding: 76px 0; }
.smd-reviews__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 8px;
}
.smd-reviews__logo svg.smd-tp-star-big { width: 42px; height: 42px; }
.smd-reviews__logo span { font-size: 38px; font-weight: 800; color: #191919; letter-spacing: -0.02em; }
.smd-reviews__sub { text-align: center; font-size: 15px; margin-bottom: 40px; }
.smd-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	max-width: 1000px;
	margin: 0 auto;
}
.smd-review {
	background: #ffffff;
	border: 1px solid var(--smd-border);
	border-radius: var(--smd-radius);
	box-shadow: var(--smd-shadow-soft);
	padding: 22px;
}
.smd-review strong { display: block; color: var(--smd-ink); font-size: 16px; margin-bottom: 8px; }
.smd-review .smd-tp-stars { margin-bottom: 10px; }
.smd-review p { font-size: 14px; margin: 0; }
.smd-reviews__actions { text-align: center; margin-top: 32px; }

/* =========================================================
   9. Blog banner
   ========================================================= */
.smd-blogband {
	position: relative;
	overflow: hidden;
	background: var(--smd-panel);
}
.smd-blogband__bg {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.smd-blogband::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(28, 32, 60, 0.58);
}
.smd-blogband__inner {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 92px 22px;
	max-width: 720px;
	margin: 0 auto;
}
.smd-blogband h2 { color: #ffffff; font-size: 32px; }
.smd-blogband p { color: rgba(255, 255, 255, 0.92); font-size: 15px; }
.smd-blogband .smd-btn { margin-top: 12px; }

/* =========================================================
   10. Journey + MoneyHelper strip
   ========================================================= */
.smd-journey { text-align: center; padding: 76px 0; }
.smd-journey h2 { font-size: 32px; max-width: 640px; margin: 0 auto 24px; }

.smd-moneyhelper {
	background: var(--smd-mint);
	padding: 18px 0;
	text-align: center;
	font-size: 13.5px;
}
.smd-moneyhelper p { margin: 0; }
.smd-moneyhelper a { text-decoration: underline; }

/* =========================================================
   11. Footer
   ========================================================= */
.smd-footer { border-top: 1px solid var(--smd-border); background: #ffffff; }
.smd-footer__grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 56px;
	padding: 70px 0;
	align-items: start;
}
.smd-contact-card {
	background: var(--smd-ink);
	color: #ffffff;
	border-radius: 14px;
	padding: 34px 32px;
	box-shadow: var(--smd-shadow);
	max-width: 380px;
}
.smd-contact-card h3 { color: #ffffff; font-size: 24px; margin-bottom: 20px; }
.smd-contact-card h4 {
	color: #ffffff;
	font-size: 21px;
	margin: 26px 0 12px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.smd-contact-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 13px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
}
.smd-contact-row svg { width: 19px; height: 19px; flex-shrink: 0; }
a.smd-contact-row:hover { color: #c9cff2; }
.smd-hours p { margin: 0 0 8px; font-size: 15px; }
.smd-contact-row--addr { align-items: flex-start; }
.smd-contact-row--addr svg { margin-top: 2px; }
.smd-contact-row--addr span { line-height: 1.5; }

/* social icons + company line (footer bottom) */
.smd-social { display: flex; justify-content: center; gap: 16px; margin-top: 20px; }
.smd-social a { color: var(--smd-muted); display: inline-flex; }
.smd-social a:hover { color: var(--smd-teal); }
.smd-social svg { width: 22px; height: 22px; }
.smd-company { margin: 16px 0 0; font-size: 12.5px; color: var(--smd-muted); }

.smd-compliance p { font-size: 15px; }

.smd-footer__bottom {
	border-top: 1px solid var(--smd-border);
	padding: 34px 0 90px;
	text-align: center;
}
.smd-footer__bottom .smd-logo { justify-content: center; margin-bottom: 18px; }
.smd-footer__menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 30px;
}
.smd-footer__menu a { color: var(--smd-muted); font-size: 14px; font-weight: 700; }
.smd-footer__menu a:hover { color: var(--smd-teal); }

/* Cookie bar */
.smd-cookie {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 950;
	background: var(--smd-bg-soft);
	border-top: 1px solid var(--smd-border);
	padding: 12px 0;
	display: none;
}
.smd-cookie.is-visible { display: block; }
.smd-cookie__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}
.smd-cookie p { margin: 0; font-size: 13px; }

/* =========================================================
   12. Solution Finder (quiz)
   ========================================================= */
.smd-quiz-wrap { padding: 64px 0 90px; background: #ffffff; }
.smd-quiz {
	max-width: 720px;
	margin: 0 auto;
	background: var(--smd-panel);
	border-radius: 14px;
	box-shadow: var(--smd-shadow);
	overflow: hidden;
}
.smd-quiz__progress {
	height: 7px;
	background: rgba(255, 255, 255, 0.18);
}
.smd-quiz__progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--smd-green);
	transition: width 0.35s ease;
}
.smd-quiz__head {
	padding: 26px 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	text-align: center;
}
.smd-quiz__head h1 { color: #ffffff; font-size: 30px; margin: 0; }
.smd-quiz__body { padding: 34px; }
.smd-quiz__question {
	color: #ffffff;
	font-size: 21px;
	font-weight: 800;
	text-align: center;
	margin-bottom: 26px;
}
.smd-quiz__options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.smd-opt {
	background: #ffffff;
	color: var(--smd-ink);
	border: 0;
	border-radius: 9px;
	padding: 17px 14px;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.smd-opt:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); }
.smd-quiz__note {
	margin-top: 24px;
	background: #ffffff;
	border-radius: 9px;
	padding: 15px 18px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	color: var(--smd-ink);
	font-size: 14px;
	font-weight: 600;
}
.smd-quiz__note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.smd-quiz__nav { margin-top: 26px; display: flex; justify-content: space-between; gap: 14px; }

/* result banners */
.smd-quiz__banner {
	border-radius: 9px;
	padding: 17px 20px;
	text-align: center;
	font-size: 18px;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 24px;
}
.smd-quiz__banner--good { background: var(--smd-green); }
.smd-quiz__banner--info { background: var(--smd-teal); }
.smd-quiz__lead { color: #ffffff; font-size: 19px; font-weight: 600; margin-bottom: 22px; }
.smd-quiz__lead strong { font-weight: 800; }

/* contact form */
.smd-field { margin-bottom: 16px; }
.smd-field label {
	display: block;
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	margin-bottom: 7px;
}
.smd-field input[type="text"],
.smd-field input[type="tel"],
.smd-field input[type="email"] {
	width: 100%;
	border: 2px solid transparent;
	border-radius: 7px;
	padding: 13px 14px;
	font-family: inherit;
	font-size: 15px;
	color: var(--smd-ink);
	background: #f7f8fc;
}
.smd-field input:focus { outline: none; border-color: var(--smd-green); background: #ffffff; }
.smd-field.has-error input { border-color: #e5673c; }
.smd-field .smd-field-err {
	display: none;
	color: #ffd9c9;
	font-size: 12.5px;
	margin-top: 5px;
	font-weight: 700;
}
.smd-field.has-error .smd-field-err { display: block; }

.smd-check {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #ffffff;
	font-size: 14.5px;
	font-weight: 600;
	margin: 4px 0 14px;
	cursor: pointer;
}
.smd-check input { width: 17px; height: 17px; accent-color: var(--smd-green); }

.smd-consent {
	color: rgba(255, 255, 255, 0.88);
	font-size: 13px;
	margin: 16px 0 0;
}
.smd-consent a { color: #ffffff; text-decoration: underline; }

.smd-turnstile { margin-top: 18px; display: flex; justify-content: center; }

.smd-quiz__error {
	display: none;
	margin-top: 16px;
	background: #fdecec;
	color: #a33a2a;
	border-radius: 7px;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 700;
}
.smd-quiz__error.is-visible { display: block; }

/* success */
.smd-quiz__success { text-align: center; padding: 14px 0 6px; }
.smd-quiz__success .smd-success-ico {
	width: 62px; height: 62px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--smd-green);
	display: flex; align-items: center; justify-content: center;
}
.smd-quiz__success .smd-success-ico svg { width: 30px; height: 30px; }
.smd-quiz__success h2 { color: #ffffff; font-size: 24px; }
.smd-quiz__success p { color: rgba(255, 255, 255, 0.9); font-size: 15px; max-width: 440px; margin: 0 auto; }

.smd-spin {
	display: inline-block;
	width: 16px; height: 16px;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: smdspin 0.7s linear infinite;
	vertical-align: -3px;
	margin-right: 8px;
}
@keyframes smdspin { to { transform: rotate(360deg); } }

/* =========================================================
   12b. Blog (archive + single)
   ========================================================= */
.smd-blog-head {
	background: var(--smd-mint);
	text-align: center;
	padding: 52px 0 44px;
	border-bottom: 1px solid var(--smd-border);
}
.smd-blog-head h1 { font-size: 38px; margin-bottom: 8px; }
.smd-blog-head p, .smd-blog-head__desc { font-size: 15px; margin: 0; max-width: 620px; margin-left: auto; margin-right: auto; }

.smd-blog { padding: 56px 0 64px; }
.smd-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.smd-post-card {
	background: #ffffff;
	border: 1px solid var(--smd-border);
	border-radius: var(--smd-radius);
	box-shadow: var(--smd-shadow-soft);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.smd-post-card:hover { box-shadow: var(--smd-shadow); transform: translateY(-2px); }
.smd-post-card__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--smd-teal), var(--smd-panel));
	overflow: hidden;
}
.smd-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.smd-post-card__thumb svg.smd-post-card__ico { width: 44px; height: 44px; color: rgba(255, 255, 255, 0.85); }
.smd-post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.smd-post-card__meta { font-size: 12.5px; margin: 0 0 8px; color: var(--smd-muted); }
.smd-post-card__meta a { font-weight: 700; }
.smd-post-card__title { font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
.smd-post-card__title a { color: var(--smd-ink); text-decoration: none; }
.smd-post-card__title a:hover { color: var(--smd-teal); }
.smd-post-card__excerpt { font-size: 14px; margin: 0 0 14px; flex: 1; }
.smd-post-card__more { font-weight: 800; font-size: 14px; }
.smd-blog-empty { text-align: center; padding: 30px 0; }

/* pagination */
.smd-blog .pagination, .smd-blog .navigation { margin-top: 36px; }
.smd-blog .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.smd-blog .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 10px 12px;
	text-align: center;
	background: #ffffff;
	border: 1px solid var(--smd-border);
	border-radius: 9px;
	color: var(--smd-ink);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
}
.smd-blog .page-numbers.current { background: var(--smd-panel); border-color: var(--smd-panel); color: #ffffff; }
.smd-blog .page-numbers:hover { border-color: var(--smd-teal); color: var(--smd-teal); }
.smd-blog .page-numbers.current:hover { color: #ffffff; }

/* single article */
.smd-blog-head--single { text-align: center; }
.smd-blog-head--single h1 { max-width: 780px; margin: 0 auto; font-size: 36px; }
.smd-article__meta { font-size: 13.5px; margin: 0 0 10px; }
.smd-article__meta a { font-weight: 800; }
.smd-article__inner { max-width: 780px; margin: 0 auto; padding: 44px 0 56px; }
.smd-article__thumb {
	border-radius: var(--smd-radius);
	overflow: hidden;
	box-shadow: var(--smd-shadow);
	margin-bottom: 30px;
}
.smd-article__thumb img { width: 100%; height: auto; display: block; }
.smd-article__content { font-size: 16.5px; line-height: 1.75; }
.smd-article__content h2 { font-size: 26px; margin: 1.5em 0 0.5em; }
.smd-article__content h3 { font-size: 21px; margin: 1.3em 0 0.5em; }
.smd-article__content ul, .smd-article__content ol { padding-left: 22px; margin: 0 0 1.2em; }
.smd-article__content li { margin-bottom: 6px; }
.smd-article__content img { border-radius: var(--smd-radius); }
.smd-article__content blockquote {
	border-left: 4px solid var(--smd-teal);
	background: var(--smd-mint);
	margin: 0 0 1.2em;
	padding: 14px 18px;
	border-radius: 0 var(--smd-radius) var(--smd-radius) 0;
}
.smd-article__back { margin: 28px 0 0; font-weight: 800; }
.smd-article .post-navigation { margin-top: 28px; border-top: 1px solid var(--smd-border); padding-top: 20px; }
.smd-article .post-navigation .nav-links { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.smd-article .post-navigation a { font-weight: 700; font-size: 14px; }

/* =========================================================
   13. Generic content pages
   ========================================================= */
.smd-page { padding: 60px 0 80px; }
.smd-page h1 { font-size: 38px; margin-bottom: 24px; }
.smd-page-content { max-width: 820px; }
.smd-page-content h2 { font-size: 26px; margin-top: 1.4em; }
.smd-page-content ul, .smd-page-content ol { color: var(--smd-muted); }

.smd-setup-note {
	max-width: 720px;
	margin: 80px auto;
	background: var(--smd-mint);
	border: 1px solid var(--smd-border);
	border-radius: var(--smd-radius);
	padding: 32px;
	text-align: center;
}

/* =========================================================
   14. Responsive
   ========================================================= */
@media (max-width: 1024px) {
	.smd-hero h1 { font-size: 38px; }
	.smd-cards { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
	.smd-blog-grid { grid-template-columns: repeat(2, 1fr); }
	.smd-reviews__grid { grid-template-columns: 1fr; max-width: 560px; }
	.smd-header__tp { display: none; }
}

@media (max-width: 860px) {
	.smd-nav {
		position: fixed;
		top: 74px;
		left: 0; right: 0;
		background: #ffffff;
		box-shadow: var(--smd-shadow);
		padding: 18px 22px 26px;
		display: none;
		max-height: calc(100vh - 74px);
		overflow-y: auto;
	}
	.smd-nav.is-open { display: block; }
	.smd-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.smd-nav a { padding: 11px 6px; font-size: 16px; }
	.smd-nav .sub-menu {
		position: static;
		transform: none;
		opacity: 1;
		visibility: visible;
		box-shadow: none;
		padding: 0 0 4px 16px;
		display: block;
	}
	.smd-burger { display: block; }

	/* Trustpilot badge stays visible in the mobile header (like the original) */
	.smd-header__inner { gap: 12px; }
	.smd-header__tp { display: inline-flex; margin: 0 auto; }
	.smd-logo img { max-height: 42px; }
	.smd-logo__mark { width: 34px; height: 34px; }
	.smd-logo__text { font-size: 17px; }
	.smd-header__tp .smd-tp-word span { font-size: 11px; }
	.smd-header__tp .smd-tp-stars i { width: 15px; height: 15px; }
	.smd-header__tp .smd-tp-stars i svg { width: 10px; height: 10px; }

	.smd-hero__grid,
	.smd-steps__grid,
	.smd-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.smd-blog-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
	/* Mobile hero order: heading → text → full-width button → image */
	.smd-hero { padding: 40px 0 48px; }
	.smd-hero p { max-width: none; }
	.smd-hero__media { margin-top: 8px; }
	/* Main CTA buttons span the full width on mobile */
	.smd-btn--green { display: block; width: 100%; }
	.smd-quiz .smd-btn--green { display: inline-block; width: auto; }
	.smd-steps__grid > h2 { position: static; font-size: 30px; }
	.smd-contact-card { max-width: none; }
	.smd-section { padding: 56px 0; }
	.smd-section-head h2 { font-size: 28px; }
	.smd-quiz__body { padding: 24px 20px; }
	.smd-quiz__head { padding: 22px 20px; }
	.smd-quiz__head h1 { font-size: 25px; }
	/* Answers stacked one per row on all mobile/tablet widths */
	.smd-quiz__options { grid-template-columns: 1fr; }
	.smd-cookie__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 560px) {
	.smd-hero h1 { font-size: 31px; }
	.smd-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.smd-flip { height: 150px; }
	.smd-blogband h2, .smd-journey h2, .smd-struggle h2 { font-size: 26px; }
	.smd-blog-head h1 { font-size: 28px; }
	.smd-blog-head--single h1 { font-size: 26px; }
	.smd-footer__bottom { padding-bottom: 110px; }

	/* Compact quiz – the whole card fits one mobile screen */
	.smd-quiz-wrap { padding: 18px 0 48px; }
	.smd-quiz__progress { height: 5px; }
	.smd-quiz__head { padding: 13px 14px; }
	.smd-quiz__head h1 { font-size: 21px; }
	.smd-quiz__body { padding: 16px 14px; }
	.smd-quiz__question { font-size: 17px; margin-bottom: 14px; }
	/* Answers stacked full-width, one per row – same as the original */
	.smd-quiz__options { grid-template-columns: 1fr; gap: 10px; }
	.smd-opt { padding: 13px 10px; font-size: 14px; }
	.smd-quiz__note { margin-top: 12px; padding: 10px 12px; font-size: 12px; }
	.smd-quiz__note svg { width: 16px; height: 16px; }
	.smd-quiz__nav { margin-top: 14px; }
	.smd-quiz__banner { padding: 13px 14px; font-size: 16px; margin-bottom: 16px; }
	.smd-quiz__lead { font-size: 16px; margin-bottom: 14px; }
	.smd-field { margin-bottom: 10px; }
	.smd-field label { margin-bottom: 4px; font-size: 13px; }
	.smd-field input[type="text"],
	.smd-field input[type="tel"],
	.smd-field input[type="email"] { padding: 10px 12px; }
	.smd-wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
	.smd-wa-float svg { width: 28px; height: 28px; }
}
