/* =========================================
   فونت‌ها (Fonts)
   ========================================= */
@font-face {
	font-family: 'Vazir';
	src:
		url('../font/Vazir-Bold.woff2') format('woff2'),
		url('../font/Vazir.woff') format('woff');
	font-weight: normal;
}
@font-face {
	font-family: 'Vazir';
	src:
		url('../font/Vazir-Bold.woff2') format('woff2'),
		url('../font/Vazir-Bold.woff') format('woff');
	font-weight: bold;
}

/* =========================================
   متغیرهای رنگی (CSS Variables)
   ========================================= */
:root {
	--primary-blue: #0047ab;
	--dark-blue: #003366;
	--royal-blue: #4169e1;
	--light-blue: #e8f0ff;
	--white: #ffffff;
	--text-dark: #1a1a1a;
	--text-light: #666666;
	--shadow: 0 10px 30px rgba(0, 71, 171, 0.1);
	--shadow-hover: 0 15px 40px rgba(0, 71, 171, 0.2);
}

/* =========================================
   تنظیمات پایه (Reset & Base)
   ========================================= */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: linear-gradient(135deg, #fefefe 0%, #f8fafc 50%, #f1f5f9 100%);
	color: #1e293b;
	line-height: 1.5;
	overflow-x: hidden;
	font-family: 'Vazir', sans-serif;
}

.container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
}

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
html {
	scroll-behavior: smooth;
}

::-webkit-scrollbar-track {
	background: #e2e8f0;
	border-radius: 10px;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #0052cc, #2f7cf0);
	border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #003d99, #1a5cd8);
}

/* =========================================
   هدر و ناوبری (Header & Navigation)
   ========================================= */
header {
	background: linear-gradient(135deg, #2d5085 0%, #0f4ead 100%);
	color: white;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 82, 204, 0.1);
	padding: 1rem 0;
	font-family: 'Vazir', sans-serif;
	font-weight: bold;
	width: 100%;
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 2rem;
	max-width: 1920px;
	margin: 0 auto;
	width: 100%;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.logo-img {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	object-fit: cover;
	background-color: transparent;
	mix-blend-mode: lighten;
	box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
	transition: all 0.3s ease;
	vertical-align: middle;
}

.logo-img:hover {
	transform: scale(1.05);
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.logo-text {
	font-size: 1.5rem;
	font-weight: bold;
	font-family: 'Poppins', sans-serif;
	color: white;
}

.header-center ul {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.header-center a {
	color: white;
	text-decoration: none;
	font-size: 1rem;
	padding: 0.5rem 1rem;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.header-center a:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.header-left .search-box {
	display: flex;
	align-items: center;
	background-color: rgba(255, 255, 255, 0.15);
	border-radius: 25px;
	padding: 0.5rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-box input {
	background: transparent;
	border: none;
	color: white;
	outline: none;
	width: 180px;
}

.search-box input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.search-box button {
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	font-size: 1.2rem;
}

/* =========================================
   کانتینر صفحات (Page Container)
   ========================================= */
.page {
	display: none;
	min-height: calc(100vh - 80px - 200px);
}

.page.active {
	display: block !important;
	animation: fadeIn 0.3s ease-in;
}

.page[hidden] {
	display: none !important;
}

/* =========================================
   بخش سئو (SEO Intro)
   ========================================= */
.info-text {
	color: #666;
}

.info-card .contact-link {
	color: #444;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.info-card .contact-link:hover {
	color: #0052cc;
}

.contact-form-box {
	background: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 82, 204, 0.1);
}

.contact-form-box h3 {
	color: #0052cc;
	margin-bottom: 1.5rem;
	text-align: right;
}

.section-cta {
	text-align: center;
	margin-top: 2rem;
}

.section-cta-sm {
	margin-top: 1rem;
}

.loading-placeholder {
	text-align: center;
	padding: 50px;
	width: 100%;
}

.hero-btn-wide {
	min-width: min(350px, 100%);
}

.hero-btn-narrow {
	min-width: min(185px, 100%);
}

.nav-toggle {
	display: none;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: white;
	font-size: 1.5rem;
	padding: 0.4rem 0.65rem;
	border-radius: 8px;
	cursor: pointer;
	line-height: 1;
}

.header-center a.nav-active {
	color: #fff;
	font-weight: bold;
	background-color: rgba(255, 255, 255, 0.25);
}

.hero-subtitle {
	font-size: 1.15rem;
	margin-top: 0.75rem;
	opacity: 0.95;
}

/* =========================================
   بخش هیرو (Hero Section)
   ========================================= */
.hero {
	background: linear-gradient(135deg, #0052cc 0%, #2f7cf0 100%);
	color: white;
	padding: 3rem 2rem;
	text-align: right;
	width: 100%;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 500px;
	height: 400px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	animation: float 5s ease-in-out infinite;
	z-index: 1;
}

.hero::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -7%;
	width: 380px;
	height: 300px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	animation: float 6s ease-in-out infinite reverse;
	z-index: 1;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(30px);
	}
}

.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1rem;
	font-weight: bold;
	position: relative;
	z-index: 1;
}

.hero p {
	font-size: 1.3rem;
	margin-bottom: 2rem;
	opacity: 0.95;
	position: relative;
	z-index: 1;
}

.hero-grid-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	position: relative;
	z-index: 1;
}

.hero-right-column {
	flex: 1;
	min-width: 60%;
}

.hero-buttons-fixed {
	flex: 0 0 auto;
	display: flex;
	gap: 1rem;
	justify-content: flex-start;
}

.hero-desc {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #e0e0e0;
	max-width: 700px;
	text-align: right;
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
}

.hero-desc:hover {
	text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
	transform: translateY(-2px);
}

.btn {
	padding: 1rem 2rem;
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: 'Vazir', sans-serif;
	justify-content: center;
}

.btn-primary {
	background: var(--white);
	color: rgb(0, 0, 0);
	border: 2px solid var(--white);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
	background: linear-gradient(135deg, rgb(139, 201, 224), rgb(143, 137, 196));
	color: Black;
	border: 2px solid var(--white);
}

.btn-secondary:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
	text-align: center;
}

.hero-intro {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 0.3rem;
	margin-bottom: 0%;
}

.intro-item {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	font-family: 'Vazir', sans-serif;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.08);
	padding: 0.6rem 1.2rem;
	border-radius: 50px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
}

.intro-item:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-3px);
}

.intro-item img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

/* انیمیشن‌های آیتم‌ها */
.neon-blue img {
	filter: drop-shadow(0 0 5px #00f2ff);
	animation: smooth-spin 40s linear infinite;
}
.neon-purple img {
	filter: drop-shadow(0 0 5px #d400ff);
	animation: gentle-bounce 10s ease-in-out infinite;
}
.neon-green img {
	filter: drop-shadow(0 0 5px #00ff6a);
	animation: flash-glow 4s ease-in-out infinite;
}
.neon-orange img {
	filter: drop-shadow(0 0 5px #ff9100);
	animation: shake-lock 5s ease-in-out infinite;
}
.neon-red img {
	filter: drop-shadow(0 0 5px #ff1744);
	animation: shake-lock 5s ease-in-out infinite;
}

@keyframes smooth-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
@keyframes gentle-bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-5px);
	}
}
@keyframes flash-glow {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.7;
		transform: scale(1.1);
	}
}
@keyframes shake-lock {
	0%,
	100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(-10deg);
	}
	75% {
		transform: rotate(10deg);
	}
}

.hero-fixed-img {
	position: absolute;
	top: 40%;
	left: 5%;
	transform: translateY(-50%);
	width: 390px;
	height: 355px;
	object-fit: contain;
	z-index: 20;
	opacity: 0.85;
	display: block;
	filter: brightness(1) contrast(1);
	mix-blend-mode: normal;
}

.hero h1,
.hero p,
.hero-grid-layout {
	position: relative;
	z-index: 2;
}

/* =========================================
   بخش‌ها (Sections)
   ========================================= */
.section {
	padding: 4rem 1rem;
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
}

.section-title {
	font-size: 2.2rem;
	color: #0052cc;
	margin-bottom: 2rem;
	text-align: right;
	font-weight: bold;
	border-right: 4px solid #0052cc;
	padding-right: 1rem;
}

.centered-text {
	text-align: center;
	display: block;
	width: 100%;
}

/* =========================================
   گرید کارت‌ها (Cards Grid)
   ========================================= */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.card {
	background: white;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 82, 204, 0.1);
	overflow: hidden;
	transition: all 0.3s;
	border: 1px solid #e0e0e0;
}

.card:hover {
	box-shadow: 0 8px 25px rgba(0, 82, 204, 0.2);
	transform: translateY(-5px);
}

.card-image {
	width: 100%;
	height: 200px;
	background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	color: #0052cc;
}

.card-content {
	padding: 1.5rem;
	text-align: right;
}

.card-title {
	font-size: 1.2rem;
	color: #0052cc;
	margin-bottom: 0.5rem;
	font-weight: bold;
}

.card-description {
	color: #666;
	font-size: 0.95rem;
	margin-bottom: 1rem;
	line-height: 1.5;
}

.card-meta {
	font-size: 0.85rem;
	color: #999;
	margin-bottom: 1rem;
}

.card-link {
	color: #0052cc;
	text-decoration: none;
	font-weight: bold;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: gap 0.3s;
}

.card-link:hover {
	gap: 1rem;
}

/* =========================================
   صفحه مقاله (Article Page)
   ========================================= */
.article-full {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 1rem;
}

.article-header-full h1 {
	font-size: 2rem;
	color: #0052cc;
	margin-bottom: 1rem;
	text-align: right;
}

.article-meta-full {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
	flex-wrap: wrap;
	padding-bottom: 1rem;
	border-bottom: 2px solid #e0e7ff;
	margin-bottom: 1rem;
}

.article-meta-full span {
	background: #e0e7ff;
	padding: 0.3rem 0.8rem;
	border-radius: 20px;
	font-size: 0.85rem;
	color: #0052cc;
}

.article-content-full h2 {
	color: #0052cc;
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.article-content-full p {
	margin-bottom: 1rem;
	color: #444;
	line-height: 1.8;
}

.article-content-full ul,
.article-content-full ol {
	margin: 1rem 0;
	padding-right: 1.5rem;
}

.article-content-full li {
	margin-bottom: 0.5rem;
	color: #444;
	line-height: 1.7;
}

.article-content-full code {
	background: #f0f0f0;
	padding: 0.2rem 0.4rem;
	border-radius: 5px;
	font-family: monospace;
	font-size: 0.9rem;
	word-break: break-word;
}

/* =========================================
   بخش درباره ما (About Section)
   ========================================= */
.about-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 3rem;
	align-items: start;
}

.about-text {
	text-align: right;
}

.about-text h2 {
	color: #0052cc;
	font-size: 1.8rem;
	margin-bottom: 1rem;
}

.about-text p {
	color: #555;
	margin-bottom: 1.5rem;
	line-height: 1.8;
}

.about-image {
	background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
	border-radius: 10px;
	height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 5rem;
	color: #0052cc;
}

/* =========================================
   بخش مهارت‌ها (Skills Section)
   ========================================= */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.skill-card {
	background: var(--white);
	padding: 2rem;
	border-radius: 15px;
	box-shadow: var(--shadow);
	transition: all 0.3s ease;
}

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

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

.skill-item {
	margin-bottom: 1.5rem;
}

.skill-name {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.skill-percentage {
	color: var(--primary-blue);
	font-weight: 700;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background-color: #e8e8e8;
	border-radius: 10px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: rgb(3, 111, 243);
	border-radius: 10px;
	transition: width 1s ease;
}

/* =========================================
   گالری (Gallery)
   ========================================= */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1rem;
}

.gallery-item {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
	aspect-ratio: 1 / 1;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 25px rgba(0, 82, 204, 0.2);
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 82, 204, 0.85);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	opacity: 0;
	transition: opacity 0.3s ease;
	color: white;
}

.gallery-overlay i {
	font-size: 2rem;
}

.gallery-overlay span {
	font-size: 0.85rem;
	font-family: 'Vazir', sans-serif;
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

.lightbox-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.3s ease;
}

.lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	text-align: center;
}

.lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	color: white;
	font-size: 35px;
	cursor: pointer;
	transition: all 0.3s;
	z-index: 10;
}

.lightbox-close:hover {
	color: #ff4444;
	transform: rotate(90deg);
}

.lightbox-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.lightbox-img {
	max-width: 80vw;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 10px;
	transition: transform 0.3s ease;
}

.lightbox-prev,
.lightbox-next {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	font-size: 2rem;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
	background: #0052cc;
	transform: scale(1.1);
}

.lightbox-caption {
	margin-top: 1rem;
	padding: 0.8rem;
	color: white;
	font-size: 1rem;
	font-family: 'Vazir', sans-serif;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 10px;
	display: inline-block;
}

.lightbox-tools {
	margin-top: 1.5rem;
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.lightbox-tool {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 25px;
	cursor: pointer;
	font-family: 'Vazir', sans-serif;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s;
}

.lightbox-tool:hover {
	background: #0052cc;
	transform: translateY(-2px);
}

/* =========================================
   فرم‌ها (Form Styles)
   ========================================= */
.form-group {
	margin-bottom: 1.5rem;
	text-align: right;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	color: #333;
	font-weight: bold;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-family: 'Vazir', sans-serif;
	font-size: 1rem;
	text-align: right;
	word-break: break-all;
}

.form-group textarea {
	resize: vertical;
	min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #0052cc;
	box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

#btn-sub {
	width: 100%;
	margin-top: 1rem;
	background-color: rgb(41, 126, 255);
	color: white;
	padding: 1rem 2rem;
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: 'Vazir', sans-serif;
}

#btn-sub:hover {
	background-color: rgb(30, 100, 200);
	transform: translateY(-2px);
}

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

.info-card {
	background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
	padding: 2rem;
	border-radius: 10px;
	text-align: center;
}

.info-icon {
	font-size: 2.5rem;
	color: #0052cc;
	margin-bottom: 1rem;
}

.info-title {
	font-size: 1.2rem;
	color: #0052cc;
	margin-bottom: 0.5rem;
	font-weight: bold;
}

.info-text {
	color: #666;
}

/* =========================================
   فوتر (Footer)
   ========================================= */
footer {
	background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
	color: white;
	padding: 2rem 1rem;
	width: 100%;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
	text-align: right;
	max-width: 1920px;
	margin-left: auto;
	margin-right: auto;
}

.footer-section h4 {
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

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

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

.footer-section a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: all 0.3s ease;
}

.footer-section a:hover {
	color: var(--white);
	padding-right: 0.5rem;
}

.footer-social {
	display: flex;
	gap: 1rem;
}

.footer-social a {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transition: all 0.3s ease;
}

.footer-social a:hover {
	background-color: var(--white);
	color: var(--primary-blue);
	transform: translateY(-3px);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-top: 0.5rem;
	padding-bottom: 0.5%;
	text-align: center;
	background-color: black;
	color: rgba(255, 255, 255, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}
.footer-bottom p {
	bottom: unset;
}

/* =========================================
   نان‌بردکرامب (Breadcrumb)
   ========================================= */
.breadcrumb {
	padding: 1rem;
	background-color: #f5f5f5;
	width: 100%;
	margin: 0 auto;
	text-align: right;
}

.breadcrumb a {
	color: #0052cc;
	text-decoration: none;
	margin: 0 0.5rem;
}

.breadcrumb a:hover {
	text-decoration: underline;
}

/* =========================================
   نتایج جستجو (Search Results)
   ========================================= */
.search-results {
	text-align: right;
}

.result-item {
	background: white;
	padding: 1.5rem;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	border-left: 4px solid #0052cc;
}

.result-title {
	font-size: 1.3rem;
	color: #0052cc;
	margin-bottom: 0.5rem;
	font-weight: bold;
}

.result-type {
	display: inline-block;
	background-color: #e0e7ff;
	color: #0052cc;
	padding: 0.3rem 0.8rem;
	border-radius: 20px;
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
}

.result-excerpt {
	color: #666;
	line-height: 1.6;
}

/* =========================================
   صفحه آموزش حرفه‌ای (Tutorial Pro Page)
   ========================================= */
.tutorial-pro-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.tutorial-pro-two-columns {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 2rem;
	margin-bottom: 3rem;
}

.tutorial-pro-video {
	background: #fff;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
}

.video-pro-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	background: #000;
}

.video-pro-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.video-pro-wrapper .coming-soon-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1e2a3e 0%, #0f172a 100%);
	text-align: center;
	color: white;
}

.coming-soon-content i {
	font-size: 3rem;
	margin-bottom: 0.8rem;
	color: #2f7cf0;
}

.coming-soon-content h3 {
	font-size: 1.5rem;
	margin-bottom: 0.3rem;
	color: white;
}

.coming-soon-content p {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 1rem;
}

.coming-soon-loader {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.coming-soon-loader span {
	width: 8px;
	height: 8px;
	background: #2f7cf0;
	border-radius: 50%;
	display: inline-block;
	animation: bounce 1s ease-in-out infinite;
}

.coming-soon-loader span:nth-child(1) {
	animation-delay: -0.3s;
}
.coming-soon-loader span:nth-child(2) {
	animation-delay: -0.15s;
}
.coming-soon-loader span:nth-child(3) {
	animation-delay: 0s;
}

@keyframes bounce {
	0%,
	80%,
	100% {
		transform: scale(0.5);
	}
	40% {
		transform: scale(1);
	}
}

.video-pro-meta {
	padding: 1.8rem;
	background: linear-gradient(135deg, #f8faff, #ffffff);
}

.video-pro-title-box h2 {
	font-size: 1.8rem;
	color: #0052cc;
	margin-bottom: 0.8rem;
	font-weight: 700;
}

.video-pro-stats {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.video-pro-stats span {
	background: #e8f0fe;
	padding: 0.4rem 1.2rem;
	border-radius: 50px;
	font-size: 0.85rem;
	color: #0052cc;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
}

.video-pro-desc-box {
	background: linear-gradient(135deg, #ffffff, #fafcff);
	padding: 1.8rem;
	border-radius: 24px;
	border: 1px solid #e0e8f5;
	margin-top: 1.2rem;
	box-shadow: 0 8px 20px rgba(0, 82, 204, 0.05);
}

.video-pro-desc-box p {
	font-size: 1.05rem;
	line-height: 1.9;
	color: #2d3748;
	margin-bottom: 1rem;
}

.video-pro-desc-box p:last-child {
	margin-bottom: 0;
}

.video-pro-desc-box strong {
	color: #0052cc;
}

.desc-highlight {
	background: #e8f0fe;
	padding: 1rem 1.5rem;
	border-radius: 18px;
	margin-top: 1rem;
	border-right: 4px solid #0052cc;
	font-size: 0.95rem;
	color: #1a365d;
}

.desc-highlight i {
	color: #0052cc;
	margin-left: 0.5rem;
}

.tutorial-pro-sidebar {
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	height: fit-content;
	position: sticky;
	top: 100px;
}

.chapters-header {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 1.2rem 1.5rem;
	background: linear-gradient(135deg, #0052cc, #2f7cf0);
	color: white;
}

.chapters-header i {
	font-size: 1.5rem;
}

.chapters-header h3 {
	flex: 1;
	margin: 0;
	font-size: 1.2rem;
	font-weight: 600;
}

.chapters-count {
	background: rgba(255, 255, 255, 0.2);
	padding: 0.2rem 0.8rem;
	border-radius: 50px;
	font-size: 0.8rem;
}

.chapters-accordion {
	padding: 0.5rem 0;
}

.chapter-item {
	border-bottom: 1px solid #edf2f7;
}

.chapter-item:last-child {
	border-bottom: none;
}

.chapter-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.5rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.chapter-header:hover {
	background: #f8faff;
}

.chapter-icon {
	font-size: 1.2rem;
	color: #0052cc;
	transition: transform 0.3s ease;
}

.chapter-item.active .chapter-icon {
	transform: rotate(180deg);
}

.chapter-info {
	flex: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.chapter-title {
	font-weight: 600;
	color: #2d3748;
	font-size: 0.95rem;
}

.chapter-duration {
	font-size: 0.75rem;
	color: #718096;
	background: #f0f2f5;
	padding: 0.2rem 0.6rem;
	border-radius: 20px;
}

.chapter-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
	padding: 0 1.5rem;
}

.chapter-item.active .chapter-content {
	max-height: 350px;
	padding: 0 1.5rem 1rem 1.5rem;
}

.chapter-content ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.chapter-content li {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.6rem 0;
	color: #4a5568;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.2s;
	border-bottom: 1px dashed #edf2f7;
}

.chapter-content li:last-child {
	border-bottom: none;
}

.chapter-content li:hover {
	color: #0052cc;
	transform: translateX(-5px);
}

.chapter-content li i {
	font-size: 1rem;
	color: #0052cc;
}

.sidebar-download-box {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1rem;
	padding: 1rem;
	background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
	border-radius: 20px;
	border: 1px solid #dce6f5;
}

.sidebar-download-box i {
	font-size: 2rem;
	color: #0052cc;
}

.sidebar-download-box div {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.sidebar-download-box strong {
	font-size: 0.9rem;
	color: #1a365d;
}

.sidebar-download-box small {
	font-size: 0.7rem;
	color: #4a5568;
}

.download-mini-btn {
	background: #0052cc;
	color: white;
	padding: 0.4rem 1rem;
	border-radius: 30px;
	font-size: 0.8rem;
	text-decoration: none;
	transition: all 0.2s;
	font-weight: 500;
}

.download-mini-btn:hover {
	background: #003d99;
	transform: scale(1.02);
}

.tutorial-pro-features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin: 2rem 0;
}

.pro-feature-card {
	background: #fff;
	padding: 1.5rem;
	border-radius: 24px;
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	border: 1px solid #eef2ff;
}

.pro-feature-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 35px -10px rgba(0, 82, 204, 0.15);
	border-color: #0052cc20;
}

.pro-feature-icon {
	font-size: 2.2rem;
	color: #0052cc;
	margin-bottom: 1rem;
}

.pro-feature-card h4 {
	margin-bottom: 0.5rem;
	font-size: 1.05rem;
	color: #1a365d;
}

.pro-feature-card p {
	font-size: 0.8rem;
	color: #718096;
}

.btn-view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	background: linear-gradient(135deg, #0052cc, #2f7cf0);
	color: white;
	border: none;
	padding: 1rem 2.5rem;
	border-radius: 60px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Vazir', sans-serif;
	box-shadow: 0 8px 20px rgba(0, 82, 204, 0.25);
	margin: 2rem auto;
	text-decoration: none;
}

.btn-view-all:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 30px rgba(0, 82, 204, 0.35);
	background: linear-gradient(135deg, #003d99, #1a5cd8);
}

.btn-view-all i {
	font-size: 1.2rem;
	transition: transform 0.3s ease;
}

.btn-view-all:hover i {
	transform: translateX(-5px);
}

/* =========================================
   صفحه آموزش‌ها (Tutorials Page)
   ========================================= */
.tutorial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.tutorial-card {
	background: var(--white);
	border-radius: 15px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: all 0.3s ease;
	cursor: pointer;
}

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

.tutorial-card-image {
	width: 100%;
	height: 180px;
	background: linear-gradient(135deg, var(--primary-blue), var(--royal-blue));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	position: relative;
	overflow: hidden;
}

.play-button {
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: var(--primary-blue);
	transition: all 0.3s ease;
}

.tutorial-card:hover .play-button {
	transform: scale(1.1);
	background: var(--white);
}

.tutorial-card-content {
	padding: 1.5rem;
}

.tutorial-card h3 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	color: var(--text-dark);
}

.tutorial-meta {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	color: var(--text-light);
}

.tutorial-badge {
	display: inline-block;
	background-color: var(--light-blue);
	color: var(--primary-blue);
	padding: 0.3rem 0.7rem;
	border-radius: 15px;
	font-size: 0.8rem;
	font-weight: 600;
}

.tutorial-card p {
	color: var(--text-light);
	font-size: 0.95rem;
	margin-bottom: 1rem;
	line-height: 1.5;
}

.tutorial-actions {
	display: flex;
	gap: 1rem;
}

.btn-small {
	flex: 1;
	padding: 0.7rem 1rem;
	border: none;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: 'Vazir', sans-serif;
}

.btn-play {
	background: linear-gradient(135deg, var(--primary-blue), var(--royal-blue));
	color: var(--white);
}

.btn-play:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 71, 171, 0.3);
}

.btn-download {
	background-color: var(--light-blue);
	color: var(--primary-blue);
	border: 2px solid var(--primary-blue);
}

.btn-download:hover {
	background-color: var(--primary-blue);
	color: var(--white);
}

/* =========================================
   انیمیشن‌ها (Animations)
   ========================================= */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* =========================================
   صفحه‌بندی (Pagination)
   ========================================= */
.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.pagination a,
.pagination span {
	padding: 0.5rem 1rem;
	border: 1px solid #ddd;
	border-radius: 5px;
	text-decoration: none;
	color: #0052cc;
}

.pagination a:hover {
	background-color: #e0e7ff;
}

.pagination .active {
	background-color: #0052cc;
	color: white;
}

.no-results {
	text-align: center;
	padding: 3rem;
	color: #666;
}

.no-results i {
	font-size: 3rem;
	color: #ccc;
	margin-bottom: 1rem;
}

/* =========================================
   شبکه اجتماعی (Social Links)
   ========================================= */
.social-links {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 1rem;
}

/* =========================================
   بخش CTA (Call to Action)
   ========================================= */
.cta-box {
	background: linear-gradient(135deg, var(--primary-blue), var(--royal-blue));
	color: var(--white);
	padding: 3rem;
	border-radius: 15px;
	text-align: center;
	margin-top: 3rem;
}

.cta-box h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.cta-box p {
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	opacity: 0.95;
}

.hero-toggle-btn {
	display: none;
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 100;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid white;
	color: white;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(5px);
	transition: all 0.3s ease;
}

.hero-toggle-btn:hover {
	background: white;
	color: #0052cc;
	transform: rotate(90deg);
}

.hero-buttons-wrapper {
	display: flex;
	flex-direction: unset;
	align-items: start;
	gap: 0.5rem;
}

.hero-main-img {
	position: absolute;
	right: 3%;
	top: 50%;
	transform: translateY(-50%);
	width: 180px;
	height: auto;
	object-fit: contain;
	z-index: 5;
}

.hero-buttons-row {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	align-items: center;
	justify-content: center;
}

.hero-buttons-row .btn {
	white-space: nowrap;
}

/* =========================================
   مدیا کوئری‌های ریسپانسیو (Responsive)
   ========================================= */

/* دسکتاپ متوسط */
@media (max-width: 1200px) {
	.hero-fixed-img {
		width: 320px;
		left: 4%;
	}
}

/* تبلت بزرگ */
@media (max-width: 992px) {
	.hero-fixed-img {
		width: 280px;
		left: 3%;
		top: 45%;
	}
	.tutorial-pro-two-columns {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.tutorial-pro-sidebar {
		position: static;
		max-width: 500px;
		margin: 0 auto;
	}
	.tutorial-pro-features-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
	.video-pro-title-box h2 {
		font-size: 1.5rem;
	}
	.gallery-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 0.8rem;
	}
	.article-full {
		max-width: 90%;
	}
	.article-header-full h1 {
		font-size: 1.8rem;
	}
}

/* تبلت */
@media (max-width: 850px) {
	.hero-fixed-img {
		width: 220px;
		left: 2%;
		top: 50%;
	}
}
/* =========================================
   مدیا کوئری‌های ریسپانسیو (Responsive)
   ========================================= */

/* دسکتاپ متوسط */
@media (max-width: 1200px) {
	.hero-fixed-img {
		width: 320px;
		left: 4%;
	}
}

/* تبلت بزرگ */
@media (max-width: 992px) {
	.hero-fixed-img {
		width: 280px;
		left: 3%;
		top: 45%;
	}
	.tutorial-pro-two-columns {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.tutorial-pro-sidebar {
		position: static;
		max-width: 500px;
		margin: 0 auto;
	}
	.tutorial-pro-features-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
	.video-pro-title-box h2 {
		font-size: 1.5rem;
	}
	.gallery-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 0.8rem;
	}
	.article-full {
		max-width: 90%;
	}
	.article-header-full h1 {
		font-size: 1.8rem;
	}
}

/* تبلت */
@media (max-width: 850px) {
	.hero-fixed-img {
		width: 220px;
		left: 2%;
		top: 50%;
	}
}

/* موبایل و تبلت کوچک */
@media (max-width: 768px) {
	.nav-toggle {
		display: block;
		position: absolute;
		left: 1rem;
		top: 1rem;
		z-index: 1001;
	}

	header {
		position: relative;
	}

	.header-content {
		flex-direction: column;
		gap: 0.75rem;
		padding: 3rem 1rem 1rem;
		position: relative;
	}

	.header-right {
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.header-center {
		width: 100%;
		display: none;
	}

	.header-center.nav-open {
		display: block;
	}

	.header-center ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem;
		width: 100%;
	}

	.header-center a {
		display: block;
		text-align: center;
		padding: 0.65rem 1rem;
		font-size: 0.95rem;
		background: rgba(255, 255, 255, 0.08);
	}
	.header-left {
		width: 100%;
	}
	.search-box input {
		width: 100%;
	}
	.hero {
		padding: 2rem 1rem;
		text-align: center;
	}
	.hero h1 {
		font-size: 1.8rem;
	}
	.hero p {
		font-size: 1rem;
	}
	.hero-desc {
		font-size: 0.9rem;
		text-align: center;
		margin: 0 auto;
	}
	.hero-fixed-img {
		position: relative;
		width: 200px;
		height: auto;
		top: auto;
		left: auto;
		transform: none;
		margin: 20px auto;
		display: block;
	}
	.hero-grid-layout {
		flex-direction: column;
		align-items: center;
	}
	.hero-right-column {
		width: 100%;
		text-align: center;
	}
	.hero-intro {
		justify-content: center;
	}
	.hero-buttons-wrapper {
		width: 100%;
	}
	.hero-buttons-row {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 12px;
		width: 100%;
	}
	.hero-buttons-row .btn,
	.hero-buttons-row button,
	.hero-buttons-row a.btn {
		width: 100%;
		max-width: 100%;
		min-width: unset !important;
		display: flex;
		justify-content: center;
		text-align: center;
		white-space: normal;
	}
	.hero-buttons-row .btn-secondary {
		order: 1;
	}
	.hero-buttons-row .btn-primary {
		order: 2;
	}
	.section-title {
		font-size: 1.6rem;
		text-align: center;
		border-right: none;
		border-bottom: 4px solid #0052cc;
		padding-right: 0;
		padding-bottom: 0.5rem;
	}
	.about-container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.contact-info {
		grid-template-columns: 1fr;
	}

	/* ===== فوتر برای موبایل ===== */
	.footer-content {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap;
		justify-content: center; /* ستون‌ها در وسط قرار می‌گیرند */
		align-items: center; /* تغییر از flex-start به center برای وسط‌چین عمودی */
		gap: 0.8rem; /* کاهش بیشتر فاصله بین ستون‌ها */
		padding: 0.5rem 0.5rem; /* کاهش پدینگ عمودی (از 1rem به 0.5rem) */
		margin: 0 auto;
		max-width: 100%;
	}

	/* دو ستون اصلی */
	#footer-ston1,
	#footer-ston2 {
		width: auto !important; /* عرض اتوماتیک برای وسط‌چین بهتر */
		max-width: 220px; /* حداکثر عرض */
		min-width: 140px;
		text-align: center;
		padding: 0.3rem 0.5rem; /* کاهش پدینگ داخلی */
		margin: 0;
	}

	/* شبکه اجتماعی - فشرده‌تر با فاصله کم از بالا و پایین */
	.footer-social {
		width: 100%;
		display: flex;
		justify-content: center;
		gap: 0.8rem; /* کاهش فاصله بین آیکون‌ها */
		margin: 0.2rem 0 0.2rem 0; /* فاصله کم از بالا و پایین */
		padding: 0;
		order: 3;
	}

	/* کوچک‌تر کردن آیکون‌های شبکه اجتماعی */
	.footer-social a {
		width: 32px;
		height: 32px;
		font-size: 0.9rem;
	}

	/* کاهش فاصله متن‌های داخل ستون‌ها */
	.footer-section h4 {
		margin-bottom: 0.3rem;
		font-size: 0.9rem;
	}

	.footer-section ul li {
		margin-bottom: 0.2rem;
		font-size: 0.8rem;
	}

	.footer-section ul {
		margin: 0;
		padding: 0;
	}

	/* کاهش پدینگ کلی فوتر */
	footer {
		padding: 0.5rem 0 !important; /* پدینگ خیلی کم */
	}

	/* فوتر پایین (کپی‌رایت) - فشرده‌تر */
	.footer-bottom {
		padding: 0.2rem 0;
		margin-top: 0;
		font-size: 0.7rem;
	}
	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 0.8rem;
	}
	.tutorial-pro-container {
		padding: 1rem;
	}
	.tutorial-pro-two-columns {
		grid-template-columns: 1fr;
	}
	.tutorial-pro-sidebar {
		position: static;
		margin-top: 1.5rem;
	}
	.video-pro-meta {
		padding: 1rem;
	}
	.video-pro-title-box h2 {
		font-size: 1.3rem;
	}
	.video-pro-stats {
		flex-wrap: wrap;
		gap: 0.5rem;
	}
	.video-pro-stats span {
		font-size: 0.7rem;
		padding: 0.2rem 0.8rem;
	}
	.video-pro-desc-box {
		padding: 1rem;
	}
	.video-pro-desc-box p {
		font-size: 0.9rem;
		line-height: 1.7;
	}
	.tutorial-pro-features-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
	.chapter-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.3rem;
	}
	.chapter-title {
		font-size: 0.85rem;
	}
	.chapter-duration {
		font-size: 0.7rem;
	}
	.btn-view-all {
		padding: 0.8rem 1.5rem;
		font-size: 0.9rem;
		width: 100%;
	}
	.article-full {
		padding: 0 0.8rem;
	}
	.article-header-full h1 {
		font-size: 1.4rem;
	}
	.article-meta-full {
		gap: 0.5rem;
		justify-content: flex-start;
	}
	.article-meta-full span {
		font-size: 0.7rem;
		padding: 0.2rem 0.6rem;
	}
	.article-content-full h2 {
		font-size: 1.2rem;
	}
	.article-content-full p {
		font-size: 0.9rem;
		line-height: 1.7;
	}
}

/* موبایل */
@media (max-width: 576px) {
	.hero h1 {
		font-size: 1.5rem;
	}
	.hero-fixed-img {
		width: 150px;
	}
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.6rem;
	}
	.tutorial-pro-features-grid {
		grid-template-columns: 1fr;
	}
	.video-pro-stats {
		flex-direction: column;
		align-items: center;
	}
	.lightbox-prev,
	.lightbox-next {
		width: 35px;
		height: 35px;
		font-size: 1.2rem;
	}
	.lightbox-img {
		max-width: 95vw;
		max-height: 60vh;
	}
	.lightbox-tool {
		padding: 0.3rem 0.7rem;
		font-size: 0.8rem;
	}
}

/* موبایل کوچک */
@media (max-width: 480px) {
	.logo-text {
		font-size: 1.2rem;
	}
	.logo-img {
		width: 35px;
		height: 35px;
	}
	.hero h1 {
		font-size: 1.3rem;
	}
	.hero-fixed-img {
		width: 120px;
	}
	.section-title {
		font-size: 1.4rem;
	}
	.tutorial-card-image {
		height: 150px;
	}
	.tutorial-card h3 {
		font-size: 1rem;
	}
}

/* موبایل خیلی کوچک */
@media (max-width: 380px) {
	.hero-fixed-img {
		width: 100px;
	}
	.gallery-grid {
		gap: 0.5rem;
	}
	.article-header-full h1 {
		font-size: 1.2rem;
	}
	.article-content-full h2 {
		font-size: 1.1rem;
	}
}

/* دسکتاپ بزرگ (4K) */
@media (min-width: 1920px) {
	.tutorial-pro-container {
		max-width: 1600px;
	}
	.tutorial-pro-two-columns {
		grid-template-columns: 1fr 450px;
	}
	.article-full {
		max-width: 1000px;
	}
	.article-header-full h1 {
		font-size: 2.5rem;
	}
	.article-content-full p,
	.article-content-full li {
		font-size: 1.1rem;
		line-height: 1.9;
	}
	.article-content-full h2 {
		font-size: 1.8rem;
	}
}
/* ریسپانسیو کردن چت‌بات ThinkStack در موبایل */
@media (max-width: 768px) {
	/* پیدا کردن اگریم چت‌بات */
	iframe[src*='thinkstack'],
	iframe[src*='thinkstack.ai'],
	div[id*='thinkstack'],
	.thinkstack-chatbot,
	[class*='thinkstack'] {
		width: 100% !important;
		max-width: 100% !important;
		height: 70vh !important;
		bottom: 0 !important;
		right: 0 !important;
		left: 0 !important;
		top: auto !important;
		border-radius: 16px 16px 0 0 !important;
		z-index: 999999 !important;
		position: fixed !important;
	}
}

/* برای نمایش بهتر در موبایل کوچک */
@media (max-width: 576px) {
	iframe[src*='thinkstack'],
	[class*='thinkstack'] {
		height: 80vh !important;
		border-radius: 0 !important;
	}
}
/* حباب شناور چت */
.float-chat-btn {
	position: fixed;
	bottom: 25px;
	right: 25px;
	width: 65px;
	height: 65px;
	background: linear-gradient(135deg, #0052ff, #00c6ff);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 82, 255, 0.4);
	transition: all 0.3s ease;
	z-index: 10000;
	border: none;
}

.float-chat-btn:hover {
	transform: scale(1.08);
	box-shadow: 0 10px 25px rgba(0, 82, 255, 0.6);
}

.float-chat-btn svg {
	width: 32px;
	height: 32px;
	fill: white;
}

/* پنل چت */
.chat-panel-custom {
	position: fixed;
	bottom: 100px;
	right: 25px;
	width: 380px;
	height: 600px;
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 9999;
	border: 1px solid rgba(0, 82, 255, 0.2);
	font-family:
		system-ui,
		-apple-system,
		'Segoe UI',
		sans-serif;
	direction: ltr;
}

/* هدر پنل */
.chat-panel-header {
	background: linear-gradient(135deg, #0052ff, #00c6ff);
	padding: 14px 18px;
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	font-size: 1rem;
}

.chat-panel-header button {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	font-size: 18px;
	cursor: pointer;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	transition: 0.2s;
	margin-left: 6px;
}

.chat-panel-header button:hover {
	background: rgba(255, 255, 255, 0.4);
}

.chat-body-iframe {
	flex: 1;
	background: #f9f9ff;
}

.chat-body-iframe iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* حالت کوچک (minimize) در کنار صفحه - دقیقاً همان چیزی که می‌خوای */
.chat-panel-custom.minimized-mode {
	width: auto;
	height: auto;
	bottom: 25px;
	right: 105px;
	background: transparent;
	box-shadow: none;
	border: none;
	cursor: pointer;
}

.chat-panel-custom.minimized-mode .chat-panel-header,
.chat-panel-custom.minimized-mode .chat-body-iframe {
	display: none;
}

.chat-panel-custom.minimized-mode::after {
	content: '💬 چت';
	background: linear-gradient(135deg, #0052ff, #00c6ff);
	color: white;
	padding: 12px 20px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: bold;
	white-space: nowrap;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	display: inline-block;
	cursor: pointer;
}

/* موبایل */
@media (max-width: 600px) {
	.chat-panel-custom {
		width: calc(100% - 40px);
		height: calc(100% - 120px);
		right: 20px;
		bottom: 85px;
	}
	.chat-panel-custom.minimized-mode {
		right: 85px;
		bottom: 20px;
	}
}
