/*
Theme Name: Haam
Author: Haam
Author URI: https://haam.ai/
Description: قالب وردپرس هام — استودیو هوش مصنوعی سازمانی. شامل مجله، پادکست (هام‌کست)، خدمات، ارزیابی بلوغ AI، درباره ما و فرم تماس.
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.4.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: online-lms
Tags: education, blog, portfolio, full-site-editing, block-patterns, block-styles, custom-colors, custom-menu, custom-logo, editor-style, featured-images, flexible-header, one-column, two-columns, three-columns, threaded-comments, translation-ready, wide-blocks
*/

/* Canonical magazine post featured-image ratio — always 16:9 (haam-thumb 1280×720) */
:root {
	--haam-thumb-ratio: 16 / 9;
}

/* @font-face: single source in theme.json → global-styles */

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

html,
body {
	direction: rtl;
	text-align: right;
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
}

/* Keep page scroll free; clip horizontal bleed only on body.
   scrollbar-gutter avoids CLS when the vertical scrollbar appears. */
html {
	overflow-x: clip;
	overflow-y: auto;
	scrollbar-gutter: stable;
	height: auto;
	max-height: none;
	position: static;
}

body {
	overflow-x: hidden;
	overflow-y: auto;
	height: auto;
	max-height: none;
	position: static;
}

/* Site scrollbar — brand yellow thumb */
html {
	scrollbar-width: thin;
	scrollbar-color: #ebd11a #e0dee8;
}

*::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

*::-webkit-scrollbar-track {
	background: #e0dee8;
}

*::-webkit-scrollbar-thumb {
	background: #ebd11a;
	border-radius: 999px;
	border: 2px solid #e0dee8;
}

*::-webkit-scrollbar-thumb:hover {
	background: #f0d94a;
}

*::-webkit-scrollbar-corner {
	background: #e0dee8;
}

/* Site ground — match footer. */
html,
body {
	background: #e9e9eb !important;
	background-color: #e9e9eb !important;
}

.wp-site-blocks {
	--haam-ground: #e9e9eb;
	position: relative;
	isolation: isolate;
	background: var(--haam-ground) !important;
	background-color: var(--haam-ground) !important;
	min-height: 100vh;
}

.wp-site-blocks::before {
	content: "";
	position: absolute;
	inset-inline-start: -8%;
	inset-block-end: 0;
	width: min(620px, 70vw);
	height: min(620px, 70vw);
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(235, 209, 26, 0.48) 0%,
		rgba(235, 209, 26, 0.22) 36%,
		rgba(244, 222, 58, 0.08) 55%,
		transparent 72%
	);
	filter: blur(10px);
	pointer-events: none;
	z-index: 0;
}

.wp-site-blocks::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.55;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
	background-size: 140px 140px;
	mix-blend-mode: multiply;
	pointer-events: none;
	z-index: 0;
}

.wp-site-blocks > * {
	position: relative;
	z-index: 1;
}

/* Header must paint above main, or the mobile overlay + dropdowns get covered by page content */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:has(.haam-site-header) {
	z-index: 30;
}

/* When the mobile menu is open, lift the whole header above page chrome
   (ai-maturity / cast / services etc.) so the fixed overlay is clickable. */
.wp-site-blocks > header.wp-block-template-part:has(.wp-block-navigation__responsive-container.is-menu-open),
.wp-site-blocks > .wp-block-template-part:has(.wp-block-navigation__responsive-container.is-menu-open) {
	z-index: 100001;
}

.haam-mag,
.haam-cast-page,
.haam-aima-page,
.haam-cheshm-page,
.haam-cheshm-canvas,
.haam-nozia-page,
.haam-nozia-canvas,
.haam-svc-page,
.haam-svc-canvas,
.haam-about-page,
.haam-about-canvas,
.haam-contact-canvas,
.haam-newsletter-canvas,
.haam-insights-canvas,
.haam-front-canvas {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
}

/* Footer atmosphere: see assets/css/haam-footer.css */

/*
 * Single magazine posts: full white canvas header → footer (reading mode).
 * Brand ground (#e9e9eb) stays on marketing pages only.
 */
body.single-post,
body.single-post .wp-site-blocks,
body.single-post .haam-mag.haam-mag-single,
body.single-post .haam-mag-single {
	background: #ffffff !important;
	background-color: #ffffff !important;
	background-image: none !important;
}

body.single-post .wp-site-blocks::before,
body.single-post .wp-site-blocks::after {
	display: none !important;
}

body.single-post .haam-site-header,
body.single-post .haam-site-footer,
body.single-post footer.wp-block-template-part:has(.haam-site-footer) {
	background: transparent !important;
	background-color: transparent !important;
}

body.single-post .haam-site-footer__atmosphere {
	display: none !important;
}

/*
 * Podcast singles: same full-white reading canvas as magazine articles.
 * Archive/list cast pages keep brand ground via transparent canvas.
 */
body.single-haam_podcast,
body.single-haam_podcast .wp-site-blocks,
body.single-haam_podcast .haam-cast-page,
body.single-haam_podcast .haam-cast.haam-cast-single {
	background: #ffffff !important;
	background-color: #ffffff !important;
	background-image: none !important;
}

body.single-haam_podcast .wp-site-blocks::before,
body.single-haam_podcast .wp-site-blocks::after {
	display: none !important;
}

body.single-haam_podcast .haam-site-header,
body.single-haam_podcast .haam-site-footer,
body.single-haam_podcast footer.wp-block-template-part:has(.haam-site-footer) {
	background: transparent !important;
	background-color: transparent !important;
}

body.single-haam_podcast .haam-site-footer__atmosphere {
	display: none !important;
}

/* RTL-friendly alignment aliases used in English patterns */
.has-text-align-left {
	text-align: right;
}

.has-text-align-right {
	text-align: left;
}

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

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

html {
	box-sizing: border-box;
}

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

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

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

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

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

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

/* Home canvas ? transparent shell; sitewide ground/atmosphere on .wp-site-blocks */
.haam-front-canvas {
	--haam-ground: #e9e9eb;
	--wp--preset--color--bg-light: #e9e9eb;
	--wp--preset--color--white: #e9e9eb;
	--wp--preset--color--primary-light: #e9e9eb;
	background: transparent !important;
	background-color: transparent !important;
}

/* Below-fold front sections: skip early layout/paint (Speed Index / main thread). */
.haam-front-main > .haam-intro,
.haam-front-main > .haam-home-features,
.haam-front-main > .haam-home-svc,
.haam-front-main > .haam-home-partners,
.haam-front-main > .haam-home-caps,
.haam-front-main > .haam-home-collab,
.haam-front-main > .haam-home-team,
.haam-front-main > .haam-home-mag,
.haam-front-main > .haam-home-faq,
.haam-front-main > .haam-home-aima,
.haam-front-main > .haam-home-contact {
	content-visibility: auto;
	contain-intrinsic-size: auto 720px;
}

/* Transparent bands so site ground + atmosphere show through end-to-end */
.haam-front-canvas .haam-front-main,
.haam-front-canvas .haam-topic-banners,
.haam-front-canvas .haam-intro,
.haam-front-canvas .haam-home-features,
.haam-front-canvas .haam-home-svc,
.haam-front-canvas .haam-home-partners,
.haam-front-canvas .haam-home-caps,
.haam-front-canvas .haam-home-faq,
.haam-front-canvas .haam-home-aima,
.haam-front-canvas .haam-home-collab,
.haam-front-canvas .haam-home-mag,
.haam-front-canvas .haam-home-team,
.haam-front-canvas .haam-home-contact,
.haam-front-canvas .haam-front-main > .wp-block-group,
.haam-front-canvas .haam-front-main > .wp-block-group.alignfull,
.haam-front-canvas .wp-block-group.alignfull.has-background:not(.haam-site-header),
.haam-front-canvas .wp-block-group.alignwide.has-background,
.haam-front-canvas .has-white-background-color:not(.haam-site-header),
.haam-front-canvas .has-bg-light-background-color,
.haam-front-canvas .has-primary-light-background-color {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
}

/* Feature icon circles keep white chrome on the shared ground */
.haam-front-canvas .haam-home-features .wp-block-group.has-white-background-color[style*="min-height:44px"] {
	background: #ffffff !important;
	background-color: #ffffff !important;
}

/* Home partners ? same language as home services */
.haam-home-partners {
	padding: clamp(72px, 10vw, 110px) 0;
	border-top: 1px solid rgba(26, 21, 50, 0.12);
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
	color: #1a1532;
}

.haam-home-partners__shell {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
}

.haam-home-partners__head {
	margin-bottom: 40px;
}

.haam-home-partners__copy {
	max-width: min(48rem, 100%);
}

.haam-home-partners__eyebrow {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #5c5770;
}

.haam-home-partners__title {
	margin: 0 0 12px;
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
	color: #1a1532;
}

.haam-home-partners__lead {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.85;
	color: #5c5770;
}

.haam-home-partners__carousel {
	width: 100%;
}

.haam-home-partners__viewport {
	width: 100%;
	overflow: visible;
}

.haam-home-partners__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(28px, 5vw, 56px);
}

.haam-home-partners__item {
	margin: 0;
	flex: 0 0 auto;
}

.haam-home-partners__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	overflow: visible;
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s ease;
}

.haam-home-partners__logo:hover {
	transform: translateY(-2px);
}

.haam-home-partners__logo picture {
	display: contents;
	background: transparent !important;
}

.haam-home-partners__logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 200px;
	max-height: 120px;
	object-fit: contain;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	opacity: 0.95;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.haam-home-partners__logo:hover img {
	opacity: 1;
	transform: scale(1.04);
}

@media (max-width: 700px) {
	.haam-home-partners__shell {
		width: min(1120px, calc(100% - 32px));
	}

	.haam-home-partners__head {
		margin-bottom: 28px;
	}

	.haam-home-partners.is-partners-carousel .haam-home-partners__viewport {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		touch-action: pan-x;
		scrollbar-width: none;
		cursor: grab;
	}

	.haam-home-partners.is-partners-carousel .haam-home-partners__viewport::-webkit-scrollbar {
		display: none;
	}

	.haam-home-partners.is-partners-carousel .haam-home-partners__viewport:active {
		cursor: grabbing;
	}

	.haam-home-partners.is-partners-carousel .haam-home-partners__grid {
		flex-wrap: nowrap;
		flex-direction: row-reverse;
		justify-content: flex-start;
		gap: 12px;
		width: max-content;
		min-width: 100%;
		transform: none !important;
	}

	.haam-home-partners.is-partners-carousel .haam-home-partners__item {
		flex: 0 0 auto;
		width: calc((min(100vw, 1120px) - 32px - 36px) / 4);
		max-width: none;
		scroll-snap-align: start;
	}

	.haam-home-partners.is-partners-carousel .haam-home-partners__logo {
		touch-action: pan-x;
		-webkit-user-drag: none;
		user-select: none;
		background: transparent;
		width: 100%;
		min-height: 56px;
	}

	.haam-home-partners.is-partners-carousel .haam-home-partners__logo picture,
	.haam-home-partners.is-partners-carousel .haam-home-partners__logo img {
		display: block;
		width: auto;
		max-width: 100%;
		height: auto;
		max-height: 56px;
		margin-inline: auto;
		background: transparent;
		pointer-events: none;
		-webkit-user-drag: none;
	}
}

/* Features featured card — soft yellow wash instead of purple */
.haam-front-canvas .features-featured-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(235, 209, 26, 0.28) 100%) !important;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(235, 209, 26, 0.28) 100%) !important;
}

/* Small feature icons are purple PNGs — force to ink (not the featured illustration). */
.haam-front-canvas .haam-home-features .wp-block-column:not(.features-featured-card) .wp-block-image img,
.haam-front-canvas .haam-home-features .features-featured-card > .wp-block-group .wp-block-image img {
	filter: brightness(0);
}

.haam-front-canvas .haam-home-features .features-featured-card figure.has-custom-border img,
.haam-front-canvas .haam-home-features .features-featured-card picture img {
	filter: none !important;
}

/* Feature cards + icon circles — same ink border as home caps */
.haam-home-features .wp-block-column.has-border-color,
.haam-home-features .features-featured-card,
.haam-home-features .wp-block-group.has-white-background-color[style*="min-height:44px"] {
	border-color: #1a1532 !important;
}

/* Same shell as services / partners (1120px, 24px gutters) */
.haam-front-canvas .haam-home-features.has-global-padding {
	padding-right: 0 !important;
	padding-left: 0 !important;
}

.haam-front-canvas .haam-home-features.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: min(1120px, calc(100% - 48px)) !important;
	width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
}

@media (max-width: 700px) {
	.haam-front-canvas .haam-home-features.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
		max-width: min(1120px, calc(100% - 32px)) !important;
	}

	/* Keep feature card pairs in one row (like home caps) */
	.haam-home-features .wp-block-column > .wp-block-columns.is-not-stacked-on-mobile {
		gap: 12px !important;
	}

	.haam-home-features .wp-block-column > .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
		padding: 18px 14px !important;
		box-sizing: border-box;
	}

	.haam-home-features .wp-block-column > .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column .wp-block-heading {
		font-size: 14px !important;
		margin-bottom: 6px !important;
	}

	.haam-home-features .wp-block-column > .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column p {
		font-size: 12px !important;
		line-height: 1.5 !important;
	}

	.haam-home-features .wp-block-column > .wp-block-columns.is-not-stacked-on-mobile .wp-block-group[style*="min-height:44px"] {
		min-height: 34px !important;
		width: 34px;
		flex-basis: 34px !important;
	}
}

.haam-home-features__eyebrow {
	margin: 0 0 12px !important;
	text-align: right !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em !important;
	line-height: 1.4 !important;
	color: #5c5770 !important;
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
}

.haam-home-features > .wp-block-heading {
	text-align: right !important;
	color: #1a1532 !important;
}

.haam-home-features .wp-block-column > .wp-block-heading,
.haam-home-features .features-featured-card > .wp-block-heading {
	color: #1a1532 !important;
}

.haam-home-features .wp-block-column > .wp-block-paragraph,
.haam-home-features .features-featured-card > .wp-block-paragraph {
	color: #4e4e4e !important;
}

/* Legacy pill eyebrow leftover from older pattern cache */
.haam-home-features > .is-inline-flex {
	display: none !important;
}

/* Home capabilities — same language as services / partners */
.haam-home-caps {
	padding: clamp(72px, 10vw, 110px) 0;
	border-top: 1px solid rgba(26, 21, 50, 0.12);
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
	color: #1a1532;
}

.haam-home-caps__shell {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
}

.haam-home-caps__head {
	margin-bottom: 40px;
}

.haam-home-caps__copy {
	max-width: min(48rem, 100%);
}

.haam-home-caps__eyebrow {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #5c5770;
}

.haam-home-caps__title {
	margin: 0 0 12px;
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
	color: #1a1532;
}

.haam-home-caps__lead {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.85;
	color: #5c5770;
}

.haam-home-caps__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 14px;
}

.haam-home-caps__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	height: 100%;
	padding: 32px 28px;
	border: 1px solid #1a1532;
	border-radius: 8px;
	background: transparent;
	box-sizing: border-box;
	transition: background 0.25s ease, transform 0.25s ease;
}

.haam-home-caps__card:hover {
	background: rgba(255, 255, 255, 0.45);
	transform: translateY(-2px);
}

.haam-home-caps__card-title {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: #1a1532;
}

.haam-home-caps__card-desc {
	font-size: 14px;
	line-height: 1.6;
	color: #5c5770;
}

@media (max-width: 700px) {
	.haam-home-caps__shell {
		width: min(1120px, calc(100% - 32px));
	}

	.haam-home-caps__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.haam-home-caps__card {
		padding: 22px 16px;
		gap: 8px;
		height: 100%;
	}

	.haam-home-caps__card-title {
		font-size: 15px;
	}

	.haam-home-caps__card-desc {
		font-size: 12.5px;
		line-height: 1.55;
	}
}

/* Home — insights teaser slider (بینش) */
.haam-home-aima {
	padding: clamp(72px, 10vw, 110px) 0;
	border-top: 1px solid rgba(26, 21, 50, 0.12);
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
	color: #1a1532;
}

.haam-home-aima__shell {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
}

.haam-home-aima__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.haam-home-aima__controls {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.haam-home-aima__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(26, 21, 50, 0.2);
	border-radius: 6px;
	background: #fff;
	color: #1a1532;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.haam-home-aima__nav:hover {
	background: #ebd11a;
	border-color: #1a1532;
}

.haam-home-aima__dots {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.haam-home-aima__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(26, 21, 50, 0.22);
	cursor: pointer;
}

.haam-home-aima__dot.is-active {
	background: #1a1532;
}

.haam-home-aima__viewport {
	display: grid;
	isolation: isolate;
}

.haam-home-aima__board {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	grid-template-rows: 1fr auto;
	gap: clamp(28px, 4vw, 48px);
	align-items: stretch;
	min-height: 424px;
	padding: clamp(28px, 4vw, 40px);
	border: 1px solid #1a1532;
	border-radius: 8px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(235, 209, 26, 0.22) 100%);
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 0;
	transition: opacity 0.45s ease, visibility 0.45s ease;
}

.haam-home-aima__board.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.haam-home-aima__board--roi {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(26, 21, 50, 0.08) 100%);
}

.haam-home-aima__board--glossary {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(235, 209, 26, 0.14) 55%, rgba(26, 21, 50, 0.06) 100%);
}

.haam-home-aima__board--radar {
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.76) 0%, rgba(26, 21, 50, 0.1) 100%);
}

.haam-home-aima__copy {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.haam-home-aima__meter,
.haam-home-aima__viz {
	grid-column: 2;
	grid-row: 1 / -1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 8px 4px;
}

.haam-home-aima__cta {
	grid-column: 1;
	grid-row: 2;
	justify-self: start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 26px;
	border: 1px solid #1a1532;
	border-radius: 6px;
	background: #ebd11a;
	color: #1a1532 !important;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.haam-home-aima__eyebrow {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #5c5770;
}

.haam-home-aima__title {
	margin: 0 0 12px;
	font-size: clamp(1.7rem, 3.5vw, 2.35rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
	color: #1a1532;
}

.haam-home-aima__lead {
	margin: 0 0 22px;
	max-width: 36em;
	font-size: 1.02rem;
	line-height: 1.85;
	color: #5c5770;
}

.haam-home-aima__points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.haam-home-aima__points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #1a1532;
}

.haam-home-aima__tick {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	margin-top: 0.45em;
	border-radius: 2px;
	background: #ebd11a;
	box-shadow: 0 0 0 1px #1a1532;
}

.haam-home-aima__cta:hover {
	background: #f0d94a;
	transform: translateY(-1px);
}

.haam-home-aima__meter-label {
	margin: 0 0 16px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #5c5770;
}

.haam-home-aima__levels {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	min-height: 160px;
}

.haam-home-aima__level {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.haam-home-aima__level-bar {
	display: block;
	width: 100%;
	max-width: 44px;
	height: calc(28px + var(--level, 1) * 22px);
	border: 1px solid #1a1532;
	border-radius: 6px 6px 2px 2px;
	background: rgba(26, 21, 50, 0.08);
	transform-origin: bottom center;
	transition: background 0.25s ease, transform 0.35s ease;
}

.haam-home-aima__level.is-pulse .haam-home-aima__level-bar {
	background: #ebd11a;
	animation: haam-aima-pulse 2.4s ease-in-out infinite;
}

.haam-home-aima__level-n {
	font-size: 0.85rem;
	font-weight: 800;
	color: #1a1532;
	line-height: 1;
}

.haam-home-aima__level-name {
	font-size: 0.72rem;
	font-weight: 600;
	color: #5c5770;
	text-align: center;
	line-height: 1.35;
}

.haam-home-aima__meter-hint {
	margin: 18px 0 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: #1a1532;
	text-align: center;
}

/* ROI visual */
.haam-home-aima__calc-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 16px;
	border: 1px solid #1a1532;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.88);
}

.haam-home-aima__calc-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 6px;
	background: rgba(26, 21, 50, 0.05);
	font-size: 0.88rem;
	color: #5c5770;
}

.haam-home-aima__calc-row strong {
	font-size: 1.05rem;
	font-weight: 800;
	color: #1a1532;
	font-variant-numeric: tabular-nums;
}

.haam-home-aima__calc-row--accent {
	background: #ebd11a;
	color: #1a1532;
}

.haam-home-aima__calc-row--accent strong {
	color: #1a1532;
}

/* Glossary visual */
.haam-home-aima__chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.haam-home-aima__chips li {
	padding: 0;
	border: 1px solid #1a1532;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	font-weight: 700;
	color: #1a1532;
}

.haam-home-aima__chips li a,
.haam-home-aima__chips li span {
	display: block;
	padding: 10px 14px;
	color: inherit;
	text-decoration: none;
}

.haam-home-aima__chips li a:hover,
.haam-home-aima__chips li a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.haam-home-aima__chips li:nth-child(odd) {
	background: #ebd11a;
}

/* Radar visual */
.haam-home-aima__radar {
	position: relative;
	width: min(220px, 100%);
	aspect-ratio: 1;
	margin: 0 auto;
	border-radius: 50%;
	border: 1px solid rgba(26, 21, 50, 0.2);
	background:
		radial-gradient(circle at center, rgba(235, 209, 26, 0.2) 0%, transparent 55%),
		rgba(255, 255, 255, 0.7);
}

.haam-home-aima__radar-ring {
	position: absolute;
	inset: calc(18% * (4 - var(--r, 1)) / 3);
	border: 1px dashed rgba(26, 21, 50, 0.22);
	border-radius: 50%;
}

.haam-home-aima__radar-dot {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 1px solid #1a1532;
	background: rgba(26, 21, 50, 0.35);
	transform: translate(-50%, -50%);
}

.haam-home-aima__radar-dot.is-hot {
	width: 16px;
	height: 16px;
	background: #ebd11a;
	box-shadow: 0 0 0 4px rgba(235, 209, 26, 0.28);
}

.haam-home-aima__progress {
	margin-top: 14px;
	height: 3px;
	border-radius: 999px;
	background: rgba(26, 21, 50, 0.1);
	overflow: hidden;
}

.haam-home-aima__progress-bar {
	display: block;
	height: 100%;
	width: 100%;
	background: #1a1532;
	transform: scaleX(0);
	transform-origin: right center;
}

.haam-home-aima.is-paused .haam-home-aima__progress-bar {
	animation-play-state: paused;
}

@keyframes haam-aima-pulse {
	0%,
	100% {
		transform: scaleY(1);
	}
	50% {
		transform: scaleY(1.06);
	}
}

@keyframes haam-ins-progress {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

@media (max-width: 800px) {
	.haam-home-aima__board {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		min-height: 0;
	}

	.haam-home-aima__copy {
		grid-column: 1;
		grid-row: 1;
	}

	.haam-home-aima__meter,
	.haam-home-aima__viz {
		grid-column: 1;
		grid-row: 2;
	}

	.haam-home-aima__cta {
		grid-column: 1;
		grid-row: 3;
		justify-self: center;
		margin-top: 4px;
	}

	.haam-home-aima__levels {
		min-height: 140px;
	}
}

@media (max-width: 480px) {
	.haam-home-aima__shell {
		width: min(1120px, calc(100% - 32px));
	}

	.haam-home-aima__level-name {
		font-size: 0.65rem;
	}

	.haam-home-aima__head {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.haam-home-aima__level.is-pulse .haam-home-aima__level-bar {
		animation: none;
	}

	.haam-home-aima__cta:hover {
		transform: none;
	}

	.haam-home-aima__board {
		transition: none;
	}

	.haam-home-aima__progress-bar {
		animation: none !important;
		transform: scaleX(1);
	}
}

/* Home collaboration — expect + audience (replaces old pricing cards) */
.haam-home-collab {
	padding: clamp(72px, 10vw, 110px) 0;
	border-top: 1px solid rgba(26, 21, 50, 0.12);
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
	color: #1a1532;
}

.haam-home-collab__shell {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: clamp(56px, 8vw, 88px);
}

.haam-home-collab__expect {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
}

.haam-home-collab__eyebrow {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #5c5770;
}

.haam-home-collab__title {
	margin: 0 0 14px;
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
	color: #1a1532;
}

.haam-home-collab__lead {
	margin: 0 0 28px;
	font-size: 1.02rem;
	line-height: 1.85;
	color: #5c5770;
}

.haam-home-collab__bullets {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.haam-home-collab__bullets li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.98rem;
	line-height: 1.75;
	color: #5c5770;
}

.haam-home-collab__bullets strong {
	display: inline;
	font-weight: 700;
	color: #1a1532;
	margin-inline-end: 4px;
}

.haam-home-collab__bullet {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	margin-top: 0.55em;
	border-radius: 50%;
	background: #ebd11a;
	box-shadow: 0 0 0 3px rgba(235, 209, 26, 0.22);
}

.haam-home-collab__note {
	margin: 0 0 22px;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #5c5770;
}

.haam-home-collab__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 22px;
	border: 1px solid #1a1532;
	border-radius: 6px;
	background: #ebd11a;
	color: #1a1532;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.haam-home-collab__cta:hover {
	background: #f0d94a;
	color: #1a1532;
	transform: translateY(-1px);
}

.haam-home-collab__visual {
	position: relative;
	min-height: 320px;
}

.haam-home-collab__panel {
	position: relative;
	height: 100%;
	min-height: 320px;
	border-radius: 18px;
	overflow: hidden;
	background: #1a1532;
	box-shadow: 0 24px 48px rgba(26, 21, 50, 0.18);
	border: 1px solid rgba(26, 21, 50, 0.16);
}

.haam-home-collab__video {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	object-position: center;
}

.haam-home-collab__panel::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(160deg, rgba(26, 21, 50, 0.18) 0%, transparent 45%),
		linear-gradient(0deg, rgba(26, 21, 50, 0.22) 0%, transparent 40%);
}

.haam-home-collab__audience-title {
	margin: 0 0 28px;
	font-size: clamp(1.55rem, 3vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
	color: #1a1532;
}

.haam-home-collab__audience-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 48px);
}

.haam-home-collab__audience-grid li {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.haam-home-collab__audience-grid strong {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #1a1532;
}

.haam-home-collab__audience-grid span {
	font-size: 0.95rem;
	line-height: 1.75;
	color: #5c5770;
}

@media (max-width: 900px) {
	.haam-home-collab__shell {
		width: min(1120px, calc(100% - 32px));
	}

	.haam-home-collab__expect {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.haam-home-collab__bullets {
		padding-inline: 14px;
	}

	.haam-home-collab__bullets li {
		padding-inline: 2px;
	}

	.haam-home-collab__visual {
		order: -1;
		min-height: 240px;
	}

	.haam-home-collab__panel,
	.haam-home-collab__video {
		min-height: 240px;
	}

	.haam-home-collab__audience-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.haam-home-collab__video {
		display: none;
	}

	.haam-home-collab__panel {
		background-color: #1a1532;
		background-image: image-set(
			url("assets/videos/haam-collab-poster.webp") type("image/webp"),
			url("assets/videos/haam-collab-poster.jpg") type("image/jpeg")
		);
		background-position: center;
		background-size: cover;
		background-repeat: no-repeat;
	}
}

/* Home team — same card language as capabilities */
.haam-home-team {
	padding: clamp(72px, 10vw, 110px) 0;
	border-top: 1px solid rgba(26, 21, 50, 0.12);
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
	color: #1a1532;
}

.haam-home-team__shell {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
}

.haam-home-team__head {
	margin-bottom: 40px;
}

.haam-home-team__copy {
	max-width: min(48rem, 100%);
}

.haam-home-team__eyebrow {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #5c5770;
}

.haam-home-team__title {
	margin: 0 0 12px;
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
	color: #1a1532;
}

.haam-home-team__lead {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.85;
	color: #5c5770;
}

.haam-home-team__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 14px;
}

.haam-home-team__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	height: 100%;
	padding: 32px 28px;
	border: 1px solid #1a1532;
	border-radius: 8px;
	background: transparent;
	box-sizing: border-box;
	transition: background 0.25s ease, transform 0.25s ease;
}

.haam-home-team__card:hover {
	background: rgba(255, 255, 255, 0.45);
	transform: translateY(-2px);
}

.haam-home-team__card-title {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: #1a1532;
}

.haam-home-team__card-desc {
	font-size: 14px;
	line-height: 1.6;
	color: #5c5770;
}

@media (max-width: 700px) {
	.haam-home-team__shell {
		width: min(1120px, calc(100% - 32px));
	}

	.haam-home-team__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.haam-home-team__card {
		padding: 22px 16px;
	}
}

/* Home — latest magazine posts (between team & FAQ) */
.haam-home-mag {
	padding: clamp(72px, 10vw, 110px) 0;
	border-top: 1px solid rgba(26, 21, 50, 0.12);
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
	color: #1a1532;
}

.haam-home-mag__shell {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
}

.haam-home-mag__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 20px 28px;
	margin-bottom: 36px;
}

.haam-home-mag__copy {
	flex: 1 1 auto;
	max-width: min(40rem, 100%);
	min-width: min(16rem, 100%);
}

.haam-home-mag__eyebrow {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #5c5770;
}

.haam-home-mag__title {
	margin: 0 0 12px;
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
	color: #1a1532;
}

.haam-home-mag__lead {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.85;
	color: #5c5770;
}

.haam-home-mag__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin-inline-start: auto; /* pin to physical left in RTL */
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid #1a1532;
	border-radius: 6px;
	background: #ebd11a;
	color: #1a1532;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.haam-home-mag__all:hover {
	background: #f0d94a;
	color: #1a1532;
	transform: translateY(-1px);
}

.haam-home-mag__board {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 18px;
	align-items: stretch;
}

.haam-home-mag__feature {
	display: flex;
	flex-direction: column;
	margin: 0;
	border: 1px solid #1a1532;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.28);
	transition: transform 0.25s ease, background 0.25s ease;
}

.haam-home-mag__feature:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.5);
}

.haam-home-mag__feature-media {
	position: relative;
	display: block;
	aspect-ratio: var(--haam-thumb-ratio);
	overflow: hidden;
	background: #1a1532;
	text-decoration: none;
}

.haam-home-mag__feature-img,
.haam-home-mag__feature-fallback {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.haam-home-mag__feature-fallback {
	background:
		radial-gradient(circle at 30% 20%, rgba(235, 209, 26, 0.55), transparent 55%),
		linear-gradient(145deg, #2a2440 0%, #1a1532 60%);
}

.haam-home-mag__feature:hover .haam-home-mag__feature-img {
	transform: scale(1.04);
}

.haam-home-mag__index {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-start: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border-radius: 8px;
	background: #ebd11a;
	color: #1a1532;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	box-shadow: 0 10px 24px rgba(26, 21, 50, 0.18);
}

.haam-home-mag__feature-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px 22px 24px;
	flex: 1 1 auto;
}

.haam-home-mag__chip {
	align-self: flex-start;
	display: inline-flex;
	padding: 4px 10px;
	border: 1px solid #1a1532;
	border-radius: 999px;
	background: #ebd11a;
	color: #1a1532;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.4;
}

.haam-home-mag__feature-title {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.55rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.haam-home-mag__feature-title a {
	color: #1a1532;
	text-decoration: none;
}

.haam-home-mag__feature-title a:hover {
	color: #1a1532;
	text-decoration: underline;
	text-decoration-color: #ebd11a;
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

.haam-home-mag__feature-excerpt {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.75;
	color: #5c5770;
}

.haam-home-mag__feature-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 6px;
	font-size: 0.88rem;
	color: #5c5770;
}

.haam-home-mag__read {
	color: #1a1532;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid #ebd11a;
}

.haam-home-mag__read:hover {
	color: #1a1532;
}

.haam-home-mag__rail {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #1a1532;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.22);
}

.haam-home-mag__rail-item {
	display: flex;
	flex: 1 1 0;
	min-height: 0;
	margin: 0;
	border-bottom: 1px solid rgba(26, 21, 50, 0.14);
}

.haam-home-mag__rail-item:last-child {
	border-bottom: 0;
}

.haam-home-mag__rail-link {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 10px;
	align-items: center;
	flex: 1 1 auto;
	width: 100%;
	min-height: 100%;
	padding: 12px 14px;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s ease;
}

.haam-home-mag__rail-link:hover {
	background: rgba(235, 209, 26, 0.18);
}

.haam-home-mag__rail-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 7px;
	border: 1px solid #1a1532;
	background: transparent;
	color: #1a1532;
	font-size: 0.82rem;
	font-weight: 800;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.haam-home-mag__rail-link:hover .haam-home-mag__rail-num {
	background: #ebd11a;
	border-color: #1a1532;
}

.haam-home-mag__rail-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.haam-home-mag__rail-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: calc(1.4em * 2);
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.4;
	color: #1a1532;
}

.haam-home-mag__rail-meta {
	font-size: 0.78rem;
	line-height: 1.4;
	color: #5c5770;
}

.haam-home-mag__empty {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 28px 24px;
	border: 1px dashed rgba(26, 21, 50, 0.35);
	border-radius: 10px;
}

.haam-home-mag__empty p {
	margin: 0;
	color: #5c5770;
	font-size: 1rem;
	line-height: 1.7;
}

@media (max-width: 900px) {
	.haam-home-mag__board {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.haam-home-mag__shell {
		width: min(1120px, calc(100% - 32px));
	}

	.haam-home-mag__head {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 28px;
	}

	.haam-home-mag__all {
		margin-inline-start: auto;
		width: fit-content;
	}

	.haam-home-mag__feature-body {
		padding: 18px 16px 20px;
	}

	.haam-home-mag__rail-link {
		grid-template-columns: 36px 1fr;
		padding: 12px 12px;
		gap: 10px;
	}

	.haam-home-mag__rail-num {
		width: 30px;
		height: 30px;
		font-size: 0.78rem;
	}

	.haam-home-mag__rail-title {
		font-size: 0.88rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.haam-home-mag__feature,
	.haam-home-mag__feature-img,
	.haam-home-mag__all,
	.haam-home-mag__rail-link,
	.haam-home-mag__rail-num {
		transition: none;
	}

	.haam-home-mag__feature:hover {
		transform: none;
	}

	.haam-home-mag__feature:hover .haam-home-mag__feature-img {
		transform: none;
	}
}

/* Home contact / #moshavere + /contact/ */
.haam-home-contact {
	padding: clamp(72px, 10vw, 110px) 0;
	border-top: 1px solid rgba(26, 21, 50, 0.12);
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
	color: #1a1532;
	scroll-margin-top: 96px;
}

.haam-home-contact--page {
	--contact-ground: #ffffff;
	--contact-ink: #1a1532;
	--contact-muted: #5c5770;
	--contact-line: rgba(26, 21, 50, 0.22);
	border-top: 0;
	padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 72px);
	min-height: 0;
	background: transparent;
}

.haam-contact-page .haam-home-contact {
	background: transparent;
}

/* Contact page canvas — normal header flow (not homepage overlay) */
.haam-contact-canvas {
	background: transparent !important;
	background-color: transparent !important;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.haam-contact-canvas > .wp-block-template-part:has(.haam-site-header),
.haam-contact-canvas > header.wp-block-template-part {
	position: relative !important;
	inset: auto !important;
	z-index: 20;
	width: 100%;
}

.haam-contact-canvas .haam-site-header {
	background: transparent !important;
	background-color: transparent !important;
	border-bottom-color: rgba(26, 21, 50, 0.12) !important;
	box-shadow: none;
}

.haam-contact-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content {
	color: #1a1532 !important;
}

.haam-contact-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content:hover,
.haam-contact-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content:focus-visible {
	color: #1a1532 !important;
	opacity: 0.72;
}

.haam-contact-canvas .haam-site-header__logo img {
	filter: none;
}

.haam-contact-canvas .haam-site-header .wp-block-navigation__responsive-container-open,
.haam-contact-canvas .haam-site-header .wp-block-navigation__responsive-container-open svg {
	color: #1a1532;
	fill: #1a1532;
}

.haam-contact-canvas .haam-contact-page {
	flex: 1 1 auto;
	background: transparent !important;
}

.haam-contact-canvas .haam-site-footer {
	/* Continuous with page ground — same as home. */
	background: transparent !important;
}

/* Contact page — staged card (footer ground) */
.haam-contact-stage {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
	padding: clamp(36px, 5vw, 64px) clamp(28px, 4.5vw, 56px) clamp(40px, 5vw, 68px);
	border-radius: 28px;
	background: var(--contact-ground, #ffffff);
	box-shadow:
		0 0 0 1px rgba(26, 21, 50, 0.08),
		0 24px 60px rgba(20, 18, 24, 0.08);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.haam-contact-stage::before {
	content: "";
	position: absolute;
	inset-inline-end: -12%;
	inset-block-start: -18%;
	width: min(420px, 55vw);
	height: min(420px, 55vw);
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(235, 209, 26, 0.42) 0%,
		rgba(235, 209, 26, 0.16) 40%,
		transparent 70%
	);
	pointer-events: none;
	z-index: 0;
	animation: haam-contact-glow 7s ease-in-out infinite alternate;
}

.haam-contact-stage__heading {
	position: relative;
	z-index: 1;
	margin: 0 0 clamp(28px, 4vw, 40px);
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--contact-ink, #1a1532);
	animation: haam-contact-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.haam-contact-stage__shell {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(36px, 6vw, 72px);
	align-items: stretch;
}

.haam-contact-stage__copy {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	height: 100%;
	animation: haam-contact-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.haam-contact-stage__title {
	margin: 0 0 22px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.12em;
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.25;
	color: var(--contact-ink, #1a1532);
}

.haam-contact-stage__line {
	display: block;
	padding-inline-start: 0;
	font-size: inherit;
}

.haam-contact-stage__meta {
	margin: 8px 0 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.haam-contact-stage__address,
.haam-contact-stage__phone {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 0.98rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--contact-muted, #5c5770);
}

.haam-contact-stage__meta-ico {
	flex: 0 0 auto;
	display: inline-flex;
	margin-top: 2px;
	color: var(--contact-ink, #1a1532);
}

.haam-contact-stage__phone a {
	color: var(--contact-ink, #1a1532);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1.5px solid rgba(26, 21, 50, 0.28);
	transition: border-color 0.2s ease;
}

.haam-contact-stage__phone a:hover {
	border-bottom-color: #ebd11a;
}

.haam-contact-stage__socials {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.haam-contact-stage__socials a,
.haam-contact-stage__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--contact-ink, #1a1532);
	border-radius: 50%;
	color: var(--contact-ink, #1a1532);
	background: rgba(255, 255, 255, 0.45);
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.haam-contact-stage__socials a:hover,
.haam-contact-stage__social-link:hover {
	background: #ebd11a;
	color: var(--contact-ink, #1a1532);
	transform: translateY(-2px);
}

.haam-contact-stage__socials svg {
	display: block;
	width: 18px;
	height: 18px;
}

.haam-contact-stage__socials .haam-social-icon-img,
.haam-contact-stage__socials img {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
	filter: brightness(0);
}

.haam-contact-stage__panel {
	animation: haam-contact-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.haam-contact-stage__form {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.haam-contact-stage__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 28px;
}

.haam-contact-stage__field {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--contact-ink, #1a1532);
}

.haam-contact-stage__field input,
.haam-contact-stage__field textarea {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 0 12px;
	border: 0;
	border-bottom: 1.5px solid var(--contact-line, rgba(26, 21, 50, 0.22));
	border-radius: 0;
	background: transparent;
	color: var(--contact-ink, #1a1532);
	font: inherit;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: none;
}

.haam-contact-stage__field textarea {
	resize: vertical;
	min-height: 96px;
}

.haam-contact-stage__field input::placeholder,
.haam-contact-stage__field textarea::placeholder {
	color: rgba(92, 87, 112, 0.72);
}

.haam-contact-stage__field input:focus,
.haam-contact-stage__field textarea:focus {
	border-bottom-color: var(--contact-ink, #1a1532);
	box-shadow: 0 2px 0 0 #ebd11a;
}

.haam-contact-stage__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	min-height: 48px;
	padding: 12px 28px;
	margin-top: 4px;
	margin-inline-start: auto;
	border: 1px solid var(--contact-ink, #1a1532);
	border-radius: 999px;
	background: #ebd11a;
	color: var(--contact-ink, #1a1532);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.haam-contact-stage__submit:hover {
	background: #f0d94a;
	transform: translateY(-1px);
}

@keyframes haam-contact-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes haam-contact-glow {
	from {
		transform: translate(0, 0) scale(1);
		opacity: 0.85;
	}
	to {
		transform: translate(-6%, 8%) scale(1.06);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.haam-contact-stage::before,
	.haam-contact-stage__heading,
	.haam-contact-stage__copy,
	.haam-contact-stage__panel {
		animation: none;
	}
}

@media (max-width: 900px) {
	.haam-contact-stage {
		width: min(1180px, calc(100% - 24px));
		padding: 28px 22px 36px;
		border-radius: 22px;
	}

	.haam-contact-stage__shell {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.haam-contact-stage__row {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.haam-contact-stage__submit {
		width: auto;
		align-self: flex-end;
		margin-inline-start: auto;
	}
}

.haam-home-contact__shell {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(36px, 6vw, 72px);
	align-items: start;
}

.haam-home-contact__eyebrow {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #5c5770;
}

.haam-home-contact__title {
	margin: 0 0 14px;
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
	color: #1a1532;
}

.haam-home-contact__lead {
	margin: 0 0 22px;
	max-width: 28rem;
	font-size: 1.02rem;
	line-height: 1.85;
	color: #5c5770;
}

.haam-home-contact__points {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.haam-home-contact__points li {
	position: relative;
	padding-inline-start: 18px;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #5c5770;
}

.haam-home-contact__points li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ebd11a;
}

.haam-home-contact__mail {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	text-align: right;
}

.haam-home-contact__mail a {
	display: inline-block;
	direction: ltr;
	unicode-bidi: isolate;
	color: #1a1532;
	text-decoration: none;
	border-bottom: 1px solid rgba(26, 21, 50, 0.25);
}

.haam-home-contact__mail a:hover {
	border-bottom-color: #1a1532;
}

.haam-home-contact__panel {
	padding: 28px;
	border: 1px solid #1a1532;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.4);
}

.haam-home-contact__flash {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 6px;
	font-size: 0.92rem;
	line-height: 1.6;
}

.haam-home-contact__flash--ok {
	background: rgba(47, 168, 79, 0.12);
	color: #1a5c2e;
}

.haam-home-contact__flash--err {
	background: rgba(229, 72, 77, 0.12);
	color: #8a1f24;
}

.haam-home-contact__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.haam-home-contact__honey {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.haam-home-contact__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.haam-home-contact__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: #1a1532;
}

.haam-home-contact__field input,
.haam-home-contact__field select,
.haam-home-contact__field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid rgba(26, 21, 50, 0.22);
	border-radius: 6px;
	background: #fff;
	color: #1a1532;
	font: inherit;
	font-weight: 400;
	font-size: 0.95rem;
	line-height: 1.5;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.haam-home-contact__field textarea {
	resize: vertical;
	min-height: 120px;
}

.haam-home-contact__field input:focus,
.haam-home-contact__field select:focus,
.haam-home-contact__field textarea:focus {
	border-color: #1a1532;
	box-shadow: 0 0 0 3px rgba(235, 209, 26, 0.35);
}

.haam-home-contact__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	min-height: 48px;
	padding: 12px 26px;
	border: 1px solid #1a1532;
	border-radius: 6px;
	background: #ebd11a;
	color: #1a1532;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.haam-home-contact__submit:hover {
	background: #f0d94a;
	transform: translateY(-1px);
}

@media (max-width: 860px) {
	.haam-home-contact__shell {
		width: min(1120px, calc(100% - 32px));
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.haam-home-contact__row {
		grid-template-columns: 1fr;
	}

	.haam-home-contact__panel {
		padding: 20px 16px;
	}

	.haam-home-contact__submit {
		width: 100%;
		align-self: stretch;
	}
}

/* Home FAQ — two-column accordion, same ground language as partners/caps */
.haam-home-faq {
	padding: clamp(72px, 10vw, 110px) 0;
	border-top: 1px solid rgba(26, 21, 50, 0.12);
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
	color: #1a1532;
}

.haam-home-faq__shell {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(36px, 6vw, 72px);
	align-items: start;
}

.haam-home-faq__intro {
	position: sticky;
	top: 28px;
}

.haam-home-faq__eyebrow {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: #5c5770;
}

.haam-home-faq__title {
	margin: 0 0 14px;
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
	color: #1a1532;
}

.haam-home-faq__lead {
	margin: 0 0 28px;
	max-width: 28rem;
	font-size: 1.02rem;
	line-height: 1.85;
	color: #5c5770;
}

.haam-home-faq__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 22px;
	border: 1px solid #1a1532;
	border-radius: 6px;
	background: #ebd11a;
	color: #1a1532;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.haam-home-faq__cta:hover {
	background: #f0d94a;
	color: #1a1532;
	transform: translateY(-1px);
}

.haam-home-faq__list {
	border-top: 1px solid rgba(26, 21, 50, 0.18);
}

.haam-home-faq__item {
	margin: 0;
	border-bottom: 1px solid rgba(26, 21, 50, 0.18);
	background: transparent;
}

.haam-home-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

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

.haam-home-faq__q::marker {
	content: "";
	display: none;
}

.haam-home-faq__q-text {
	flex: 1 1 auto;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: #1a1532;
	text-align: start;
}

.haam-home-faq__icon {
	position: relative;
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	transition: transform 0.22s ease;
}

.haam-home-faq__icon::before {
	content: "";
	position: absolute;
	inset-inline-start: 50%;
	inset-block-start: 42%;
	width: 8px;
	height: 8px;
	border-inline-end: 1.5px solid #1a1532;
	border-block-end: 1.5px solid #1a1532;
	transform: translate(-50%, -50%) rotate(45deg);
}

.haam-home-faq__item[open] .haam-home-faq__icon {
	transform: rotate(180deg);
}

.haam-home-faq__a {
	padding: 0 0 22px;
	padding-inline-end: 38px;
}

.haam-home-faq__a p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.8;
	color: #5c5770;
}

@media (max-width: 860px) {
	.haam-home-faq__shell {
		width: min(1120px, calc(100% - 32px));
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.haam-home-faq__intro {
		position: static;
	}

	.haam-home-faq__q {
		padding: 18px 0;
		padding-inline-end: 14px;
		gap: 14px;
	}

	.haam-home-faq__icon {
		margin-inline-end: 2px;
	}

	.haam-home-faq__q-text {
		font-size: 1.02rem;
	}
}


.haam-front-canvas .wp-block-button__link.has-primary-background-color,
.haam-front-canvas .wp-element-button.has-primary-background-color {
	background: #ebd11a !important;
	background-color: #ebd11a !important;
	color: #1a1532 !important;
}

/* Footer styles live in assets/css/haam-footer.css (LOCKED — do not re-add here). */

/* —— Newsletter page (aligned with contact stage) —— */
.haam-newsletter-canvas {
	background: transparent !important;
	background-color: transparent !important;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.haam-newsletter-canvas > .wp-block-template-part:has(.haam-site-header),
.haam-newsletter-canvas > header.wp-block-template-part {
	position: relative !important;
	inset: auto !important;
	z-index: 20;
	width: 100%;
}

.haam-newsletter-canvas .haam-site-header {
	background: transparent !important;
	background-color: transparent !important;
	border-bottom-color: rgba(26, 21, 50, 0.12) !important;
	box-shadow: none;
}

.haam-newsletter-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content {
	color: #1a1532 !important;
}

.haam-newsletter-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content:hover,
.haam-newsletter-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content:focus-visible {
	color: #1a1532 !important;
	opacity: 0.72;
}

.haam-newsletter-canvas .haam-site-header__logo img {
	filter: none;
}

.haam-newsletter-canvas .haam-site-header .wp-block-navigation__responsive-container-open,
.haam-newsletter-canvas .haam-site-header .wp-block-navigation__responsive-container-open svg {
	color: #1a1532;
	fill: #1a1532;
}

.haam-newsletter-main {
	flex: 1 1 auto;
	background: transparent !important;
}

.haam-newsletter-canvas .haam-site-footer {
	background: transparent !important;
}

.haam-nl-section {
	padding-bottom: clamp(48px, 6vw, 80px) !important;
}

.haam-nl-section > .haam-mag-breadcrumb {
	margin: 8px auto 12px !important;
	width: min(1180px, calc(100% - 32px));
	max-width: 1180px;
	padding-inline: clamp(28px, 4.5vw, 56px) !important;
	box-sizing: border-box;
}

.haam-nl-stage__heading {
	font-size: clamp(1.45rem, 2.6vw, 1.85rem) !important;
}

.haam-nl-stage__shell {
	grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
	gap: clamp(28px, 5vw, 56px);
	align-items: stretch;
}

.haam-nl-stage__panel {
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	align-self: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.haam-nl-stage__panel-label {
	margin: 0 0 18px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--contact-muted, #5c5770);
}

.haam-nl-stage__copy {
	justify-content: center;
	gap: 0;
	min-height: 0;
}

.haam-nl-stage__title {
	margin: 0 0 16px !important;
	font-size: clamp(1.55rem, 3vw, 2.15rem) !important;
	gap: 0.08em !important;
}

.haam-nl-stage__lead {
	margin: 0 0 22px;
	max-width: 28em;
	font-size: clamp(15px, 1.5vw, 17px);
	line-height: 1.85;
	color: var(--contact-muted, #5c5770);
}

.haam-nl-stage__points {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.haam-nl-stage__points li {
	position: relative;
	margin: 0;
	padding: 0;
	padding-inline-start: 1.1em;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--contact-ink, #1a1532);
}

.haam-nl-stage__points li::before {
	content: "";
	display: block;
	position: absolute;
	inset-inline-start: 0;
	top: 0.55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ebd11a;
	box-shadow: 0 0 0 1px rgba(26, 21, 50, 0.2);
}

.haam-nl-stage__alt {
	margin: 0;
	padding-top: 0;
	font-size: 0.95rem;
	color: var(--contact-muted, #5c5770);
}

.haam-nl-stage__alt a {
	color: var(--contact-ink, #1a1532);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1.5px solid rgba(26, 21, 50, 0.28);
}

.haam-nl-stage__alt a:hover {
	border-bottom-color: #ebd11a;
}

.haam-nl-form--page .haam-contact-stage__form {
	gap: 22px;
}

.haam-nl-form--page .haam-contact-stage__submit {
	width: auto;
	align-self: flex-end;
	min-width: 0;
	margin-inline-start: auto;
	padding-inline: 28px;
}

.haam-nl-seo {
	width: min(1180px, calc(100% - 32px));
	margin: clamp(28px, 4vw, 40px) auto 0;
	padding: clamp(28px, 4vw, 40px) clamp(28px, 4.5vw, 56px);
	border-radius: 28px;
	background: #e9e9eb;
	box-shadow: 0 0 0 1px rgba(26, 21, 50, 0.08);
	box-sizing: border-box;
}

.haam-nl-seo__title {
	margin: 0 0 14px;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #1a1532;
}

.haam-nl-seo__text {
	margin: 0 0 14px;
	font-size: 0.98rem;
	line-height: 1.9;
	color: #5c5770;
}

.haam-nl-seo__text:last-child {
	margin-bottom: 0;
}

.haam-nl-seo__text a {
	color: #1a1532;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid #ebd11a;
}

.haam-nl-seo__text a:hover {
	opacity: 0.8;
}

@media (max-width: 900px) {
	.haam-nl-stage__shell {
		grid-template-columns: 1fr;
	}

	.haam-nl-form--page .haam-contact-stage__submit {
		width: auto;
	}
}




header .wp-block-image img[src*="logo"],
header .custom-logo,
.haam-site-header__logo img {
	object-fit: contain !important;
	width: 120px;
	height: 32px;
	max-height: 32px;
}

/* Topic banner cards — section ground is sitewide #e9e9eb */
.haam-topic-banners {
	background: transparent !important;
	background-color: transparent !important;
}

.haam-topic-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-areas: "travel articles travelogue tech";
	gap: 18px;
	direction: ltr;
	width: 100%;
	align-items: stretch;
}

.haam-topic-card--travel {
	grid-area: travel;
	background-color: #e1fdff !important;
}

.haam-topic-card--articles {
	grid-area: articles;
	background-color: #fae7fd !important;
}

.haam-topic-card--travelogue {
	grid-area: travelogue;
	background-color: #feefda !important;
}

.haam-topic-card--tech {
	grid-area: tech;
	background-color: #79b3a4 !important;
}

.haam-topic-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	border-radius: 32px !important;
	box-shadow: 0 12px 32px rgba(20, 24, 30, 0.1);
	aspect-ratio: 3 / 4;
	min-height: 0;
	height: auto;
	overflow: hidden;
	direction: rtl;
	text-align: center;
	padding: 28px 12px 0 !important;
	position: relative;
}

.haam-topic-card > .wp-block-heading {
	position: relative;
	z-index: 2;
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #111 !important;
	margin: 0 !important;
	line-height: 1.25 !important;
}

.haam-topic-card > p {
	position: relative;
	z-index: 2;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: rgba(17, 17, 17, 0.55) !important;
	margin: 4px 0 0 !important;
	line-height: 1.4 !important;
}

.haam-topic-card--tech > p {
	color: rgba(17, 17, 17, 0.5) !important;
}

.haam-topic-card .haam-topic-card__media {
	margin: 12px 0 0 !important;
	width: 96%;
	max-width: 280px;
	line-height: 0;
	flex: 1 1 auto;
	display: flex !important;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
	min-height: 0;
}

.haam-topic-card .haam-topic-card__media img {
	width: 100%;
	height: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: bottom center;
	display: block;
	background: transparent;
}

@media (max-width: 900px) {
	.haam-topic-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"travelogue tech"
			"travel articles";
		gap: 12px;
	}

	.haam-topic-card {
		border-radius: 24px !important;
		padding-top: 20px !important;
	}

	.haam-topic-card > .wp-block-heading {
		font-size: 18px !important;
	}

	.haam-topic-card > p {
		font-size: 12px !important;
	}
}

@media (max-width: 480px) {
	.haam-topic-card {
		padding-top: 16px !important;
	}
}



/* ============================================================
   Haam Magazine
   ============================================================ */
.haam-mag {
	background: transparent !important;
	width: 100%;
	overflow-x: clip;
}

.haam-mag a {
	text-decoration: none;
}

.haam-mag__shell {
	width: min(1080px, 100%);
	max-width: 1080px;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
	--haam-mag-block-gap: 20px;
	/* Match header logo pad: gap below logo ? gap above logo */
	padding-top: 0 !important;
	gap: var(--haam-mag-block-gap) !important;
}

.haam-mag-single .haam-mag__shell:not(.haam-mag-single__shell),
.haam-mag-term-archive .haam-mag__shell {
	padding-top: 0 !important;
}

.haam-aima-page {
	padding-top: 0 !important;
}

/* Cast / pages: no extra top pad ? gap under logo = header pad-y */
.haam-cast-page.alignfull,
main.haam-cast-page {
	padding-top: 0 !important;
}

.haam-mag-breadcrumb {
	margin: 0 0 8px !important;
	padding: 0 !important;
	font-size: 13px;
	line-height: 1.6;
	color: #8a849c;
}

.haam-mag-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.haam-mag-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100%;
	min-width: 0;
}

.haam-mag-breadcrumb__item:not(:first-child)::before {
	content: "/";
	margin: 0 8px;
	opacity: 0.45;
	flex-shrink: 0;
}

.haam-mag-breadcrumb__link {
	color: #6b6680 !important;
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.haam-mag-breadcrumb__link:hover,
.haam-mag-breadcrumb__link:focus-visible {
	color: #1a1532 !important;
}

.haam-mag-breadcrumb__current {
	color: #1a1532;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: min(420px, 70vw);
}

/* Mobile: one line, swipe if needed — no ugly wrap. */
@media (max-width: 700px) {
	.haam-mag-breadcrumb {
		position: relative;
		font-size: 12px;
		line-height: 1.4;
		mask-image: linear-gradient(to left, transparent 0, #000 18px, #000 calc(100% - 12px), transparent 100%);
		-webkit-mask-image: linear-gradient(to left, transparent 0, #000 18px, #000 calc(100% - 12px), transparent 100%);
	}

	.haam-mag-breadcrumb__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
		padding-block: 2px !important;
	}

	.haam-mag-breadcrumb__list::-webkit-scrollbar {
		display: none;
	}

	.haam-mag-breadcrumb__item {
		flex: 0 0 auto;
		max-width: none;
	}

	.haam-mag-breadcrumb__item:not(:first-child)::before {
		margin: 0 6px;
	}

	.haam-mag-breadcrumb__link {
		white-space: nowrap;
	}

	.haam-mag-breadcrumb__item.is-current {
		min-width: 0;
		flex: 1 1 auto;
		max-width: 48vw;
	}

	.haam-mag-breadcrumb__current {
		display: block;
		max-width: 100%;
	}
}

.haam-mag-single .haam-mag-breadcrumb {
	margin-bottom: 18px !important;
}

.haam-mag__shell > .haam-mag-breadcrumb {
	margin: 0 0 4px !important;
}

/* Single article: breadcrumb needs real air (shell rule above is for archive shells). */
.haam-mag__shell.haam-mag-single__shell > .haam-mag-breadcrumb {
	margin: 0 0 20px !important;
}

/* No featured image → title must not sit on the breadcrumb */
.haam-mag-single__shell:not(:has(.haam-mag-single__image img)) > .haam-mag-breadcrumb {
	margin-bottom: 36px !important;
}

.haam-mag-single__shell:not(:has(.haam-mag-single__image img)) .haam-mag-single__header {
	margin-top: 0 !important;
}

.haam-mag-masthead {
	margin: 8px 0 20px;
	text-align: center;
}

.haam-mag-masthead__kicker {
	margin: 0 0 8px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #5c5770;
}

.haam-mag-masthead__title {
	margin: 0 0 10px;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.03em;
	color: #1a1532;
}

.haam-mag-masthead__lead {
	margin: 0 auto;
	max-width: 36em;
	font-size: 1rem;
	line-height: 1.75;
	color: #5c5770;
}

/* Align with #aima-app inner column (.app-container 980 + 22px pad each side). */
.haam-aima-page > .haam-mag-breadcrumb {
	margin: 12px auto 16px !important;
	max-width: 1024px;
	width: 100%;
	padding-inline: 22px !important;
	box-sizing: border-box;
}

/* Insights — breadcrumb aligns with stage card (details in haam-insights.css) */
.haam-insights-page > .haam-mag-breadcrumb {
	margin: 8px auto 0 !important;
	width: min(1180px, calc(100% - 32px));
	max-width: 1180px;
	padding-inline: clamp(28px, 4.5vw, 56px) !important;
	box-sizing: border-box;
}


.haam-mag .wp-block-post-template,
.haam-mag-featured-template,
.haam-mag-grid {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

.haam-mag .wp-block-post-template > li,
.haam-mag-featured-template > .wp-block-post,
.haam-mag-grid > .wp-block-post {
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* Featured card: content | image */
.haam-mag-featured-query {
	width: 100%;
	margin: 0 !important;
}

.haam-mag-featured {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	grid-template-areas: "content media";
	align-items: stretch;
	width: 100% !important;
	max-width: 100% !important;
	overflow: hidden !important;
	border: 1px solid #1a1532 !important;
	border-radius: 8px !important;
	background: transparent !important;
	box-shadow: none !important;
	direction: ltr;
}

.haam-mag-featured__content {
	grid-area: content;
	direction: rtl;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: stretch !important;
	gap: 12px !important;
	padding: 36px 32px !important;
	min-width: 0;
	box-sizing: border-box;
}

.haam-mag-featured__title {
	font-size: 24px !important;
	font-weight: 800 !important;
	line-height: 1.45 !important;
	margin: 0 !important;
}

.haam-mag-featured__title a {
	color: #1a1532 !important;
}

.haam-mag-featured__title a:hover {
	color: #1a1532 !important;
	opacity: 0.72;
}

.haam-mag-featured__excerpt,
.haam-mag-featured__excerpt p {
	margin: 0 !important;
	font-size: 14px !important;
	line-height: 1.8 !important;
	color: #6b6680 !important;
}

.haam-mag-featured__image,
.haam-mag-featured > .wp-block-post-featured-image {
	grid-area: media;
	position: relative;
	margin: 0 !important;
	min-width: 0;
	width: 100%;
	height: auto;
	align-self: center;
	aspect-ratio: var(--haam-thumb-ratio);
	background: #eceaf3;
	overflow: hidden;
}

.haam-mag-featured__image a,
.haam-mag-featured > .wp-block-post-featured-image a {
	position: absolute;
	inset: 0;
	display: block;
	margin: 0;
}

.haam-mag-featured__image img,
.haam-mag-featured > .wp-block-post-featured-image img {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 0;
	aspect-ratio: unset !important;
	object-fit: cover !important;
	object-position: center !important;
	border-radius: 0 !important;
	margin: 0 !important;
}

/* Grid cards */
.haam-mag-grid-query {
	width: 100%;
}

.haam-mag-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 20px !important;
}

.haam-mag-card {
	display: flex !important;
	flex-direction: column !important;
	height: 100%;
	overflow: hidden !important;
	border: 1px solid #1a1532 !important;
	border-radius: 8px !important;
	background: transparent !important;
	box-shadow: none !important;
	transition: transform 0.25s ease, background 0.25s ease;
}

.haam-mag-card:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.28) !important;
	box-shadow: none !important;
}

.haam-mag-card__image,
.haam-mag-card .wp-block-post-featured-image {
	position: relative;
	margin: 0 !important;
	width: 100%;
	aspect-ratio: var(--haam-thumb-ratio);
	background: #ebd11a;
	border-radius: 0 !important;
	overflow: hidden !important;
	line-height: 0;
}

.haam-mag-card__image a,
.haam-mag-card .wp-block-post-featured-image a {
	position: absolute;
	inset: 0;
	display: block;
	margin: 0;
}

.haam-mag-card__image img,
.haam-mag-card .wp-block-post-featured-image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: unset;
	object-fit: cover !important;
	object-position: center !important;
	margin: 0 !important;
	border-radius: 0 !important;
}

.haam-mag-card__body {
	/* layout locked in equal-height grid section below */
	padding: 16px !important;
}

.haam-mag-card__body.is-layout-flow > * + *,
.haam-mag-card__body.wp-block-group-is-layout-flow > * + * {
	margin-block-start: 0 !important;
}

.haam-mag-card__title {
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.55 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.haam-mag-card__title a {
	color: #1a1532 !important;
	text-decoration: none !important;
}

.haam-mag-card__title a:hover {
	color: #1a1532 !important;
	opacity: 0.72;
}

.haam-mag-meta {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px !important;
	width: 100%;
	min-width: 0;
	height: auto !important;
	min-height: 28px !important;
	max-height: none !important;
	flex: 0 0 auto !important;
	overflow: visible !important;
}

/* WP terms wrapper is invisible ? only the inner link is the chip */
.haam-mag-meta > .wp-block-post-terms.haam-mag-tag {
	display: inline-flex !important;
	align-items: center !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	flex: 0 0 auto;
	min-width: 0;
	max-width: none;
	gap: 0 !important;
}

.haam-mag-meta > .wp-block-post-terms.haam-mag-tag::before {
	content: none !important;
	display: none !important;
}

/* Unified pill chips (category + tag + direct anchors) */
a.haam-mag-tag,
.haam-mag-meta > .wp-block-post-terms.haam-mag-tag > a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 28px !important;
	padding: 0 12px !important;
	margin: 0 !important;
	border-radius: 999px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
	max-width: none;
	flex: 0 0 auto !important;
	overflow: visible !important;
	text-overflow: clip !important;
	white-space: nowrap !important;
	gap: 0 !important;
}

/* Kill legacy purple bars forever */
a.haam-mag-tag::before,
.haam-mag-meta .wp-block-post-terms a::before,
.haam-mag-meta > .wp-block-post-terms.haam-mag-tag::before {
	content: none !important;
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
}

/* Category pill */
a.haam-mag-tag:not(.haam-mag-tag--tag),
.haam-mag-meta > .wp-block-post-terms.haam-mag-tag:not(.haam-mag-tag--tag) > a {
	background: #faf6dc !important;
	color: #2f2a45 !important;
	border: 1px solid transparent !important;
}

/* Tag pill — light chip on ground, not a white card */
a.haam-mag-tag--tag,
.haam-mag-meta > .wp-block-post-terms.haam-mag-tag--tag > a {
	background: rgba(26, 21, 50, 0.06) !important;
	color: #1a1532 !important;
	border: 1px solid transparent !important;
}

/* Category pill — cards may truncate; single overrides below */
a.haam-mag-tag {
	flex: 0 1 auto;
	min-width: 0;
	max-width: min(100%, 12rem);
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.haam-mag-date,
.haam-mag-date a,
.haam-mag-meta .wp-block-post-date {
	color: #8a849c !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	flex: 0 0 auto !important;
	white-space: nowrap !important;
	margin-inline-start: auto !important;
	line-height: 28px !important;
	height: 28px !important;
	display: inline-flex !important;
	align-items: center !important;
}

/* Featured hero: date sits with chips, not pushed to far edge */
.haam-mag-featured .haam-mag-meta {
	justify-content: flex-start !important;
	width: 100%;
}

.haam-mag-featured .haam-mag-meta .haam-mag-date,
.haam-mag-featured .haam-mag-meta .haam-mag-date a,
.haam-mag-featured .haam-mag-meta .wp-block-post-date {
	margin-inline-start: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	font-size: 13px !important;
}

.haam-mag-pagination {
	margin-top: 36px !important;
	gap: 8px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.haam-mag-pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #fff;
	color: #1a1532;
	font-weight: 700;
	border: 1px solid #e4e2f0;
}

.haam-mag-pagination .page-numbers.current,
.haam-mag-pagination .page-numbers:hover {
	background: #ebd11a;
	border-color: #ebd11a;
	color: #1a1532 !important;
}

@media (max-width: 900px) {
	.haam-mag-featured {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"content";
	}


	.haam-mag-featured__content {
		padding: 24px 20px !important;
	}

	.haam-mag-featured__title {
		font-size: 20px !important;
	}

	.haam-mag-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 14px !important;
	}
}

@media (max-width: 600px) {
	.haam-mag-grid {
		grid-template-columns: 1fr !important;
	}
}



/* Category carousel (below magazine pagination) */
.haam-cat-carousel {
	width: 100%;
	margin-top: 48px;
}

.haam-cat-carousel__viewport {
	overflow: hidden;
	width: 100%;
	container-type: inline-size;
	container-name: haam-cat;
}

.haam-cat-carousel__track {
	display: flex;
	flex-direction: row;
	gap: 16px;
	will-change: transform;
	padding-bottom: 6px;
	direction: rtl;
}

.haam-cat-card {
	position: relative;
	/* Exactly 5 cards visible in the viewport */
	flex: 0 0 calc((100cqi - 4 * 16px) / 5);
	aspect-ratio: 2 / 3.4;
	min-height: 0;
	border-radius: 16px;
	overflow: hidden;
	scroll-snap-align: start;
	color: #fff !important;
	text-decoration: none !important;
	isolation: isolate;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.haam-cat-card__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.02);
	transition: transform 0.35s ease;
	z-index: 0;
}

.haam-cat-card:hover .haam-cat-card__bg {
	transform: scale(1.08);
}

.haam-cat-card__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(10, 8, 24, 0.25) 0%,
		rgba(10, 8, 24, 0.35) 40%,
		rgba(10, 8, 24, 0.78) 100%
	);
}

.haam-cat-card__icon {
	position: absolute;
	z-index: 2;
	top: 42%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	color: #fff;
	display: grid;
	place-items: center;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.haam-cat-card__icon svg {
	width: 100%;
	height: 100%;
}

.haam-cat-card__title {
	position: absolute;
	z-index: 2;
	left: 12px;
	right: 12px;
	bottom: 20px;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.haam-cat-carousel__nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
}

.haam-cat-carousel__btn {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid #e4e2f0;
	background: #fff;
	color: #6b6680;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.haam-cat-carousel__btn:hover {
	color: #ebd11a;
	border-color: #ebd11a;
	background: #fbf8e0;
}

@container haam-cat (max-width: 720px) {
	.haam-cat-card {
		flex-basis: calc((100cqi - 3 * 14px) / 4);
	}

	.haam-cat-carousel__track {
		gap: 14px;
	}
}

@container haam-cat (max-width: 520px) {
	.haam-cat-card {
		flex-basis: calc((100cqi - 2 * 12px) / 3);
	}

	.haam-cat-carousel__track {
		gap: 12px;
	}

	.haam-cat-card__icon {
		width: 48px;
		height: 48px;
	}

	.haam-cat-card__title {
		font-size: 13px;
		bottom: 14px;
	}
}



/* Featured category stories block (below carousel) */
.haam-mag-stories {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-top: 56px;
	box-sizing: border-box;
}

.haam-mag-stories__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	margin-bottom: 24px;
}

.haam-mag-stories__title {
	margin: 0;
	font-size: 48px;
	font-weight: 800;
	color: #1a1532;
	line-height: 1.2;
}

.haam-mag-stories__all {
	color: #1a1532 !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	border-bottom: 2px solid #ebd11a;
	padding-bottom: 2px;
	line-height: 1.4;
}

.haam-mag-stories__all:hover {
	color: #1a1532 !important;
	opacity: 0.75;
}

.haam-mag-stories__featured {
	margin: 0 0 20px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.haam-mag-stories__featured-link {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	border-radius: 18px;
	overflow: hidden;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
	aspect-ratio: var(--haam-thumb-ratio);
	min-height: 0;
	background: #eceaf3;
	box-sizing: border-box;
}

.haam-mag-stories__featured-media {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	overflow: hidden;
}

.haam-mag-stories__featured-img,
.haam-mag-stories__featured-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	display: block;
	min-height: 0;
}

.haam-mag-stories__featured-img--empty {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	background: linear-gradient(135deg, #ebd11a, #f0e06a);
}

.haam-mag-stories__featured-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(10, 8, 24, 0.05) 0%,
		rgba(10, 8, 24, 0.25) 45%,
		rgba(10, 8, 24, 0.82) 100%
	);
}

.haam-mag-stories__featured-body {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 28px 28px 22px;
	box-sizing: border-box;
	min-height: 0;
	overflow: hidden;
	direction: rtl;
	text-align: right;
}

.haam-mag-stories__featured-badge {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	background: rgba(255, 255, 255, 0.92);
	color: #1a1532;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 8px;
	box-sizing: border-box;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.haam-mag-stories__featured-title {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 800;
	line-height: 1.45;
	color: #fff;
	text-align: right;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.haam-mag-stories__featured-excerpt {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	font-size: 14px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.88);
	text-align: right;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.haam-mag-stories__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.haam-mag-stories__card {
	background: transparent;
	border: 1px solid #1a1532;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.25s ease, background 0.25s ease;
}

.haam-mag-stories__card:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.28);
}

.haam-mag-stories__card-media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 0;
	aspect-ratio: var(--haam-thumb-ratio);
	background: #eceaf3;
	line-height: 0;
}

.haam-mag-stories__card-img,
.haam-mag-stories__card-img img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.haam-mag-stories__card-img--empty {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #ebd11a, #f5e878);
}

.haam-mag-stories__card-body {
	/* layout locked in equal-height grid section below */
	padding: 16px !important;
	flex: 1 1 auto;
}

.haam-mag-stories__card-title {
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.55 !important;
}

.haam-mag-stories__card-title a {
	color: #1a1532 !important;
	text-decoration: none !important;
}

.haam-mag-stories__card-title a:hover {
	color: #1a1532 !important;
	opacity: 0.72;
}

@media (max-width: 900px) {
	.haam-mag-stories__grid {
		grid-template-columns: 1fr;
	}

	.haam-mag-stories__featured-link {
		min-height: 220px;
	}

	.haam-mag-stories__featured-body {
		min-height: 0;
		padding: 16px 14px 14px;
		gap: 8px;
	}

	.haam-mag-stories__featured-title {
		font-size: clamp(16px, 4.6vw, 20px);
	}

	.haam-mag-stories__featured-excerpt {
		font-size: 13px;
	}
}



/* Videos section */
.haam-mag-videos {
	width: 100%;
	margin-top: 56px;
}

.haam-mag-videos__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	margin-bottom: 24px;
}

.haam-mag-videos__title {
	margin: 0;
	font-size: 48px;
	font-weight: 800;
	color: #1a1532;
	line-height: 1.2;
}

.haam-mag-videos__all {
	color: #1a1532 !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	border-bottom: 2px solid #ebd11a;
	padding-bottom: 2px;
	line-height: 1.4;
}

.haam-mag-videos__all:hover {
	color: #1a1532 !important;
	opacity: 0.75;
}

.haam-mag-videos__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px 18px;
}

/* Magazine — glossary strip (dedicated to بینش واژه‌نامه) */
.haam-mag-glossary {
	width: 100%;
	margin-top: 56px;
}

.haam-mag-glossary__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	margin-bottom: 24px;
}

.haam-mag-glossary__title {
	margin: 0;
	font-size: 48px;
	font-weight: 800;
	color: #1a1532;
	line-height: 1.2;
}

.haam-mag-glossary__all {
	color: #1a1532 !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	border-bottom: 2px solid #ebd11a;
	padding-bottom: 2px;
	line-height: 1.4;
}

.haam-mag-glossary__all:hover {
	color: #1a1532 !important;
	opacity: 0.75;
}

.haam-mag-glossary__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.haam-mag-glossary-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 18px 18px 20px;
	border: 1px solid #1a1532;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.55);
	box-sizing: border-box;
	color: inherit;
	text-decoration: none;
	transition: transform 0.25s ease, background 0.25s ease;
	cursor: pointer;
}

a.haam-mag-glossary-card:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.85);
	color: inherit;
	text-decoration: none;
}

.haam-mag-glossary-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.haam-mag-glossary-card__name {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.4;
	color: #1a1532;
}

.haam-mag-glossary-card__tag {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border: 1px solid #1a1532;
	border-radius: 999px;
	background: #ebd11a;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	white-space: nowrap;
	color: #1a1532;
}

.haam-mag-glossary-card__def {
	margin: 0;
	font-size: 13px;
	line-height: 1.75;
	color: #5c5770;
}

@media (max-width: 900px) {
	.haam-mag-glossary__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.haam-mag-glossary__title {
		font-size: 36px;
	}
}

@media (max-width: 560px) {
	.haam-mag-glossary__grid {
		grid-template-columns: 1fr;
	}
}

.haam-mag-video-card {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	height: 100%;
	background: transparent;
	border: 1px solid #1a1532;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: none;
	transition: transform 0.25s ease, background 0.25s ease;
}

.haam-mag-video-card:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.28);
}

.haam-mag-video-card__media {
	position: relative;
	display: block;
	border-radius: 0;
	overflow: hidden;
	background: #ebd11a;
	aspect-ratio: var(--haam-thumb-ratio);
}

.haam-mag-video-card__img,
.haam-mag-video-card__img img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.haam-mag-video-card__img--empty {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #ebd11a, #f0e06a);
}

.haam-mag-video-card__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	pointer-events: none;
	transition: transform 0.2s ease;
}

.haam-mag-video-card__media:hover .haam-mag-video-card__play {
	transform: scale(1.06);
}

.haam-mag-video-card__body {
	/* layout locked in equal-height grid section below */
	padding: 16px !important;
	flex: 1 1 auto;
}

/* Title sizing locked in equal-height card section below */

@media (max-width: 900px) {
	.haam-mag-videos__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.haam-mag-videos__grid {
		grid-template-columns: 1fr;
	}
}



/* Podcast bridge ? ??????? on mag home */
.haam-mag-podcast {
	width: 100%;
	margin-top: 56px;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: #1a1532;
	box-sizing: border-box;
}

.haam-mag-podcast__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	margin-bottom: 28px;
}

.haam-mag-podcast__kicker {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #8a7a00;
	letter-spacing: 0.02em;
}

.haam-mag-podcast__title {
	margin: 0;
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 800;
	color: #1a1532;
	line-height: 1.2;
}

.haam-mag-podcast__lead {
	margin: 4px 0 0;
	max-width: 36em;
	font-size: 15px;
	line-height: 1.75;
	color: #6b6680;
}

.haam-mag-podcast__all {
	margin-top: 6px;
	color: #1a1532 !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	border-bottom: 2px solid #ebd11a;
	padding-bottom: 2px;
	line-height: 1.4;
}

.haam-mag-podcast__all:hover {
	color: #1a1532 !important;
	opacity: 0.75;
}

.haam-mag-podcast__eps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.haam-mag-podcast-ep {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 14px;
	border-radius: 8px;
	background: transparent;
	border: 1px solid #1a1532;
	box-shadow: none;
	transition: transform 0.25s ease, background 0.25s ease;
}

.haam-mag-podcast-ep:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.28);
}

.haam-mag-podcast-ep__media {
	position: relative;
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	overflow: hidden;
	background: #f3efd8;
	flex-shrink: 0;
}

.haam-mag-podcast-ep__img,
.haam-mag-podcast-ep__img--empty {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.haam-mag-podcast-ep__img--empty {
	background: linear-gradient(145deg, #f7f1c8, #ebd11a 55%, #c9ad0e);
}

.haam-mag-podcast-ep__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(26, 21, 50, 0.28);
	color: #fff;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.haam-mag-podcast-ep:hover .haam-mag-podcast-ep__play {
	opacity: 1;
}

.haam-mag-podcast-ep__body {
	min-width: 0;
	text-align: start;
}

.haam-mag-podcast-ep__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	color: #8b92a8;
}

.haam-mag-podcast-ep__title {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.45;
	color: #1a1532;
}

.haam-mag-podcast-ep__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.haam-mag-podcast-ep__title a:hover {
	color: #8a7a00 !important;
}

.haam-mag-podcast__empty {
	margin: 0;
	text-align: center;
	font-size: 14px;
	line-height: 1.7;
	color: #6b6680;
}

.haam-mag-podcast__empty a {
	color: #8a7a00 !important;
	font-weight: 700;
	text-decoration: none !important;
}

.haam-mag-podcast__mag {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #e8e6df;
}

.haam-mag-podcast__mag-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 12px;
	margin-bottom: 12px;
}

.haam-mag-podcast__mag-title {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: #1a1532;
}

.haam-mag-podcast__mag-all {
	font-size: 13px;
	font-weight: 700;
	color: #1a1532 !important;
	text-decoration: none !important;
	border-bottom: 2px solid #ebd11a;
	padding-bottom: 1px;
}

.haam-mag-podcast__mag-all:hover {
	color: #1a1532 !important;
	opacity: 0.75;
}

.haam-mag-podcast__mag-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.haam-mag-podcast__mag-list a {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 12px;
	padding: 10px 4px;
	border-bottom: 1px solid #eceae3;
	color: #1a1532 !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
}

.haam-mag-podcast__mag-list a:hover {
	color: #8a7a00 !important;
}

.haam-mag-podcast__mag-list time {
	font-size: 12px;
	font-weight: 400;
	color: #8b92a8;
}

@media (max-width: 960px) {
	.haam-mag-podcast__eps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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


/* Other news ? 2-col horizontal list */
.haam-mag-other {
	width: 100%;
	margin-top: 56px;
}

.haam-mag-other__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	margin-bottom: 28px;
}

.haam-mag-other__title {
	margin: 0;
	font-size: 48px;
	font-weight: 800;
	color: #1a1532;
	line-height: 1.2;
}

.haam-mag-other__all {
	color: #1a1532 !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	border-bottom: 2px solid #ebd11a;
	padding-bottom: 2px;
	line-height: 1.4;
}

.haam-mag-other__all:hover {
	color: #1a1532 !important;
	opacity: 0.75;
}

.haam-mag-other__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 32px;
}

.haam-mag-other-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 200px;
	gap: 16px;
	align-items: center;
	direction: ltr;
	border: 1px solid #1a1532;
	border-radius: 8px;
	background: transparent;
	box-sizing: border-box;
	padding: 14px;
	transition: transform 0.25s ease, background 0.25s ease;
}

.haam-mag-other-card:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.28);
}

.haam-mag-other-card__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	direction: rtl;
	text-align: right;
}

.haam-mag-other-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.55;
}

.haam-mag-other-card__title a {
	color: #1a1532 !important;
	text-decoration: none !important;
}

.haam-mag-other-card__title a:hover {
	color: #1a1532 !important;
	opacity: 0.72;
}

.haam-mag-other-card__media {
	position: relative;
	display: block;
	width: 200px;
	aspect-ratio: var(--haam-thumb-ratio);
	height: auto;
	min-height: 0;
	flex-shrink: 0;
	align-self: start;
	border-radius: 6px;
	overflow: hidden;
	background: #eceaf3;
	line-height: 0;
}

.haam-mag-other-card__img,
.haam-mag-other-card__img img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	aspect-ratio: unset;
	object-fit: cover;
	object-position: center;
}

.haam-mag-other-card__img--empty {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	background: #eceaf3;
}

@media (max-width: 800px) {
	.haam-mag-other__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}

@media (max-width: 480px) {
	.haam-mag-other-card {
		grid-template-columns: minmax(0, 1fr) 140px;
	}

	.haam-mag-other-card__media {
		width: 140px;
	}
}



/* Full news list page */
.haam-mag-news-list-page .haam-mag-news-list__intro {
	margin-bottom: 12px;
}

.haam-mag-news-list.wp-block-post-template,
ul.haam-mag-news-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
}

.haam-mag-news-list > .wp-block-post,
.haam-mag-news-list > li {
	margin: 0 !important;
	width: 100% !important;
	border-bottom: 1px solid #e8e6f0;
}

.haam-mag-news-list__item.haam-mag-other-card {
	padding: 20px 0 !important;
	grid-template-columns: minmax(0, 1fr) 200px;
	gap: 18px;
	align-items: center;
}

.haam-mag-news-list__thumb,
.haam-mag-news-list__item .wp-block-post-featured-image {
	position: relative !important;
	display: block !important;
	width: 200px !important;
	max-width: 200px !important;
	height: auto !important;
	aspect-ratio: var(--haam-thumb-ratio) !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	margin: 0 !important;
	background: #eceaf3;
	line-height: 0 !important;
}

.haam-mag-news-list__item .wp-block-post-featured-image a {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	margin: 0 !important;
}

.haam-mag-news-list__thumb img,
.haam-mag-news-list__item .wp-block-post-featured-image img {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	aspect-ratio: unset !important;
	object-fit: cover !important;
	object-position: center !important;
	margin: 0 !important;
	border-radius: 0 !important;
}

.haam-mag-news-list__excerpt,
.haam-mag-news-list__excerpt p {
	margin: 0 !important;
	color: #6b6680;
}

.haam-mag-news-list-query .haam-mag-pagination {
	margin-top: 36px !important;
}

@media (max-width: 700px) {
	.haam-mag-news-list__item.haam-mag-other-card {
		grid-template-columns: minmax(0, 1fr) 140px;
	}

	.haam-mag-news-list__thumb,
	.haam-mag-news-list__item .wp-block-post-featured-image {
		width: 140px !important;
		max-width: 140px !important;
	}
}



/* Term archive (category / tag): 2-up horizontal cards */
.haam-mag-term-archive__intro {
	margin: 0 0 12px !important;
	text-align: center;
}

.haam-mag-term-archive__title {
	margin: 0 auto 8px !important;
	text-align: center !important;
	font-size: clamp(28px, 4vw, 40px) !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	color: #1a1532 !important;
}

.haam-mag-term-grid.wp-block-post-template,
ul.haam-mag-term-grid {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	column-gap: 28px !important;
	row-gap: 28px !important;
	align-items: stretch !important;
	width: 100%;
}

.haam-mag-term-grid > .wp-block-post,
.haam-mag-term-grid > li {
	display: flex !important;
	flex-direction: column !important;
	margin: 0 !important;
	margin-block-start: 0 !important;
	width: auto !important;
	border: none !important;
	padding: 0 !important;
	min-width: 0;
	min-height: 100%;
	height: 100%;
}

.haam-mag-term-card.haam-mag-other-card {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	padding: 16px !important;
	grid-template-columns: minmax(0, 1fr) 160px !important;
	gap: 16px !important;
	align-items: stretch !important;
	background: rgba(255, 255, 255, 0.42);
}

/* No featured image → don't leave an empty media column */
.haam-mag-term-card .wp-block-post-featured-image:not(:has(img)),
.haam-mag-term-card__thumb:not(:has(img)) {
	display: none !important;
}

.haam-mag-term-card.haam-mag-other-card:not(:has(.wp-block-post-featured-image img)):not(:has(.haam-mag-term-card__thumb img)) {
	grid-template-columns: minmax(0, 1fr) !important;
}

.haam-mag-term-card__content {
	gap: 8px !important;
	min-width: 0;
	height: 100%;
	justify-content: flex-start !important;
}

.haam-mag-term-card__meta {
	gap: 8px !important;
}

.haam-mag-term-card__title {
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
	overflow: hidden !important;
}

.haam-mag-term-card__excerpt,
.haam-mag-term-card__excerpt p {
	margin: 0 !important;
	color: #6b6680 !important;
	font-size: 13px !important;
	line-height: 1.7 !important;
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
	overflow: hidden !important;
}

/* Fixed thumb slot — equal media size in every card that has an image */
.haam-mag-term-card .haam-mag-other-card__media,
.haam-mag-term-card__thumb,
.haam-mag-term-card .wp-block-post-featured-image {
	position: relative !important;
	display: block !important;
	width: 160px !important;
	max-width: 160px !important;
	flex-shrink: 0 !important;
	align-self: center !important;
	aspect-ratio: var(--haam-thumb-ratio) !important;
	height: auto !important;
	min-height: 0 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #eceaf3 !important;
	line-height: 0 !important;
	margin: 0 !important;
}

.haam-mag-term-card .wp-block-post-featured-image a {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	margin: 0 !important;
}

.haam-mag-term-card__thumb img,
.haam-mag-term-card .wp-block-post-featured-image img {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	aspect-ratio: unset !important;
	object-fit: cover !important;
	margin: 0 !important;
	border-radius: 0 !important;
}

.haam-mag-term-grid-query .haam-mag-pagination {
	margin-top: 40px !important;
}

@media (max-width: 800px) {
	.haam-mag-term-grid.wp-block-post-template,
	ul.haam-mag-term-grid {
		grid-template-columns: 1fr !important;
		column-gap: 0 !important;
		row-gap: 22px !important;
	}

	.haam-mag-term-card.haam-mag-other-card {
		grid-template-columns: minmax(0, 1fr) 140px !important;
	}

	.haam-mag-term-card .haam-mag-other-card__media,
	.haam-mag-term-card__thumb,
	.haam-mag-term-card .wp-block-post-featured-image {
		width: 140px !important;
		max-width: 140px !important;
	}
}

@media (max-width: 480px) {
	.haam-mag-term-card.haam-mag-other-card {
		grid-template-columns: minmax(0, 1fr) 112px !important;
		gap: 12px !important;
		padding: 14px !important;
	}

	.haam-mag-term-card .haam-mag-other-card__media,
	.haam-mag-term-card__thumb,
	.haam-mag-term-card .wp-block-post-featured-image {
		width: 112px !important;
		max-width: 112px !important;
	}

	.haam-mag-term-archive__title {
		font-size: 26px !important;
	}
}

/* Accordion: category / tag description */
.haam-term-about {
	margin-top: 48px;
	width: 100%;
}

.haam-term-about__details {
	border: 1px solid #e4e2f0;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}

.haam-term-about__summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 700;
	color: #1a1532;
	user-select: none;
}

.haam-term-about__summary::-webkit-details-marker {
	display: none;
}

.haam-term-about__chevron {
	display: inline-flex;
	color: #6b6680;
	transition: transform 0.2s ease;
	flex: 0 0 auto;
}

.haam-term-about__details[open] .haam-term-about__chevron {
	transform: rotate(180deg);
	color: #ebd11a;
}

.haam-term-about__body {
	padding: 0 16px 16px;
	font-size: 14px;
	line-height: 1.8;
	color: #4e4e4e;
	border-top: 1px solid #f0eef5;
	padding-top: 14px;
}

.haam-term-about__body p {
	margin: 0 0 0.75em;
}

.haam-term-about__body p:last-child {
	margin-bottom: 0;
}



/* Equal-size card text: titles + 3-line excerpts */
.haam-mag-excerpt,
.haam-mag-excerpt p,
.haam-mag .haam-mag-excerpt .wp-block-post-excerpt__excerpt,
.haam-mag-news-list__excerpt,
.haam-mag-news-list__excerpt p,
.haam-mag-featured__excerpt,
.haam-mag-featured__excerpt p {
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden !important;
	margin: 0 !important;
	font-size: 13px !important;
	line-height: 1.7 !important;
	color: #6b6680 !important;
	min-height: calc(1.7em * 3);
	max-height: calc(1.7em * 3);
}

.haam-mag-featured__excerpt,
.haam-mag-featured__excerpt p {
	font-size: 14px !important;
	min-height: calc(1.8em * 3);
	max-height: calc(1.8em * 3);
	line-height: 1.8 !important;
}

.haam-mag-stories__featured-excerpt {
	display: -webkit-box !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden !important;
	margin: 0 !important;
	min-height: 0 !important;
	max-height: none !important;
	font-size: 14px !important;
	line-height: 1.75 !important;
	color: rgba(255, 255, 255, 0.88) !important;
}

/* Title slot always = 2 lines so excerpts share the same top edge */
.haam-mag-card__title,
.haam-mag-stories__card-title,
.haam-mag-video-card__title,
.haam-mag-other-card__title:not(.haam-mag-news-list__item .haam-mag-other-card__title) {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.55 !important;
	height: calc(16px * 1.55 * 2) !important;
	min-height: calc(16px * 1.55 * 2) !important;
	max-height: calc(16px * 1.55 * 2) !important;
	flex: 0 0 calc(16px * 1.55 * 2) !important;
	overflow: hidden !important;
}

/* Card post titles stay dark (not brand purple) */
.haam-mag .haam-mag-featured__title a,
.haam-mag .haam-mag-featured__title a:link,
.haam-mag .haam-mag-featured__title a:visited,
.haam-mag .haam-mag-featured__title a:hover,
.haam-mag .haam-mag-featured__title a:active,
.haam-mag .haam-mag-featured__title a:focus,
.haam-mag .haam-mag-card__title a,
.haam-mag .haam-mag-card__title a:link,
.haam-mag .haam-mag-card__title a:visited,
.haam-mag .haam-mag-card__title a:hover,
.haam-mag .haam-mag-card__title a:active,
.haam-mag .haam-mag-card__title a:focus,
.haam-mag .haam-mag-stories__featured-title a,
.haam-mag .haam-mag-stories__featured-title a:link,
.haam-mag .haam-mag-stories__featured-title a:visited,
.haam-mag .haam-mag-stories__featured-title a:hover,
.haam-mag .haam-mag-stories__featured-title a:active,
.haam-mag .haam-mag-stories__featured-title a:focus,
.haam-mag .haam-mag-stories__card-title a,
.haam-mag .haam-mag-stories__card-title a:link,
.haam-mag .haam-mag-stories__card-title a:visited,
.haam-mag .haam-mag-stories__card-title a:hover,
.haam-mag .haam-mag-stories__card-title a:active,
.haam-mag .haam-mag-stories__card-title a:focus,
.haam-mag .haam-mag-video-card__title a,
.haam-mag .haam-mag-video-card__title a:link,
.haam-mag .haam-mag-video-card__title a:visited,
.haam-mag .haam-mag-video-card__title a:hover,
.haam-mag .haam-mag-video-card__title a:active,
.haam-mag .haam-mag-video-card__title a:focus,
.haam-mag .haam-mag-other-card__title a,
.haam-mag .haam-mag-other-card__title a:link,
.haam-mag .haam-mag-other-card__title a:visited,
.haam-mag .haam-mag-other-card__title a:hover,
.haam-mag .haam-mag-other-card__title a:active,
.haam-mag .haam-mag-other-card__title a:focus,
.haam-mag h2.haam-mag-card__title a,
.haam-mag h3.haam-mag-video-card__title a,
.haam-mag h3.haam-mag-stories__card-title a {
	color: #1a1532 !important;
	opacity: 1 !important;
}

.haam-mag .haam-mag-featured__title a:hover,
.haam-mag .haam-mag-card__title a:hover,
.haam-mag .haam-mag-stories__featured-title a:hover,
.haam-mag .haam-mag-stories__card-title a:hover,
.haam-mag .haam-mag-video-card__title a:hover,
.haam-mag .haam-mag-other-card__title a:hover {
	color: #1a1532 !important;
	opacity: 0.72 !important;
}

/* Section headings stay dark */
.haam-mag-stories__title,
.haam-mag-videos__title,
.haam-mag-other__title {
	color: #1a1532 !important;
}

.haam-mag-card__title a,
.haam-mag-stories__card-title a,
.haam-mag-video-card__title a,
.haam-mag-other-card__title a {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
	overflow: hidden !important;
	text-decoration: none !important;
	line-height: 1.55 !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	height: 100% !important;
	max-height: calc(16px * 1.55 * 2) !important;
}

.haam-mag-grid,
.haam-mag-stories__grid,
.haam-mag-videos__grid {
	align-items: stretch;
}

.haam-mag-grid > .wp-block-post,
.haam-mag-grid > li,
.haam-mag-stories__grid > .haam-mag-stories__card,
.haam-mag-videos__grid > .haam-mag-video-card {
	height: 100%;
	align-self: stretch;
}

.haam-mag-card,
.haam-mag-stories__card,
.haam-mag-video-card {
	height: 100%;
	display: flex !important;
	flex-direction: column !important;
}

.haam-mag-card__body,
.haam-mag-stories__card-body,
.haam-mag-video-card__body {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows:
		auto
		calc(16px * 1.55 * 2)
		calc(13px * 1.7 * 2);
	align-content: start;
	align-items: stretch;
	flex: 1 1 auto;
	gap: 12px !important;
	padding: 16px !important;
}

/* Grid rows own the slot sizes ? kill flex sizing fights */
.haam-mag-card__body > .haam-mag-meta,
.haam-mag-stories__card-body > .haam-mag-meta,
.haam-mag-video-card__body > .haam-mag-meta {
	height: auto !important;
	min-height: 28px !important;
	max-height: none !important;
	flex: none !important;
	align-self: stretch !important;
	overflow: visible !important;
}

.haam-mag-card__body > .haam-mag-card__title,
.haam-mag-stories__card-body > .haam-mag-stories__card-title,
.haam-mag-video-card__body > .haam-mag-video-card__title {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	flex: none !important;
	align-self: stretch !important;
	overflow: hidden !important;
	margin: 0 !important;
}

.haam-mag-card__body > .haam-mag-excerpt,
.haam-mag-stories__card-body > .haam-mag-excerpt,
.haam-mag-video-card__body > .haam-mag-excerpt {
	margin: 0 !important;
	margin-top: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	flex: none !important;
	align-self: stretch !important;
	overflow: hidden !important;
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
	font-size: 13px !important;
	line-height: 1.7 !important;
	color: #6b6680 !important;
}

.haam-mag-other-card__content {
	justify-content: flex-start;
}

.haam-mag-other__grid {
	align-items: stretch;
}

.haam-mag-other-card {
	height: auto;
	align-items: start !important;
}

.haam-mag-other-card__media {
	align-self: start !important;
	width: 200px !important;
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: var(--haam-thumb-ratio) !important;
	background: #eceaf3 !important;
}

@media (max-width: 480px) {
	.haam-mag-other .haam-mag-other-card__media {
		width: 140px !important;
		aspect-ratio: var(--haam-thumb-ratio) !important;
	}
}

.haam-mag-videos__grid,
.haam-mag-stories__grid,
.haam-mag-grid {
	align-items: stretch;
}


/* Home hero ? full-viewport bleed video */
.haam-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100svh;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #0c0a12;
}

.haam-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 0;
	aspect-ratio: auto;
	background-color: #0c0a12;
	background-image: image-set(
		url("assets/videos/haam-hero-poster.webp") type("image/webp"),
		url("assets/videos/haam-hero-poster.jpg") type("image/jpeg")
	);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.haam-hero__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.haam-hero__scrim {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(
			180deg,
			rgba(12, 10, 18, 0.55) 0%,
			rgba(12, 10, 18, 0.28) 38%,
			rgba(12, 10, 18, 0.45) 72%,
			rgba(12, 10, 18, 0.72) 100%
		);
}

.haam-hero__content {
	position: relative;
	z-index: 1;
	width: min(920px, calc(100% - 48px));
	margin: 0 auto;
	padding: 96px 0 72px;
	text-align: center;
	color: #fff;
}

.haam-hero__brand {
	margin: 0 0 18px;
	font-size: clamp(42px, 8vw, 72px);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	color: #ebd11a;
}

.haam-hero__title {
	margin: 0 0 16px;
	font-size: clamp(28px, 4.6vw, 48px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.25;
	color: #ffffff;
}

.haam-hero__lead {
	margin: 0 auto 28px;
	max-width: 34em;
	font-size: clamp(15px, 1.7vw, 18px);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.86);
}

.haam-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.haam-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 26px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.haam-hero__btn:hover {
	transform: translateY(-1px);
}

.haam-hero__btn--primary {
	background: #ebd11a;
	color: #1a1532;
}

.haam-hero__btn--primary:hover {
	background: #f0d94a;
	color: #1a1532;
}

.haam-hero__btn--ghost {
	background: transparent;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.haam-hero__btn--ghost:hover {
	border-color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

/* Front page: header floats over the full-bleed hero */
.haam-front-canvas > .wp-block-template-part:has(.haam-site-header),
.haam-front-canvas > header.wp-block-template-part {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 40;
	width: 100%;
}

.haam-front-canvas .haam-site-header {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none;
	border-bottom-color: transparent !important;
}

.haam-front-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content {
	color: #ffffff !important;
}

.haam-front-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content:hover,
.haam-front-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content:focus-visible {
	color: #ebd11a !important;
	opacity: 1;
}

.haam-front-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container {
	background: #fff !important;
	border: 1px solid rgba(26, 21, 50, 0.12) !important;
	box-shadow: 0 14px 36px rgba(26, 21, 50, 0.18);
	z-index: 100;
}

.haam-front-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.haam-front-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.haam-front-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	color: #1a1532 !important;
	opacity: 1 !important;
}

.haam-front-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__description {
	color: #5c5770 !important;
}

.haam-front-canvas .haam-site-header__logo img {
	filter: brightness(0) invert(1);
}

.haam-front-canvas .haam-site-header .wp-block-navigation__responsive-container-open,
.haam-front-canvas .haam-site-header .wp-block-navigation__responsive-container-open svg {
	color: #ffffff;
	fill: #ffffff;
}

@media (max-width: 781px) {
	.haam-hero__content {
		width: min(920px, calc(100% - 32px));
		padding: 88px 0 56px;
	}

	.haam-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
	}

	.haam-hero__btn {
		width: auto;
		flex: 0 1 auto;
	}
}

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

	.haam-hero__media {
		background: #0c0a12 url("assets/videos/haam-hero-poster.jpg") center / cover no-repeat;
	}
}

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

/* Site header ? transparent, equal vertical padding around logo */
.haam-site-header {
	--haam-header-pad-y: 36px;
	--haam-header-pad-x: var(--wp--preset--spacing--50, clamp(30px, 5vw, 50px));
	position: relative;
	z-index: 20;
	/* Do NOT use isolation:isolate here — it traps the mobile nav's
	   position:fixed overlay inside the header box (broken on /ai-maturity/). */
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none;
	border-bottom-color: transparent !important;
	border-bottom-width: 0 !important;
	box-sizing: border-box;
	padding-top: var(--haam-header-pad-y) !important;
	padding-bottom: var(--haam-header-pad-y) !important;
	padding-left: var(--haam-header-pad-x) !important;
	padding-right: var(--haam-header-pad-x) !important;
}

.haam-site-header .wp-block-navigation__responsive-container-open {
	position: relative;
	z-index: 2;
	pointer-events: auto;
}

.haam-site-header .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	z-index: 100000 !important;
}

@keyframes haam-header-line {
	0% {
		background-position: 110% 0;
	}
	100% {
		background-position: -40% 0;
	}
}

/* Clean site header: logo | links | CTA (no auto page-list) */
.haam-site-header__inner {
	width: 100%;
	max-width: 1200px;
	margin-left: auto !important;
	margin-right: auto !important;
	gap: 16px !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	box-sizing: border-box;
}

/*
 * WP overlayMenu:"mobile" only collapses below 600px.
 * Persian labels need hamburger earlier so the bar never wraps/overflows.
 */
@media (max-width: 1100px) {
	.haam-site-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}

	.haam-site-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
}

.haam-site-header__logo {
	margin: 0 !important;
	flex-shrink: 0;
	display: flex !important;
	align-items: center;
	line-height: 0;
	width: 120px;
	height: 32px;
}

.haam-site-header__logo a {
	display: block;
	width: 120px;
	height: 32px;
	line-height: 0;
}

.haam-site-header__logo img {
	display: block;
	width: 120px;
	height: 32px;
	max-height: 32px;
	object-fit: contain;
	object-position: center;
}

.haam-site-header__actions {
	gap: 20px !important;
	align-items: center !important;
	min-width: 0;
}

.haam-site-header__nav {
	min-width: 0;
}

.haam-site-header__nav .wp-block-navigation-item__content {
	white-space: nowrap;
	text-decoration: none !important;
	color: var(--wp--preset--color--text-dark, #1a1532) !important;
	font-weight: 400;
	font-size: 15px;
}

.haam-site-header__nav .wp-block-navigation-item__content:hover,
.haam-site-header__nav .wp-block-navigation-item__content:focus-visible {
	color: #1a1532 !important;
	opacity: 0.72;
}

/* ??????? dropdown */
.haam-site-header__nav .wp-block-navigation-item.has-child {
	position: relative;
}

.haam-site-header__nav .wp-block-navigation-item.has-child::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 160px;
	height: 16px;
	z-index: 99;
}

.haam-site-header__nav .wp-block-navigation__submenu-icon {
	margin-inline-start: 4px;
}

.haam-site-header__nav .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
	width: max-content;
	min-width: 0 !important;
	max-width: none;
	padding: 6px !important;
	border: 1px solid rgba(26, 21, 50, 0.1) !important;
	border-radius: 8px;
	background: #fff !important;
	box-shadow: 0 10px 28px rgba(26, 21, 50, 0.12);
	gap: 2px !important;
	top: calc(100% - 2px) !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%) !important;
	z-index: 100;
}

.haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item {
	width: 100%;
}

.haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
	padding: 8px 14px !important;
	text-align: center !important;
	color: #1a1532 !important;
	opacity: 1 !important;
	white-space: nowrap;
	border-radius: 6px;
}

.haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
	font-weight: 700;
	font-size: 0.88rem;
	text-align: center;
}

.haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__description {
	display: none;
}

.haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background: rgba(235, 209, 26, 0.22);
	color: #1a1532 !important;
	opacity: 1 !important;
}

/* Keep dropdown readable over transparent dark headers */
.haam-front-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.haam-cheshm-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.haam-nozia-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.haam-about-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
body.haam-svc-has-video .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: #1a1532 !important;
	opacity: 1 !important;
}

/* —— Mobile overlay menu: undo desktop dropdown styles + force readable colors —— */
.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open {
	background: #fff !important;
	background-color: #fff !important;
	color: #1a1532 !important;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content,
.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__container {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	width: 100% !important;
	max-width: 100% !important;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	width: 100% !important;
	max-width: 100% !important;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item__content,
.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item__content:hover,
.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item__content:focus-visible,
.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item__label {
	color: #1a1532 !important;
	opacity: 1 !important;
	white-space: normal;
	text-align: start;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item:not(.has-child) > .wp-block-navigation-item__content {
	width: 100%;
	padding-block: 12px;
	font-size: 1.05rem;
	font-weight: 600;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__submenu-icon,
.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-close,
.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-close svg {
	color: #1a1532 !important;
	fill: #1a1532 !important;
	stroke: #1a1532 !important;
}

/* No hover-bridge inside the overlay (it blocks taps) */
.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child::after {
	display: none !important;
	content: none !important;
}

/* Keep the submenu chevron in the overlay so Products can collapse */
.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item.has-child {
	justify-content: flex-start !important;
	gap: 6px;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation-item__content {
	flex: 0 1 auto;
	width: auto;
	padding-block: 12px;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Submenu collapsed by default; expands when the chevron is toggled */
.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	transform: none !important;
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	overflow: hidden !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	gap: 0 !important;
	flex: 0 0 100%;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item.has-child:has(> .wp-block-navigation-submenu__toggle[aria-expanded="true"]) > .wp-block-navigation__submenu-container,
.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"] + .wp-block-navigation__submenu-container {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
	height: auto !important;
	padding: 0 0 8px !important;
	padding-inline-start: 0.75rem !important;
	margin: 0 0 4px !important;
	border-inline-start: 2px solid rgba(26, 21, 50, 0.14) !important;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	width: 100% !important;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 10px 0 10px !important;
	padding-inline-start: 12px !important;
	text-align: start !important;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 0;
	background: transparent !important;
	color: #1a1532 !important;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
	font-size: 1rem;
	font-weight: 600;
	text-align: start;
}

.haam-site-header__nav .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__description {
	display: none !important;
}

.haam-site-header__cta {
	flex-shrink: 0;
}


.haam-site-header__cta .wp-block-button__link {
	white-space: nowrap;
}

@media (max-width: 781px) {
	.haam-site-header__actions {
		gap: 12px !important;
	}

	.haam-site-header__cta .wp-block-button__link {
		padding-left: 14px !important;
		padding-right: 14px !important;
		font-size: 14px !important;
	}
}

@media (max-width: 480px) {
	.haam-site-header__cta {
		display: none !important;
	}
}

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

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

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

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

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

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

/* Primary is yellow ? use dark text on filled yellow surfaces */
.has-primary-background-color,
.has-primary-background-color.has-white-color,
.has-primary-background-color.has-text-color,
.wp-element-button.has-primary-background-color,
.wp-block-button__link.has-primary-background-color,
.wp-block-search__button.has-primary-background-color {
	color: #1a1532 !important;
}

/*
 * Canonical magazine featured-image crop — ALWAYS 16:9.
 * Frame owns aspect-ratio; img fills with object-fit:cover + center.
 * Upload/size: haam-thumb (1280×720 hard crop).
 * Exceptions (not post featured): cat carousel 2:3.4, cast episode covers 1:1.
 */
.haam-mag .wp-block-post-featured-image,
.haam-mag-shell .wp-block-post-featured-image,
body.single-post .wp-block-post-featured-image {
	aspect-ratio: var(--haam-thumb-ratio);
	overflow: hidden;
	background: #eceaf3;
}

.haam-mag .wp-block-post-featured-image img,
.haam-mag-shell .wp-block-post-featured-image img,
body.single-post .wp-block-post-featured-image img,
.haam-home-mag__feature-img,
.haam-mag-stories__featured-img,
.haam-mag-stories__featured-img img,
.haam-mag-stories__card-img,
.haam-mag-stories__card-img img,
.haam-mag-video-card__img,
.haam-mag-video-card__img img,
.haam-mag-other-card__img,
.haam-mag-other-card__img img,
.haam-mag-related__media img,
.haam-mag-single__image img,
.haam-cast-mag-card__img {
	object-fit: cover !important;
	object-position: center !important;
}

/* Force Yekan Bakh across the whole site (overrides block font family presets) */
body,
button,
input,
select,
textarea,
.wp-block-button__link,
.wp-element-button,
.has-manrope-font-family,
.has-inter-font-family,
.has-inter-tight-font-family,
.has-vazirmatn-font-family,
.has-yekan-bakh-font-family {
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif !important;
}

/* Focus + reduced motion + single/search polish */
.haam-cat-carousel__btn:focus-visible,
.haam-term-about__summary:focus-visible,
.haam-mag a:focus-visible,
.haam-mag button:focus-visible {
	outline: 2px solid #ebd11a;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.haam-mag *,
	.haam-mag *::before,
	.haam-mag *::after,
	.haam-cat-carousel__track {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Single post shell: transparent on full-white page (no card) */
.haam-mag-single__shell {
	width: min(1120px, calc(100% - 40px)) !important;
	max-width: 1120px !important;
	margin-inline: auto !important;
	margin-block: 0 48px !important;
	padding: clamp(24px, 3.5vw, 40px) clamp(20px, 4vw, 48px) clamp(48px, 6vw, 80px) !important;
	background: transparent !important;
	background-color: transparent !important;
	border-radius: 0;
	box-shadow: none;
	box-sizing: border-box;
}

/* Comfortable reading measure inside the wide shell */
.haam-mag-single__header,
.haam-mag-single__content,
.haam-mag-single__bar,
.haam-mag-single .haam-mag-breadcrumb,
.haam-mag-single .haam-mag-comments {
	max-width: 720px;
	margin-inline: auto;
	width: 100%;
}

.haam-mag-single__image {
	max-width: 920px;
	margin-inline: auto !important;
}

.haam-mag.haam-mag-single,
.haam-mag-single {
	background: #ffffff !important;
	background-color: #ffffff !important;
	background-image: none !important;
}

.haam-aima-page {
	background: transparent !important;
}
body.page-template-page-ai-maturity,
body.page-ai-maturity {
	background: #e9e9eb !important;
	background-color: #e9e9eb !important;
}

body.page-template-page-ai-maturity .wp-site-blocks,
body.page-ai-maturity .wp-site-blocks {
	background: #e9e9eb !important;
	background-color: #e9e9eb !important;
}

.haam-mag-single__title {
	margin: 0 !important;
	color: #1a1532 !important;
	text-align: center !important;
	font-size: clamp(24px, 3.4vw, 34px) !important;
	font-weight: 800 !important;
	line-height: 1.45 !important;
}

.haam-mag-single__lead,
.haam-mag-single__lead p {
	margin: 0 auto !important;
	max-width: 46rem;
	text-align: center !important;
	color: #6b6680 !important;
	font-size: 16px !important;
	line-height: 1.85 !important;
	font-weight: 400 !important;
}

.haam-mag-single__image {
	position: relative;
	margin: 0 0 36px !important;
	overflow: hidden;
	border-radius: 18px !important;
	background: #eceaf3;
	aspect-ratio: var(--haam-thumb-ratio);
	line-height: 0;
}

.haam-mag-single__image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: unset;
	object-fit: cover;
	object-position: center;
}

.haam-mag-single__bar {
	width: 100%;
	gap: 16px 24px !important;
	padding: 4px 0 8px;
}

/* Card meta row clips chips; single needs full Jalali long date + full category name */
.haam-mag-single__meta.haam-mag-meta {
	width: auto;
	max-width: 100%;
	height: auto !important;
	min-height: 28px !important;
	max-height: none !important;
	flex: 1 1 auto !important;
	flex-wrap: wrap !important;
	overflow: visible !important;
	gap: 10px !important;
	min-width: 0;
}

.haam-mag-single__meta > .wp-block-post-terms.haam-mag-tag {
	flex: 0 0 auto !important;
	min-width: max-content !important;
	max-width: none !important;
	overflow: visible !important;
}

.haam-mag-single__meta > .wp-block-post-terms.haam-mag-tag > a,
.haam-mag-single__meta a.haam-mag-tag {
	max-width: none !important;
	min-width: max-content !important;
	flex: 0 0 auto !important;
	overflow: visible !important;
	text-overflow: clip !important;
	white-space: nowrap !important;
	height: auto !important;
	min-height: 28px !important;
	padding-block: 6px !important;
}

.haam-mag-single__meta .haam-mag-date,
.haam-mag-single__meta .haam-mag-date a,
.haam-mag-single__meta .wp-block-post-date {
	margin-inline-start: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	height: auto !important;
	max-width: none !important;
	overflow: visible !important;
	color: #8a849c !important;
	font-size: 13px !important;
	white-space: nowrap !important;
}

.haam-mag-share {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
}

.haam-mag-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: #9a94ab !important;
	text-decoration: none !important;
	border-radius: 999px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.haam-mag-share__btn:hover,
.haam-mag-share__btn:focus-visible {
	color: #1a1532 !important;
	background: rgba(26, 21, 50, 0.06);
}

.haam-mag-single__content {
	color: #2f2a45;
	text-align: right;
	font-size: 17px !important;
	line-height: 1.9 !important;
}

.haam-mag-single__content p {
	margin: 0 0 1.15em !important;
}

.haam-mag-single__content > *:last-child {
	margin-bottom: 0 !important;
}

.haam-mag-single__nav {
	padding-top: 20px;
	border-top: 1px solid #ebe8f2;
}

.haam-mag-single__nav a {
	text-decoration: none !important;
	font-weight: 600;
}

/* Related posts */
.haam-mag-related {
	margin: 56px 0 0;
	width: 100%;
}

.haam-mag-related__title {
	margin: 0 0 20px !important;
	font-size: 22px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	color: #1a1532 !important;
	text-align: right;
}

.haam-mag-related__grid {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 24px;
}

.haam-mag-related__card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.haam-mag-related__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 14px;
	background: #eceaf3;
	aspect-ratio: var(--haam-thumb-ratio);
	line-height: 0;
}

.haam-mag-related__media img,
.haam-mag-related__media-empty {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.haam-mag-related__media-empty {
	background: #eceaf3;
}

.haam-mag-related__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: right;
}

.haam-mag-related__meta {
	gap: 8px !important;
}

.haam-mag-related__meta .haam-mag-date {
	color: #8a849c !important;
	font-size: 12px !important;
}

.haam-mag-related__card-title {
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.55 !important;
}

.haam-mag-related__card-title a {
	color: #1a1532 !important;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.haam-mag-related__card-title a:hover {
	opacity: 0.75;
}

/* Comments */
.haam-mag-comments {
	margin-top: 56px;
	width: 100%;
	text-align: right;
}

.haam-mag-comments__list {
	margin: 0 0 36px !important;
	padding: 0 !important;
	list-style: none !important;
}

.haam-mag-comments .comment-respond,
.haam-mag-comments__form .comment-respond {
	margin: 0;
}

.haam-mag-comments .comment-reply-title,
.haam-mag-comments #reply-title {
	margin: 0 0 8px !important;
	font-size: 22px !important;
	font-weight: 800 !important;
	color: #1a1532 !important;
	line-height: 1.3 !important;
}

.haam-mag-comments .comment-notes {
	margin: 0 0 22px !important;
	font-size: 13px !important;
	line-height: 1.7 !important;
	color: #8a849c !important;
}

.haam-mag-comments .comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
	direction: rtl;
}

.haam-mag-comments .comment-notes,
.haam-mag-comments .logged-in-as,
.haam-mag-comments .comment-form-cookies-consent,
.haam-mag-comments .comment-form-comment,
.haam-mag-comments .form-submit {
	grid-column: 1 / -1;
}

.haam-mag-comments .comment-form-comment {
	margin: 0 !important;
}

.haam-mag-comments .comment-form-author,
.haam-mag-comments .comment-form-email {
	margin: 0 !important;
	min-width: 0;
}

.haam-mag-comments .form-submit {
	margin: 8px 0 0 !important;
	text-align: left;
}

.haam-mag-comments .comment-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1532;
}

.haam-mag-comments .comment-form .required {
	color: #c23b2e;
}

.haam-mag-comments .comment-form textarea,
.haam-mag-comments .comment-form input[type="text"],
.haam-mag-comments .comment-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #ddd9e6;
	border-radius: 10px;
	padding: 12px 14px;
	font: inherit;
	color: #1a1532;
	background: #fff;
	direction: rtl;
	text-align: right;
}

.haam-mag-comments .comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.haam-mag-comments .comment-form textarea:focus,
.haam-mag-comments .comment-form input[type="text"]:focus,
.haam-mag-comments .comment-form input[type="email"]:focus {
	outline: none;
	border-color: #b7b0c8;
	box-shadow: 0 0 0 3px rgba(26, 21, 50, 0.06);
}

.haam-mag-comments__submit,
.haam-mag-comments .comment-form .submit,
.haam-mag-comments .comment-form input#submit,
.haam-mag-comments .form-submit .wp-block-button__link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px !important;
	border: 1px solid #1a1532 !important;
	border-radius: 8px !important;
	background: #ebd11a !important;
	background-color: #ebd11a !important;
	color: #1a1532 !important;
	font: inherit !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.haam-mag-comments__submit:hover,
.haam-mag-comments .comment-form .submit:hover,
.haam-mag-comments .comment-form input#submit:hover,
.haam-mag-comments .form-submit .wp-block-button__link:hover {
	background: #f0d94a !important;
	background-color: #f0d94a !important;
	color: #1a1532 !important;
	transform: translateY(-1px);
}

@media (max-width: 600px) {
	.haam-mag-single__shell {
		width: calc(100% - 16px) !important;
		margin-block: 0 32px !important;
		padding: 16px 12px 40px !important;
		border-radius: 0;
		box-shadow: none;
	}

	.haam-mag-single__title {
		font-size: 22px !important;
	}

	.haam-mag-single__lead,
	.haam-mag-single__lead p {
		font-size: 14px !important;
	}

	.haam-mag-single__image {
		margin-bottom: 24px !important;
		border-radius: 14px !important;
	}

	.haam-mag-single__bar {
		flex-direction: column-reverse;
		align-items: stretch !important;
		gap: 14px !important;
	}

	.haam-mag-share {
		justify-content: flex-start;
	}

	.haam-mag-related {
		margin-top: 40px;
	}

	.haam-mag-related__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.haam-mag-comments {
		margin-top: 40px;
	}

	.haam-mag-comments .comment-form {
		grid-template-columns: 1fr;
	}
}

.haam-mag-search__title {
	margin: 0 !important;
	font-size: clamp(22px, 5.5vw, 32px) !important;
	line-height: 1.35 !important;
	word-break: break-word;
}

.haam-mag-search__intro {
	margin-bottom: 8px;
}

.haam-mag-search__form,
.haam-404__search {
	width: 100% !important;
	max-width: 100% !important;
}

.haam-mag-search__form .wp-block-search__inside-wrapper,
.haam-404__search .wp-block-search__inside-wrapper,
body.error404 .wp-block-search .wp-block-search__inside-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	display: flex !important;
	align-items: stretch;
	gap: 8px;
	box-sizing: border-box;
	padding: 6px !important;
	border: 1px solid #1a1532 !important;
	border-radius: 12px !important;
	background: #fff !important;
}

.haam-mag-search__form .wp-block-search__input,
.haam-404__search .wp-block-search__input,
body.error404 .wp-block-search .wp-block-search__input {
	min-width: 0 !important;
	flex: 1 1 auto !important;
	width: auto !important;
	padding: 10px 12px !important;
	border: 0 !important;
	border-radius: 8px !important;
	font-size: 0.95rem !important;
	line-height: 1.5 !important;
	color: #1a1532;
	background: transparent;
}

.haam-mag-search__form .wp-block-search__button,
.haam-404__search .wp-block-search__button,
body.error404 .wp-block-search .wp-block-search__button {
	flex: 0 0 auto !important;
	margin: 0 !important;
	padding: 10px 16px !important;
	border: 0 !important;
	border-radius: 8px !important;
	font-size: 0.92rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	white-space: nowrap;
	color: #1a1532 !important;
	background: #ebd11a !important;
}

.haam-mag-search__form .wp-block-search__button:hover,
.haam-404__search .wp-block-search__button:hover,
body.error404 .wp-block-search .wp-block-search__button:hover {
	background: #ebd11a !important;
	filter: brightness(0.97);
}

/* 404 page */
.haam-404 {
	width: 100%;
}

.haam-404__shell {
	width: min(720px, 100%);
	margin-inline: auto;
	box-sizing: border-box;
}

.haam-404__code {
	margin: 0 !important;
	font-size: clamp(64px, 18vw, 112px) !important;
	letter-spacing: 0.04em !important;
	line-height: 1 !important;
}

.haam-404__title {
	margin: 0 !important;
	font-size: clamp(1.25rem, 4.2vw, 1.75rem) !important;
}

.haam-404__lead {
	margin: 0 auto !important;
	max-width: 36rem;
	font-size: clamp(0.92rem, 2.8vw, 1.05rem) !important;
	line-height: 1.8 !important;
}

.haam-404__actions {
	width: 100%;
}

.haam-404__ctas {
	gap: 10px !important;
}

.haam-404__cta .wp-block-button__link {
	width: auto;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.haam-404__suggest-label {
	margin: 0 !important;
	font-size: 0.9rem !important;
}

.haam-404__links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
}

.haam-404__link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #1a1532;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.55);
	color: #1a1532;
	font-size: 0.92rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	line-height: 1.35;
	transition: background 0.2s ease, transform 0.2s ease;
}

.haam-404__link:hover {
	background: rgba(235, 209, 26, 0.35);
	color: #1a1532;
}

@media (max-width: 700px) {
	.haam-404__shell {
		padding-top: 32px !important;
		padding-bottom: 48px !important;
	}

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

	.haam-404__ctas {
		width: 100%;
	}

	.haam-404__cta {
		flex: 1 1 calc(50% - 6px);
		min-width: 140px;
	}

	.haam-404__cta .wp-block-button__link {
		width: 100%;
	}

	.haam-mag-search__form .wp-block-search__inside-wrapper,
	.haam-404__search .wp-block-search__inside-wrapper,
	body.error404 .wp-block-search .wp-block-search__inside-wrapper {
		flex-wrap: wrap;
		padding: 8px !important;
	}

	.haam-mag-search__form .wp-block-search__input,
	.haam-404__search .wp-block-search__input,
	body.error404 .wp-block-search .wp-block-search__input {
		flex: 1 1 100% !important;
		padding: 12px 10px !important;
	}

	.haam-mag-search__form .wp-block-search__button,
	.haam-404__search .wp-block-search__button,
	body.error404 .wp-block-search .wp-block-search__button {
		flex: 1 1 100% !important;
		width: 100% !important;
		padding: 12px 16px !important;
	}

	.haam-mag-news-list__item.haam-mag-other-card {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}

	.haam-mag-news-list__thumb,
	.haam-mag-news-list__item .wp-block-post-featured-image {
		width: 100% !important;
		max-width: 100% !important;
	}
}

@media (max-width: 420px) {
	.haam-404__links {
		grid-template-columns: 1fr;
	}

	.haam-404__cta {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.haam-404__link {
		transition: none;
	}
}

.haam-mag-empty-hint {
	padding: 12px 0 8px;
	font-size: 14px !important;
}

.haam-mag-videos-archive__grid {
	margin-top: 8px;
}

.haam-mag__shell {
	padding-bottom: 64px !important;
}

@media (max-width: 600px) {
	.haam-mag-stories__title,
	.haam-mag-videos__title,
	.haam-mag-other__title {
		font-size: 32px;
	}
}

