/*
Theme Name: Dr. Faraji
Theme URI: https://drvahabi.local
Author: Studio
Description: Block theme for Dr. Majid Faraji, interventional cardiologist. RTL Persian medical landing page. Minimal, flat, clinical.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 4.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dr-faraji
Tags: block-theme, full-site-editing, rtl-language-support, healthcare
*/

/* Booking plugin (nobat-plus) ships its own font stack on the appointment
   form — override it so the form matches the rest of the site's typography. */
#sab-appointment-form,
#sab-appointment-form * {
	font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif !important;
}

/* ================= Header ================= */
/* Flush + edge-to-edge at rest, then morphs into a floating boxed card once
   the page scrolls (.is-scrolled, toggled in functions.php). Every dimension
   that changes between the two states is transitioned together so the shift
   reads as one continuous move instead of a shadow just popping in. */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
	padding: 0;
	transition: padding 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-scrolled {
	padding: 12px 5% 0;
}

/* The 24px root block-gap actually lands on <main> itself (a direct sibling of the
   header template part under .wp-site-blocks), not on the hero section inside it —
   zeroing the hero's own margin never touched the real gap. Taking the header out
   of flow (fixed) means main also needs a top offset equal to the header's real
   rendered height, which functions.php sets on --site-header-height via JS since
   it varies with content/viewport. */
main.wp-block-group {
	margin-block-start: 0 !important;
	padding-top: var(--site-header-height, 78px);
}

.site-header__main {
	/* Overrides the block editor's solid "surface" background color — real
	   translucency lives on the ::before behind it (see comment below), so
	   this element itself must stay see-through for the blur to read. */
	background-color: transparent !important;
	position: relative;
	max-width: 100%;
	margin: 0 auto;
	border-radius: 0;
	box-shadow: 0 1px 0 rgba(102, 87, 167, 0.08);
	transition: max-width 380ms cubic-bezier(0.22, 1, 0.36, 1),
		border-radius 380ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* The glass blur lives on a ::before behind the content instead of directly on
   .site-header__main — backdrop-filter on the real element would make it a
   containing block for its position:fixed descendants, and the nav block's
   mobile overlay menu is exactly that: a fixed-position child that needs to
   cover the whole viewport, not just this header box. */
.site-header__main::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background-color: #ffffff;
	transition: background-color 380ms ease, backdrop-filter 380ms ease;
}

.site-header.is-scrolled .site-header__main {
	max-width: 1320px;
	border-radius: 16px;
	box-shadow: 0 1px 0 rgba(102, 87, 167, 0.14), 0 18px 34px -16px rgba(43, 35, 80, 0.45);
}

.site-header.is-scrolled .site-header__main::before {
	background-color: rgba(255, 255, 255, 0.82);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
}

.header-phone {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}

.header-phone__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: #f6f3fb;
	color: #6657a7;
	flex-shrink: 0;
	transition: background-color 180ms ease, color 180ms ease;
}

.header-phone:hover .header-phone__icon {
	background: #6657a7;
	color: #ffffff;
}

.header-phone__text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.header-phone__text strong {
	font-size: 0.9rem;
	font-weight: 700;
	color: #221c3a;
}

.header-phone__text span {
	font-size: 0.72rem;
	color: #6b6483;
}

@media (max-width: 781px) {
	.header-phone__text {
		display: none;
	}
}

/* Phone + CTA live twice: `.header-actions` renders inline in the desktop bar,
   `.nav-extra` renders inside the nav block so it lands inside WP's mobile
   overlay menu. WP's own responsive-container breakpoint is a fixed 600px
   (see wp-includes/blocks/navigation/style.min.css), so these two switch at
   the exact same point — no dead zone where both (or neither) show. */
.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nav-extra {
	display: none;
}

@media (max-width: 599px) {
	.header-actions {
		display: none;
	}

	.nav-extra {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 14px;
		width: 100%;
		margin-top: 20px;
		padding-top: 20px;
		border-top: 1px solid rgba(102, 87, 167, 0.15);
	}

	.nav-extra .header-phone {
		justify-content: center;
	}

	.nav-extra .header-phone__text {
		display: flex;
	}

	.nav-extra .btn {
		width: auto;
		min-width: 180px;
	}
}

/* Icon + name + tagline as one clickable unit instead of a decorative icon
   sitting next to a separately-linked site-title block. */
.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}

.site-logo-mark {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(150deg, #2b2350 0%, #6657a7 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 6px 14px -6px rgba(43, 35, 80, 0.5);
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.site-logo-mark svg {
	width: 17px;
	height: 17px;
}

.site-logo:hover .site-logo-mark {
	box-shadow: 0 8px 18px -6px rgba(43, 35, 80, 0.6);
	transform: translateY(-1px);
}

.site-logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.site-logo-name {
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	color: #2b2350;
}

.site-logo-tagline {
	font-size: 0.7rem;
	font-weight: 500;
	line-height: 1.3;
	color: #6657a7;
}

.site-header__nav .wp-block-navigation-item > .wp-block-navigation-item__content {
	position: relative;
	font-weight: 500;
	color: #221c3a;
	padding-block: 4px;
	transition: color 150ms ease;
}

.site-header__nav .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	border-radius: 999px;
	background: #f2a444;
	transform: scaleX(0);
	transition: transform 200ms ease;
}

.site-header__nav .wp-block-navigation-item > .wp-block-navigation-item__content:hover {
	color: #6657a7;
}

.site-header__nav .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after {
	transform: scaleX(1);
}

/* "خدمات ما" submenu: article categories, opens on hover (desktop) or tap
   (mobile overlay). Core nav block already toggles via click/focus for a11y;
   these rules layer hover-open on top for pointer users without touching JS. */
.site-header__nav .wp-block-navigation-submenu > .wp-block-navigation__submenu-icon {
	margin-inline-start: 4px;
}

.site-header__nav .wp-block-navigation__submenu-container {
	border-radius: 14px;
	border: 1px solid rgba(102, 87, 167, 0.15);
	box-shadow: 0 20px 40px -18px rgba(43, 35, 80, 0.35);
	padding: 8px;
	min-width: 200px;
}

.site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 12px;
	border-radius: 8px;
}

.site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	display: none;
}

.site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: rgba(102, 87, 167, 0.08);
}

@media (min-width: 600px) {
	.site-header__nav .wp-block-navigation-submenu:hover > .wp-block-navigation__submenu-container,
	.site-header__nav .wp-block-navigation-submenu:focus-within > .wp-block-navigation__submenu-container {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

/* Hero's decorative radial glow is hard-sized to the text column (60%). Once
   the columns stack on mobile that width reads as a vertical gradient seam —
   stretch it across the full hero instead. */
@media (max-width: 781px) {
	.has-brand-radial-gradient-background {
		width: 100% !important;
	}
}

/* Soften the hero band's corners to match the rounded card system used
   everywhere else on the site (buttons, feature strip, about frame, etc.) —
   a hard 90° rectangle read as out of place next to all that roundness. */
.has-brand-hero-gradient-background.has-background {
	border-radius: 0 0 32px 32px;
	box-shadow: 0 28px 56px -30px rgba(43, 35, 80, 0.45);
}

@media (max-width: 600px) {
	.has-brand-hero-gradient-background.has-background {
		border-radius: 0 0 20px 20px;
	}
}

/* ================= Section heading system ================= */
/* Every section title uses a highlighted <mark class="hl"> phrase instead of a separate eyebrow label. */

/* ================= Hero copy ================= */
.hero-copy__title {
	margin: 0 0 14px;
	font-size: 3.2rem;
	font-weight: 800;
	line-height: 1.2;
}

.hero-copy__role {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 22px;
}

.hero-copy__role-primary {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #f2a444;
}

.hero-copy__role-secondary {
	font-size: 0.9rem;
	font-weight: 500;
	color: #b9aee2;
}

.hero-copy__role-sep {
	width: 1px;
	height: 16px;
	background: rgba(255, 255, 255, 0.3);
}

.hero-copy__desc {
	margin: 0 0 28px;
	max-width: 46ch;
	font-size: 0.92rem;
	line-height: 1.9;
	opacity: 0.9;
}

.hero-copy__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Stacked hero (WP columns break at 781px): center the copy block */
@media (max-width: 781px) {
	.hero-copy {
		text-align: center;
	}

	.hero-copy__role,
	.hero-copy__actions {
		justify-content: center;
	}

	.hero-copy__desc {
		margin-inline: auto;
	}
}

.section-head {
	max-width: 640px;
	margin: 0 auto 40px;
	text-align: center;
}

.section-head--start {
	margin-inline: 0;
	text-align: start;
}

.section-head__title {
	font-size: 1.6rem;
	font-weight: 700;
	margin-top: 12px;
	line-height: 1.4;
}

.section-head__subtitle {
	font-size: 0.88rem;
	color: #6b6483;
	margin-top: 10px;
	line-height: 1.8;
}

mark.hl {
	background: #f6f3fb;
	color: #6657a7;
	padding: 0 8px;
	border-radius: 8px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

mark.hl--dark {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

/* ================= Icon primitives ================= */
.icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 12px;
}

.icon-badge svg {
	width: 19px;
	height: 19px;
}

.icon-inline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* ================= Flat card system (shared by hero visual, feature strip, services, articles) ================= */
.flat-card,
.service-card {
	background: #ffffff;
	border: 1px solid rgba(102, 87, 167, 0.1);
	border-radius: 16px;
	padding: 28px 20px;
	text-align: center;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
	cursor: pointer;
}

.flat-card:hover,
.service-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px -14px rgba(43, 35, 80, 0.25);
	border-color: rgba(102, 87, 167, 0.25);
}

.flat-card__icon,
.service-card__icon {
	width: 40px;
	height: 40px;
	margin: 0 auto 14px;
	color: #6657a7;
}

.flat-card__title,
.service-card__title {
	font-weight: 600;
	font-size: 0.95rem;
	color: #221c3a;
}

.flat-card__desc,
.service-card__desc {
	font-size: 0.8rem;
	color: #6b6483;
	margin-top: 4px;
	line-height: 1.7;
}

.service-card {
	padding: 24px 18px;
}

.service-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-top: 10px;
}

.service-card__desc {
	margin-top: 2px;
	line-height: 1.4;
}

/* ================= Grid utilities (explicit, never rely on core auto-fill grid layout) ================= */
.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

@media (max-width: 960px) {
	.grid-3,
	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}
}

/* Force the WP query loop's post grid to an explicit column count — core's grid layout
   falls back to auto-fill minmax() which silently drops/adds columns depending on
   container width, leaving a phantom empty track. */
.articles-grid .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 24px !important;
	align-items: stretch !important;
}

@media (max-width: 860px) {
	.articles-grid .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 540px) {
	.articles-grid .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}

/* WP's `.is-layout-flow` (still present as the post-template's default layout
   class even though we force it into a grid below) applies a sibling margin —
   `> * + * { margin-block-start: var(--wp--style--block-gap) }` — to every
   item except the first. In the grid that reads as "one card starts higher
   than the rest" instead of the intended equal-height row. Zero it out. */
.articles-grid .wp-block-post-template > li {
	display: flex;
	min-width: 0;
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

.article-card {
	min-width: 0;
}

.article-card__title.wp-block-post-title a,
.article-card__excerpt .wp-block-post-excerpt__excerpt {
	overflow-wrap: break-word;
}

/* ================= Feature box (overlaps hero) ================= */
/* The block-gap WP inserts between root sections would otherwise eat into the
   negative margin below, so the pull-up is forced on the wrapper itself. */
.feature-strip-wrap {
	margin-top: -72px !important;
}

.feature-box {
	position: relative;
	z-index: 2;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 24px 48px -20px rgba(43, 35, 80, 0.35);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	overflow: hidden;
}

.feature-item {
	position: relative;
	padding: 28px 22px;
	text-align: center;
	cursor: pointer;
	transition: background 220ms ease;
}

.feature-item + .feature-item {
	border-inline-start: 1px solid rgba(102, 87, 167, 0.1);
}

.feature-item::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: #f2a444;
	transform: scaleX(0);
	transition: transform 220ms ease;
}

.feature-item:hover {
	background: #f6f3fb;
}

.feature-item:hover::after {
	transform: scaleX(1);
}

.feature-item__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	color: #6657a7;
	transition: color 220ms ease, transform 220ms ease;
}

.feature-item__icon svg {
	width: 100%;
	height: 100%;
}

.feature-item:hover .feature-item__icon {
	color: #f2a444;
	transform: translateY(-2px) scale(1.06);
}

.feature-item__title {
	font-weight: 700;
	font-size: 0.95rem;
	color: #221c3a;
}

.feature-item__desc {
	font-size: 0.78rem;
	color: #6b6483;
	margin-top: 3px;
	line-height: 1.5;
}

@media (max-width: 960px) {
	.feature-box {
		grid-template-columns: repeat(2, 1fr);
	}

	.feature-item:nth-child(2n+1) {
		border-inline-start: none;
	}

	.feature-item:nth-child(n+3) {
		border-top: 1px solid rgba(102, 87, 167, 0.1);
	}
}

@media (max-width: 600px) {
	.feature-box {
		grid-template-columns: 1fr;
	}

	.feature-item + .feature-item {
		border-inline-start: none;
		border-top: 1px solid rgba(102, 87, 167, 0.1);
	}
}

/* ================= Hero portrait (transparent cutout) ================= */
.hero-portrait {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.hero-portrait__glow {
	position: absolute;
	bottom: 2%;
	width: 78%;
	max-width: 260px;
	aspect-ratio: 1 / 1;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(242, 164, 68, 0.45) 0%, rgba(150, 134, 209, 0.25) 55%, transparent 75%);
	filter: blur(30px);
	z-index: 0;
	pointer-events: none;
}

.hero-portrait__ring {
	position: absolute;
	top: 7%;
	width: 118%;
	max-width: 367px;
	aspect-ratio: 1 / 1;
	border-radius: 999px;
	border: 1.5px solid rgba(242, 164, 68, 0.5);
	z-index: 1;
	pointer-events: none;
	animation: portrait-ring-pulse 3.6s ease-out infinite;
}

/* Heartbeat-style "ping" — expands and fades, echoing a pulse monitor instead of spinning. */
@keyframes portrait-ring-pulse {
	0% {
		transform: scale(0.9);
		opacity: 0;
	}
	40% {
		opacity: 0.7;
	}
	100% {
		transform: scale(1.08);
		opacity: 0;
	}
}

.hero-portrait__shape {
	position: absolute;
	z-index: 3;
	pointer-events: none;
}

.hero-portrait__shape--dot-gold {
	top: 4%;
	inset-inline-end: 6%;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: #f2a444;
	box-shadow: 0 6px 14px -4px rgba(242, 164, 68, 0.6);
}

.hero-portrait__shape--dot-violet {
	bottom: 14%;
	inset-inline-start: 2%;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: rgba(150, 134, 209, 0.5);
}

.hero-portrait__shape--diamond {
	top: 20%;
	inset-inline-start: -2%;
	width: 14px;
	height: 14px;
	border: 1.5px solid rgba(242, 164, 68, 0.6);
	transform: rotate(45deg);
}

.hero-portrait__shape--ring-sm {
	bottom: 30%;
	inset-inline-end: -4%;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.hero-portrait__img {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 250px;
	height: auto;
	display: block;
	filter: drop-shadow(0 26px 34px rgba(20, 16, 40, 0.5)) saturate(1.05);
}

@media (prefers-reduced-motion: reduce) {
	.hero-portrait__ring {
		animation: none;
	}
}

/* ================= About frame ================= */
/* Arch-portrait motif: the photo sits inside a fully contained arch-top white
   mat with a hairline border — a neutral frame so the photo's own colors carry
   the section instead of competing with a tinted backdrop. Stat badges float
   gently over the frame edges. */
.about-frame {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 0 0 40px;
}

.about-frame__shell {
	position: relative;
	width: 100%;
	max-width: 320px;
	padding: 10px;
	border-radius: 125px 125px 22px 22px;
	background: #ffffff;
	border: 1px solid #e9e3f4;
	box-shadow: 0 26px 44px -20px rgba(43, 35, 80, 0.28), 0 10px 20px -12px rgba(102, 87, 167, 0.18);
}

.about-frame__img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	display: block;
	border-radius: 115px 115px 14px 14px;
	border: 1px solid rgba(43, 35, 80, 0.06);
	object-fit: cover;
}

.about-frame__badge {
	position: absolute;
	bottom: 20%;
	inset-inline-start: 2%;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 11px;
	background: #ffffff;
	border: 1px solid #e4ddf3;
	border-radius: 16px;
	padding: 11px 17px;
	box-shadow: 0 10px 24px -8px rgba(43, 35, 80, 0.22), 0 2px 6px rgba(43, 35, 80, 0.08);
	animation: badge-float 5s cubic-bezier(0.37, 0, 0.63, 1) infinite;
	will-change: transform;
	backface-visibility: hidden;
}

.about-frame__badge--top {
	top: 46%;
	bottom: auto;
	inset-inline-start: auto;
	inset-inline-end: 0;
	padding: 8px 13px;
	animation-duration: 6.5s;
	animation-delay: 1.4s;
}

@keyframes badge-float {
	0%,
	100% {
		transform: translate3d(0, 0, 0);
	}
	50% {
		transform: translate3d(0, -6px, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-frame__badge {
		animation: none;
	}
}

.about-frame__badge--top .about-frame__badge-text strong {
	font-size: 0.95rem;
}

.about-frame__badge-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: linear-gradient(145deg, #f6b45c 0%, #ef933a 100%);
	color: #ffffff;
	box-shadow: 0 6px 14px -6px rgba(242, 164, 68, 0.7);
	flex-shrink: 0;
}

.about-frame__badge-icon svg {
	width: 20px;
	height: 20px;
}

.about-frame__badge-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	white-space: nowrap;
}

.about-frame__badge-text strong {
	font-size: 1.1rem;
	font-weight: 800;
	color: #221c3a;
}

.about-frame__badge-text span {
	font-size: 0.72rem;
	color: #6b6483;
}

/* ================= Timeline ================= */
.timeline-list {
	list-style: none;
	margin: 0;
	padding-inline-start: 22px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.timeline-list::before {
	content: "";
	position: absolute;
	inset-inline-start: 8px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: rgba(102, 87, 167, 0.2);
}

.timeline-list li {
	position: relative;
	padding: 7px 0;
}

/* Dot center must land on the line's center (line: inset-inline-start 8px + width/2 = 9px
   from the <ul> edge). li's own left edge is already offset by the ul's 22px
   padding-inline-start, so the li::before offset is measured back from there:
   22px (ul padding) + -17px (this offset) + 4px (half the dot's 8px width) = 9px. */
.timeline-list li::before {
	content: "";
	position: absolute;
	inset-inline-start: -19px;
	top: 13px;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #f2a444;
	border: 2px solid #ffffff;
}

.timeline-list strong {
	display: block;
	font-weight: 600;
	font-size: 0.92rem;
	color: #221c3a;
}

.timeline-list span {
	display: block;
	font-size: 0.8rem;
	color: #6b6483;
	margin-top: 1px;
}

/* ================= Article card (blog teaser + /blog listing) ================= */
/* Grid items stretch (align-items:stretch on the grid), but the card itself
   still needs an explicit full-height flex column, otherwise its content
   just sizes to its own text and cards in the same row end up different
   heights — which is what was throwing the CTA row out of alignment. */
.article-card {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex !important;
	flex-direction: column;
	gap: 0 !important;
	background: #ffffff;
	border: 1px solid rgba(102, 87, 167, 0.1);
	border-radius: 16px;
	overflow: hidden;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.article-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 36px -18px rgba(43, 35, 80, 0.3);
	border-color: rgba(102, 87, 167, 0.22);
}

.article-card__tag {
	position: relative;
	z-index: 2;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f6f3fb;
	color: #6657a7;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: 999px;
	margin-bottom: 4px;
}

.article-card__tag a {
	color: inherit;
	text-decoration: none;
}

.article-card__tag::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #f2a444;
}

.article-card__media {
	position: relative;
	z-index: 2;
	margin: 0;
	flex-shrink: 0;
}

.article-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.article-card:hover .article-card__media img {
	transform: scale(1.05);
}

.article-card__body {
	display: flex !important;
	flex-direction: column;
	flex: 1;
	padding: 16px 16px 18px;
	gap: 6px !important;
}

/* min-height reserves the full 2-line box regardless of actual line count —
   without it a 1-line title and a 2-line title leave the excerpt/CTA below
   starting at two different heights, which is what reads as "unaligned"
   across cards in the same row. */
.article-card__title.wp-block-post-title {
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.5;
	color: #221c3a;
	margin: 0;
	min-height: 3em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-card__title.wp-block-post-title a {
	position: relative;
	z-index: 2;
	color: inherit;
	text-decoration: none;
}

/* The post-excerpt block wraps its text in a nested <p>, so -webkit-line-clamp
   has to target that inner element directly — applied to the outer wrapper
   it has no text node to clamp and silently does nothing. */
.article-card__excerpt {
	min-height: 3.4em;
}

.article-card__excerpt .wp-block-post-excerpt__excerpt {
	font-size: 0.78rem;
	line-height: 1.7;
	color: #6b6483;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-card__cta.wp-block-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 10px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #6657a7;
	text-decoration: none;
}

.article-card__cta.wp-block-read-more::after {
	content: "←";
	font-size: 0.9em;
	transition: transform 200ms ease;
}

/* Stretched-link pattern: the whole card is clickable via this one anchor,
   without nesting it inside the title/image links (which stay as their own
   independent hit areas). */
.article-card__cta.wp-block-read-more::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.article-card:hover .article-card__cta.wp-block-read-more {
	color: #f2a444;
}

.article-card:hover .article-card__cta.wp-block-read-more::after {
	transform: translateX(-3px);
}

@media (prefers-reduced-motion: reduce) {
	.article-card,
	.article-card__media img,
	.article-card__cta.wp-block-read-more::after {
		transition: none !important;
		transform: none !important;
	}
}

/* ================= Query pagination (blog listing) ================= */
.wp-block-query-pagination {
	gap: 8px !important;
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid rgba(102, 87, 167, 0.16);
	color: #4a3d84;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.wp-block-query-pagination .page-numbers:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
	background: #f6f3fb;
	border-color: rgba(102, 87, 167, 0.3);
}

.wp-block-query-pagination .page-numbers.current {
	background: #2b2350;
	border-color: #2b2350;
	color: #ffffff;
}

.wp-block-query-pagination .page-numbers.dots {
	background: transparent;
	border-color: transparent;
	min-width: auto;
	padding: 0 4px;
	color: #9686d1;
}

/* ================= Contact panel ================= */
.contact-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
	background: linear-gradient(135deg, #fbfafd 0%, #f6f3fb 100%);
	border: 1px solid #e9e3f4;
	border-radius: 20px;
	padding: 28px 32px;
}

.contact-panel__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	color: #221c3a;
}

.contact-panel__desc {
	margin: 6px 0 0;
	font-size: 0.85rem;
	color: #6b6483;
}

.contact-panel__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.contact-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 15px;
	background: #ffffff;
	border: 1px solid #e9e3f4;
	border-radius: 14px;
	text-decoration: none;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-chip:hover {
	border-color: #c9bce9;
	box-shadow: 0 8px 18px -10px rgba(43, 35, 80, 0.25);
}

.contact-chip__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: linear-gradient(145deg, #f6b45c 0%, #ef933a 100%);
	color: #ffffff;
	flex-shrink: 0;
}

.contact-chip__icon svg {
	width: 18px;
	height: 18px;
}

.contact-chip__text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.contact-chip__text span {
	font-size: 0.68rem;
	color: #6b6483;
}

.contact-chip__text strong {
	font-size: 0.92rem;
	font-weight: 700;
	color: #221c3a;
	direction: ltr;
}

/* ================= Footer ================= */
.site-footer {
	position: relative;
	background: linear-gradient(180deg, #fbfafd 0%, #f4f0fa 100%);
	border-top: 1px solid #e9e3f4;
}

/* Kill the default block-gap margin WordPress puts on plain elements inside a
   column so the first row starts at the same offset as .footer-links next door. */
.footer-clinics {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.footer-clinic {
	padding: 10px 0;
	border-bottom: 1px solid #e9e3f4;
}

.footer-clinic:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.footer-clinic:first-child {
	padding-top: 0;
}

.footer-clinic__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.footer-clinic__name {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	color: #221c3a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.footer-clinic__phone {
	flex-shrink: 0;
	color: #6657a7;
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 700;
	direction: ltr;
	unicode-bidi: isolate;
	transition: color 180ms ease;
}

.footer-clinic__phone:hover {
	color: #2b2350;
}

.footer-clinic__address {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 4px 0 0;
	font-size: 0.76rem;
	line-height: 1.7;
	color: #8b84a3;
}

.footer-clinic__address svg {
	margin-top: 2px;
	width: 12px;
	height: 12px;
	color: #b4a9dc;
	flex-shrink: 0;
}

/* ================= Button standard ================= */
/* One shape, one motion language, three variants: primary / dark / outline (light + on-color). */
.wp-element-button,
.wp-block-button__link,
.btn {
	font-size: 0.9rem !important;
	line-height: 1.4;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 22px;
	border-radius: 10px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary,
.btn-dark {
	background: #2b2350;
	color: #ffffff;
	box-shadow: 0 10px 22px -10px rgba(43, 35, 80, 0.55);
}

.btn-primary:hover,
.btn-dark:hover {
	background: #4a3d84;
	box-shadow: 0 14px 26px -10px rgba(43, 35, 80, 0.65);
	color: #ffffff;
}

.btn-outline {
	background: transparent;
	color: #6657a7;
	border-color: rgba(102, 87, 167, 0.35);
}

.btn-outline:hover {
	background: #f6f3fb;
	border-color: #6657a7;
	color: #4a3d84;
}

.btn-outline-light {
	background: transparent;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #ffffff;
	color: #ffffff;
}

/* ================= Accessibility ================= */
a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible,
.btn:focus-visible {
	outline: 2px solid #6657a7;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.flat-card,
	.service-card,
	.feature-item,
	.feature-item__icon,
	.feature-item::after,
	.btn {
		transition: none !important;
		transform: none !important;
	}
}

@media (max-width: 781px) {
	.contact-panel {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ================= Stats band (animated counters) ================= */
/* Understated credential strip: plain numbers over hairline dividers on a
   bordered light panel — no gradient, no decorative waveform. */
.stats-band {
	background: #ffffff;
	border: 1px solid #e9e3f4;
	border-radius: 20px;
	padding: 38px 32px;
	box-shadow: 0 20px 40px -30px rgba(43, 35, 80, 0.3);
}

.stats-band__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.stat-item {
	text-align: center;
	position: relative;
}

.stat-item + .stat-item::before {
	content: "";
	position: absolute;
	inset-inline-start: -12px;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 48px;
	background: #ece6f8;
}

.stat-item__num {
	display: block;
	font-size: 2.1rem;
	font-weight: 800;
	line-height: 1.2;
	color: #221c3a;
	font-variant-numeric: tabular-nums;
}

.stat-item__num mark {
	background: none;
	color: #e08a1f;
}

.stat-item__label {
	display: block;
	margin-top: 6px;
	font-size: 0.84rem;
	color: #6b6483;
}

@media (max-width: 960px) {
	.stats-band__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 20px;
	}

	.stat-item:nth-child(odd)::before {
		display: none;
	}
}

@media (max-width: 540px) {
	.stats-band {
		padding: 40px 24px;
	}

	.stats-band__grid {
		grid-template-columns: 1fr;
	}

	.stat-item + .stat-item::before {
		display: none;
	}
}

/* ================= Service detail sections (heart / varis) ================= */
.service-detail {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 44px;
	align-items: center;
}

.service-detail--flip .service-detail__media {
	order: 2;
}

.service-detail__media {
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	background: linear-gradient(150deg, #f6f3fb 0%, #ece6f8 100%);
	border: 1px solid #e9e3f4;
	overflow: hidden;
	box-shadow: 0 24px 48px -26px rgba(43, 35, 80, 0.35);
}

.service-detail__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.service-detail__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 0.78rem;
	font-weight: 700;
	color: #b06f1e;
}

.service-detail__kicker::before {
	content: "";
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: #f2a444;
}

.service-detail__title {
	margin: 0 0 12px;
	font-size: 1.45rem;
	font-weight: 800;
	color: #221c3a;
	line-height: 1.5;
}

.service-detail__desc {
	margin: 0 0 18px;
	font-size: 0.9rem;
	line-height: 1.9;
	color: #6b6483;
}

.service-detail__list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: grid;
	gap: 12px;
}

.service-detail__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.85rem;
}

.service-detail__check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	border-radius: 50%;
	background: rgba(242, 164, 68, 0.16);
	color: #b06f1e;
	flex-shrink: 0;
}

.service-detail__check svg {
	width: 12px;
	height: 12px;
}

.service-detail__list strong {
	display: block;
	font-weight: 700;
	color: #221c3a;
}

.service-detail__list strong + span {
	display: block;
	margin-top: 2px;
	font-size: 0.8rem;
	color: #6b6483;
}

@media (max-width: 781px) {
	.service-detail {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.service-detail--flip .service-detail__media {
		order: 0;
	}
}

/* ================= Testimonials ================= */
.testimonial-card {
	position: relative;
	background: #ffffff;
	border: 1px solid rgba(102, 87, 167, 0.1);
	border-radius: 16px;
	padding: 28px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.testimonial-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 30px -16px rgba(43, 35, 80, 0.25);
	border-color: rgba(102, 87, 167, 0.25);
}

.testimonial-card__quote-mark {
	position: absolute;
	top: 18px;
	inset-inline-end: 20px;
	width: 34px;
	height: 34px;
	color: rgba(102, 87, 167, 0.14);
}

.testimonial-card__stars {
	display: flex;
	gap: 3px;
	color: #f2a444;
}

.testimonial-card__stars svg {
	width: 15px;
	height: 15px;
}

.testimonial-card__text {
	font-size: 0.85rem;
	line-height: 1.9;
	color: #443d5e;
	margin: 0;
	flex: 1;
}

.testimonial-card__person {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid rgba(102, 87, 167, 0.1);
}

.testimonial-card__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: linear-gradient(150deg, #6657a7, #2b2350);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.9rem;
	flex-shrink: 0;
}

.testimonial-card__name {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	color: #221c3a;
}

.testimonial-card__service {
	display: block;
	font-size: 0.72rem;
	color: #6b6483;
	margin-top: 1px;
}

/* ================= Inner page hero (subtitle + breadcrumb) ================= */
.page-hero__title {
	margin: 0;
	font-size: 2.2rem;
	font-weight: 800;
	text-align: center;
	color: #ffffff;
}

.page-hero__subtitle {
	margin: 12px auto 0;
	text-align: center;
	font-size: 0.9rem;
	line-height: 1.9;
	color: #b9aee2;
}

.page-hero__crumb {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 0.78rem;
	color: #b9aee2;
}

.page-hero__crumb a {
	color: #f2a444;
	text-decoration: none;
}

.page-hero__crumb a:hover {
	color: #ffffff;
}

/* ================= 404 ================= */
.error-404 {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}

.error-404__code {
	display: block;
	font-size: 5.5rem;
	font-weight: 800;
	line-height: 1;
	color: #ffffff;
	opacity: 0.14;
	letter-spacing: 4px;
	margin-bottom: 4px;
}

.error-404__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 28px;
}

/* ================= Service rows (services page) ================= */
.svc-list {
	display: flex;
	flex-direction: column;
}

.svc-row {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 44px;
	align-items: center;
	padding: 40px 0;
}

.svc-row + .svc-row {
	border-top: 1px solid rgba(102, 87, 167, 0.12);
}

.svc-row__media {
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 44px -22px rgba(43, 35, 80, 0.4);
}

.svc-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.svc-row:hover .svc-row__media img {
	transform: scale(1.04);
}

.svc-row__title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #221c3a;
	margin: 0 0 14px;
}

.svc-row__desc {
	font-size: 0.92rem;
	line-height: 1.95;
	color: #6b6483;
	margin: 0 0 18px;
}

.svc-row__points {
	list-style: none;
	margin: 0;
	padding: 18px 0 0;
	border-top: 1px solid rgba(102, 87, 167, 0.12);
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px 24px;
}

.svc-row__points li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
	color: #443d5e;
}

.svc-row__points li::before {
	content: "";
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #f2a444;
}

@media (max-width: 860px) {
	.svc-row {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 28px 0;
	}

	.svc-row__points {
		grid-template-columns: 1fr;
	}
}

/* ================= About page ================= */
.about-hero-grid {
	display: grid;
	grid-template-columns: 4fr 8fr;
	gap: 48px;
	align-items: start;
}

@media (max-width: 860px) {
	.about-hero-grid {
		grid-template-columns: 1fr;
	}
}

.credential-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #ffffff;
	border: 1px solid rgba(102, 87, 167, 0.1);
	border-radius: 16px;
	padding: 20px;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.credential-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px -16px rgba(43, 35, 80, 0.25);
	border-color: rgba(102, 87, 167, 0.25);
}

.credential-card .icon-badge {
	background: #f6f3fb;
	color: #6657a7;
}

.credential-card__title {
	font-size: 0.9rem;
	font-weight: 700;
	color: #221c3a;
	margin: 0;
}

.credential-card__desc {
	font-size: 0.78rem;
	color: #6b6483;
	line-height: 1.8;
	margin: 3px 0 0;
}

.value-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 781px) {
	.value-strip {
		grid-template-columns: 1fr;
	}
}

/* ================= Contact page ================= */
.locations-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 1100px) {
	.locations-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 700px) {
	.locations-grid {
		grid-template-columns: 1fr;
	}
}

.location-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e9e3f4;
	border-radius: 20px;
	overflow: hidden;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.location-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 44px -22px rgba(43, 35, 80, 0.32);
	border-color: #c9bce9;
}

.location-card__map {
	position: relative;
	height: 280px;
	background: #f6f3fb;
}

.location-card__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.location-card__badge {
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #2b2350;
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 7px 15px;
	border-radius: 999px;
	box-shadow: 0 8px 18px -8px rgba(43, 35, 80, 0.5);
}

.location-card__badge::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #f2a444;
}

.location-card__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
	padding: 24px 24px 26px;
}

.location-card__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 800;
	color: #221c3a;
}

.location-card__address {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.9;
	color: #6b6483;
}

.location-card__pin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-top: 3px;
	border-radius: 9px;
	background: #f6f3fb;
	border: 1px solid #e9e3f4;
	color: #6657a7;
	flex-shrink: 0;
}

.location-card__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
}

.location-card__call {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #f6f3fb;
	border: 1px solid #e9e3f4;
	color: #221c3a;
	text-decoration: none;
	transition: background 180ms ease, border-color 180ms ease;
}

.location-card__call:hover {
	background: #efe9fa;
	border-color: #c9bce9;
}

.location-card__call svg {
	width: 17px;
	height: 17px;
	color: #6657a7;
	flex-shrink: 0;
}

.location-card__call-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.location-card__call-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: #8b84a3;
}

.location-card__call-number {
	font-size: 0.92rem;
	font-weight: 700;
	color: #221c3a;
	direction: ltr;
	unicode-bidi: isolate;
}

.location-card__routes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.location-card__route,
.location-card__neshan {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 10px 8px;
	border-radius: 12px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.location-card__route svg,
.location-card__neshan svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.location-card__route {
	background: #2b2350;
	color: #ffffff;
}

.location-card__route:hover {
	background: #4a3d84;
	box-shadow: 0 10px 20px -10px rgba(43, 35, 80, 0.5);
}

.location-card__neshan {
	background: #ffffff;
	border: 1px solid #bfe9d3;
	color: #12875c;
}

.location-card__neshan:hover {
	border-color: #7fd4ac;
	background: #f1fbf6;
	color: #0d6a48;
}

@media (max-width: 420px) {
	.location-card__routes {
		grid-template-columns: 1fr;
	}
}

/* ================= Blog: featured latest post ================= */
.featured-post {
	position: relative;
	display: grid;
	grid-template-columns: 6fr 6fr;
	background: #ffffff;
	border: 1px solid rgba(102, 87, 167, 0.12);
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 36px;
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.featured-post:hover {
	transform: translateY(-3px);
	box-shadow: 0 24px 44px -22px rgba(43, 35, 80, 0.3);
}

/* aspect-ratio (not a fixed height) is what keeps this in bounds once the
   image column has no text sibling to stretch against — e.g. the mobile
   breakpoint below, where the grid drops to a single column and height:100%
   had nothing definite to resolve against, so the image rendered at its
   native intrinsic size instead. */
.featured-post .wp-block-post-featured-image {
	margin: 0;
	aspect-ratio: 16 / 10;
}

.featured-post .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.featured-post__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 36px 32px;
	gap: 12px;
}

.featured-post__badge {
	align-self: flex-start;
	background: #f2a444;
	color: #221c3a;
	font-size: 0.7rem;
	font-weight: 800;
	padding: 5px 13px;
	border-radius: 999px;
}

.featured-post__body .wp-block-post-title {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.6;
	margin: 0;
}

.featured-post__body .wp-block-post-title a {
	color: #221c3a;
	text-decoration: none;
}

.featured-post__body .wp-block-post-title a:hover {
	color: #6657a7;
}

.featured-post__body .wp-block-post-excerpt__excerpt {
	font-size: 0.85rem;
	line-height: 1.9;
	color: #6b6483;
	margin: 0;
}

.featured-post__body .wp-block-post-date {
	font-size: 0.75rem;
	color: #9686d1;
}

@media (max-width: 781px) {
	.featured-post {
		grid-template-columns: 1fr;
	}
}

/* ================= Footer v2 ================= */
.footer-social .wp-block-social-link {
	background: #ffffff !important;
	border: 1px solid #e9e3f4;
	border-radius: 10px;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.footer-social .wp-block-social-link:hover {
	border-color: #c9bce9;
	box-shadow: 0 6px 14px -8px rgba(43, 35, 80, 0.3);
}

.footer-heading {
	position: relative;
	display: inline-block;
	font-weight: 700;
	font-size: 0.9rem;
	color: #221c3a;
	margin: 0 0 18px;
	padding-bottom: 10px;
}

.footer-heading::after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 28px;
	height: 2px;
	border-radius: 999px;
	background: #f2a444;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #6b6483;
	text-decoration: none;
	transition: color 180ms ease, transform 180ms ease;
}

.footer-links a::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 999px;
	background: rgba(242, 164, 68, 0.6);
	transition: background 180ms ease;
}

.footer-links a:hover {
	color: #6657a7;
	transform: translateX(-3px);
}

.footer-links a:hover::before {
	background: #f2a444;
}

/* Three-zone layout: rights text at the reading-start edge (right in RTL),
   credit centered, back-to-top pinned to the reading-end edge (left) —
   grid + justify-self keeps the middle item truly centered regardless of
   how long the two side items are, which plain flex space-between can't. */
.footer-bottom {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	margin-top: 40px;
	padding-top: 18px;
	border-top: 1px solid #e9e3f4;
}

.footer-bottom p {
	margin: 0;
	font-size: 0.8rem;
	color: #6b6483;
}

.footer-bottom__rights {
	justify-self: start;
}

.footer-bottom__credit {
	justify-self: center;
}

.footer-bottom .footer-top-btn {
	justify-self: end;
}

@media (max-width: 600px) {
	.footer-bottom {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.footer-bottom__rights,
	.footer-bottom__credit,
	.footer-bottom .footer-top-btn {
		justify-self: center;
	}
}

.footer-top-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #6657a7;
	background: #ffffff;
	border: 1px solid #e9e3f4;
	border-radius: 999px;
	padding: 8px 16px;
	text-decoration: none;
	cursor: pointer;
	transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.footer-top-btn:hover {
	background: #6657a7;
	color: #ffffff;
	border-color: #6657a7;
}

.footer-top-btn svg {
	width: 14px;
	height: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.testimonial-card,
	.credential-card,
	.location-card,
	.featured-post,
	.svc-row__media img,
	.footer-links a {
		transition: none !important;
		transform: none !important;
	}
}

/* ================= Single post ================= */
.single-post__meta {
	margin-top: 14px;
}

.single-post__meta .wp-block-post-date {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.78);
}

.single-post__tag {
	display: inline-block;
}

.single-post__tag a {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 150ms ease;
}

.single-post__tag a:hover {
	background: rgba(255, 255, 255, 0.28);
}

.single-post__tags {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(102, 87, 167, 0.12);
	font-size: 0.82rem;
	color: #6b6483;
	line-height: 2.2;
}

.single-post__tags a {
	display: inline-block;
	margin-inline-end: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #f6f3fb;
	color: #6657a7;
	font-size: 0.76rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 150ms ease, color 150ms ease;
}

.single-post__tags a:hover {
	background: #6657a7;
	color: #ffffff;
}

.single-post__tags .wp-block-post-terms__separator {
	display: none;
}

/* Pull the featured image up over the hero gradient's bottom edge. */
.single-post__media-wrap {
	position: relative;
	z-index: 1;
	margin-top: -32px;
}

.single-post__media img {
	width: 100%;
	border-radius: 20px;
	border: 1px solid #e9e3f4;
	box-shadow: 0 24px 48px -24px rgba(43, 35, 80, 0.35);
}

.single-post__content {
	font-size: 1rem;
	line-height: 2;
}

.single-post__content img {
	border-radius: 14px;
}

/* ================= Comments ================= */
.single-comments {
	border-top: 1px solid #e9e3f4;
	padding-top: 40px;
}

.single-comments .wp-block-comments-title {
	position: relative;
	display: inline-block;
	font-size: 1.25rem;
	font-weight: 800;
	color: #221c3a;
	margin: 0 0 26px;
	padding-bottom: 12px;
}

.single-comments .wp-block-comments-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 34px;
	height: 3px;
	border-radius: 999px;
	background: #f2a444;
}

.single-comments .wp-block-comment-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Nested replies indent inward (logical property — works in RTL). */
.single-comments .wp-block-comment-template ol {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	margin-inline-start: 28px;
}

.comment-card {
	background: #ffffff;
	border: 1px solid #e9e3f4;
	border-radius: 16px;
	padding: 20px 22px;
	margin-bottom: 14px;
}

.comment-card__head {
	align-items: center;
	gap: 12px;
}

.comment-card__avatar img {
	border-radius: 12px;
}

.comment-card__author {
	font-size: 0.92rem;
	font-weight: 700;
	color: #221c3a;
}

.comment-card__date {
	font-size: 0.75rem;
	color: #6b6483;
	margin-top: 2px;
}

.comment-card .wp-block-comment-content {
	font-size: 0.9rem;
	line-height: 1.9;
	color: #4a4463;
	margin-top: 12px;
}

.comment-card .wp-block-comment-content p {
	margin: 0 0 8px;
}

.comment-card .wp-block-comment-reply-link {
	margin-top: 6px;
}

.comment-card .wp-block-comment-reply-link a {
	font-size: 0.8rem;
	font-weight: 600;
	color: #6657a7;
	text-decoration: none;
}

.comment-card .wp-block-comment-reply-link a:hover {
	color: #2b2350;
}

/* ---- Comment form ---- */
.single-comments .wp-block-post-comments-form {
	margin-top: 32px;
}

.single-comments .comment-reply-title {
	font-size: 1.1rem;
	font-weight: 800;
	color: #221c3a;
	margin: 0 0 8px;
}

.single-comments .comment-notes,
.single-comments .logged-in-as {
	font-size: 0.82rem;
	color: #6b6483;
}

.single-comments .comment-form label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #221c3a;
	margin-bottom: 6px;
}

.single-comments .comment-form input[type="text"],
.single-comments .comment-form input[type="email"],
.single-comments .comment-form input[type="url"],
.single-comments .comment-form textarea {
	width: 100%;
	background: #fbfafd;
	border: 1px solid #e9e3f4;
	border-radius: 12px;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 0.9rem;
	color: #221c3a;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.single-comments .comment-form input[type="text"]:focus,
.single-comments .comment-form input[type="email"]:focus,
.single-comments .comment-form input[type="url"]:focus,
.single-comments .comment-form textarea:focus {
	outline: none;
	border-color: #9686d1;
	box-shadow: 0 0 0 3px rgba(102, 87, 167, 0.15);
	background: #ffffff;
}

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

.single-comments .comment-form-cookies-consent label {
	margin-bottom: 0;
	font-weight: 400;
	color: #6b6483;
}

.single-comments .comment-form-cookies-consent input {
	accent-color: #6657a7;
}

.sab-field {
	box-sizing: border-box;
}