/*
Theme Name: Twenty Seventeen Child
Template: twentyseventeen
Version: 1.0
*/

/* ---------- عمومی ---------- */
.site-info { display: none; }

html, body {
	overflow-x: hidden !important;
	max-width: 100vw;
}

/* -------- عناوین صفحه‌ی اصلی ---------- */
.home .entry-title,
.home .panel-content .entry-title,
.home .panel-content .recent-posts .entry-title,
.twentyseventeen-front-page .panel-content .entry-title {
	font-size: 24px !important;
}

/* ---------- سربرگ (تصویر/ویدیو) ---------- */
.custom-header {
	position: relative !important;
}

@media screen and (max-width: 768px) {
	.has-header-image.twentyseventeen-front-page .custom-header,
	.has-header-video.twentyseventeen-front-page .custom-header,
	.has-header-image.home.blog .custom-header,
	.has-header-video.home.blog .custom-header {
		height: 420px !important;
		min-height: 420px !important;
		padding: 0 !important;
		margin: 0 !important;
		display: block !important;
		overflow: visible !important;
		position: relative !important;
	}

	.custom-header-media {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
		overflow: hidden !important;
	}

	.has-header-video .custom-header-media video,
	.has-header-video .custom-header-media iframe {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover !important;
		object-position: 80% center !important;
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		will-change: transform !important;
		transition: transform 0.1s linear !important;
	}

	.wp-custom-header {
		height: 100% !important;
	}
}

/* ---------- پس‌زمینه‌ها ---------- */
body,
.site,
.site-content,
#page,
#masthead,
.site-header,
.navigation-top,
.navigation-top .wrap {
	background-color: #FFF8E7 !important;
}

/* ---------- منو ---------- */
.main-navigation a,
#site-navigation a {
	color: #4A5D23 !important;
	box-shadow: inset 0 -1px 0 transparent;
	transition: box-shadow .2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus,
#site-navigation a:hover,
#site-navigation a:focus {
	box-shadow: inset 0 -1px 0 rgba(246, 161, 37, 0.6);
}

.main-navigation,
.main-navigation ul,
.main-navigation ul ul,
.main-navigation .menu-scroll-down {
	background-color: #FFF8E7 !important;
}

.main-navigation ul ul {
	border: 1px solid rgba(74, 93, 35, 0.2) !important;
}

/* ---------- همبرگر موبایل ---------- */
.menu-toggle {
	background-color: #4A5D23 !important;
	color: #FFF8E7 !important;
	border: none !important;
}


/* ---------- پابرگ سفارشی ---------- */
.site-footer,
.site-footer .wrap,
.site-footer .widget-area,
.site-footer .widget,
.site-footer .widget-column {
	background-color: #6c8529 !important;
	border-top: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

.nsh-footer {
	text-align: center;
	color: #FFF8E7;
	padding: 2.5em 24px 2em;
}

/* لوگو */
.nsh-footer__brand {
	text-align: center;
	margin-bottom: 1.2em;
}

.nsh-footer__logo {
	display: block;
	width: 235px;
	height: auto;
	margin: 0 auto;
	border: 0;
	border-radius: 0;
}

/* شعار */
.nsh-footer__tagline {
	max-width: 34em;
	margin: 0 auto;
	font-size: 15px;
	font-weight: 400 !important;
	line-height: 2;
	letter-spacing: .02em;
	color: #FFF8E7;
}

/* دکمه */
.nsh-footer__btn {
	display: inline-block;
	margin-top: 1.8em;
	padding: 6px 12px;
	border: 1px solid rgba(255, 248, 231, .7);
	border-radius: 3px;
	background-color: #FFF8E7 !important;
	color: #6c8529 !important;
	font-size: 11px;
	font-weight: 400 !important;
	letter-spacing: .03em;
	line-height: 1.6;
	text-decoration: none;
	box-shadow: none !important;
	transition: opacity .2s ease;
}

.nsh-footer__btn:hover,
.nsh-footer__btn:focus {
	background-color: #FFF8E7 !important;
	color: #4A5D23 !important;
	opacity: .88;
}

/* آیکون‌ها — بدون قاب و بدون خط */
.nsh-footer__social {
	display: flex;
	justify-content: center;
	gap: 22px;
	margin: 0;
	padding: 7em 0 0;
	list-style: none;
	border: 0 !important;
	box-shadow: none !important;
}

.nsh-footer__social li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	list-style: none !important;
}

.nsh-footer__social li:before,
.nsh-footer__social li:after,
.nsh-footer__social a:before,
.nsh-footer__social a:after {
	display: none !important;
	content: none !important;
}

.nsh-footer__social a {
	display: inline-block;
	line-height: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
	opacity: .9;
	transition: opacity .2s ease;
}

.nsh-footer__social a:hover,
.nsh-footer__social a:focus {
	opacity: 1;
}

.nsh-footer__social svg {
	width: 18px;
	height: 18px;
	fill: #FFF8E7;
	display: block;
}

/* خط جداکننده و کپی‌رایت */
.nsh-footer__divider {
	border: 0;
	border-top: 1px solid rgba(255, 248, 231, .25);
	max-width: 52%;
	margin: 1.2em auto 1.4em;
}

.nsh-footer__copy {
	margin: 0;
	font-size: 12px;
	color: rgba(255, 248, 231, .65);
}

/* موبایل */
@media screen and (max-width: 47.9em) {
	.nsh-footer__divider { max-width: 80%; }
}