/**
 * WebProxy Online - main stylesheet.
 *
 * Written with CSS logical properties (margin-inline-start, inset-inline-end...)
 * so the same rules work for LTR and RTL. rtl.css only holds a few overrides.
 *
 * Table of contents:
 * 1. Variables & color schemes
 * 2. Base & typography
 * 3. Layout helpers
 * 4. Buttons & forms
 * 5. Header & navigation
 * 6. Hero & URL form
 * 7. Front page sections
 * 8. Blog, cards, entries
 * 9. Comments & widgets
 * 10. Footer
 * 11. WordPress core classes
 * 12. Responsive
 */

/* 1. Variables & color schemes ------------------------------------------- */
:root {
	--wpo-accent: #6d5dfc;
	--wpo-accent-rgb: 109, 93, 252;
	--wpo-on-accent: #fff;
	--wpo-accent-2: #22d3ee;
	--wpo-bg: #f5f6fb;
	--wpo-surface: #fff;
	--wpo-surface-2: #eef0f8;
	--wpo-text: #141729;
	--wpo-muted: #5b6183;
	--wpo-border: #e2e5f0;
	--wpo-hero-bg: #0a0c1b;
	--wpo-hero-text: #f3f4ff;
	--wpo-hero-muted: #a9aed0;
	--wpo-radius: 16px;
	--wpo-radius-sm: 10px;
	--wpo-shadow: 0 1px 2px rgba(16, 20, 50, 0.04), 0 8px 28px rgba(16, 20, 50, 0.07);
	--wpo-shadow-lg: 0 24px 60px rgba(8, 10, 30, 0.35);
	--wpo-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Segoe UI Arabic", Tahoma, sans-serif;
	--wpo-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--wpo-container: 1180px;
	--wpo-header-h: 68px;
}

body.wpo-scheme-dark {
	--wpo-bg: #0b0d1a;
	--wpo-surface: #12152a;
	--wpo-surface-2: #191d36;
	--wpo-text: #eceefd;
	--wpo-muted: #a1a7c9;
	--wpo-border: #262b4a;
	--wpo-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
}

@media (prefers-color-scheme: dark) {

	body.wpo-scheme-auto {
		--wpo-bg: #0b0d1a;
		--wpo-surface: #12152a;
		--wpo-surface-2: #191d36;
		--wpo-text: #eceefd;
		--wpo-muted: #a1a7c9;
		--wpo-border: #262b4a;
		--wpo-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
	}
}

/* 2. Base & typography ---------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--wpo-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--wpo-bg);
	color: var(--wpo-text);
	font-family: var(--wpo-font);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	line-height: 1.2;
	font-weight: 750;
	letter-spacing: -0.015em;
	color: var(--wpo-text);
}

h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}

h3 {
	font-size: 1.25rem;
}

p {
	margin: 0 0 1.1em;
}

a {
	color: var(--wpo-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--wpo-text);
}

:focus-visible {
	outline: 3px solid rgba(var(--wpo-accent-rgb), 0.55);
	outline-offset: 2px;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	vertical-align: middle;
}

hr {
	border: 0;
	border-top: 1px solid var(--wpo-border);
	margin: 2rem 0;
}

code,
kbd,
pre {
	font-family: var(--wpo-mono);
	font-size: 0.92em;
}

pre {
	overflow: auto;
	padding: 1rem 1.25rem;
	background: var(--wpo-surface-2);
	border-radius: var(--wpo-radius-sm);
}

blockquote {
	margin: 1.5rem 0;
	padding: 0.5rem 1.25rem;
	border-inline-start: 4px solid var(--wpo-accent);
	color: var(--wpo-muted);
	font-size: 1.1rem;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
}

th,
td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--wpo-border);
	text-align: start;
}

.wpo-icon {
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

/* 3. Layout helpers ------------------------------------------------------- */
.wpo-container {
	width: 100%;
	max-width: var(--wpo-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.wpo-container--narrow {
	max-width: 820px;
}

.site-content {
	min-height: 50vh;
}

.wpo-section {
	padding-block: clamp(56px, 8vw, 96px);
}

.wpo-section__head {
	max-width: 680px;
	margin: 0 auto 44px;
	text-align: center;
}

.wpo-section__head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	max-width: none;
	text-align: start;
}

.wpo-section__title {
	margin-bottom: 0.35em;
}

.wpo-section__lead {
	color: var(--wpo-muted);
	font-size: 1.08rem;
	margin: 0;
}

.wpo-eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--wpo-accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wpo-grid {
	display: grid;
	gap: 24px;
}

.wpo-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wpo-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wpo-card {
	background: var(--wpo-surface);
	border: 1px solid var(--wpo-border);
	border-radius: var(--wpo-radius);
	box-shadow: var(--wpo-shadow);
}

.wpo-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
	padding-block: 48px 80px;
}

.wpo-no-sidebar .wpo-layout {
	grid-template-columns: minmax(0, 1fr);
}

.wpo-no-sidebar.single .wpo-layout__main {
	max-width: 820px;
	margin-inline: auto;
	width: 100%;
}

/* 4. Buttons & forms ------------------------------------------------------ */
.wpo-button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--wpo-radius-sm);
	background: var(--wpo-accent);
	color: var(--wpo-on-accent);
	font: inherit;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wpo-button:hover,
.wpo-button:focus,
button:hover,
input[type="submit"]:hover {
	color: var(--wpo-on-accent);
	filter: brightness(1.08);
	box-shadow: 0 8px 22px rgba(var(--wpo-accent-rgb), 0.35);
}

.wpo-button:active,
button:active {
	transform: translateY(1px);
}

.wpo-button--small {
	min-height: 38px;
	padding: 0 16px;
	font-size: 0.92rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--wpo-border);
	border-radius: var(--wpo-radius-sm);
	background: var(--wpo-surface);
	color: var(--wpo-text);
	font: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--wpo-accent);
	box-shadow: 0 0 0 4px rgba(var(--wpo-accent-rgb), 0.15);
	outline: none;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form .search-submit {
	padding: 0 16px;
}

/* 5. Header & navigation -------------------------------------------------- */
.wpo-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 12, 27, 0.86);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	color: #fff;
}

.admin-bar .wpo-header {
	top: 32px;
}

.wpo-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--wpo-header-h);
}

.wpo-brand {
	display: flex;
	align-items: center;
	min-width: 0;
	margin-inline-end: auto;
}

.wpo-brand__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
}

.wpo-brand__link:hover,
.wpo-brand__link:focus {
	color: #fff;
}

.wpo-brand__mark {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
	color: #fff;
	box-shadow: 0 6px 18px rgba(var(--wpo-accent-rgb), 0.45);
	flex: none;
}

.wpo-brand__name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.custom-logo-link img {
	max-height: 48px;
	width: auto;
}

.wpo-nav {
	display: flex;
	align-items: center;
	gap: 20px;
}

.wpo-menu,
.wpo-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpo-menu {
	display: flex;
	align-items: center;
	gap: 4px;
}

.wpo-menu li {
	position: relative;
}

.wpo-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: #d6d9f2;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

.wpo-menu a:hover,
.wpo-menu a:focus,
.wpo-menu .current-menu-item > a {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.wpo-menu .current-menu-item > a[href*="#"]:not(:hover):not(:focus) {
	color: #d6d9f2;
	background: none;
}

.wpo-menu .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 210px;
	padding: 8px;
	border-radius: 12px;
	background: #14172d;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: var(--wpo-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.18s ease;
}

.wpo-menu li:hover > .sub-menu,
.wpo-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.wpo-menu-toggle {
	display: none;
	min-height: 42px;
	width: 42px;
	padding: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.wpo-menu-toggle:hover {
	box-shadow: none;
}

.wpo-menu-toggle__close {
	display: none;
}

.wpo-menu-toggle[aria-expanded="true"] .wpo-menu-toggle__open {
	display: none;
}

.wpo-menu-toggle[aria-expanded="true"] .wpo-menu-toggle__close {
	display: inline;
}

.wpo-ad {
	max-width: var(--wpo-container);
	margin: 20px auto;
	padding-inline: 20px;
	text-align: center;
	overflow: hidden;
}

.wpo-hero .wpo-ad {
	margin-top: 28px;
}

/* 6. Hero & URL form ------------------------------------------------------ */
.wpo-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(64px, 10vw, 120px) clamp(64px, 9vw, 110px);
	background:
		radial-gradient(1200px 500px at 50% -10%, rgba(var(--wpo-accent-rgb), 0.35), transparent 60%),
		radial-gradient(700px 400px at 90% 110%, rgba(34, 211, 238, 0.16), transparent 60%),
		var(--wpo-hero-bg);
	color: var(--wpo-hero-text);
	text-align: center;
	isolation: isolate;
}

.wpo-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

.wpo-hero__glow {
	position: absolute;
	z-index: -1;
	top: 30%;
	left: 50%;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	background: rgba(var(--wpo-accent-rgb), 0.22);
	filter: blur(120px);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.wpo-hero--compact {
	padding-block: 72px 88px;
}

.wpo-hero__inner {
	position: relative;
	max-width: 880px;
}

.wpo-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	color: #dfe2ff;
	font-size: 0.85rem;
	font-weight: 600;
}

.wpo-hero__title {
	margin: 0 auto 18px;
	max-width: 820px;
	color: #fff;
	font-size: clamp(2.1rem, 5.4vw, 3.6rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	background: linear-gradient(180deg, #fff 30%, #c9ccf5);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.wpo-hero__subtitle {
	max-width: 640px;
	margin: 0 auto 36px;
	color: var(--wpo-hero-muted);
	font-size: clamp(1rem, 2vw, 1.18rem);
}

.wpo-hero__form {
	max-width: 760px;
	margin-inline: auto;
}

.wpo-url-form__field {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--wpo-shadow-lg), 0 0 0 6px rgba(var(--wpo-accent-rgb), 0.18);
	transition: box-shadow 0.2s ease;
}

.wpo-url-form__field:focus-within {
	box-shadow: var(--wpo-shadow-lg), 0 0 0 6px rgba(var(--wpo-accent-rgb), 0.38);
}

.wpo-url-form__icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	color: #8a90b4;
	flex: none;
}

.wpo-url-form .wpo-url-form__input {
	flex: 1;
	min-width: 0;
	min-height: 54px;
	padding: 0 6px;
	border: 0;
	background: transparent;
	color: #12152a;
	font-size: 1.12rem;
	box-shadow: none;
	text-align: left;
}

.wpo-url-form .wpo-url-form__input::placeholder {
	color: #9a9fbf;
}

.wpo-url-form .wpo-url-form__input:focus {
	box-shadow: none;
}

.wpo-url-form__submit {
	min-height: 54px;
	padding: 0 28px;
	border-radius: 13px;
	font-size: 1.05rem;
	background: linear-gradient(135deg, var(--wpo-accent), color-mix(in srgb, var(--wpo-accent) 70%, #22d3ee));
}

.wpo-url-form__options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 22px;
	margin-top: 18px;
	color: var(--wpo-hero-muted);
	font-size: 0.92rem;
}

.wpo-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.wpo-check input {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--wpo-accent);
}

.wpo-url-form__secure {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #7ee2b8;
}

.wpo-url-form__error {
	margin: 12px 0 0;
	color: #ffb4b4;
	font-weight: 600;
}

.wpo-url-form__error[hidden] {
	display: none;
}

.wpo-quick-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 26px;
}

.wpo-quick-links__label {
	color: var(--wpo-hero-muted);
	font-size: 0.9rem;
}

.wpo-quick-links ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wpo-chip {
	display: inline-block;
	padding: 7px 15px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.05);
	color: #e6e8ff;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.wpo-chip:hover,
.wpo-chip:focus {
	color: #fff;
	background: rgba(var(--wpo-accent-rgb), 0.3);
	border-color: rgba(var(--wpo-accent-rgb), 0.7);
}

.wpo-hero__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 30px;
	margin: 44px 0 0;
	padding: 0;
	list-style: none;
	color: var(--wpo-hero-muted);
	font-size: 0.93rem;
}

.wpo-hero__trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wpo-hero__trust .wpo-icon {
	color: var(--wpo-accent-2);
}

/* Error card. */
.wpo-error-card {
	max-width: 620px;
	margin: 0 auto 32px;
	padding: 32px 28px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.05);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.wpo-error-card__icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: rgba(255, 107, 107, 0.15);
	color: #ff8a8a;
}

.wpo-error-card__title {
	margin-bottom: 10px;
	color: #fff;
	font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.wpo-error-card__message {
	color: #c9cdee;
	font-size: 1.05rem;
}

.wpo-error-card__url {
	margin: 0 auto 12px;
	padding: 8px 12px;
	max-width: 100%;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.25);
	color: #e8eaff;
	font-family: var(--wpo-mono);
	font-size: 0.88rem;
	overflow-wrap: anywhere;
}

.wpo-error-card__code {
	margin: 0;
	color: var(--wpo-hero-muted);
	font-size: 0.85rem;
}

.wpo-error-card__code code {
	color: #fff;
}

.wpo-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	text-decoration: none;
}

.wpo-link-arrow--light {
	color: #dfe2ff;
	margin-top: 28px;
}

.wpo-link-arrow--light:hover,
.wpo-link-arrow--light:focus {
	color: #fff;
}

.wpo-404__code {
	margin: 0 0 4px;
	font-size: clamp(5rem, 16vw, 9rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.05em;
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.wpo-404__search {
	max-width: 460px;
	margin: 32px auto 0;
}

/* 7. Front page sections -------------------------------------------------- */
.wpo-feature {
	padding: 30px 28px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wpo-feature:hover {
	transform: translateY(-4px);
	border-color: rgba(var(--wpo-accent-rgb), 0.45);
}

.wpo-feature__icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: 14px;
	background: rgba(var(--wpo-accent-rgb), 0.12);
	color: var(--wpo-accent);
}

.wpo-feature__title {
	margin-bottom: 8px;
	font-size: 1.15rem;
}

.wpo-feature__text {
	margin: 0;
	color: var(--wpo-muted);
}

.wpo-how {
	background: var(--wpo-surface);
	border-block: 1px solid var(--wpo-border);
}

.wpo-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.wpo-step {
	position: relative;
	padding: 28px;
	border-radius: var(--wpo-radius);
	background: var(--wpo-bg);
	border: 1px solid var(--wpo-border);
}

.wpo-step__num {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
	color: #fff;
	font-weight: 800;
	font-size: 1.1rem;
	box-shadow: 0 8px 20px rgba(var(--wpo-accent-rgb), 0.35);
}

.wpo-step__title {
	font-size: 1.15rem;
	margin-bottom: 8px;
}

.wpo-step__text {
	margin: 0;
	color: var(--wpo-muted);
}

.wpo-faq__list {
	display: grid;
	gap: 12px;
}

.wpo-faq__item {
	border: 1px solid var(--wpo-border);
	border-radius: 14px;
	background: var(--wpo-surface);
	transition: border-color 0.2s ease;
}

.wpo-faq__item[open] {
	border-color: rgba(var(--wpo-accent-rgb), 0.5);
}

.wpo-faq__q {
	position: relative;
	padding: 18px 22px;
	padding-inline-end: 56px;
	font-weight: 700;
	font-size: 1.05rem;
	cursor: pointer;
	list-style: none;
}

.wpo-faq__q::-webkit-details-marker {
	display: none;
}

.wpo-faq__q::after {
	content: "+";
	position: absolute;
	top: 50%;
	inset-inline-end: 20px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	border-radius: 50%;
	background: rgba(var(--wpo-accent-rgb), 0.12);
	color: var(--wpo-accent);
	font-size: 1.2rem;
	line-height: 1;
	transition: transform 0.2s ease;
}

.wpo-faq__item[open] .wpo-faq__q::after {
	transform: rotate(45deg);
}

.wpo-faq__a {
	padding: 0 22px 6px;
	color: var(--wpo-muted);
}

.wpo-front-content {
	padding-bottom: 0;
}

/* 8. Blog, cards, entries ------------------------------------------------- */
.wpo-latest {
	background: var(--wpo-surface-2);
}

.wpo-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpo-post-card:hover {
	transform: translateY(-4px);
}

.wpo-post-card .post-thumbnail {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--wpo-surface-2);
}

.wpo-post-card .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.wpo-post-card:hover .post-thumbnail img {
	transform: scale(1.04);
}

.wpo-post-card__placeholder {
	display: grid !important;
	place-items: center;
	color: rgba(var(--wpo-accent-rgb), 0.7);
	background:
		radial-gradient(300px 140px at 30% 20%, rgba(var(--wpo-accent-rgb), 0.25), transparent 70%),
		linear-gradient(135deg, var(--wpo-surface-2), var(--wpo-surface)) !important;
}

.wpo-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 24px;
}

.wpo-post-card__title {
	margin-bottom: 8px;
	font-size: 1.2rem;
}

.wpo-post-card__title a,
.entry-title a {
	color: var(--wpo-text);
	text-decoration: none;
}

.wpo-post-card__title a:hover,
.entry-title a:hover {
	color: var(--wpo-accent);
}

.wpo-post-card .entry-summary {
	flex: 1;
	color: var(--wpo-muted);
	font-size: 0.97rem;
}

.wpo-post-card .entry-summary p {
	margin-bottom: 14px;
}

.wpo-sticky-badge {
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(var(--wpo-accent-rgb), 0.14);
	color: var(--wpo-accent);
	font-size: 0.78rem;
	font-weight: 700;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 12px;
	color: var(--wpo-muted);
	font-size: 0.88rem;
}

.entry-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.entry-meta a {
	color: inherit;
	text-decoration: none;
}

.entry-meta a:hover {
	color: var(--wpo-accent);
}

.wpo-page-hero {
	padding-block: 56px 48px;
	background:
		radial-gradient(900px 300px at 50% -20%, rgba(var(--wpo-accent-rgb), 0.35), transparent 70%),
		var(--wpo-hero-bg);
	color: var(--wpo-hero-text);
	text-align: center;
}

.wpo-page-hero__title {
	margin: 0;
	color: #fff;
}

.wpo-page-hero__title span {
	color: #c9c3ff;
}

.wpo-page-hero__desc {
	max-width: 640px;
	margin: 12px auto 0;
	color: var(--wpo-hero-muted);
}

.wpo-page-hero__desc p:last-child {
	margin: 0;
}

.wpo-page-hero__search {
	max-width: 480px;
	margin: 22px auto 0;
}

.wpo-entry {
	padding: clamp(24px, 4vw, 44px);
	background: var(--wpo-surface);
	border: 1px solid var(--wpo-border);
	border-radius: var(--wpo-radius);
	box-shadow: var(--wpo-shadow);
}

.wpo-page .wpo-entry {
	margin-block: 48px;
}

.wpo-entry .entry-header {
	margin-bottom: 24px;
}

.wpo-entry .post-thumbnail {
	margin: 0 0 28px;
}

.wpo-entry .post-thumbnail img {
	width: 100%;
	border-radius: 12px;
}

.entry-content {
	font-size: 1.06rem;
	overflow-wrap: break-word;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.6em;
}

.entry-content ul,
.entry-content ol {
	padding-inline-start: 1.4em;
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--wpo-border);
	color: var(--wpo-muted);
	font-size: 0.92rem;
}

.page-links {
	clear: both;
	margin-top: 24px;
	font-weight: 700;
}

.page-links a,
.page-links > span {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	margin-inline-start: 6px;
	border-radius: 8px;
	background: var(--wpo-surface-2);
}

.post-navigation,
.posts-navigation,
.pagination {
	margin-top: 32px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 18px 22px;
	border-radius: 14px;
	border: 1px solid var(--wpo-border);
	background: var(--wpo-surface);
	color: var(--wpo-text);
	text-decoration: none;
}

.post-navigation a:hover {
	border-color: var(--wpo-accent);
}

.post-navigation .nav-next {
	grid-column: 2;
	text-align: end;
}

.nav-subtitle {
	display: block;
	color: var(--wpo-muted);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.nav-title {
	font-weight: 700;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--wpo-border);
	background: var(--wpo-surface);
	color: var(--wpo-text);
	font-weight: 700;
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	background: var(--wpo-accent);
	border-color: var(--wpo-accent);
	color: var(--wpo-on-accent);
}

.wpo-empty {
	padding: 40px;
	text-align: center;
}

/* 9. Comments & widgets --------------------------------------------------- */
.comments-area {
	margin-top: 40px;
	padding: clamp(22px, 4vw, 40px);
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	padding-inline-start: 28px;
}

.comment-body {
	margin-bottom: 18px;
	padding: 18px 20px;
	border-radius: 12px;
	background: var(--wpo-surface-2);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	margin: 4px 0 10px;
	font-size: 0.82rem;
}

.comment-metadata a {
	color: var(--wpo-muted);
	text-decoration: none;
}

.reply a {
	font-size: 0.88rem;
	font-weight: 700;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.comment-form p {
	margin-bottom: 16px;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

.bypostauthor > .comment-body {
	border-inline-start: 3px solid var(--wpo-accent);
}

.wpo-sidebar {
	position: sticky;
	top: calc(var(--wpo-header-h) + 20px);
	display: grid;
	gap: 20px;
}

.widget {
	padding: 22px 24px;
	background: var(--wpo-surface);
	border: 1px solid var(--wpo-border);
	border-radius: var(--wpo-radius);
}

.widget-title,
.widget .wp-block-heading {
	margin-bottom: 14px;
	font-size: 1.05rem;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	padding: 6px 0;
	border-bottom: 1px dashed var(--wpo-border);
}

.widget li:last-child {
	border-bottom: 0;
}

.widget a {
	color: var(--wpo-text);
	text-decoration: none;
}

.widget a:hover {
	color: var(--wpo-accent);
}

/* 10. Footer -------------------------------------------------------------- */
.wpo-footer {
	padding-block: 56px 28px;
	background: var(--wpo-hero-bg);
	color: var(--wpo-hero-muted);
	font-size: 0.95rem;
}

.wpo-footer a {
	color: #dfe2ff;
	text-decoration: none;
}

.wpo-footer a:hover {
	color: #fff;
}

.wpo-footer__widgets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	padding-bottom: 36px;
	margin-bottom: 28px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wpo-footer .widget {
	padding: 0;
	background: none;
	border: 0;
}

.wpo-footer .widget-title,
.wpo-footer .wp-block-heading {
	color: #fff;
}

.wpo-footer .widget li {
	border-color: rgba(255, 255, 255, 0.08);
}

.wpo-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.wpo-footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wpo-footer__brand .wpo-brand__mark {
	width: 30px;
	height: 30px;
	border-radius: 8px;
}

.wpo-footer__copy {
	margin: 0;
}

.wpo-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.screen-reader-text:focus,
.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	width: auto;
	top: 8px;
	inset-inline-start: 8px;
	z-index: 100000;
	padding: 12px 20px;
	background: var(--wpo-surface);
	color: var(--wpo-text);
	border-radius: 8px;
	box-shadow: var(--wpo-shadow);
	font-weight: 700;
	text-decoration: none;
}

.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	clear: both;
	margin-inline: auto;
}

.alignwide {
	margin-inline: -40px;
	max-width: calc(100% + 80px) !important;
}

.alignfull {
	margin-inline: calc(-1 * clamp(24px, 4vw, 44px));
	max-width: calc(100% + 2 * clamp(24px, 4vw, 44px)) !important;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5em;
}

.wp-caption-text,
.wp-element-caption,
figcaption {
	margin-top: 8px;
	color: var(--wpo-muted);
	font-size: 0.88rem;
	text-align: center;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 1.5em;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
	margin: 0;
}

.gallery-caption {
	display: block;
}

.sticky {
	position: relative;
}

.wp-block-button__link {
	border-radius: var(--wpo-radius-sm);
}

.wp-block-quote {
	border-inline-start-color: var(--wpo-accent);
}

.wp-block-search__button {
	margin-inline-start: 8px;
}

.wp-block-search__input {
	border-radius: var(--wpo-radius-sm);
}

/* 12. Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {

	.wpo-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.wpo-sidebar {
		position: static;
	}

	.wpo-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.alignwide {
		margin-inline: 0;
		max-width: 100% !important;
	}
}

@media (max-width: 860px) {

	.wpo-menu-toggle {
		display: inline-flex;
	}

	/* The sticky header uses backdrop-filter, which makes it the containing
	   block of fixed descendants, so the panel is positioned from the header. */
	.wpo-nav {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		height: calc(100vh - var(--wpo-header-h));
		height: calc(100dvh - var(--wpo-header-h));
		z-index: 99;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 20px;
		background: #0d0f20;
		overflow-y: auto;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}

	.admin-bar .wpo-nav {
		height: calc(100vh - var(--wpo-header-h) - 46px);
	}

	.wpo-nav.is-open {
		transform: none;
		opacity: 1;
		visibility: visible;
	}

	.wpo-menu {
		flex-direction: column;
		align-items: stretch;
	}

	.wpo-menu a {
		padding: 14px 12px;
		font-size: 1.05rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.wpo-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		background: transparent;
		padding: 0;
		padding-inline-start: 16px;
	}

	.wpo-nav__cta {
		width: 100%;
	}

	body.wpo-menu-open {
		overflow: hidden;
	}

	.wpo-steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.wpo-footer__widgets {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 782px) {

	.admin-bar .wpo-header {
		top: 46px;
	}
}

@media (max-width: 640px) {

	.wpo-grid--2,
	.wpo-grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.wpo-url-form__field {
		flex-wrap: wrap;
		padding: 6px;
		border-radius: 16px;
	}

	.wpo-url-form__icon {
		display: none;
	}

	.wpo-url-form .wpo-url-form__input {
		flex-basis: 100%;
		min-height: 50px;
		padding: 0 12px;
		font-size: 1rem;
	}

	.wpo-url-form__submit {
		flex: 1 1 100%;
		min-height: 50px;
	}

	.wpo-section__head--row {
		flex-direction: column;
		align-items: flex-start;
	}

	.post-navigation .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-navigation .nav-next {
		grid-column: 1;
	}

	.wpo-hero__trust {
		gap: 10px 18px;
		font-size: 0.86rem;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1em;
	}
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
