﻿@import url(fontiran.css); /* لینک فایلی که وظیفه بارگذاری فونت ها را برعهده دارد */
/*رنگ پایه
#213074
*/
body {
	font-family: iranyekan !important;
}
@media (prefers-color-scheme: dark) {
	html, body, .box, .navbar, .section, .footer {
		background: #fff !important; /* پس زمینه سفید */
		color: #222 !important; /* متن مشکی */
	}
  /* اگر رنگ عناصر دیگری هم دارید، آن‌ها را اینجا بازنویسی کنید */
}
h1, h2, h3, h4, h5, h6, input, textarea {
	font-family: iranyekan !important;
}

h1 {
	font-weight: bold;
}
h3 {
	font-weight: 800;
	color: #213074
}
p{
	text-align:justify
}

.page-layout {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
}

.news-ticker-container {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	box-shadow: 0 2px 8px #eee;
	padding: 10px 16px;
	min-width: 340px;
	max-width: 90vw;
	position: relative;
}

.news-ticker-box {
	font-size: 1.1rem;
	min-height: 32px;
	min-width: 240px;
	color: #222;
	background: transparent;
	border: none;
	outline: none;
	direction: rtl;
	text-align: right;
	font-family: inherit;
	margin-left: 12px;
	letter-spacing: 0.5px;
	white-space: nowrap;
	overflow: hidden;
}

.news-more-btn {
	background: #1976d2;
	color: #fff;
	border: 0;
	padding: 6px 18px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
	text-decoration: none;
	margin-right: 0;
	margin-left: 0;
	transition: background 0.2s;
}

	.news-more-btn:hover {
		background: #125aa9;
	}

.centered-box {
	text-align: center;
	padding: 40px 10px 40px 10px;
	background-color: white;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	width: 100%;
	max-width: 1200px;
	position: relative;
	overflow: hidden;
	min-height: 80px; /* Give space for boxes to move */
}

/* Marquee effect for the animated headline boxes */
.headline-animate-area {
	height: 120px;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.headline-marquee {
	display: flex;
	align-items: center;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.headline-marquee-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	white-space: nowrap;
	/* Duplicate content for seamless animation */
	animation: marquee-move-seamless 40s linear infinite;
}

.headline-marquee-box {
	display: inline-block;
	padding: 10px 28px;
	background: #006eff;
	color: #fff;
	font-weight: bold;
	border-radius: 8px;
	font-size: 1.1em;
	margin: 0 16px;
	opacity: 0.95;
	max-width: 1200px; /* or whatever fits your design/container */
	min-width: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
	.headline-marquee-box img {
		flex-shrink: 0;
		height: 40px;
		margin-right: 8px;
	}
/* Seamless marquee - move left by 50% of container width (since content is duplicated) */
@keyframes marquee-move-seamless {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(50%);
	}
}
p {
	font-family: iranyekan !important;
}

.footer {
	font-weight: 300;
	font-size: 0.9em;
	text-align: center;
	direction: rtl;
	margin-bottom: 0px;
	padding-bottom: 0px;
}
/* استایل کلی صفحه */
.login-container {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 8px solid #87a5f1;
	border-radius: 30px;
	background-color: #006eff;
	box-shadow: 0px 5px 16px 4px rgba(0, 0, 0, 0.35);
	padding: 20px;
}

/* باکس توضیحات */
.info-box {
	padding: 30px;
	text-align: center;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	color: black;
	font-weight: 300
}

.info-title {
	font-size: 22px;
	font-weight: bold;
	margin-bottom: 15px;
}

.info-text {
	font-size: 16px;
	line-height: 1.6;
}

/* باکس فرم ورود */
.login-box {
	background: #f9f9f9;
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.login-title {
	font-size: 22px;
	font-weight: bold;
	margin-bottom: 20px;
}

/* استایل ورودی‌های فرم */
.form-group {
	margin-bottom: 15px;
	text-align: right;
}

label {
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 5px;
	display: block;
}

.form-control {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 16px;
	outline: none;
}

/* دکمه ورود (مینیمالیستی و زیبا) */
.btn-login {
	width: 100%;
	padding: 12px;
	background: #006eff;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
}

	.btn-login:hover {
		background: #87a5f1;
	}

/* واکنش‌گرایی */
@media screen and (min-width: 769px) {
	.info-column {
		order: 1; /* باکس توضیحات در سمت چپ */
	}

	.login-column {
		order: 2; /* باکس ورود در سمت راست */
	}
}

/* ترتیب ستون‌ها در موبایل */
@media screen and (max-width: 768px) {
	.login-container {
		flex-direction: column;
	}

	.info-column {
		order: 1; /* باکس توضیحات در بالا */
	}

	.login-column {
		order: 2; /* باکس ورود در پایین */
	}
}

.text-danger {
	color: red;
}

.title {
	color: black;
	font-family: iranyekan;
	font-size: 18px;
	font-weight: 400
}

li {
	margin: 16px;
	padding-right: 10px
}

.title:hover {
	color: #006eff;
	font-weight: 800
}

.main-box {
	width: 100%; /* عرض کامل درون content-wrapper */
	max-width: 1200px; /* مطابق با content-wrapper */
	margin: 0 auto -30px auto; /* بالا 0، پایین 30px، افقی auto برای مرکز بودن */
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.box-title {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 15px;
}

.inner-boxes {
	flex: 4;
	display: flex;
	justify-content: space-between; /* فاصله بین دو باکس داخلی */
	gap: 10px;
	justify-content: flex-start; /* از بالا شروع کنه */
	align-items: center;
	height: 100%; /* تغییر از min-height */
	overflow: auto; /* جلوگیری از برش محتوا */
}

.inner-box {
	flex: 1;
	background: #f0f0f0;
	padding: 10px;
	text-align: center;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	justify-content: flex-start; /* از بالا شروع کنه */
	align-items: center;
	overflow: visible; /* نذار چیزی برش بخوره */
	height: auto; /* بر اساس محتوا رشد کنه */
}

.inner-title {
	flex: 1;
	color: black;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 400;
	border-radius: 5px 5px 0 0;
}

.inner-box a {
	flex: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-height: 90%;
}

	.inner-box a:hover {
		background: white;
	}

.inner-img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.text-danger {
	color: red;
}

.content-wrapper {
	max-width: 100%;
	margin: 0 auto;
	width: 100%;
}

.container {
	padding: 30px;
}

.parent-boxes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}

.parent-box {
	background: #ffffff;
	padding: 15px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.parent-title {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 10px;
	text-align: center;
}


.child-boxes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	place-items: center; /* Center items in grid */
	width: 100%;
	margin: 0 auto;
}

.child-box {
	position: relative;
	background: transparent;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	width: 100%;
	max-width: 180px; /* Prevent from being too big */
	max-height: 180px;
	transition: transform 0.25s cubic-bezier(.4,2,.6,1);
	box-sizing: border-box;
}

.child-overlay {
	position: relative;
	opacity: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	transition: opacity 0.3s ease;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	overflow: hidden;
}

.child-box img {
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.tooltip-text {
	opacity: 0;
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0, 110, 255, 0.8);
	color: white;
	padding: 5px 10px;
	font-size: 13px;
	border-radius: 5px;
	z-index: 10;
	transition: opacity 0.3s ease;
}

.child-box:hover .tooltip-text {
	opacity: 1;
}

.child-box:hover {
	transform: scale(1.1); /* Slight zoom, not outside parent */
	z-index: 10;
	opacity: 1 !important;
	filter: none !important;
}


@media (max-width: 768px) {
	.parent-boxes {
		grid-template-columns: 1fr;
	}

	.child-boxes {
		grid-template-columns: repeat(2, 1fr);

	}
	.news-ticker-box {
		font-size: 0.80rem !important;
		min-width: 60px;
	}

	.news-ticker-container {
		min-width: 100px;
		padding: 4px 4px;
	}

}

@media (max-width: 480px) {
	.child-boxes {
		grid-template-columns: 1fr;
	}
	.news-ticker-box {
		font-size: 0.70rem !important;
		min-width: 60px;
	}

	.news-ticker-container {
		min-width: 100px;
		padding: 3px 3px;
	}

}
/* ترتیب ستون‌ها در موبایل */
@media screen and (max-width: 768px) {

	/* برای خلاصه خبر و لیست خبرها */
	.news-summary-row {
		display: flex;
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 0 !important;
	}

		.news-summary-row img {
			width: 100% !important;
			max-width: 90px !important;
			height: auto !important;
			margin-bottom: 10px !important;
			margin-left: 0 !important;
		}

	.news-summary-content {
		width: 100%;
	}

	.box.headline-marquee-box {
		flex-direction: column !important;
		display: flex !important;
		align-items: flex-start !important;
		padding: 10px 6px !important;
		margin-bottom: 12px !important;
	}
}