:root {
	--primary: #026608;
	--success: #199b21;
	--warning: #f39c12;
	--danger: #e74c3c;
	--dark: #2c3e50;
	--light: #f8f9fa;
	--info: #39b5bd;
}

@font-face {
	font-family: irans;
	src: url("../files/fonts/Samim-FD.ttf");
}

* {
	font-family: irans, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html[lang="ar"] *:not(i) , button.lang-btn[value="ar"], button.lang-btn[data-lang="ar"]{
	font-family: 'Tajawal', sans-serif;
}
html[lang="fa"] *:not(i) , button.lang-btn[value="fa"] , button.lang-btn[data-lang="fa"]{
	font-family: irans, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html[lang="en"] *:not(i) , button.lang-btn[value="en"] , button.lang-btn[data-lang="en"]{

}

body {
	background: #f8f9fa;
	color: #333;
	min-height: 100vh;
/*	display: flex;	*/
	flex-direction: column;
	transition: all 0.3s ease;
}

/* استایل هدر */
header {
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	padding: 15px 5%;
/*	position: sticky;	*/
	top: 0;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.hero {
    min-height: calc(100vh - 74px);
	display: flex;
    align-items: center;
    justify-content: center;
}
section.hero.first-page{
	display: flex;
}

a {
    color: var(--primary);
}

.logo {
	display: flex;
	align-items: center;
}

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

.logo i {
	font-size: 32px;
	color: #dbae0f;
	margin-left: 10px;
}

.logo h1 {
	font-size: 24px;
	font-weight: 700;
	color: var(--primary);
	margin: 0;
}

.logo img {
    max-width: 50px;
    margin: 0 10px;
}

.language-switcher {
	display: flex;
	gap: 10px;
}

.lang-btn {
	background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    padding: 3px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    min-height: 38px;
}

.lang-btn:hover {
	background: var(--success);
	color: white;
	border-color: var(--success);
}

.lang-btn.active {
	background: var(--primary);
	color: white;
	border-color: var(--primary);
}

/* استایل محتوا */
.hero {
	text-align: center;
	padding: 80px 5% 50px;
	flex: 1;
	color: white;
	background: url('../files/images/slide1.jpg') no-repeat center center;
	background-size: cover;
	position: relative;
	display: block;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgb(26 108 34 / 70%);
}

.hero-content {
	position: relative;
	z-index: 2;
}

.hero-content h2 {
	font-size: 42px;
	margin-bottom: 20px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
	font-size: 20px;
	max-width: 700px;
	margin: 0 auto 40px;
	line-height: 1.6;
	min-height: 20px;
}

.form-container.fade-in {
    color: #373737;
}

.services {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 30px;
	margin: 50px auto;
	max-width: 1200px;
}

.service-card {
	background: rgba(255, 255, 255, 0.75); /* شفافیت بیشتر */
	border-radius: 15px;
	padding: 30px;
	width: 320px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	cursor: pointer;
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
	background: rgba(255, 255, 255, 0.95);
}

.service-card i {
	font-size: 48px;
	margin-bottom: 20px;
	color: var(--primary);
}

.service-card h3 {
	font-size: 24px;
	margin-bottom: 15px;
	color: var(--primary);
}

.service-card p {
	font-size: 16px;
	color: #161616;
	margin-bottom: 20px;
	line-height: 1.5;
}

.btn {
	display: inline-block;
	background: linear-gradient(to right, var(--primary), var(--success));
	color: white;
	padding: 12px 30px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.btn:hover {
	transform: scale(1.05);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* استایل فوتر */
footer {
	background: rgb(5 27 2 / 90%);
	color: white;
	padding: 40px 5% 20px;
	margin-top: auto;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
}

.footer-section {
	flex: 1;
	min-width: 250px;
	margin-bottom: 30px;
	padding: 0 15px;
}

.footer-section h3 {
	font-size: 20px;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
}

.footer-section h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 50px;
	height: 2px;
	background: #fdbb2d;
}

.footer-section p {
	line-height: 1.8;
	margin-bottom: 15px;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.contact-info span {
	display: flex;
	align-items: center;
	gap: 10px;
}

.social-links {
	display: flex;
	gap: 15px;
	margin-top: 20px;
}

.social-links a {
	display: inline-block;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	text-align: center;
	line-height: 40px;
	color: white;
	transition: all 0.3s ease;
}

.social-links a:hover {
	background: var(--success);
	transform: translateY(-3px);
}

.footer-bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 20px;
	font-size: 14px;
}

/* استایل برای زبان عربی */
html[dir="rtl"] {
	text-align: right;
}

html[dir="rtl"] .footer-section h3::after {
	right: 0;
	left: auto;
}

/* استایل برای زبان انگلیسی */
html[lang="en"] {
	direction: ltr;
	text-align: left;
}

html[lang="en"] .footer-section h3::after {
	right: auto;
	left: 0;
}

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

.fade-in {
	animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ریسپانسیو */
@media (max-width: 768px) {
	header {
		flex-direction: column;
		gap: 15px;
	}
	
	.hero-content h2 {
		font-size: 32px;
	}
	
	.hero-content p {
		font-size: 18px;
	}
	
	.services {
		flex-direction: column;
		align-items: center;
	}
	
	.service-card {
		width: 100%;
		max-width: 400px;
	}
	
	.footer-content {
		flex-direction: column;
	}
}

#refreshCaptcha {
    color: var(--info);
}


span#refreshCaptcha {
	color: #000;
	cursor: pointer;
}

i.fas.fa-language {
    margin-left: 5px;
}
html[lang="en"] i.fas.fa-language {
	margin-left: unset;
    margin-right: 5px;
}


html[data-theme="sad"]:root {
    --primary: #660202;
    --success: #9b1a19;
}
html[data-theme="sad"] .hero::before {
    background: rgb(108 26 26 / 70%);
}
html[data-theme="sad"] footer {
    background: rgb(42 0 0 / 90%);
}
html[data-theme="sad"] img#captchaImage , html[data-theme="sad"] img#captcha-image , html[data-theme="sad"] .captcha-img {
    filter: hue-rotate(247deg);
}


/* استایل منوی اصلی */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 8px 15px;
/*    border-radius: 30px;*/
    transition: all 0.3s ease;
    display: block;
	border-bottom: 1px solid white;
}

.main-nav a:hover {
    /* background: var(--primary); */
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
}

.main-nav a.active {
    background: var(--primary);
    color: white;
}

/* تنظیمات ریسپانسیو */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
        padding: 5px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .language-switcher {
        order: -1;
    }
	.logo{
        order: -2;
    }
}

/* منوی همبرگری */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        max-height: 32px;
    }
    
    .main-nav {
        display: none;
        width: 100%;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
	
	.hero {
		min-height: calc(100vh - 186px);
	}
}