/* Blog single post — magazine layout */

.rabor-content-area--single-post {
	padding-block: 1.5rem 3rem;
	background: linear-gradient(180deg, #f8f8fc 0%, #fff 280px);
}

.rabor-entry--single {
	max-width: 820px;
	margin-inline: auto;
}

.rabor-entry--single .rabor-entry-hero {
	position: relative;
	margin-bottom: 1.75rem;
}

.rabor-entry--single .rabor-entry-featured {
	position: relative;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(32, 28, 112, 0.12);
}

.rabor-entry--single .rabor-entry-featured-image,
.rabor-entry--single .wp-post-image {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin: 0;
	border-radius: 0;
}

.rabor-entry--single .rabor-entry-header {
	margin-bottom: 1.5rem;
	padding: 1.5rem 1.75rem;
	background: #fff;
	border: 1px solid #ececf4;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(32, 28, 112, 0.05);
}

.rabor-entry--single .rabor-entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	color: #888;
	font-size: 0.88rem;
	margin-bottom: 0.85rem;
}

.rabor-entry--single .rabor-blog-card__category {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: #fff0ea;
	color: #f15921;
	font-weight: 700;
	font-size: 0.82rem;
	text-decoration: none;
}

.rabor-entry--single .rabor-blog-card__category:hover {
	background: #f15921;
	color: #fff;
}

.rabor-entry--single .rabor-entry-title {
	color: #201c70;
	font-size: clamp(1.45rem, 3vw, 2rem);
	font-weight: 800;
	line-height: 1.45;
	margin: 0;
}

.rabor-entry--single .rabor-entry-content {
	background: #fff;
	border: 1px solid #ececf4;
	border-radius: 20px;
	padding: 1.75rem 1.85rem;
	color: #444;
	line-height: 1.95;
	font-size: 1rem;
	box-shadow: 0 8px 24px rgba(32, 28, 112, 0.04);
}

.rabor-entry--single .rabor-entry-content > *:first-child {
	margin-top: 0;
}

.rabor-entry--single .rabor-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
	margin-block: 1.25rem;
}

.rabor-entry--single .rabor-entry-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-inline-start: 4px solid #f15921;
	background: #faf8ff;
	border-radius: 0 14px 14px 0;
	color: #201c70;
	font-weight: 600;
}

.rabor-entry--single .rabor-entry-footer {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px dashed #e8e8f0;
}

.rabor-entry--single .rabor-entry-back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #201c70;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.rabor-entry--single .rabor-entry-back:hover {
	color: #f15921;
}

.rabor-entry--single .rabor-entry-back::before {
	content: "←";
	font-size: 1.1em;
}

/* Blog single content typography */
.blog-content :is(h1, h2, h3, h4, h5, h6) {
	color: #201c70;
	font-weight: 700;
	margin-block: 1.5rem 0.75rem;
}

.blog-content a:not(.button):not(.wp-block-button__link):not(.elementor-button) {
	color: #f15921;
	font-weight: 600;
}

/* Blog content tables */
.blog-content .wp-block-table,
.blog-content figure.wp-block-table {
	margin-block: 1.5rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.blog-content table {
	width: 100% !important;
	max-width: 100%;
	margin-block: 1.5rem;
	border: 1px solid #e4e4f0;
	border-radius: 14px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: #fff;
	font-size: 0.94rem;
	line-height: 1.75;
}

.blog-content table caption {
	caption-side: bottom;
	padding: 0.65rem 0.25rem 0;
	color: #777;
	font-size: 0.85rem;
	text-align: right;
}

.blog-content :is(th, td) {
	padding: 0.8rem 1rem;
	border-bottom: 1px solid #efeff6;
	border-inline-end: 1px solid #efeff6;
	text-align: right;
	vertical-align: top;
	color: #444;
}

.blog-content :is(th, td):last-child {
	border-inline-end: 0;
}

.blog-content thead th,
.blog-content tr:first-child :is(th, td) {
	background: linear-gradient(180deg, #f8f7ff 0%, #f3f2fa 100%);
	color: #201c70;
	font-weight: 800;
}

.blog-content tbody tr:last-child :is(th, td),
.blog-content tr:last-child :is(th, td) {
	border-bottom: 0;
}

.blog-content tbody tr:nth-child(even):not(:first-child) :is(th, td) {
	background-color: #fafafe;
}

.blog-content tbody tr:not(:first-child):hover :is(th, td) {
	background-color: #fff8f5;
}

.blog-content table strong {
	color: inherit;
	font-weight: inherit;
}

@media (max-width: 767px) {
	.blog-content .wp-block-table,
	.blog-content figure.wp-block-table {
		margin-inline: -0.15rem;
		padding-inline: 0.15rem;
	}

	.blog-content table {
		width: max-content !important;
		min-width: 100%;
		font-size: 0.86rem;
	}

	.rabor-entry--single .rabor-entry-content {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.blog-content :is(th, td) {
		padding: 0.6rem 0.7rem;
		min-width: 7.5rem;
	}
}

@media (max-width: 767px) {
	.rabor-entry--single .rabor-entry-header,
	.rabor-entry--single .rabor-entry-content {
		padding-inline: 1.15rem;
	}
}

/* ── Table of contents ── */
.rabor-post-toc {
	margin: 0 0 1.25rem;
	padding: 0;
	background: #fff;
	border: 1px solid #ececf4;
	border-radius: 16px;
	box-shadow: 0 8px 22px rgba(32, 28, 112, 0.04);
	overflow: hidden;
}

.rabor-post-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	padding: 0.95rem 1.15rem;
	border: 0;
	background: linear-gradient(180deg, #fff 0%, #faf9ff 100%);
	color: #201c70;
	font-family: "Yekan Bakh FaNum", sans-serif;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.4;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.rabor-post-toc__toggle:hover {
	background: #fff5f1;
	color: #f15921;
}

.rabor-post-toc__toggle-icon {
	position: relative;
	flex-shrink: 0;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 999px;
	background: #fff0ea;
}

.rabor-post-toc__toggle-icon::before,
.rabor-post-toc__toggle-icon::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 0.55rem;
	height: 2px;
	background: #f15921;
	border-radius: 999px;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.rabor-post-toc__toggle-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.rabor-post-toc.is-open .rabor-post-toc__toggle-icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
	opacity: 0;
}

.rabor-post-toc__panel {
	padding: 0.35rem 1.15rem 1rem;
	border-top: 1px solid #f0f0f6;
}

.rabor-post-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: rabor-toc;
}

.rabor-post-toc__item {
	margin: 0;
	padding: 0;
}

.rabor-post-toc__item--h3 {
	padding-inline-start: 1rem;
}

.rabor-post-toc__link {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.45rem 0;
	color: #444;
	font-size: 0.92rem;
	line-height: 1.7;
	text-decoration: none;
	transition: color 0.2s ease;
}

.rabor-post-toc__link::before {
	counter-increment: rabor-toc;
	content: counter(rabor-toc) ".";
	flex-shrink: 0;
	color: #f15921;
	font-weight: 800;
	font-size: 0.82rem;
	line-height: 1.7;
}

.rabor-post-toc__link:hover {
	color: #201c70;
}

/* ── Comments area ── */
.rabor-comments-area {
	max-width: 820px;
	margin: 2rem auto 0;
	padding: 1.75rem 1.85rem;
	background: #fff;
	border: 1px solid #ececf4;
	border-radius: 20px;
	box-shadow: 0 8px 24px rgba(32, 28, 112, 0.04);
}

.rabor-comments-area__title,
.rabor-comments-area .comment-reply-title {
	margin: 0 0 1.25rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid #f0f0f6;
	color: #201c70;
	font-family: "Yekan Bakh FaNum", sans-serif;
	font-size: clamp(1.1rem, 2.2vw, 1.35rem);
	font-weight: 800;
	line-height: 1.45;
}

.rabor-comments-area .comment-reply-title small {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.82rem;
	font-weight: 500;
}

.rabor-comments-area .comment-reply-title small a {
	color: #f15921;
	text-decoration: none;
}

.rabor-comment-form,
.rabor-comments-area .comment-form {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
}

.rabor-comment-form > p,
.rabor-comments-area .comment-form > p {
	margin: 0 0 1rem;
}

.rabor-comment-form__notes {
	color: #777;
	font-size: 0.88rem;
	line-height: 1.75;
}

.rabor-comment-form__logged-in {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid #ececf4;
	border-radius: 12px;
	background: #f7f7fc;
	color: #555;
	font-size: 0.88rem;
	line-height: 1.75;
}

.rabor-comment-form__logged-in-main {
	display: inline;
}

.rabor-comment-form__logged-in-actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.45rem;
	margin-inline-start: 0.25rem;
}

.rabor-comment-form__logged-in-actions a {
	color: #201c70;
	font-weight: 700;
	text-decoration: none;
}

.rabor-comment-form__logged-in-actions a:hover {
	color: #f15921;
}

.rabor-comment-form__logged-in-sep {
	color: #c8c8d8;
}

.rabor-comment-form__logged-in .required-field-message {
	display: block;
	margin-top: 0.4rem;
	color: #888;
	font-size: 0.82rem;
}

.rabor-comment-form__row {
	display: grid;
	gap: 1rem;
	margin-bottom: 1rem;
}

.rabor-comment-form__row--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rabor-comment-form__row > p,
.rabor-comment-form__row--2 > .comment-form-author,
.rabor-comment-form__row--2 > .comment-form-email {
	margin: 0;
}

.rabor-comment-form label,
.rabor-comments-area .comment-form label {
	display: block;
	margin-bottom: 0.4rem;
	color: #201c70;
	font-size: 0.88rem;
	font-weight: 700;
}

.rabor-comment-form .required,
.rabor-comments-area .comment-form .required {
	color: #f15921;
}

.rabor-comment-form input[type="text"],
.rabor-comment-form input[type="email"],
.rabor-comment-form input[type="url"],
.rabor-comment-form textarea,
.rabor-comments-area .comment-form input[type="text"],
.rabor-comments-area .comment-form input[type="email"],
.rabor-comments-area .comment-form input[type="url"],
.rabor-comments-area .comment-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.72rem 0.9rem;
	border: 1px solid #e2e2ee;
	border-radius: 12px;
	background: #fafafe;
	color: #333;
	font-family: "Yekan Bakh FaNum", sans-serif;
	font-size: 0.95rem;
	line-height: 1.5;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rabor-comment-form textarea,
.rabor-comments-area .comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.rabor-comment-form input:focus,
.rabor-comment-form textarea:focus,
.rabor-comments-area .comment-form input:focus,
.rabor-comments-area .comment-form textarea:focus {
	outline: none;
	border-color: rgba(241, 89, 33, 0.45);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(241, 89, 33, 0.1);
}

.rabor-comment-form .comment-form-cookies-consent,
.rabor-comments-area .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin-bottom: 1rem !important;
}

.rabor-comment-form .comment-form-cookies-consent label,
.rabor-comments-area .comment-form-cookies-consent label {
	margin: 0;
	color: #666;
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.7;
}

.rabor-comment-form .comment-form-cookies-consent input,
.rabor-comments-area .comment-form-cookies-consent input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.rabor-comment-form__submit,
.rabor-comments-area .rabor-comment-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 9.5rem;
	padding: 0.72rem 1.35rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #201c70 0%, #2f2a8f 100%);
	color: #fff !important;
	font-family: "Yekan Bakh FaNum", sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(32, 28, 112, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rabor-comment-form__submit:hover,
.rabor-comments-area .rabor-comment-form__submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(32, 28, 112, 0.26);
}

.rabor-comments-area .form-submit {
	margin: 0.25rem 0 0;
	text-align: start;
}

/* Comment list */
.rabor-comment-list,
.rabor-comments-area .comment-list {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.rabor-comment-list .rabor-comment,
.rabor-comments-area .comment-list .rabor-comment {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.rabor-comment__body {
	padding: 1rem 1.1rem;
	border: 1px solid #efeff6;
	border-radius: 14px;
	background: #fafafe;
}

.rabor-comment__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.65rem;
}

.rabor-comment__author-wrap {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.rabor-comment__avatar img {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 999px;
}

.rabor-comment__author {
	display: block;
	color: #201c70;
	font-style: normal;
	font-weight: 800;
	font-size: 0.92rem;
}

.rabor-comment__date {
	display: block;
	flex-shrink: 0;
	margin: 0;
	color: #888;
	font-size: 0.8rem;
	white-space: nowrap;
}

.rabor-comment__content {
	color: #444;
	font-size: 0.94rem;
	line-height: 1.85;
}

.rabor-comment__content p {
	margin: 0 0 0.65rem;
}

.rabor-comment__content p:last-child {
	margin-bottom: 0;
}

.rabor-comment__footer {
	margin: 0;
	padding: 0;
}

.rabor-comments-area .comment-reply-link,
.rabor-comment__reply {
	display: inline-block;
	width: fit-content;
	max-width: max-content;
	margin: 0.55rem 0 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #f15921;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	text-transform: none;
}

.rabor-comments-area .comment-reply-link:hover,
.rabor-comment__reply:hover {
	color: #201c70;
}

.rabor-comment-navigation {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
	font-size: 0.88rem;
}

.rabor-comment-navigation a {
	color: #201c70;
	font-weight: 700;
	text-decoration: none;
}

.rabor-comment-navigation a:hover {
	color: #f15921;
}

.rabor-comments-closed {
	margin: 0 0 1rem;
	color: #888;
	font-size: 0.9rem;
}

@media (max-width: 991px) {
	.rabor-comments-area {
		margin-top: 1.5rem;
	}
}

@media (max-width: 767px) {
	.rabor-comments-area {
		padding: 1.25rem 1.15rem;
		border-radius: 16px;
	}

	.rabor-comment-form__row--2 {
		grid-template-columns: 1fr;
	}

	.rabor-comment-form__submit,
	.rabor-comments-area .rabor-comment-form__submit {
		width: 100%;
	}
}
