/* =========================================================
   MasPlus — Main stylesheet (RTL magazine)
   Colors come from CSS variables set by the Customizer.
   ========================================================= */

:root {
	--mp-primary: #d1122b;
	--mp-primary-rgb: 209, 18, 43;
	--mp-secondary: #1f2937;
	--mp-accent: #f59e0b;
	--mp-link: #d1122b;
	--mp-text: #1f2937;
	--mp-bg: #f4f5f7;

	--mp-white: #ffffff;
	--mp-muted: #6b7280;
	--mp-border: #e5e7eb;
	--mp-radius: 14px;
	--mp-radius-sm: 10px;
	--mp-shadow: 0 6px 24px rgba(17, 24, 39, 0.08);
	--mp-shadow-hover: 0 12px 34px rgba(17, 24, 39, 0.14);
	--mp-container: 1320px;
	--mp-gap: 26px;
	--mp-font: "Vazirmatn", "Vazir", Tahoma, Arial, sans-serif;
}

/* ---------- Base ---------- */
body {
	font-family: var(--mp-font);
	color: var(--mp-text);
	background: var(--mp-bg);
	line-height: 1.85;
	font-size: 16px;
	direction: rtl;
	text-align: right;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.5;
	color: var(--mp-secondary);
	margin: 0 0 0.6em;
	font-weight: 700;
}

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--mp-link);
	transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus {
	color: var(--mp-secondary);
}

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

.mp-container {
	max-width: var(--mp-container);
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mp-skip-link {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--mp-secondary);
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 8px 8px;
}
.mp-skip-link:focus {
	inset-inline-start: 12px;
}

/* =========================================================
   Header (full width)
   ========================================================= */
.mp-header {
	background: var(--mp-white);
	box-shadow: 0 2px 12px rgba(17, 24, 39, 0.06);
	position: relative;
	z-index: 50;
}

.mp-header__bar {
	border-bottom: 1px solid var(--mp-border);
}

.mp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 84px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.mp-branding {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.mp-logo img {
	max-height: 56px;
	width: auto;
}

.mp-site-title {
	margin: 0;
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1.2;
}
.mp-site-title a {
	color: var(--mp-secondary);
}
.mp-site-title a:hover {
	color: var(--mp-primary);
}

.mp-site-description {
	margin: 2px 0 0;
	font-size: 0.85rem;
	color: var(--mp-muted);
}

.mp-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mp-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--mp-border);
	background: var(--mp-white);
	border-radius: 12px;
	cursor: pointer;
	color: var(--mp-secondary);
}
.mp-search-toggle svg {
	width: 20px;
	height: 20px;
}
.mp-search-toggle:hover {
	border-color: var(--mp-primary);
	color: var(--mp-primary);
}

/* ---------- Primary nav ---------- */
.mp-primary-nav {
	background: var(--mp-secondary);
}

/* Mobile-only elements: hidden on desktop. */
.mp-menu-btn,
.mp-drawer,
.mp-drawer-backdrop {
	display: none;
}

/* Menu item icons (desktop + mobile) */
.mp-menu-icon-wrap {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin-inline-end: 7px;
}
.mp-menu-icon {
	width: 18px;
	height: 18px;
}

.mp-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

.mp-menu li {
	position: relative;
}

.mp-menu a {
	display: block;
	padding: 14px 16px;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 600;
	font-size: 0.98rem;
}

.mp-menu > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 16px;
	bottom: 8px;
	height: 2px;
	background: var(--mp-primary);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.25s ease;
}
.mp-menu > li:hover > a::after,
.mp-menu > li.current-menu-item > a::after {
	transform: scaleX(1);
}

.mp-menu a:hover,
.mp-menu .current-menu-item > a {
	color: #fff;
}

/* Submenus (desktop dropdown only) */
@media (min-width: 861px) {
	.mp-menu ul.sub-menu {
		list-style: none;
		margin: 0;
		padding: 6px;
		position: absolute;
		top: 100%;
		inset-inline-start: 0;
		min-width: 260px;
		max-width: 340px;
		width: max-content;
		background: var(--mp-white);
		border-radius: 12px;
		box-shadow: var(--mp-shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: all 0.2s ease;
		z-index: 60;
	}
	.mp-menu li:hover > ul.sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	.mp-menu ul.sub-menu a {
		color: var(--mp-text);
		padding: 10px 14px;
		border-radius: 8px;
		font-weight: 500;
		white-space: nowrap;
	}
	.mp-menu ul.sub-menu a:hover {
		background: rgba(var(--mp-primary-rgb), 0.08);
		color: var(--mp-primary);
	}
	.mp-menu ul.sub-menu ul.sub-menu {
		top: 0;
		inset-inline-end: 100%;
		inset-inline-start: auto;
	}
}

.mp-menu-setup a {
	color: var(--mp-accent) !important;
}

/* ---------- Header search ---------- */
.mp-header-search {
	background: var(--mp-white);
	border-bottom: 1px solid var(--mp-border);
	padding: 16px 0;
}

.mp-search-form {
	display: flex;
	gap: 8px;
	max-width: 640px;
	margin: 0 auto;
}
.mp-search-form__field {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--mp-border);
	border-radius: 12px;
	font-family: inherit;
	font-size: 1rem;
	background: var(--mp-bg);
}
.mp-search-form__field:focus {
	outline: none;
	border-color: var(--mp-primary);
	background: #fff;
}
.mp-search-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	border: 0;
	border-radius: 12px;
	background: var(--mp-primary);
	color: #fff;
	cursor: pointer;
}
.mp-search-form__submit svg {
	width: 20px;
	height: 20px;
}
.mp-search-form__submit:hover {
	background: var(--mp-secondary);
}

/* =========================================================
   Breadcrumbs
   ========================================================= */
.mp-breadcrumbs {
	padding: 14px 0 0;
	font-size: 0.85rem;
	color: var(--mp-muted);
}
.mp-breadcrumbs a {
	color: var(--mp-muted);
}
.mp-breadcrumbs a:hover {
	color: var(--mp-primary);
}
.mp-crumb-sep {
	margin: 0 6px;
	opacity: 0.6;
}

/* =========================================================
   Layout wrapper (sidebars)
   ========================================================= */
.mp-site-main {
	display: block;
}

.mp-wrap {
	display: grid;
	gap: var(--mp-gap);
	padding-top: 28px;
	padding-bottom: 48px;
	align-items: start;
	grid-template-columns: 1fr;
}

/* two column: right sidebar */
.mp-layout-two-col.mp-has-right .mp-wrap {
	grid-template-columns: 300px minmax(0, 1fr);
}
/* two column: left sidebar */
.mp-layout-two-col.mp-has-left .mp-wrap {
	grid-template-columns: minmax(0, 1fr) 340px;
}
/* three column */
.mp-layout-three-col .mp-wrap {
	grid-template-columns: 280px minmax(0, 1fr) 340px;
}

.mp-wrap--full {
	grid-template-columns: minmax(0, 1fr) !important;
}

.mp-primary {
	min-width: 0;
}

/* =========================================================
   Sidebars & widgets
   ========================================================= */
.mp-sidebar {
	position: sticky;
	top: 20px;
}

.mp-widget {
	background: var(--mp-white);
	border: 1px solid var(--mp-border);
	border-radius: var(--mp-radius);
	padding: 20px;
	margin-bottom: 22px;
	box-shadow: var(--mp-shadow);
}

.mp-widget-title {
	font-size: 1.05rem;
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--mp-border);
	position: relative;
}
.mp-widget-title::after {
	content: "";
	position: absolute;
	bottom: -2px;
	inset-inline-start: 0;
	width: 54px;
	height: 2px;
	background: var(--mp-primary);
}

.mp-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mp-widget li {
	padding: 8px 0;
	border-bottom: 1px dashed var(--mp-border);
}
.mp-widget li:last-child {
	border-bottom: 0;
}
.mp-widget a {
	color: var(--mp-text);
	font-weight: 500;
}
.mp-widget a:hover {
	color: var(--mp-primary);
	padding-inline-start: 4px;
}

/* Modern sidebar list links: hover background + leading dot */
.mp-sidebar .mp-widget li {
	padding: 0;
	border-bottom: 0;
	margin-bottom: 3px;
}
.mp-sidebar .mp-widget li:last-child {
	margin-bottom: 0;
}
.mp-sidebar .mp-widget a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	line-height: 1.7;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mp-sidebar .mp-widget a::before {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--mp-primary);
	box-shadow: 0 0 0 3px rgba(var(--mp-primary-rgb), 0.15);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mp-sidebar .mp-widget a:hover {
	background: rgba(var(--mp-primary-rgb), 0.08);
	color: var(--mp-primary);
	padding-inline-start: 12px;
	transform: translateX(-2px);
}
.mp-sidebar .mp-widget a:hover::before {
	transform: scale(1.35);
	box-shadow: 0 0 0 4px rgba(var(--mp-primary-rgb), 0.2);
}
.mp-sidebar .mp-widget .current-menu-item > a,
.mp-sidebar .mp-widget .current_page_item > a {
	background: rgba(var(--mp-primary-rgb), 0.1);
	color: var(--mp-primary);
	font-weight: 700;
}
.mp-sidebar .mp-widget .sub-menu,
.mp-sidebar .mp-widget .children {
	margin-block-start: 3px;
	margin-inline-start: 14px;
}

/* =========================================================
   Magazine grid + cards
   ========================================================= */
.mp-section-head {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}
.mp-section-head__title,
.mp-page-title {
	position: relative;
	font-size: 1.4rem;
	margin: 0;
	padding-inline-start: 14px;
}
.mp-section-head__title::before,
.mp-page-title::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 24px;
	background: var(--mp-primary);
	border-radius: 4px;
}

.mp-page-header {
	margin-bottom: 24px;
}
.mp-archive-description {
	color: var(--mp-muted);
	margin-top: 8px;
}

.mp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--mp-gap);
}

.mp-card {
	background: var(--mp-white);
	border: 1px solid var(--mp-border);
	border-radius: var(--mp-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--mp-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mp-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--mp-shadow-hover);
}

.mp-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, #e9ecf2, #f6f7f9);
}
.mp-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.mp-card:hover .mp-card__thumb img {
	transform: scale(1.06);
}
.mp-card__thumb--placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.mp-badge {
	position: absolute;
	inset-inline-start: 12px;
	top: 12px;
	background: var(--mp-primary);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(var(--mp-primary-rgb), 0.4);
}
.mp-badge:hover {
	color: #fff;
	background: var(--mp-secondary);
}

.mp-card__body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.mp-card__title {
	font-size: 1.12rem;
	margin: 0 0 10px;
	line-height: 1.6;
}
.mp-card__title a {
	color: var(--mp-secondary);
}
.mp-card__title a:hover {
	color: var(--mp-primary);
}

.mp-card__meta,
.mp-single__meta,
.mp-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	color: var(--mp-muted);
	font-size: 0.82rem;
	margin-bottom: 12px;
}
.mp-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.mp-card__excerpt {
	color: var(--mp-muted);
	font-size: 0.92rem;
	margin-bottom: 14px;
	flex: 1;
}

.mp-card__more {
	align-self: flex-start;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--mp-primary);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.mp-card__more:hover {
	gap: 10px;
	color: var(--mp-secondary);
}

/* =========================================================
   Hero (front page featured)
   ========================================================= */
.mp-hero {
	padding-top: 28px;
}
.mp-hero__grid {
	display: grid;
	gap: 18px;
	grid-template-columns: 2fr 1fr;
	grid-auto-rows: 1fr;
}
.mp-hero__main {
	grid-row: span 2;
}

.mp-hero__item {
	position: relative;
	border-radius: var(--mp-radius);
	overflow: hidden;
	min-height: 200px;
	box-shadow: var(--mp-shadow);
}
.mp-hero__main {
	min-height: 420px;
}
.mp-hero__link {
	display: block;
	height: 100%;
}
.mp-hero__thumb {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #dfe3ea, #f2f4f7);
}
.mp-hero__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.mp-hero__item:hover .mp-hero__thumb img {
	transform: scale(1.05);
}
.mp-hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	padding: 18px;
	background: linear-gradient(to top, rgba(17, 24, 39, 0.82) 0%, rgba(17, 24, 39, 0.35) 45%, rgba(17, 24, 39, 0) 75%);
}
.mp-hero__title {
	color: #fff;
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
}
.mp-hero__main .mp-hero__title {
	font-size: 1.6rem;
}
.mp-hero__meta {
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}
.mp-hero__overlay .mp-badge {
	position: static;
	align-self: flex-start;
}

/* =========================================================
   Single post / page
   ========================================================= */
.mp-single,
.mp-no-results,
.mp-error-404 {
	background: var(--mp-white);
	border: 1px solid var(--mp-border);
	border-radius: var(--mp-radius);
	padding: 30px;
	box-shadow: var(--mp-shadow);
}

.mp-single__header {
	margin-bottom: 18px;
}
.mp-single__title {
	font-size: 2rem;
	margin: 12px 0 14px;
	line-height: 1.5;
}
.mp-single .mp-badge {
	position: static;
	display: inline-block;
}

.mp-single__thumb {
	margin: 0 0 24px;
	border-radius: var(--mp-radius);
	overflow: hidden;
}
.mp-single__thumb img {
	width: 100%;
	object-fit: cover;
}
.mp-single__thumb figcaption {
	font-size: 0.82rem;
	color: var(--mp-muted);
	padding: 8px 4px 0;
}

/* Entry content typography */
.mp-entry-content {
	font-size: 1.05rem;
	line-height: 2;
}
.mp-entry-content h2 {
	font-size: 1.5rem;
	margin-top: 1.6em;
}
/* Header style for content headings (dot + thin fading underline). */
.mp-entry-content h2:not(.mp-faq__title):not(.mp-icon-boxes__title) {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 12px;
	margin-bottom: 0.9em;
}
.mp-entry-content h2:not(.mp-faq__title):not(.mp-icon-boxes__title)::before {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--mp-primary);
	box-shadow: 0 0 0 4px rgba(var(--mp-primary-rgb), 0.15);
}
.mp-entry-content h2:not(.mp-faq__title):not(.mp-icon-boxes__title)::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(
		to left,
		rgba(var(--mp-primary-rgb), 0.5),
		transparent
	);
}
.mp-entry-content h3 {
	font-size: 1.25rem;
	margin-top: 1.4em;
}
.mp-entry-content a {
	color: var(--mp-link);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(var(--mp-primary-rgb), 0.4);
}
.mp-entry-content a:hover {
	text-decoration-color: var(--mp-primary);
}
.mp-entry-content img {
	border-radius: var(--mp-radius-sm);
}
.mp-entry-content blockquote {
	margin: 1.5em 0;
	padding: 6px 20px;
	border-inline-start: 4px solid var(--mp-primary);
	background: rgba(var(--mp-primary-rgb), 0.05);
	border-radius: 0 var(--mp-radius-sm) var(--mp-radius-sm) 0;
	color: var(--mp-secondary);
}
.mp-entry-content ul,
.mp-entry-content ol {
	padding-inline-start: 1.4em;
}
.mp-entry-content pre {
	background: var(--mp-secondary);
	color: #f8fafc;
	padding: 18px;
	border-radius: var(--mp-radius-sm);
	overflow: auto;
	direction: ltr;
	text-align: left;
}
.mp-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.4em 0;
}
.mp-entry-content th,
.mp-entry-content td {
	border: 1px solid var(--mp-border);
	padding: 10px 12px;
}

/* Post rating (Review Snippet) */
.mp-post-rating {
	margin-top: 1.75rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--mp-border);
	border-radius: var(--mp-radius);
	background: var(--mp-white);
	box-shadow: var(--mp-shadow);
}

.mp-post-rating__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
}

.mp-post-rating__stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.mp-post-rating__star-icon {
	color: #d1d5db;
	line-height: 0;
}

.mp-post-rating__star-icon.is-filled {
	color: #f59e0b;
}

.mp-post-rating__star-icon.is-half {
	color: #fcd34d;
}

.mp-post-rating__stats {
	margin: 0;
	font-size: 0.92rem;
	color: var(--mp-muted);
	display: flex;
	align-items: baseline;
	gap: 0.2rem;
	flex-wrap: wrap;
}

.mp-post-rating__avg {
	font-size: 1.15rem;
	color: var(--mp-secondary);
}

.mp-post-rating__vote {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px dashed var(--mp-border);
}

.mp-post-rating__prompt {
	margin: 0 0 0.45rem;
	font-size: 0.88rem;
	color: var(--mp-muted);
}

.mp-post-rating__stars--input .mp-post-rating__star {
	border: none;
	background: none;
	padding: 2px;
	cursor: pointer;
	color: #d1d5db;
	transition: color 0.15s ease, transform 0.15s ease;
	line-height: 0;
}

.mp-post-rating__stars--input .mp-post-rating__star:hover,
.mp-post-rating__stars--input .mp-post-rating__star.is-hover {
	color: #f59e0b;
	transform: scale(1.08);
}

.mp-post-rating.is-voted .mp-post-rating__stars--input,
.mp-post-rating.is-loading .mp-post-rating__stars--input {
	pointer-events: none;
	opacity: 0.6;
}

.mp-post-rating__thanks {
	margin: 0.75rem 0 0;
	font-size: 0.88rem;
	color: #059669;
}

.mp-post-rating__msg {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: var(--mp-primary);
}

.mp-single__tags {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--mp-border);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.mp-tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.mp-tags a {
	display: inline-block;
	padding: 4px 12px;
	background: var(--mp-bg);
	border: 1px solid var(--mp-border);
	border-radius: 999px;
	font-size: 0.82rem;
	color: var(--mp-muted);
}
.mp-tags a:hover {
	background: var(--mp-primary);
	color: #fff;
	border-color: var(--mp-primary);
}

/* post navigation */
.mp-post-nav {
	margin-top: 22px;
	display: flex;
	justify-content: space-between;
	gap: 14px;
}
.mp-post-nav .nav-links {
	display: contents;
}
.mp-post-nav .nav-previous,
.mp-post-nav .nav-next {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
}
.mp-post-nav .nav-next {
	justify-content: flex-end;
	text-align: start;
}
.mp-post-nav a {
	display: block;
	width: 100%;
	background: var(--mp-white);
	border: 1px solid var(--mp-border);
	border-radius: var(--mp-radius-sm);
	padding: 14px 18px;
	box-shadow: var(--mp-shadow);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.mp-post-nav a:hover {
	border-color: var(--mp-primary);
	box-shadow: var(--mp-shadow-hover);
	transform: translateY(-2px);
}
.mp-nav-sub {
	display: block;
	font-size: 0.78rem;
	color: var(--mp-muted);
	margin-bottom: 4px;
}
.mp-nav-title {
	font-weight: 700;
	color: var(--mp-secondary);
}

/* =========================================================
   Buttons, pagination, forms
   ========================================================= */
.mp-btn,
.mp-entry-content .wp-block-button__link {
	display: inline-block;
	background: var(--mp-primary);
	color: #fff;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 700;
	border: 0;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(var(--mp-primary-rgb), 0.28);
}
.mp-btn:hover {
	background: var(--mp-secondary);
	color: #fff;
	transform: translateY(-2px);
}

.mp-pagination,
.navigation.pagination {
	margin-top: 34px;
}
.mp-pagination .nav-links,
.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.mp-pagination .page-numbers,
.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	background: var(--mp-white);
	border: 1px solid var(--mp-border);
	border-radius: 12px;
	color: var(--mp-secondary);
	font-weight: 600;
}
.mp-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current,
.mp-pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
	background: var(--mp-primary);
	border-color: var(--mp-primary);
	color: #fff;
}

/* =========================================================
   404 / no results
   ========================================================= */
.mp-error-404 {
	text-align: center;
}
.mp-error-404__code {
	font-size: 5rem;
	font-weight: 800;
	color: var(--mp-primary);
	line-height: 1;
}
.mp-error-404__title {
	margin: 12px 0;
}
.mp-error-404 .mp-search-form,
.mp-no-results .mp-search-form {
	margin: 18px auto 22px;
}

/* =========================================================
   Footer (three columns)
   ========================================================= */
.mp-footer {
	margin-top: 40px;
	background: var(--mp-secondary);
	color: rgba(255, 255, 255, 0.82);
}
.mp-footer__widgets {
	padding: 44px 0 24px;
}
.mp-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}
.mp-footer .widget {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
}
.mp-footer .mp-widget-title {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.15);
}
.mp-footer .mp-widget-title::after {
	background: var(--mp-primary);
}
.mp-footer a {
	color: rgba(255, 255, 255, 0.78);
}
.mp-footer a:hover {
	color: #fff;
}
.mp-footer li {
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mp-footer__nav {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 16px 0;
}
.mp-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	justify-content: center;
}
.mp-footer-menu a {
	font-size: 0.9rem;
}

.mp-footer__bottom {
	background: rgba(0, 0, 0, 0.2);
	padding: 16px 0;
	text-align: center;
	font-size: 0.85rem;
}
.mp-copyright a {
	color: var(--mp-accent);
}

/* =========================================================
   Fixed bottom call bar (modern glass)
   ========================================================= */
.mp-callbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	border-top: 1px solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 -10px 40px rgba(17, 24, 39, 0.12);
}
/* Gradient accent line on top edge */
.mp-callbar::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(
		90deg,
		var(--mp-primary),
		var(--mp-accent),
		var(--mp-primary)
	);
	background-size: 200% 100%;
	animation: mp-callbar-shine 6s linear infinite;
}
.mp-callbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* Text with animated availability dot */
.mp-callbar__text {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-inline-start: 4px;
	font-weight: 700;
	color: var(--mp-secondary);
	font-size: 1rem;
	line-height: 1.6;
}
.mp-callbar__text::before {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
	animation: mp-dot-pulse 2s ease-out infinite;
}

/* Dedicated modern call button */
.mp-callbar__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	padding: 10px 22px 10px 12px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 1rem;
	color: #fff;
	white-space: nowrap;
	background: linear-gradient(135deg, var(--mp-primary), #a30d21 85%);
	box-shadow: 0 10px 24px rgba(var(--mp-primary-rgb), 0.38),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* Glossy sweep on hover */
.mp-callbar__btn::after {
	content: "";
	position: absolute;
	top: 0;
	inset-inline-start: -80%;
	width: 60%;
	height: 100%;
	background: linear-gradient(
		120deg,
		transparent,
		rgba(255, 255, 255, 0.35),
		transparent
	);
	transform: skewX(-18deg);
	transition: inset-inline-start 0.6s ease;
}
.mp-callbar__btn:hover {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 16px 32px rgba(var(--mp-primary-rgb), 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.mp-callbar__btn:hover::after {
	inset-inline-start: 140%;
}
.mp-callbar__btn:active {
	transform: translateY(-1px) scale(0.99);
}

/* Circular icon holder with pulse ring */
.mp-callbar__icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.mp-callbar__icon::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.7);
	animation: mp-ring-pulse 1.8s ease-out infinite;
}
.mp-callbar__icon svg {
	width: 20px;
	height: 20px;
	animation: mp-phone-wiggle 2.4s ease-in-out infinite;
}
.mp-callbar__label {
	position: relative;
	z-index: 1;
	letter-spacing: 0.2px;
}

@keyframes mp-callbar-shine {
	0% {
		background-position: 0% 50%;
	}
	100% {
		background-position: 200% 50%;
	}
}
@keyframes mp-dot-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
	}
	70% {
		box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}
@keyframes mp-ring-pulse {
	0% {
		transform: scale(0.85);
		opacity: 0.9;
	}
	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}
@keyframes mp-phone-wiggle {
	0%,
	60%,
	100% {
		transform: rotate(0deg);
	}
	65%,
	75%,
	85% {
		transform: rotate(-12deg);
	}
	70%,
	80% {
		transform: rotate(12deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mp-callbar::before,
	.mp-callbar__text::before,
	.mp-callbar__icon::before,
	.mp-callbar__icon svg {
		animation: none;
	}
}

/* Reserve space so content/footer isn't hidden behind the bar. */
body.mp-has-callbar {
	padding-bottom: 82px;
}

/* =========================================================
   Front page static content
   ========================================================= */
.mp-front-static {
	padding: 26px 0 6px;
}
.mp-front-static .mp-entry-content > :first-child {
	margin-top: 0;
}

/* =========================================================
   Services / companies auto-scroll marquee
   ========================================================= */
.mp-marquee {
	padding: 34px 0;
	margin: 6px 0 10px;
	background:
		radial-gradient(1200px 200px at 50% -40%, rgba(var(--mp-primary-rgb), 0.06), transparent),
		var(--mp-white);
	border-top: 1px solid var(--mp-border);
	border-bottom: 1px solid var(--mp-border);
}
.mp-marquee__head {
	margin-bottom: 22px;
}
.mp-marquee__viewport {
	position: relative;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent,
		#000 8%,
		#000 92%,
		transparent
	);
	mask-image: linear-gradient(
		90deg,
		transparent,
		#000 8%,
		#000 92%,
		transparent
	);
}
.mp-marquee__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 18px;
	width: max-content;
	margin: 0;
	padding: 6px 18px;
	list-style: none;
	animation: mp-marquee-scroll var(--mp-marquee-duration, 30s) linear infinite;
}
.mp-marquee__viewport:hover .mp-marquee__track,
.mp-marquee__track:focus-within {
	animation-play-state: paused;
}
.mp-marquee__item {
	flex: 0 0 auto;
	width: 200px;
}
.mp-marquee__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 18px 16px;
	text-align: center;
	background: var(--mp-white);
	border: 1px solid var(--mp-border);
	border-radius: var(--mp-radius);
	box-shadow: var(--mp-shadow);
	color: var(--mp-secondary);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.mp-marquee__card:hover {
	transform: translateY(-6px);
	box-shadow: var(--mp-shadow-hover);
	border-color: rgba(var(--mp-primary-rgb), 0.35);
	color: var(--mp-secondary);
}
.mp-marquee__media {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--mp-bg);
	border: 1px solid var(--mp-border);
}
.mp-marquee__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 10px;
}
.mp-marquee__placeholder {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(var(--mp-primary-rgb), 0.25), rgba(var(--mp-primary-rgb), 0.08));
}
.mp-marquee__name {
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.5;
}
.mp-marquee__desc {
	font-size: 0.82rem;
	color: var(--mp-muted);
	line-height: 1.6;
}

@keyframes mp-marquee-scroll {
	from {
		transform: translateX(0);
	}
	to {
		/* Track holds two copies; shift by half for a seamless loop (RTL-safe). */
		transform: translateX(50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mp-marquee__track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
	}
	.mp-marquee__viewport {
		-webkit-mask-image: none;
		mask-image: none;
	}
}

@media (max-width: 480px) {
	.mp-marquee__item {
		width: 150px;
	}
	.mp-marquee__media {
		width: 76px;
		height: 76px;
	}
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
	.mp-layout-three-col .mp-wrap {
		grid-template-columns: 280px minmax(0, 1fr);
	}
	.mp-layout-three-col #mp-sidebar-left {
		display: none;
	}
}

@media (max-width: 860px) {
	.mp-wrap,
	.mp-layout-two-col.mp-has-right .mp-wrap,
	.mp-layout-two-col.mp-has-left .mp-wrap,
	.mp-layout-three-col .mp-wrap {
		grid-template-columns: 1fr;
	}
	.mp-sidebar {
		position: static;
	}
	.mp-layout-three-col #mp-sidebar-left {
		display: block;
	}

	/* Full-width content on mobile */
	.mp-container {
		padding-inline: 12px;
	}
	.mp-wrap {
		gap: 18px;
		padding-top: 16px;
		padding-bottom: 28px;
	}
	.mp-grid {
		gap: 16px;
	}

	/* ---- Mobile header ---- */
	.mp-header__inner {
		min-height: 68px;
		gap: 10px;
	}
	.mp-site-title {
		font-size: 1.25rem;
	}
	.mp-site-description {
		display: none;
	}
	.mp-logo img {
		max-height: 42px;
	}

	/* Hamburger button (first flex child = right side in RTL). */
	.mp-menu-btn {
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		order: -1;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid var(--mp-border);
		background: var(--mp-white);
		border-radius: 12px;
		color: var(--mp-secondary);
		cursor: pointer;
	}
	.mp-branding {
		margin-inline-end: auto;
	}
	.mp-menu-btn__bar {
		width: 20px;
		height: 2px;
		background: currentColor;
		border-radius: 2px;
	}

	/* Desktop nav bar hidden; the drawer takes over. */
	.mp-primary-nav {
		display: none;
	}

	/* ---- Backdrop: only visible while the drawer is open ---- */
	.mp-drawer-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1090;
		background: rgba(17, 24, 39, 0.5);
		-webkit-backdrop-filter: blur(2px);
		backdrop-filter: blur(2px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}
	body.mp-drawer-open .mp-drawer-backdrop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	/* ---- Drawer (right, slide-in) ---- */
	.mp-drawer {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(320px, 85vw);
		background: var(--mp-white);
		box-shadow: -14px 0 44px rgba(17, 24, 39, 0.22);
		transform: translateX(100%);
		transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
		z-index: 1100;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		visibility: hidden;
	}
	.mp-drawer.is-open {
		transform: translateX(0);
		visibility: visible;
	}
	body.mp-drawer-open {
		overflow: hidden;
	}
	.admin-bar .mp-drawer {
		top: 46px;
	}

	/* Drawer head: logo + name centered, close button in the corner. */
	.mp-drawer__head {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		padding: 24px 16px 18px;
		border-bottom: 1px solid var(--mp-border);
		text-align: center;
	}
	.mp-drawer__close {
		position: absolute;
		top: 12px;
		inset-inline-start: 12px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		border: 1px solid var(--mp-border);
		background: var(--mp-white);
		border-radius: 10px;
		color: var(--mp-secondary);
		cursor: pointer;
	}
	.mp-drawer__close:hover {
		background: var(--mp-primary);
		border-color: var(--mp-primary);
		color: #fff;
	}
	.mp-drawer__close svg {
		width: 18px;
		height: 18px;
	}
	.mp-drawer__brand {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		color: var(--mp-secondary);
	}
	.mp-drawer__logo img {
		max-height: 46px;
		width: auto;
		margin: 0 auto;
	}
	.mp-drawer__name {
		font-weight: 800;
		font-size: 1.15rem;
		color: var(--mp-secondary);
	}

	/* ---- Drawer menu ---- */
	.mp-drawer__body {
		padding: 8px;
	}
	.mp-mobile-menu,
	.mp-mobile-menu .sub-menu {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	.mp-mobile-menu li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}
	.mp-mobile-menu > li + li {
		border-top: 1px solid var(--mp-border);
	}
	.mp-mobile-menu a {
		flex: 1 1 auto;
		display: block;
		padding: 13px 14px;
		color: var(--mp-secondary);
		font-weight: 600;
		font-size: 1rem;
		border-radius: 8px;
	}
	.mp-mobile-menu a:hover,
	.mp-mobile-menu .current-menu-item > a {
		color: var(--mp-primary);
	}

	/* Small submenu toggle (not a big button). */
	.mp-sub-toggle {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 40px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--mp-muted);
		cursor: pointer;
	}
	.mp-sub-toggle svg {
		width: 18px;
		height: 18px;
		transition: transform 0.3s ease;
	}
	.mp-mobile-menu .menu-item-has-children.is-open > .mp-sub-toggle svg {
		transform: rotate(180deg);
		color: var(--mp-primary);
	}

	/* Animated (height) submenu. Full-width row, indented items. */
	.mp-mobile-menu .sub-menu {
		flex: 0 0 100%;
		width: 100%;
		height: 0;
		overflow: hidden;
		transition: height 0.3s ease;
		background: rgba(var(--mp-primary-rgb), 0.04);
		border-radius: 10px;
	}
	.mp-mobile-menu .sub-menu a {
		padding-inline-start: 26px;
		font-weight: 500;
		font-size: 0.95rem;
		color: var(--mp-muted);
	}
	.mp-mobile-menu .sub-menu a:hover {
		color: var(--mp-primary);
	}

	.mp-hero__grid {
		grid-template-columns: 1fr;
	}
	.mp-hero__main {
		grid-row: auto;
		min-height: 260px;
	}

	.mp-footer__cols {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.mp-single,
	.mp-comments {
		padding: 20px;
	}
	.mp-single__title {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	.mp-grid {
		grid-template-columns: 1fr;
	}
	.mp-callbar__text {
		font-size: 0.82rem;
		gap: 7px;
	}
	.mp-callbar__btn {
		padding: 8px 18px 8px 8px;
		gap: 9px;
		font-size: 0.92rem;
	}
	.mp-callbar__icon {
		width: 32px;
		height: 32px;
	}
	.mp-callbar__icon svg {
		width: 17px;
		height: 17px;
	}
	.mp-post-nav {
		flex-direction: column;
	}
	.mp-post-nav .nav-next {
		justify-content: flex-start;
	}
}
