/**
 * Bonyan Medica - Pages (about, contact, blog, static)
 */

/* ------------------------------------------------------------
   1) صفحات ثابت: حذف سایدبار دمو و عرض کامل
------------------------------------------------------------ */
body.page #secondary,
body.page .widget-area.sidebar { display: none !important; }

body.page .content-area,
body.page #primary {
	width: 100% !important;
	float: none !important;
}

body.page .shoptimizer-archive { padding-bottom: 40px; }

/* ------------------------------------------------------------
   2) تیتر صفحه
------------------------------------------------------------ */
body.page .entry-header,
body.page header.entry-header {
	margin-bottom: 22px;
}

body.page .entry-title {
	font-size: var(--bm-fs-2xl);
	font-weight: 800;
	color: var(--bm-ink);
	margin: 0 0 8px;
	line-height: 1.5;
}

/* ------------------------------------------------------------
   3) محتوای متنی
------------------------------------------------------------ */
body.page .entry-content,
body.single .entry-content {
	font-size: 15.5px;
	line-height: 2.1;
	color: var(--bm-text);
}

body.page .entry-content h2 {
	font-size: 22px;
	font-weight: 800;
	margin: 2em 0 .7em;
	color: var(--bm-ink);
	position: relative;
	padding-inline-start: 16px;
}

body.page .entry-content h2::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .35em;
	bottom: .35em;
	width: 4px;
	border-radius: 4px;
	background: var(--bm-gold);
}

body.page .entry-content h3 {
	font-size: 18px;
	margin: 1.6em 0 .6em;
	color: var(--bm-ink);
}

body.page .entry-content ul,
body.page .entry-content ol {
	padding-inline-start: 24px;
	margin-bottom: 1.2em;
}

body.page .entry-content li { margin-bottom: .55em; }

body.page .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--bm-r-md);
}

body.page .entry-content blockquote {
	margin: 1.5em 0;
	padding: 18px 24px;
	background: var(--bm-gold-soft);
	border-inline-start: 4px solid var(--bm-gold);
	border-radius: var(--bm-r-sm);
	color: var(--bm-ink);
	font-size: 15px;
}

/* ------------------------------------------------------------
   4) فرم تماس (CF7 / WPForms)
------------------------------------------------------------ */
body .wpcf7,
body .wpforms-container {
	background: #fff;
	border: 1px solid var(--bm-line);
	border-radius: var(--bm-r-lg);
	padding: 28px;
	margin: 22px 0;
	box-shadow: var(--bm-sh-1);
}

body .wpcf7 p { margin-bottom: 16px; }

body .wpcf7 input[type="text"],
body .wpcf7 input[type="email"],
body .wpcf7 input[type="tel"],
body .wpcf7 textarea,
body .wpforms-container input,
body .wpforms-container textarea {
	width: 100%;
}

body .wpcf7 textarea,
body .wpforms-container textarea { min-height: 130px; resize: vertical; }

body .wpcf7 input[type="submit"],
body .wpforms-container button[type="submit"] {
	margin-top: 6px;
}

body .wpcf7-not-valid-tip,
body .wpforms-error { font-size: 12.5px; color: var(--bm-danger); margin-top: 4px; }

body .wpcf7-response-output {
	border-radius: var(--bm-r-sm) !important;
	border: 1px solid var(--bm-line) !important;
	padding: 12px 16px !important;
	margin: 16px 0 0 !important;
	font-size: 14px;
}

/* ------------------------------------------------------------
   5) وبلاگ
------------------------------------------------------------ */
body.blog .entry-card,
body.archive .entry-card,
body.blog .post,
body.archive .post {
	background: #fff;
	border: 1px solid var(--bm-line);
	border-radius: var(--bm-r-lg);
	overflow: hidden;
	margin-bottom: 22px;
	transition: box-shadow var(--bm-tr), transform var(--bm-tr);
}

body.blog .post:hover,
body.archive .post:hover {
	box-shadow: var(--bm-sh-2);
	transform: translateY(-2px);
}

body.blog .post .entry-header,
body.archive .post .entry-header { padding: 20px 22px 0; }

body.blog .post .entry-title,
body.archive .post .entry-title {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 10px;
}

body.blog .post .entry-content,
body.archive .post .entry-content { padding: 0 22px 20px; font-size: 14.5px; }

body.blog .post-thumbnail img,
body.archive .post-thumbnail img { width: 100%; height: auto; display: block; }

body .entry-meta,
body .posted-on,
body .byline {
	font-size: 12.5px;
	color: var(--bm-muted);
}

/* ------------------------------------------------------------
   6) مطلب تکی (وبلاگ)
------------------------------------------------------------ */
body.single-post .entry-header {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--bm-line);
}

body.single-post .entry-header h1,
body.single-post .entry-title {
	font-size: 27px;
	font-weight: 800;
	line-height: 1.6;
	color: var(--bm-ink);
	margin: 0 0 12px;
}

body.single-post .posted-on,
body.single-post .entry-meta {
	font-size: 12.5px;
	color: var(--bm-muted);
}

body.single-post .posted-on time { color: var(--bm-muted); }

body.single-post .entry-content { font-size: 16px; line-height: 2.15; }
body.single-post .entry-content p { margin-bottom: 1.2em; }

/* کاور مطلب */
body.single-post .post-thumbnail img,
body.single-post .entry-content > img:first-child {
	border-radius: var(--bm-r-lg);
	margin-bottom: 26px;
}

/* ------------------------------------------------------------
   7) صفحه ۴۰۴
------------------------------------------------------------ */
body.error404 .site-main { text-align: center; padding: 40px 0 70px; }

body.error404 .page-title,
body.error404 .entry-title {
	font-size: 34px;
	margin-bottom: 12px;
}

body.error404 .entry-content p,
body.error404 .page-content p {
	max-width: 560px;
	margin-inline: auto;
	color: var(--bm-muted);
	font-size: 15px;
}

body.error404 .entry-content .button,
body.error404 .page-content .button { margin-top: 18px; }

/* ------------------------------------------------------------
   8) ریسپانسیو
------------------------------------------------------------ */
@media (max-width: 767px) {
	body.page .entry-title { font-size: 22px; }
	body .wpcf7, body .wpforms-container { padding: 18px; }
	body.single-post .entry-header h1,
	body.single-post .entry-title { font-size: 21px; }
}
