/*
Theme Name: ElmoTamadon - موسسه علم، تمدن و عرفان
Theme URI: https://example.com/
Author: hamta ai
Description: قالب وردپرس راست‌چین و ریسپانسیو موسسه علم، تمدن و عرفان با شرکت‌های زیرمجموعه و همکاران داینامیک، اخبار متصل به دسته «اخبار»، بخش درباره ما و فوتر قابل تنظیم از سفارشی‌سازی.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elmotamadon
Tags: rtl-language-support, custom-menu, featured-images, one-column
*/

/* ----- استانداردسازی و ریسپانسیو بودن تصاویر ----- */
img {
	max-width: 100%;
	height: auto;
}

/* فرم جستجو در قالب فرم وردپرسی همان چیدمان قبلی را حفظ کند */
form.search-container {
	display: flex;
	align-items: center;
}

/* دکمه مشاوره که به لینک تبدیل شده است */
a.headerBottom {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* آیکون‌های شبکه اجتماعی در منوی ثابت */
.fixedMenue a {
	display: inline-flex;
}
.fixedMenue img {
	width: 24px;
	height: auto;
	opacity: 0.85;
}
.fixedMenue a:hover img {
	opacity: 1;
}

/* لینک عنوان کارت‌ها بدون تغییر ظاهر */
.cardCompanyMain h3 a,
.newsCardDescription h3 a {
	color: inherit;
	text-decoration: none;
}

/* ----- صفحات داخلی (آرشیو، تک‌نوشته، برگه) ----- */
.site-content {
	max-width: 1200px;
	margin: 40px auto 80px;
	padding: 0 70px 0 20px;
	color: #17243a;
}
.site-content .page-title,
.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4 {
	color: #08153f !important;
}
.site-content .page-title {
	margin-bottom: 32px;
	font-size: 1.8rem;
}
.site-content article.single-entry {
	background: #ffffff;
	color: #17243a;
	border: 1px solid #dfe5eb;
	box-shadow: 0 8px 30px rgba(8, 21, 63, 0.08);
	border-radius: 16px;
	padding: 32px;
	margin-bottom: 24px;
	line-height: 2.1;
}
.site-content .entry-content,
.site-content .entry-content p,
.site-content .entry-content li,
.site-content .entry-content blockquote,
.site-content article.single-entry p {
	color: #26364b !important;
	opacity: 1;
}
.site-content .entry-thumb img {
	border-radius: 12px;
	margin-bottom: 16px;
}
.site-content .entry-meta {
	color: #66758a;
	opacity: 1;
	font-size: 0.85rem;
	margin-bottom: 12px;
}
.site-content a {
	color: #11468f;
}
.archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}
.archive-grid .newsCard {
	margin: 0;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(8, 21, 63, 0.08);
}
.archive-grid .newsCardDescription,
.archive-grid .newsCardDescription p {
	color: #26364b !important;
}
.archive-grid .newsCardDescription h3,
.archive-grid .newsCardDescription h3 a {
	color: #08153f !important;
}
.elmo-pagination {
	margin-top: 32px;
	display: flex;
	gap: 8px;
	justify-content: center;
}
.elmo-pagination .page-numbers {
	padding: 6px 14px;
	border-radius: 8px;
	background: #e6ebf1;
	color: #17243a;
	text-decoration: none;
}
.elmo-pagination .page-numbers.current {
	background: #11468f;
	color: #ffffff;
}

/* کارت شرکت در آرشیو شرکت‌ها همان استایل صفحه اصلی را دارد */

/* ریسپانسیو تکمیلی موبایل */
@media (max-width: 576px) {
	.site-content {
		margin-top: 24px;
	}
	.archive-grid {
		grid-template-columns: 1fr;
	}
}


/* ----- پیمایش وان‌پیج ----- */
html {
	scroll-behavior: smooth;
}
.onepage-section,
#home {
	scroll-margin-top: 24px;
}

/* در صفحات داخلی فقط دکمه منوی کناری نمایش داده می‌شود. */
.inner-page-menu {
	width: auto;
	height: auto;
	top: 20px;
	right: 20px;
	z-index: 1050;
}
.inner-page-menu .MenuHumbergerParagraphClass {
	display: none;
}
.inner-page-menu .custom-btn {
	margin: 0;
	padding: 10px 12px;
	background: #08153f;
	border-radius: 12px;
	box-shadow: 0 5px 18px rgba(8, 21, 63, 0.2);
}
.inner-page-menu .custom-btn img {
	display: block;
}


/* ----- دکمه جمع‌وجور مشاوره مطابق طرح مرجع ----- */
.Header2 a.headerBottom {
	width: 168px;
	height: 46px;
	min-height: 46px;
	padding: 5px 13px 5px 10px;
	gap: 10px;
	flex: 0 0 auto;
	justify-content: space-between;
	align-items: center;
	background-color: #efbd18;
	border: 1px solid #11468f;
	border-radius: 10px;
	clip-path: polygon(100% 0, 100% 100%, 9% 100%, 0 72%, 0 0);
	color: #06469a;
	font-family: "IranSansBold";
	font-size: 0.72rem;
	font-weight: 900;
	line-height: 1rem;
	white-space: normal;
}
.Header2 .headerBottom img {
	width: 10px !important;
	height: 18px !important;
	max-width: 10px;
	margin: 0 !important;
	object-fit: contain;
	flex: 0 0 10px;
}
.Header2 a.headerBottom:hover {
	background-color: #f6c927;
	color: #063d82;
}

@media (max-width: 768px) {
	.Header2 a.headerBottom {
		width: 168px;
		height: 46px;
		min-height: 46px;
		padding: 5px 13px 5px 10px;
		background-color: #efbd18;
		border-color: #11468f;
		color: #06469a;
		font-size: 0.72rem;
		line-height: 1rem;
	}
}


/* ----- ساختار و رابط سئو ----- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.elmo-breadcrumb {
	max-width: 1200px;
	margin: 0 0 24px;
	font-family: "IranSansRegular";
	font-size: 0.86rem;
	color: #64748b;
}
.company-archive .elmo-breadcrumb {
	margin-top: 36px;
}
.elmo-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}
.elmo-breadcrumb li {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}
.elmo-breadcrumb a {
	color: #11468f;
	text-decoration: none;
}
.elmo-breadcrumb a:hover {
	text-decoration: underline;
}
.company-archive-title {
	color: #08153f !important;
}
.archive-header {
	margin-bottom: 32px;
}
.archive-description {
	max-width: 850px;
	color: #4b5d73;
	line-height: 2;
}
.archive-description p {
	margin: 0;
}
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
}
.entry-meta time,
.newsDate time {
	direction: rtl;
	unicode-bidi: plaintext;
}
.elmo-post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 24px 0 42px;
}
.elmo-post-navigation > div {
	max-width: 48%;
}
.elmo-post-navigation a {
	display: block;
	padding: 12px 16px;
	background: #ffffff;
	border: 1px solid #dfe5eb;
	border-radius: 10px;
	color: #11468f;
	text-decoration: none;
}
.related-news {
	margin-top: 35px;
}
.related-news > h2 {
	margin-bottom: 22px;
	color: #08153f;
}
.related-news .newsDate {
	font-size: 0.78rem;
	color: #66758a !important;
}
.archive-grid .newsCardDescription h2,
.archive-grid .newsCardDescription h2 a {
	color: #08153f !important;
	font-size: 1.25rem;
	text-decoration: none;
}

@media (max-width: 576px) {
	.elmo-post-navigation {
		flex-direction: column;
	}
	.elmo-post-navigation > div {
		max-width: 100%;
	}
	.elmo-breadcrumb {
		font-size: 0.76rem;
	}
}


/* ----- تصویر کوچک و افقی اخبار مرتبط ----- */
.related-news .image-wrapper {
	width: calc(100% - 28px);
	height: 118px;
	max-width: none;
	aspect-ratio: auto;
	margin: 14px auto 0;
	overflow: hidden;
	border-radius: 12px;
	clip-path: none;
	background: #e8edf2;
}
.related-news .image-wrapper a {
	display: block;
	width: 100%;
	height: 100%;
}
.related-news .image-wrapper img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center center;
	border-radius: 0;
	transition: transform 0.35s ease;
}
.related-news .newsCard:hover .image-wrapper img {
	transform: scale(1.025);
}

@media (max-width: 768px) {
	.related-news .image-wrapper {
		height: 110px;
	}
}

@media (max-width: 576px) {
	.related-news .image-wrapper {
		width: calc(100% - 24px);
		height: 105px;
		margin-top: 12px;
	}
}
