/* ===========================================================
   Single Post page
   RTL, Hebrew, scoped under .post-single.
   =========================================================== */

:root {
	--nzm-post-font: "Ploni DL 1.1 AAA", "Heebo", "Assistant", system-ui, sans-serif;
	--nzm-post-black: #0b0b0b;
	--nzm-post-ink: #1a1a1a;
	--nzm-post-mute: #4a4a4a;
	--nzm-post-line: #e5e5e5;

	--nzm-post-container-wide: 1600px;
	--nzm-post-container-narrow: 900px;
	--nzm-post-pad: clamp(16px, 4vw, 50px);

	--nzm-post-radius: 10px;
}

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

.post-single {
	width: 100%;
	max-width: var(--nzm-post-container-wide);
	margin-inline: auto;
	padding: clamp(24px, 4vw, 48px) var(--nzm-post-pad) clamp(40px, 6vw, 80px);
	font-family: var(--nzm-post-font);
	color: var(--nzm-post-ink);
	direction: rtl;
	text-align: right;
}

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

.post-single a {
	color: inherit;
}

/* ============================================
   Title
   ============================================ */
.post-single__title {
	width: 100%;
	max-width: var(--nzm-post-container-narrow);
	margin: 0 auto clamp(20px, 3vw, 40px);
	text-align: center;
	color: var(--nzm-post-black);
	font-size: clamp(28px, 4.2vw, 54px);
	font-weight: 400;
	line-height: 1.08;
}

/* ============================================
   Hero
   ============================================ */
.post-single__hero {
	margin: 0 0 clamp(24px, 3vw, 40px);
}

.post-single__hero img,
.post-single__hero-img {
	width: 100%;
	height: auto;
	aspect-ratio: 1370 / 500;
	object-fit: cover;
	border-radius: var(--nzm-post-radius);
}

.post-single__hero-credit {
	margin-top: 10px;
	text-align: center;
	color: var(--nzm-post-black);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4;
}

.post-single__hero-credit strong {
	font-weight: 700;
}

/* ============================================
   Meta bar (author, date, share)
   ============================================ */
.post-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	padding: 16px 0;
	border-top: 1px solid var(--nzm-post-line);
	border-bottom: 1px solid var(--nzm-post-line);
	margin-bottom: clamp(24px, 3vw, 40px);
	font-size: clamp(16px, 1.4vw, 20px);
	line-height: 1.2;
}

.post-single__meta-author {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.post-single__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.post-single__meta-author > span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.post-single__meta-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nzm-post-black);
	flex-shrink: 0;
}

.post-single__meta strong {
	font-weight: 700;
}

.post-single__share {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-inline-start: auto;
}

.post-single__share-label {
	font-weight: 700;
}

.post-single__share-list {
	display: flex;
	align-items: center;
	gap: 14px;
}

.post-single__share-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--nzm-post-black);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--nzm-post-black);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.post-single__share-btn:hover {
	background: var(--nzm-post-black);
	color: #fff;
}

.post-single__share-btn svg {
	width: 18px;
	height: auto;
	display: block;
}

/* ============================================
   Body + TOC layout (grid)
   ============================================ */
.post-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 375px;
	gap: clamp(24px, 4vw, 60px);
	align-items: start;
}

.post-single__body {
	width: 100%;
	min-width: 0;
}

/* ============================================
   Body content (the_content + sections)
   ============================================ */
.post-single__content {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2vw, 28px);
	color: var(--nzm-post-black);
	font-size: clamp(16px, 1.5vw, 21px);
	font-weight: 400;
	line-height: 1.45;
}

.post-single__content > :first-child {
	font-size: clamp(18px, 1.8vw, 24px);
	font-weight: 500;
	line-height: 1.35;
}

.post-single__content p {
	margin: 0;
	text-align: justify;
}

.post-single__content h2,
.post-section-title {
	margin: clamp(12px, 1.6vw, 24px) 0 0;
	color: var(--nzm-post-black);
	font-size: clamp(24px, 3vw, 40px);
	font-weight: 500;
	line-height: 1.25;
	text-align: right;
}

.post-single__content h3 {
	margin: clamp(8px, 1vw, 16px) 0 0;
	color: var(--nzm-post-black);
	font-size: clamp(20px, 2.1vw, 26px);
	font-weight: 500;
	line-height: 1.18;
	text-align: right;
}

.post-single__content a {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 0.2s ease;
}

.post-single__content a:hover {
	opacity: 0.75;
}

.post-single__content ul,
.post-single__content ol {
	margin: 0;
	padding-inline-start: 1.4em;
}

.post-single__content li + li {
	margin-top: 8px;
}

/* Section titles outside .post-single__content (e.g. reviews, faqs) */
.post-section-title {
	margin-top: clamp(32px, 4vw, 56px);
	margin-bottom: clamp(16px, 2vw, 24px);
}

/* ============================================
   Inline body image
   ============================================ */
.post-body-img {
	margin: clamp(24px, 3vw, 40px) 0;
}

.post-body-img img {
	width: 100%;
	height: auto;
	border-radius: var(--nzm-post-radius);
}

.post-body-img figcaption {
	margin-top: 10px;
	text-align: center;
	color: var(--nzm-post-black);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4;
}

.post-body-img figcaption strong {
	font-weight: 700;
}

/* ============================================
   Reviews
   ============================================ */
.post-reviews {
	position: relative;
}

.post-reviews__track {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(16px, 2vw, 24px);
}

.post-reviews__card {
	background: #fff;
	border: 1px solid #e9e9e9;
	border-radius: 6px;
	padding: clamp(20px, 2.4vw, 32px);
	display: flex;
	flex-direction: column;
	min-height: 380px;
}

.post-reviews__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.post-reviews__logo {
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.post-reviews__logo svg {
	width: 100%;
	height: 100%;
	display: block;
}

.post-reviews__stars {
	display: inline-flex;
	gap: 6px;
	color: #000;
	line-height: 1;
}

.post-reviews__stars svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.post-reviews__text {
	margin: 0 0 20px;
	color: var(--nzm-post-black);
	font-size: clamp(16px, 1.4vw, 19px);
	font-weight: 400;
	line-height: 1.47;
	text-align: right;
	flex: 1;
}

.post-reviews__name {
	display: block;
	color: var(--nzm-post-black);
	font-size: clamp(16px, 1.4vw, 19px);
	font-weight: 700;
	line-height: 1.47;
	text-align: left;
	margin-top: auto;
}

.post-reviews__nav {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: clamp(16px, 2vw, 24px);
}

.post-reviews__btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1px solid #000;
	background: transparent;
	color: #000;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.post-reviews__btn:hover {
	background: #000;
	color: #fff;
}

.post-reviews__btn svg {
	display: block;
}

/* ============================================
   FAQ
   ============================================ */
.post-faq {
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 1.4vw, 18px);
}

.post-faq__item {
	display: flex;
	align-items: flex-start;
	gap: clamp(16px, 2vw, 24px);
	background: #f6f6f6;
	border-radius: 6px;
	padding: clamp(20px, 2.4vw, 28px);
}

.post-faq__icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #000;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
}

.post-faq__body {
	flex: 1;
	min-width: 0;
}

.post-faq__question {
	margin: 0 0 6px;
	color: var(--nzm-post-black);
	font-size: clamp(18px, 1.8vw, 22px);
	font-weight: 700;
	line-height: 1.45;
	text-align: right;
}

.post-faq__answer {
	margin: 0;
	color: var(--nzm-post-black);
	font-size: clamp(16px, 1.5vw, 21px);
	font-weight: 400;
	line-height: 1.42;
	text-align: right;
}

/* ============================================
   Author box
   ============================================ */
.post-author {
	margin-top: clamp(40px, 5vw, 64px);
}

.post-author__heading {
	margin: 0 0 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #000;
	color: var(--nzm-post-black);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 400;
	line-height: 1.2;
	text-align: right;
}

.post-author__card {
	background: #fff;
	border-radius: var(--nzm-post-radius);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	padding: clamp(20px, 2.4vw, 32px);
	display: flex;
	align-items: flex-start;
	gap: clamp(16px, 2vw, 28px);
}

.post-author__avatar {
	width: clamp(80px, 8vw, 109px);
	height: clamp(80px, 8vw, 109px);
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.post-author__info {
	flex: 1;
	min-width: 0;
}

.post-author__name {
	margin: 0 0 12px;
	color: var(--nzm-post-black);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 500;
	line-height: 1.18;
	text-align: right;
}

.post-author__bio {
	margin: 0;
	color: var(--nzm-post-black);
	font-size: clamp(16px, 1.3vw, 19px);
	font-weight: 400;
	line-height: 1.47;
	text-align: right;
}

/* ============================================
   TOC sidebar (sticky)
   ============================================ */
.post-toc {
	position: sticky;
	/* Account for fixed site header height + breathing room */
	top: calc(var(--nzm-header-h-desktop, 168px) + 40px);
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* Ensure TOC anchor clicks scroll past the fixed header */
.post-single h2[id],
.post-single h3[id],
.post-single [id^="post-"] {
	scroll-margin-top: calc(var(--nzm-header-h-desktop, 168px) + 20px);
}

.post-toc__card {
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 27px rgba(0, 0, 0, 0.06);
	padding: 24px 26px;
}

.post-toc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid #000;
	margin-bottom: 16px;
}

.post-toc__title {
	margin: 0;
	color: var(--nzm-post-ink);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.18;
}

.post-toc__toggle {
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #000;
	transition: transform 0.25s ease;
}

.post-toc__toggle[aria-expanded="false"] {
	transform: rotate(-90deg);
}

.post-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.post-toc__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 4px;
	color: var(--nzm-post-ink);
	text-decoration: none;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	transition: background 0.2s ease;
}

.post-toc__item:hover {
	background: #fafafa;
}

.post-toc__item.is-active {
	background: #f6f6f6;
	font-weight: 700;
}

.post-toc__num {
	font-weight: 700;
	color: #000;
	flex-shrink: 0;
	min-width: 28px;
	text-align: right;
}

.post-toc__text {
	flex: 1;
	min-width: 0;
}

.post-single .post-toc__cta,
.post-toc .post-toc__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 56px;
	padding: 0 24px;
	background: #000;
	color: #fff;
	border-radius: 60px;
	font-size: 20px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	border: 1px solid #000;
}

.post-single .post-toc__cta span,
.post-toc .post-toc__cta span {
	color: #fff;
}

.post-single .post-toc__cta:hover,
.post-toc .post-toc__cta:hover {
	background: #fff;
	color: #000;
}

.post-single .post-toc__cta:hover span,
.post-toc .post-toc__cta:hover span {
	color: #000;
}

.post-toc__cta svg {
	flex-shrink: 0;
}

/* ============================================
   Contact form ([nzm_contact])
   ============================================ */
.post-contact {
	margin: clamp(24px, 3vw, 40px) 0;
	background: #000;
	border-radius: 6px;
	padding: clamp(20px, 2.6vw, 32px);
	color: #fff;
}

.post-contact__form {
	display: flex;
	flex-direction: column;
	gap: clamp(14px, 1.6vw, 20px);
}

.post-contact__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

h2#post-section-4{
	color:#fff !important;
	padding: 0;
	margin: 0;
}

.post-contact__title {
	margin: 0;
	color: #fff;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 500;
	line-height: 1.2;
	text-align: right;
}

.post-contact__subtitle {
	margin: 0;
	color: #fff;
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 400;
	line-height: 1.4;
	text-align: right;
}

.post-contact__row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: clamp(10px, 1.2vw, 16px);
	align-items: stretch;
}

.post-contact__field {
	display: flex;
	flex-direction: column;
}

.post-contact__field input {
	width: 100%;
	height: 56px;
	padding: 0 18px;
	background: #f6f6f6;
	border: 1px solid transparent;
	border-radius: 6px;
	color: var(--nzm-post-ink);
	font-family: inherit;
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 400;
	line-height: 1.4;
	text-align: right;
	direction: rtl;
	transition: border-color 0.2s ease;
}

.post-contact__field input:focus {
	outline: none;
	border-color: #fff;
}

.post-contact__field input::placeholder {
	color: var(--nzm-post-mute);
	opacity: 1;
}

.post-contact__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 150px;
	height: 56px;
	padding: 0 22px;
	background: #000;
	color: #fff;
	border: 1px solid #fff;
	border-radius: 60px;
	font-family: inherit;
	font-size: 20px;
	font-weight: 500;
	line-height: 22px;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
}

.post-contact__submit:hover {
	background: #fff;
	color: #000;
}

.post-contact__submit span {
	color: inherit;
}

.post-contact__submit svg {
	flex-shrink: 0;
}

.post-contact__consent {
display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #fff;
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
    justify-content: flex-start;
}

.post-contact__consent input[type="checkbox"] {
	width: 15px;
	height: 15px;
	margin: 4px 0 0;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: #ededed;
}

.post-contact__consent span {
	color: #fff;
	text-align: right;
}

/* Mobile: stack form fields */
@media (max-width: 768px) {
	.post-contact__row {
		grid-template-columns: 1fr;
	}

	.post-contact__submit {
		width: 100%;
	}
}

/* ============================================
   Related posts
   ============================================ */
.post-related {
	margin-top: clamp(48px, 6vw, 80px);
}

.post-related__header {
	text-align: center;
	margin-bottom: clamp(24px, 3vw, 40px);
}

.post-related__title {
	margin: 0 0 8px;
	color: var(--nzm-post-black);
	font-size: clamp(28px, 4.2vw, 54px);
	font-weight: 400;
	line-height: 1.18;
}

.post-related__subtitle {
	margin: 0;
	color: var(--nzm-post-black);
	font-size: clamp(16px, 1.5vw, 21px);
	font-weight: 400;
	line-height: 1.42;
}

.post-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2vw, 24px);
	padding-top: clamp(24px, 3vw, 36px);
	border-top: 1px solid var(--nzm-post-line);
}

.post-related__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--nzm-post-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-related__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.post-related__media {
	width: 100%;
	aspect-ratio: 518 / 255;
	overflow: hidden;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}

.post-related__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.post-related__media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #e8e8e8;
}

.post-related__card:hover .post-related__media img {
	transform: scale(1.04);
}

.post-related__body {
	padding: clamp(18px, 1.8vw, 28px) clamp(20px, 2vw, 32px);
	border: 1px solid var(--nzm-post-line);
	border-top: none;
	border-bottom-left-radius: var(--nzm-post-radius);
	border-bottom-right-radius: var(--nzm-post-radius);
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.post-related__card-title {
	margin: 0;
	color: #000;
	font-size: clamp(20px, 1.8vw, 30px);
	font-weight: 500;
	line-height: 1.2;
	text-align: right;
}

.post-related__card-date {
	color: var(--nzm-post-mute);
	font-size: clamp(15px, 1.1vw, 19px);
	font-weight: 400;
	line-height: 1.28;
	text-align: right;
}

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1024px) {
	.post-single__layout {
		grid-template-columns: 1fr;
	}

	.post-toc {
		position: static;
		top: auto;
		order: -1;
		max-width: 500px;
		margin: 0 auto clamp(16px, 3vw, 32px);
	}

	.post-single h2[id],
	.post-single h3[id],
	.post-single [id^="post-"] {
		scroll-margin-top: calc(var(--nzm-header-h-mobile, 72px) + 16px);
	}

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

	.post-related__grid > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 640px) {
	.post-single {
		padding: 24px 16px 48px;
	}

	.post-single__title {
		font-size: 28px;
		line-height: 1.18;
		text-align: right;
	}

	.post-single__hero img,
	.post-single__hero-img {
		aspect-ratio: 4 / 3;
	}

	.post-single__meta {
		gap: 12px 16px;
		font-size: 15px;
	}

	.post-single__share {
		margin-inline-start: 0;
		width: 100%;
	}

	.post-single__share-btn {
		width: 38px;
		height: 38px;
	}

	.post-single__content {
		font-size: 17px;
	}

	.post-single__content h2,
	.post-section-title {
		font-size: 24px;
	}

	.post-toc__card {
		padding: 20px;
	}

	.post-toc__title {
		font-size: 20px;
	}

	.post-toc__item {
		font-size: 17px;
	}

	.post-toc__cta {
		font-size: 17px;
		height: 50px;
	}

	.post-author__card {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 16px;
	}

	.post-author__name,
	.post-author__bio {
		text-align: center;
	}

	.post-reviews__track {
		grid-template-columns: 1fr;
	}

	.post-reviews__card {
		min-height: auto;
	}

	.post-faq__item {
		gap: 16px;
		padding: 20px;
	}

	.post-faq__icon {
		width: 40px;
		height: 40px;
		font-size: 22px;
	}

	.post-related__grid {
		grid-template-columns: 1fr;
	}
}
