/* ============================================
استایل کامل - دبستان قلم و اندیشه مانا
Version: 4.0 - Cobalt Blue Theme
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;900&display=swap');

:root {
	--primary: #4F46E5;
	--primary-dark: #3730A3;
	--primary-light: #A5B4FC;
	--secondary: #F97316;
	--accent: #FB923C;
	--dark: #1E1B4B;
	--light: #EEF2FF;
	--white: #FFFFFF;
	--gradient: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
	--gradient-light: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
	--shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
	--shadow-hover: 0 15px 40px rgba(79, 70, 229, 0.25);
	--border-radius: 16px;
}

/* === ریست کلی === */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	color: var(--dark);
	background: var(--white);
	line-height: 1.8;
	overflow-x: hidden;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
}

/* ============================================
هدر و منوی ناوبری
============================================ */
.navbar {
	background: var(--white);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 0.5rem 0;
}

.navbar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
	gap: 10px;
}

.logo img {
	height: 55px;
}

.logo-text {
	display: flex;
	flex-direction: column;
}

.school-name {
	font-size: 0.8rem;
	color: var(--primary-light);
	font-weight: 400;
}

.school-subtitle {
	font-size: 1.3rem;
	font-weight: 900;
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 1.5rem;
}

.nav-item a {
	text-decoration: none;
	color: var(--dark);
	font-weight: 500;
	transition: all 0.3s ease;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	white-space: nowrap;
}

.nav-item a:hover,
.nav-item.active a {
	background: var(--light);
	color: var(--primary);
}

/* === همبرگر منو === */
.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 5px;
}

.bar {
	width: 28px;
	height: 3px;
	background: var(--primary);
	border-radius: 3px;
	transition: all 0.3s ease;
}

/* ============================================
بنر اصلی (هیرو)
============================================ */
.hero {
	background: var(--gradient-light);
	padding: 6rem 0;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='15' fill='%234F46E5' opacity='0.08'/%3E%3Ccircle cx='80' cy='80' r='20' fill='%233730A3' opacity='0.08'/%3E%3C/svg%3E");
	animation: float 25s infinite linear;
	z-index: 0;
}

@keyframes float {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.hero-content {
	position: relative;
	text-align: center;
	z-index: 1;
}

.hero h1 {
	font-size: 3rem;
	font-weight: 900;
	margin-bottom: 1rem;
	line-height: 1.4;
}

.highlight {
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-subtitle {
	font-size: 1.3rem;
	color: var(--dark);
	margin-bottom: 2.5rem;
	opacity: 0.8;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* ============================================
دکمه‌ها
============================================ */
.btn {
	padding: 1rem 2.5rem;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.1rem;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	cursor: pointer;
	display: inline-block;
	text-align: center;
}

.btn-primary {
	background: var(--gradient);
	color: white;
	box-shadow: var(--shadow);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-hover);
	background: var(--primary-dark);
}

.btn-outline {
	border-color: var(--primary);
	color: var(--primary);
	background: transparent;
}

.btn-outline:hover {
	background: var(--primary);
	color: white;
	transform: translateY(-3px);
}

.btn-view-all {
	background: var(--light);
	color: var(--primary);
	padding: 0.7rem 1.8rem;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	border: 2px solid var(--primary-light);
	display: inline-block;
}

.btn-view-all:hover {
	background: var(--primary);
	color: white;
	transform: translateX(-5px);
}

/* ============================================
بخش آمار
============================================ */
.stats {
	padding: 4rem 0;
	background: var(--white);
	margin-top: -3rem;
	position: relative;
	z-index: 2;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	background: var(--white);
	padding: 2.5rem;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
}

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

.stat-item {
	text-align: center;
	padding: 1rem;
}

.stat-icon {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
}

.stat-number {
	font-size: 2rem;
	font-weight: 900;
	color: var(--primary);
}

.stat-label {
	font-size: 0.9rem;
	color: var(--dark);
	opacity: 0.7;
	margin-top: 0.3rem;
}

/* ============================================
عنوان‌های بخش‌ها
============================================ */
.section-title {
	text-align: center;
	font-size: 2.2rem;
	font-weight: 900;
	margin-bottom: 0.5rem;
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.section-desc {
	text-align: center;
	font-size: 1.1rem;
	color: var(--dark);
	opacity: 0.7;
	margin-bottom: 3rem;
}

/* ============================================
بخش ویژگی‌ها
============================================ */
.features {
	padding: 5rem 0;
	background: var(--light);
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.card {
	background: var(--white);
	padding: 2.5rem 2rem;
	border-radius: var(--border-radius);
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow);
	border-color: var(--primary-light);
}

.card .icon {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
}

.card h3 {
	color: var(--primary);
	margin-bottom: 0.8rem;
	font-size: 1.2rem;
}

.card p {
	color: #4B5563;
	font-size: 0.95rem;
}

/* ============================================
پیام مدیر
============================================ */
.principal-message {
	padding: 5rem 0;
}

.message-box {
	background: var(--gradient);
	color: white;
	padding: 3rem;
	border-radius: var(--border-radius);
	position: relative;
	overflow: hidden;
}

.message-content {
	position: relative;
	z-index: 1;
}

.quote-mark {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 8rem;
	opacity: 0.15;
	font-family: serif;
	line-height: 1;
}

.message-box h2 {
	font-size: 1.8rem;
	margin-bottom: 1rem;
}

.message-box p {
	font-size: 1.1rem;
	line-height: 1.9;
}

.signature {
	margin-top: 1.5rem;
	font-style: italic;
	opacity: 0.9;
	font-weight: 500;
}

/* ============================================
بخش اطلاعیه‌ها (صفحه اصلی)
============================================ */
.news {
	padding: 5rem 0;
	background: var(--white);
}

.news-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.news-item {
	background: var(--light);
	padding: 1.5rem;
	border-radius: var(--border-radius);
	border-right: 4px solid var(--primary);
	transition: all 0.3s ease;
}

.news-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.news-date {
	color: var(--primary);
	font-weight: 700;
	font-size: 0.9rem;
	display: block;
	margin-bottom: 0.5rem;
}

.news-item h4 {
	margin-bottom: 0.5rem;
	color: var(--dark);
	font-size: 1.1rem;
}

.news-item p {
	color: #4B5563;
	font-size: 0.95rem;
}

/* ============================================
صفحات داخلی
============================================ */
.page-header {
	background: var(--gradient);
	color: white;
	padding: 3rem 0;
	text-align: center;
}

.page-header h1 {
	font-size: 2.2rem;
	margin-bottom: 0.5rem;
}

.page-header p {
	font-size: 1.1rem;
	opacity: 0.9;
}

.about-header {
	background: var(--gradient-light);
	color: var(--dark);
}

.grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.about-story {
	padding: 4rem 0;
}

.story-text h2 {
	font-size: 1.8rem;
	color: var(--primary);
	margin-bottom: 1.5rem;
}

.story-text p {
	margin-bottom: 1rem;
	color: #4B5563;
	line-height: 1.9;
}

.story-image img {
	width: 100%;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
}

.management {
	padding: 4rem 0;
	background: var(--light);
}

.manager-card {
	background: white;
	padding: 2rem;
	border-radius: var(--border-radius);
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.manager-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow);
}

.manager-card h3 {
	color: var(--primary-light);
	margin-bottom: 0.8rem;
}

.manager-card .name {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--primary);
	margin: 0.5rem 0;
}

.manager-card p {
	color: #4B5563;
}

.facilities {
	padding: 4rem 0;
}

.facilities-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin-top: 2rem;
}

.facility-item {
	text-align: center;
	padding: 2rem 1rem;
	background: var(--light);
	border-radius: var(--border-radius);
	transition: all 0.3s ease;
}

.facility-item:hover {
	background: var(--primary);
	color: white;
	transform: translateY(-5px);
}

.facility-item span {
	font-size: 2.5rem;
	display: block;
	margin-bottom: 1rem;
}

.facility-item h4 {
	margin-bottom: 0.5rem;
}

.facility-item p {
	font-size: 0.9rem;
	opacity: 0.8;
}

/* ============================================
صفحه اطلاعیه‌ها
============================================ */
.news-page {
	padding: 4rem 0;
	min-height: 60vh;
}

.news-filter {
	display: flex;
	justify-content: center;
	gap: 0.8rem;
	margin-bottom: 3rem;
	flex-wrap: wrap;
}

.filter-btn {
	padding: 0.7rem 1.8rem;
	border: 2px solid var(--primary-light);
	background: white;
	color: var(--dark);
	border-radius: 50px;
	cursor: pointer;
	font-family: 'Vazirmatn', sans-serif;
	font-weight: 500;
	transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
	background: var(--gradient);
	color: white;
	border-color: var(--primary);
}

.news-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	max-width: 900px;
	margin: 0 auto;
}

.news-card {
	background: white;
	border-radius: var(--border-radius);
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.news-card:hover {
	border-color: var(--primary-light);
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

.news-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 2rem;
	background: var(--light);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	flex-wrap: wrap;
	gap: 0.5rem;
}

.news-badge {
	padding: 0.3rem 1.2rem;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 600;
	color: white;
}

.badge-enrollment { background: #10B981; }
.badge-events { background: #F59E0B; }
.badge-classes { background: #3B82F6; }
.badge-parents { background: #8B5CF6; }

.news-card-date {
	color: var(--dark);
	opacity: 0.7;
	font-size: 0.9rem;
}

.news-card-body {
	padding: 2rem;
}

.news-card-body h2 {
	color: var(--dark);
	margin-bottom: 0.8rem;
	font-size: 1.3rem;
}

.news-card-body p {
	color: #4B5563;
	line-height: 1.8;
}

.news-details {
	margin-top: 1.2rem;
	padding: 1.2rem;
	background: var(--light);
	border-radius: 12px;
}

.news-details p {
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.news-details p:last-child {
	margin-bottom: 0;
}

/* ============================================
فوتر
============================================ */
footer {
	background: var(--dark);
	color: white;
	padding: 3rem 0 1.5rem;
	margin-top: 3rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-about h3,
.footer-links h4,
.footer-contact h4 {
	margin-bottom: 1rem;
	color: var(--primary-light);
}

.footer-about p {
	opacity: 0.8;
	line-height: 1.9;
}

.footer-links ul {
	list-style: none;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
	color: #A5B4FC;
	text-decoration: none;
	transition: all 0.3s ease;
}

.footer-links a:hover {
	color: white;
	padding-right: 5px;
}

.footer-contact p {
	margin-bottom: 0.5rem;
	opacity: 0.9;
}

.copyright {
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1.5rem;
	color: #A5B4FC;
}

.developer {
	font-size: 0.8rem;
	opacity: 0.6;
	margin-top: 0.5rem;
}

/* ============================================
واکنش‌گرایی (Responsive)
============================================ */
@media (max-width: 992px) {
	.grid-2 {
		grid-template-columns: 1fr;
	}

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

	.hero h1 {
		font-size: 2.5rem;
	}
}

@media (max-width: 768px) {
	.hamburger {
		display: flex;
	}

	.nav-menu {
		position: fixed;
		right: -100%;
		top: 70px;
		flex-direction: column;
		background: white;
		width: 100%;
		text-align: center;
		padding: 2rem;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
		transition: all 0.3s ease;
		gap: 0.5rem;
		z-index: 999;
	}

	.nav-menu.active {
		right: 0;
	}

	.nav-item a {
		display: block;
		padding: 0.8rem;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	.stats-grid,
	.stats-3col {
		grid-template-columns: repeat(2, 1fr);
		padding: 1.5rem;
	}

	.hero-buttons {
		flex-direction: column;
		align-items: center;
	}

	.btn {
		width: 100%;
		max-width: 300px;
	}

	.grid-2 {
		grid-template-columns: 1fr;
	}

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

	.section-title {
		font-size: 1.8rem;
	}

	.news-card-header {
		padding: 1rem 1.5rem;
	}

	.news-card-body {
		padding: 1.5rem;
	}

	.filter-btn {
		padding: 0.5rem 1.2rem;
		font-size: 0.9rem;
	}

	.message-box {
		padding: 2rem 1.5rem;
	}

	.quote-mark {
		font-size: 5rem;
		top: 10px;
		right: 15px;
	}
}

@media (max-width: 480px) {
	.stats-grid,
	.stats-3col {
		grid-template-columns: 1fr;
	}

	.facilities-grid {
		grid-template-columns: 1fr;
	}

	.hero {
		padding: 4rem 0;
	}

	.hero h1 {
		font-size: 1.6rem;
	}

	.logo img {
		height: 40px;
	}

	.school-subtitle {
		font-size: 1rem;
	}
}
