/* ==========================================================================
   بخش‌های اختصاصی صفحه اصلی - Newspaper Eye (فارسی)
   جهت طراحی: «دفترچه فنی» - الهام از نقشه‌های مهندسی و اسناد صنعتی
   ========================================================================== */

.ne-home .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.ne-section {
	padding: 64px 0;
	border-bottom: 1px solid var(--line, #e3d9bc);
}

.ne-section:nth-child(even) {
	background: var(--section-color, #f5efdd);
}

.ne-section-title {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 26px;
	font-weight: 800;
	color: var(--color-heding, #1c1b17);
	margin-bottom: 38px;
	white-space: nowrap;
}

.ne-section-title::before {
	content: "";
	width: 12px;
	height: 12px;
	background: var(--color-primary, #f2a900);
	flex: none;
}

.ne-section-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line, #e3d9bc);
}

/* ---------- گوشه‌های راهنما (motif مشترک هدر تصویر / گالری) ---------- */
.ne-corner {
	position: absolute;
	width: 22px;
	height: 22px;
	border-color: var(--color-primary, #f2a900);
	border-style: solid;
	border-width: 0;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.ne-corner-tl {
	top: 10px;
	inset-inline-start: 10px;
	border-top-width: 3px;
	border-inline-start-width: 3px;
}

.ne-corner-br {
	bottom: 10px;
	inset-inline-end: 10px;
	border-bottom-width: 3px;
	border-inline-end-width: 3px;
}

/* ---------- 1) پست ویژه (Hero) ---------- */
.ne-hero {
	padding: 48px 0 56px;
	border-bottom: 1px solid var(--line, #e3d9bc);
}

.ne-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 46px;
	align-items: center;
}

.ne-hero-frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
	background: var(--color-eded, #ece4cf);
}

.ne-hero-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ne-hero-frame .ne-corner {
	opacity: 1;
}

.ne-tag {
	display: inline-block;
	background: var(--color-primary, #f2a900);
	color: var(--black, #1c1b17);
	font-weight: 700;
	font-size: 13px;
	padding: 5px 14px;
	margin-bottom: 18px;
	text-decoration: none;
}

.ne-hero-title {
	font-size: 36px;
	line-height: 1.45;
	font-weight: 800;
	margin: 0 0 16px;
	color: var(--color-heding, #1c1b17);
}

.ne-hero-title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--color-primary, #f2a900), var(--color-primary, #f2a900));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 3px;
	transition: background-size 0.3s ease;
}

.ne-hero-title a:hover {
	background-size: 100% 3px;
}

.ne-hero-excerpt {
	color: var(--color-gray-2, #6b6559);
	font-size: 16px;
	line-height: 1.9;
	margin-bottom: 20px;
	max-width: 60ch;
}

.ne-hero-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--color-gray-2, #6b6559);
	margin-bottom: 26px;
}

.ne-sep {
	width: 1px;
	height: 14px;
	background: var(--color-ccc, #d8cfb2);
}

.ne-btn {
	display: inline-block;
	background: var(--color-primary, #f2a900);
	color: var(--black, #1c1b17);
	font-weight: 700;
	padding: 13px 30px;
	border: 2px solid var(--black, #1c1b17);
	text-decoration: none;
	box-shadow: var(--shadow-hard, 4px 4px 0 #1c1b17);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ne-btn:hover {
	color: var(--black, #1c1b17);
	transform: translate(4px, 4px);
	box-shadow: 0 0 0 #1c1b17;
}

/* ---------- 2) شرکای همکار ---------- */
.ne-partners-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	border-top: 1px solid var(--line, #e3d9bc);
	border-inline-start: 1px solid var(--line, #e3d9bc);
}

.ne-partner-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px 16px;
	min-height: 100px;
	border-bottom: 1px solid var(--line, #e3d9bc);
	border-inline-end: 1px solid var(--line, #e3d9bc);
	filter: grayscale(100%);
	opacity: 0.65;
	transition: all 0.25s ease;
}

.ne-partner-item:hover {
	filter: grayscale(0%);
	opacity: 1;
	background: var(--white, #fff);
}

.ne-partner-item img {
	max-height: 54px;
	width: auto;
	object-fit: contain;
}

.ne-partner-name {
	font-weight: 700;
	font-size: 16px;
	color: var(--color-gray, #3c3a33);
}

/* ---------- کارت‌های عمومی (مقالات علمی / پروژه‌ها) ---------- */
.ne-card,
.ne-project-card {
	background: var(--white, #fff);
	border: 1px solid var(--line, #e3d9bc);
	overflow: hidden;
	height: 100%;
	transition: border-color 0.25s ease, transform 0.25s ease;
	display: flex;
	flex-direction: column;
}

.ne-card:hover,
.ne-project-card:hover {
	border-color: var(--color-primary, #f2a900);
	transform: translateY(-4px);
}

.ne-card-img,
.ne-project-img {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-bottom: 1px solid var(--line, #e3d9bc);
}

.ne-card-img img,
.ne-project-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ne-card:hover .ne-card-img img,
.ne-project-card:hover .ne-project-img img {
	transform: scale(1.05);
}

.ne-card-body,
.ne-project-body {
	padding: 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ne-card-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.6;
}

.ne-card-title a {
	color: var(--color-heding, #1c1b17);
	text-decoration: none;
}

.ne-card-title a:hover {
	color: var(--color-primary2, #b97900);
}

.ne-card-excerpt {
	color: var(--color-gray-2, #6b6559);
	font-size: 14px;
	line-height: 1.85;
	margin-bottom: 16px;
	flex: 1;
}

.ne-card-link {
	color: var(--color-primary2, #b97900);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	align-self: flex-start;
	border-bottom: 1px solid transparent;
}

.ne-card-link:hover {
	color: var(--black, #1c1b17);
	border-bottom-color: var(--color-primary, #f2a900);
}

/* ---------- 4) پروژه‌ها ---------- */
.ne-status-badge {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	padding: 6px 16px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}

.ne-status-in_progress {
	background: #2e6fec;
}

.ne-status-completed {
	background: #1f8a4c;
}

/* ---------- 5) گالری تصاویر ---------- */
.ne-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 3px;
}

.ne-gallery-item {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.ne-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease, filter 0.3s ease;
	filter: grayscale(35%);
}

.ne-gallery-item:hover img {
	transform: scale(1.06);
	filter: grayscale(0%);
}

.ne-gallery-item:hover .ne-corner {
	opacity: 1;
}

.ne-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(28, 27, 23, 0.95);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.ne-lightbox.active {
	display: flex;
}

.ne-lightbox-img {
	max-width: 90%;
	max-height: 80%;
	border: 2px solid var(--color-primary, #f2a900);
}

.ne-lightbox-caption {
	color: #fff;
	margin-top: 16px;
	font-size: 15px;
}

.ne-lightbox-close {
	position: absolute;
	top: 22px;
	inset-inline-end: 30px;
	font-size: 36px;
	color: #fff;
	cursor: pointer;
	line-height: 1;
}

/* ---------- کاهش حرکت برای کاربران حساس ---------- */
@media (prefers-reduced-motion: reduce) {

	.ne-btn,
	.ne-card,
	.ne-project-card,
	.ne-gallery-item img,
	.ne-hero-title a {
		transition: none !important;
	}
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 991px) {
	.ne-hero-grid {
		grid-template-columns: 1fr;
	}

	.ne-hero-title {
		font-size: 27px;
	}

	.ne-gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 576px) {
	.ne-section {
		padding: 40px 0;
	}

	.ne-hero-title {
		font-size: 22px;
	}

	.ne-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ne-section-title {
		white-space: normal;
	}
}
