/* 
Theme Name: Hello Child
Theme URI: https://elementor-site.ir/
Description: 
Author: Elementor Site
Author URI: https://elementor-site.ir/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* =========================================================
   فونت‌های سایت (لود مستقیم از هاست خودمان)
========================================================= */
@font-face {
	font-family: 'Doran';
	src: url('https://stepgermany.com/wp-content/uploads/fonts/Doran-ExtraBold.woff2') format('woff2'),
	     url('https://stepgermany.com/wp-content/uploads/fonts/Doran-ExtraBold.woff') format('woff');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IRANSansX';
	src: url('https://stepgermany.com/wp-content/uploads/fonts/IRANSansX-Regular.woff2') format('woff2'),
	     url('https://stepgermany.com/wp-content/uploads/fonts/IRANSansX-Regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* =========================================================
   متغیرها
========================================================= */
:root {
	--hc-max-width: 1200px;
	--hc-gap: 32px;
	--hc-sidebar-width: 300px;
	--hc-border-color: #e5e5e5;
	--hc-text-muted: #6b6b6b;
	--hc-primary: #0B2C78;
	--hc-accent: #E3B32B;
	--hc-accent-dark: #c79620;
	--hc-radius: 10px;
	--hc-font-heading: 'Doran', 'IRANSansX', Tahoma, sans-serif;
	--hc-font-body: 'IRANSansX', Tahoma, sans-serif;
}

/* =========================================================
   اعمال فونت در سراسر سایت
========================================================= */
html body,
html body .elementor,
html body .elementor-widget-container,
html body p,
html body span,
html body a,
html body li,
html body div {
	font-family: var(--hc-font-body) !important;
}

h1, h2, h3, h4, h5, h6,
.hello-child-title,
.hello-child-archive-title,
.hello-child-archive-item-title,
.hello-child-comments-title,
.hello-child-comment-reply-title,
.widget-title,
.elementor-heading-title {
	font-family: var(--hc-font-heading) !important;
	font-weight: 800;
	color: var(--hc-primary) !important;
}

/* =========================================================
   بردکرامب (آدرس‌دهی صفحه)
========================================================= */
.hello-child-breadcrumbs {
	background: #f7f7f8;
	border-bottom: 1px solid var(--hc-border-color);
}

.hello-child-breadcrumbs-inner {
	max-width: var(--hc-max-width);
	margin: 0 auto;
	padding: 12px 20px;
	font-size: 14px;
	color: var(--hc-text-muted);
}

.hello-child-breadcrumbs-inner a {
	color: var(--hc-accent-dark) !important;
	text-decoration: none;
}

.hello-child-breadcrumbs-inner a:hover {
	text-decoration: underline;
}

.hello-child-breadcrumbs-inner .sep {
	margin: 0 6px;
	color: #b8b8b8;
}

.hello-child-breadcrumbs-inner .current {
	color: #333;
}

/* =========================================================
   چیدمان کلی: محتوا + سایدبار
========================================================= */
.hello-child-container {
	max-width: var(--hc-max-width);
	margin: 0 auto;
	padding: 32px 20px;
	display: flex;
	align-items: flex-start;
	gap: var(--hc-gap);
}

.hello-child-content {
	flex: 1 1 0;
	min-width: 0;
}

.hello-child-sidebar {
	flex: 0 0 var(--hc-sidebar-width);
	width: var(--hc-sidebar-width);
}

.hello-child-sidebar .widget {
	background: #f7f7f8;
	border: 1px solid var(--hc-border-color);
	border-radius: var(--hc-radius);
	padding: 20px;
	margin-bottom: 24px;
}

.hello-child-sidebar .widget-title {
	margin: 0 0 14px;
	font-size: 17px;
	border-bottom: 2px solid var(--hc-accent);
	padding-bottom: 8px;
	display: inline-block;
}

/* پر کردن کامل فضای ویجت‌ها با تصویر (بدون فضای خالی اطراف)
   این سلکتور عمومی هم ویجت‌های کلاسیک وردپرس و هم ویجت‌های المنتور را پوشش می‌دهد */
.hello-child-sidebar img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	object-fit: cover;
	border-radius: var(--hc-radius);
}

.hello-child-sidebar .widget,
.hello-child-sidebar .elementor-widget {
	overflow: hidden;
}

/* حذف پدینگ پیش‌فرض دور ویجت‌های تصویر (چه کلاسیک، چه المنتور) تا عکس لبه‌به‌لبه بشه */
.hello-child-sidebar .widget_media_image,
.hello-child-sidebar .widget_image,
.hello-child-sidebar .elementor-widget-image .elementor-widget-container {
	padding: 0 !important;
}

.hello-child-sidebar .widget_media_image figure,
.hello-child-sidebar .widget_image figure,
.hello-child-sidebar .elementor-widget-image figure,
.hello-child-sidebar figure {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0;
}

.hello-child-sidebar .widget p {
	margin: 0;
}

.hello-child-sidebar .widget a {
	display: block;
}

/* =========================================================
   چیدمان برگه‌ها (Pages) - بدون سایدبار
========================================================= */
.hello-child-page-container {
	max-width: var(--hc-max-width);
	margin: 0 auto;
	padding: 32px 20px;
}

.hello-child-page-content {
	width: 100%;
}

.hello-child-page .hello-child-entry-content {
	font-size: 17px;
	line-height: 1.9;
}

/* =========================================================
   تصویر شاخص
========================================================= */
.hello-child-featured-image {
	margin-bottom: 24px;
	border-radius: var(--hc-radius);
	overflow: hidden;
	line-height: 0;
}

.hello-child-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* =========================================================
   عنوان و متادیتا (تاریخ، بازدید، نویسنده)
========================================================= */
.hello-child-title {
	font-size: clamp(24px, 3.6vw, 36px);
	line-height: 1.35;
	margin: 0 0 16px;
}

.hello-child-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--hc-border-color);
	font-size: 14px;
	color: var(--hc-text-muted);
}

.hello-child-meta .meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.hello-child-meta .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: var(--hc-accent) !important;
}

.hello-child-entry-content {
	font-size: 17px;
	line-height: 1.9;
}

.hello-child-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--hc-radius);
}

.hello-child-tags {
	margin-top: 24px;
	font-size: 14px;
	color: var(--hc-text-muted);
}

.hello-child-tags a {
	color: var(--hc-accent-dark) !important;
	text-decoration: none;
}

/* =========================================================
   لیست آرشیو / صفحه اصلی وبلاگ
========================================================= */
.hello-child-archive-title {
	font-size: clamp(22px, 3vw, 30px);
	margin-bottom: 28px;
}

.hello-child-archive-list {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.hello-child-archive-item {
	display: flex;
	gap: 20px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--hc-border-color);
}

.hello-child-archive-thumb {
	flex: 0 0 240px;
	width: 240px;
	height: 160px;
	border-radius: var(--hc-radius);
	overflow: hidden;
	display: block;
}

.hello-child-archive-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.hello-child-archive-thumb:hover img {
	transform: scale(1.05);
}

.hello-child-archive-body {
	flex: 1 1 0;
	min-width: 0;
}

.hello-child-archive-item-title {
	font-size: 20px;
	margin: 0 0 10px;
}

.hello-child-archive-item-title a {
	color: #222;
	text-decoration: none;
}

.hello-child-archive-item-title a:hover {
	color: var(--hc-accent-dark) !important;
}

.hello-child-excerpt {
	color: #4a4a4a;
	margin: 10px 0 12px;
	line-height: 1.8;
}

.hello-child-readmore {
	color: var(--hc-accent-dark) !important;
	font-size: 14px;
	text-decoration: none;
	font-weight: 600;
}

.hello-child-readmore:hover {
	text-decoration: underline;
}

.hello-child-pagination {
	margin-top: 32px;
	display: flex;
	gap: 8px;
	justify-content: center;
}

.hello-child-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--hc-border-color);
	border-radius: 6px;
	text-decoration: none;
	color: #333;
}

.hello-child-pagination .page-numbers.current {
	background: var(--hc-accent) !important;
	border-color: var(--hc-accent) !important;
	color: #fff;
}

/* =========================================================
   ریسپانسیو
========================================================= */
@media (max-width: 992px) {
	:root {
		--hc-sidebar-width: 260px;
		--hc-gap: 24px;
	}
}

@media (max-width: 782px) {
	.hello-child-container {
		flex-direction: column;
	}

	.hello-child-sidebar {
		width: 100%;
		flex-basis: auto;
		order: 2;
	}

	.hello-child-content {
		order: 1;
		width: 100%;
	}

	.hello-child-archive-item {
		flex-direction: column;
	}

	.hello-child-archive-thumb {
		width: 100%;
		flex-basis: auto;
		height: 200px;
	}
}

@media (max-width: 480px) {
	.hello-child-container {
		padding: 20px 16px;
	}

	.hello-child-meta {
		gap: 10px;
		font-size: 13px;
	}

	.hello-child-entry-content {
		font-size: 16px;
	}
}

/* =========================================================
   بخش دیدگاه‌ها (کامنت) - طرح گرد و شخصی‌سازی‌شده
========================================================= */
.hello-child-comments-area {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--hc-border-color);
}

.hello-child-comments-title,
.hello-child-comment-reply-title {
	font-size: 22px;
	margin: 0 0 24px;
}

.hello-child-comment-list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hello-child-comment-list ol.children {
	list-style: none;
	margin: 18px 0 0;
	padding: 0 0 0 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hello-child-comment {
	list-style: none;
}

.hello-child-comment-body {
	display: flex;
	gap: 16px;
	background: #f7f7f8;
	border: 1px solid var(--hc-border-color);
	border-radius: 18px;
	padding: 20px;
}

.hello-child-comment-avatar img {
	border-radius: 50%;
	display: block;
	width: 56px;
	height: 56px;
}

.hello-child-comment-main {
	flex: 1 1 0;
	min-width: 0;
}

.hello-child-comment-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.hello-child-comment-author {
	font-weight: 700;
	color: #222;
}

.hello-child-comment-date {
	font-size: 13px;
}

.hello-child-comment-date a {
	color: var(--hc-text-muted);
	text-decoration: none;
}

.hello-child-comment-date a:hover {
	color: var(--hc-accent-dark) !important;
}

.hello-child-comment-content {
	line-height: 1.85;
	color: #3a3a3a;
}

.hello-child-comment-content p {
	margin: 0 0 10px;
}

.hello-child-comment-content p:last-child {
	margin-bottom: 0;
}

.hello-child-comment-awaiting-moderation {
	font-size: 13px;
	color: #b8860b;
	margin: 0 0 8px;
}

.hello-child-comment-reply {
	margin-top: 10px;
}

.hello-child-comment-reply a {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--hc-accent-dark) !important;
	text-decoration: none;
	border: 1px solid var(--hc-accent-dark) !important;
	border-radius: 999px;
	padding: 4px 16px;
	transition: background .2s ease, color .2s ease;
}

.hello-child-comment-reply a:hover {
	background: var(--hc-accent) !important;
	color: #fff;
}

/* --- فرم ثبت دیدگاه --- */
.hello-child-comment-form {
	background: #f7f7f8;
	border: 1px solid var(--hc-border-color);
	border-radius: 18px;
	padding: 28px;
}

.hello-child-field {
	margin: 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hello-child-field label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.hello-child-comment-form input[type="text"],
.hello-child-comment-form input[type="email"],
.hello-child-comment-form textarea {
	width: 100%;
	border: 1px solid var(--hc-border-color);
	border-radius: 14px;
	padding: 12px 16px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
	box-sizing: border-box;
}

.hello-child-comment-form textarea {
	resize: vertical;
	min-height: 140px;
}

.hello-child-comment-form input[type="text"]:focus,
.hello-child-comment-form input[type="email"]:focus,
.hello-child-comment-form textarea:focus {
	outline: none;
	border-color: var(--hc-accent) !important;
	box-shadow: 0 0 0 3px rgba(227, 179, 43, .25);
}

.hello-child-comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--hc-text-muted);
	margin-bottom: 18px;
}

.hello-child-comment-form .form-submit {
	margin: 0;
}

.hello-child-comment-submit {
	background: var(--hc-accent) !important;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 32px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity .2s ease;
}

.hello-child-comment-submit:hover {
	opacity: .9;
}

.hello-child-comments-closed {
	background: #f7f7f8;
	border-radius: 14px;
	padding: 16px 20px;
	color: var(--hc-text-muted);
	font-size: 14px;
}

@media (max-width: 480px) {
	.hello-child-comment-body {
		flex-direction: column;
		border-radius: 16px;
	}

	.hello-child-comment-form {
		padding: 20px;
		border-radius: 16px;
	}

	.hello-child-comment-list ol.children {
		padding-right: 16px;
		padding-left: 0;
	}
}

/* =========================================================
   فهرست مطالب (TOC) و زمان مطالعه
========================================================= */
.hello-child-toc {
	background: #f7f7f8;
	border: 1px solid var(--hc-border-color);
	border-radius: 16px;
	padding: 20px 24px;
	margin: 0 0 28px;
}

.hello-child-toc-title {
	font-size: 18px;
	margin: 0 0 12px;
}

.hello-child-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hello-child-toc-list li a {
	color: var(--hc-accent-dark) !important;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.7;
}

.hello-child-toc-list li a:hover {
	text-decoration: underline;
}

.hello-child-toc-list li.hc-toc-sub {
	padding-right: 20px;
	font-size: 14px;
}

.meta-reading-time {
	white-space: nowrap;
}

/* =========================================================
   نوشته‌های مرتبط
========================================================= */
.hello-child-related-posts {
	margin: 40px 0;
	padding-top: 32px;
	border-top: 1px solid var(--hc-border-color);
}

.hello-child-related-title {
	font-size: 20px;
	margin: 0 0 20px;
}

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

.hello-child-related-item {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--hc-border-color);
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.hello-child-related-item:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
}

.hello-child-related-thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.hello-child-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hello-child-related-item-title {
	font-size: 15px;
	margin: 12px 14px 6px;
	line-height: 1.6;
	color: #222;
}

.hello-child-related-date {
	display: block;
	font-size: 12px;
	color: var(--hc-text-muted);
	margin: 0 14px 14px;
}

@media (max-width: 782px) {
	.hello-child-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.hello-child-related-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   دکمه‌های شناور (واتساپ، تلگرام، برگشت به بالا)
========================================================= */
html {
	scroll-behavior: smooth;
}

.hello-child-floating-wrap {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hc-float-btn {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
	border: none;
	cursor: pointer;
	transition: transform .2s ease, opacity .2s ease;
}

.hc-float-btn:hover {
	transform: scale(1.08);
}

.hc-whatsapp {
	background: #25D366;
}

.hc-telegram {
	background: #29A9EA;
}

.hc-back-to-top {
	background: var(--hc-accent) !important;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
}

.hc-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

@media (max-width: 480px) {
	.hello-child-floating-wrap {
		bottom: 16px;
		left: 16px;
	}

	.hc-float-btn {
		width: 46px;
		height: 46px;
	}
}

/* =========================================================
   صفحه ۴۰۴
========================================================= */
.hello-child-404 {
	width: 100%;
}

.hello-child-404-inner {
	text-align: center;
	max-width: 560px;
	margin: 40px auto;
	padding: 40px 24px;
}

.hello-child-404-code {
	font-family: var(--hc-font-heading);
	font-size: 90px;
	font-weight: 800;
	color: var(--hc-accent-dark) !important;
	line-height: 1;
	margin-bottom: 12px;
}

.hello-child-404-title {
	font-size: 24px;
	margin: 0 0 12px;
}

.hello-child-404-text {
	color: var(--hc-text-muted);
	line-height: 1.8;
	margin: 0 0 24px;
}

.hello-child-404-search {
	margin-bottom: 24px;
}

.hello-child-404-search .search-form {
	display: flex;
	gap: 8px;
}

.hello-child-404-search input[type="search"] {
	flex: 1;
	border: 1px solid var(--hc-border-color);
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 14px;
}

.hello-child-404-search input[type="submit"] {
	border: none;
	background: var(--hc-accent) !important;
	color: #fff;
	border-radius: 999px;
	padding: 10px 24px;
	cursor: pointer;
	font-weight: 600;
}

.hello-child-404-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.hello-child-404-btn {
	display: inline-block;
	background: var(--hc-accent) !important;
	color: #fff;
	text-decoration: none;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
}

.hello-child-404-btn-outline {
	background: transparent;
	color: var(--hc-accent-dark) !important;
	border: 1px solid var(--hc-accent-dark) !important;
}

/* =========================================================
   هدر بنری صفحه آرشیو/وبلاگ (طراحی جدید، شبیه سایت‌های مهاجرتی)
========================================================= */
.hello-child-archive-hero {
	background: linear-gradient(135deg, var(--hc-primary) 0%, #16409e 100%);
	padding: 56px 20px;
	text-align: center;
}

.hello-child-archive-hero-inner {
	max-width: 720px;
	margin: 0 auto;
}

.hello-child-archive-hero .hello-child-archive-title {
	color: #fff !important;
	font-size: clamp(26px, 4vw, 40px);
	margin: 0 0 12px;
}

.hello-child-archive-subtitle {
	color: rgba(255, 255, 255, .85);
	font-size: 16px;
	line-height: 1.8;
	margin: 0;
}

/* =========================================================
   گرید کارت‌های مقاله (طراحی جدید)
========================================================= */
.hello-child-archive-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

.hello-child-card {
	background: #fff;
	border: 1px solid var(--hc-border-color);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .25s ease, transform .25s ease;
}

.hello-child-card:hover {
	box-shadow: 0 10px 30px rgba(11, 44, 120, .14);
	transform: translateY(-4px);
}

.hello-child-card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f0f0f0;
}

.hello-child-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.hello-child-card:hover .hello-child-card-thumb img {
	transform: scale(1.06);
}

.hello-child-card-thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--hc-primary), var(--hc-accent));
}

.hello-child-card-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	background: var(--hc-accent);
	color: var(--hc-primary);
	font-size: 12px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 999px;
}

.hello-child-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.hello-child-card-title {
	font-size: 19px;
	margin: 0;
	line-height: 1.5;
}

.hello-child-card-title a {
	color: var(--hc-primary);
	text-decoration: none;
}

.hello-child-card-title a:hover {
	color: var(--hc-accent) !important;
}

.hello-child-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 12.5px;
	color: var(--hc-text-muted);
}

.hello-child-card-meta .meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.hello-child-card-meta .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: var(--hc-accent) !important;
}

.hello-child-card-excerpt {
	font-size: 14px;
	color: #4a4a4a;
	line-height: 1.8;
	margin: 0;
	flex: 1;
}

.hello-child-card-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--hc-accent-dark) !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	margin-top: auto;
}

.hello-child-card-arrow {
	transition: transform .2s ease;
}

.hello-child-card-link:hover .hello-child-card-arrow {
	transform: translateX(-4px);
}

@media (max-width: 782px) {
	.hello-child-archive-grid {
		grid-template-columns: 1fr;
	}

	.hello-child-archive-hero {
		padding: 40px 16px;
	}
}
