@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: bold; font-style: normal; font-display: swap;
}

:root {
    --color-green-dark: #0a3d2e;
    --color-green-primary: #0f4c3a;
    --color-green-light: #f4f8f6;
    --color-gold: #c59b27;
    --color-gold-hover: #b0891e;
    --color-text-main: #1f2937;
    --color-text-muted: #4b5563;
    --color-border: #e5e7eb;
    --color-white: #ffffff;
    --radius-md: 14px;
    --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Vazirmatn', sans-serif; color: var(--color-text-main); background-color: var(--color-white); line-height: 1.7; overflow-x: clip; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 90%; max-width: 1180px; margin: 0 auto; }

/* هدر */
.header { background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo-link { display: flex; align-items: center; }
.site-logo { max-height: 45px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--color-text-muted); transition: color 0.3s ease; }
.nav-links a:hover { color: var(--color-green-primary); }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1002; }
.hamburger span { width: 28px; height: 3px; background-color: var(--color-green-dark); border-radius: 3px; transition: all 0.3s; }

/* دکمه‌ها */
button, .btn-primary, .btn-secondary, .btn-secondary-light { font-family: inherit; cursor: pointer; border: none; text-align: center; border-radius: var(--radius-md); padding: 12px 24px; font-size: 15px; font-weight: bold; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; }
.hero-btn { border-radius: 50px !important; padding: 14px 30px; }
.btn-primary { background: linear-gradient(135deg, var(--color-green-primary), var(--color-green-dark)); color: var(--color-white); box-shadow: 0 4px 14px rgba(15, 76, 58, 0.25); }
.btn-primary:hover { background: linear-gradient(135deg, var(--color-gold), var(--color-gold-hover)); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(197, 155, 39, 0.35); }
.btn-secondary { background-color: transparent; border: 1.5px solid var(--color-green-primary); color: var(--color-green-primary); }
.btn-secondary:hover { background-color: var(--color-green-primary); color: var(--color-white); transform: translateY(-2px); }
.btn-secondary-light { background-color: rgba(255, 255, 255, 0.12); border: 1.5px solid rgba(255, 255, 255, 0.4); color: var(--color-white); backdrop-filter: blur(5px); }
.btn-secondary-light:hover { background-color: var(--color-white); color: var(--color-green-dark); transform: translateY(-2px); }

/* هیرو */
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.animated-bg { background: linear-gradient(270deg, #052b20, #0f4c3a, #1a7a5c, #0a3d2e); background-size: 300% 300%; animation: gradientBG 8s ease infinite; }
.hero { color: var(--color-white); padding: 140px 0 120px; text-align: center; position: relative; }
.badge { display: inline-block; background: rgba(197, 155, 39, 0.18); border: 1px solid var(--color-gold); color: #f7e7be; font-size: 13px; padding: 6px 16px; border-radius: 50px; margin-bottom: 24px; font-weight: 500; }
.hero h1 { font-size: 46px; font-weight: 800; line-height: 1.35; margin-bottom: 20px; }
.hero h1 span { color: #f0cb69; }
.hero p { font-size: 18px; max-width: 720px; margin: 0 auto 36px; color: rgba(255, 255, 255, 0.88); font-weight: 300; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* آمار سایت */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat-box { text-align: center; padding: 20px; border-right: 1px solid var(--color-border); }
.stat-box:last-child { border-right: none; }
.stat-number { font-size: 38px; font-weight: 900; color: var(--color-green-dark); margin-bottom: 5px; direction: ltr; }
.stat-text { font-size: 14px; color: var(--color-text-muted); font-weight: bold; }

/* مسیر خودشناسی */
.step-card { background: var(--color-white); padding: 40px 30px; border-radius: var(--radius-lg); text-align: center; position: relative; border: 1px solid var(--color-border); transition: 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.step-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); border-color: var(--color-gold); }
.step-number { width: 50px; height: 50px; background: var(--color-green-light); color: var(--color-gold); font-size: 24px; font-weight: bold; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 20px; border: 2px solid var(--color-gold); }
.step-card h3 { color: var(--color-green-dark); margin-bottom: 15px; font-size: 20px; }
.step-card p { color: var(--color-text-muted); font-size: 14.5px; }

/* بخش‌ها عمومی */
.section { padding: 90px 0; }
.bg-light { background-color: var(--color-green-light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag { font-size: 13px; font-weight: bold; color: var(--color-gold); text-transform: uppercase; margin-bottom: 8px; display: block; }
.section-title { font-size: 32px; color: var(--color-green-dark); font-weight: 800; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.card { background: var(--color-white); padding: 36px 30px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); transition: all 0.4s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-8px); border-color: rgba(197, 155, 39, 0.4); box-shadow: 0 12px 30px rgba(10, 61, 46, 0.08); }
.card-icon { margin-bottom: 20px; }
.card h3 { color: var(--color-green-dark); font-size: 20px; margin-bottom: 14px; font-weight: 700; }
.card p { color: var(--color-text-muted); font-size: 14.5px; text-align: justify; flex-grow: 1; margin-bottom: 24px; }

/* سوالات متداول (FAQ) */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 15px; overflow: hidden; transition: 0.3s; }
.faq-item.active { border-color: var(--color-green-primary); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.faq-question { padding: 20px; font-weight: bold; color: var(--color-green-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 16px; user-select: none; }
.faq-icon { font-size: 24px; font-weight: 300; transition: transform 0.3s; color: var(--color-gold); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #fafbfc; }
.faq-answer p { padding: 0 20px 20px; color: var(--color-text-muted); font-size: 14.5px; line-height: 1.8; text-align: justify; }

/* جداکننده کارت تست */
.test-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--color-gold-hover); font-weight: bold; margin-bottom: 15px; background: #fdfaf2; padding: 8px 15px; border-radius: 8px; }
.meta-divider { color: #ccc; font-weight: normal; }

/* تماس با ما */
.contact-box { background: var(--color-white); max-width: 840px; margin: 0 auto; border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--color-border); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; text-align: right; }
.contact-item { display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 15px; }
.contact-icon-wrapper { flex-shrink: 0; margin-top: 2px; }
.contact-info-wrapper { display: flex; flex-direction: column; }
.contact-label { font-size: 13px; font-weight: bold; color: var(--color-text-muted); margin-bottom: 4px; }
.contact-value { color: var(--color-green-dark); font-weight: 700; font-size: 15px; transition: color 0.2s; direction: ltr; display: inline-block; }
.contact-value:hover { color: var(--color-gold); }

/* گواهینامه‌ها */
.cert-card { background: var(--color-white); padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); text-align: center; transition: all 0.3s ease; }
.cert-card:hover { border-color: var(--color-green-primary); }
.cert-img { width: 100px; height: 100px; object-fit: contain; margin-bottom: 15px; }
.cert-card h4 { color: var(--color-green-dark); margin-bottom: 10px; font-size: 17px; }
.cert-card p { font-size: 13.5px; color: var(--color-text-muted); }

/* فوتر و شبکه‌های اجتماعی */
.footer { background-color: var(--color-green-dark); color: rgba(255, 255, 255, 0.75); padding: 30px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-info p { font-size: 14px; }
.social-links { display: flex; gap: 15px; }
.social-links a { display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; color: var(--color-white); transition: 0.3s; }
.social-links a svg { width: 20px; height: 20px; }
.social-links a:hover { background: var(--color-gold); transform: translateY(-3px); color: var(--color-green-dark); }

/* انیمیشن‌های Reveal در هنگام اسکرول */
.reveal { opacity: 0; transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; }
.fade-up { transform: translateY(50px); }
.fade-up.active { transform: translateY(0); }
.zoom { transform: scale(0.95); }
.zoom.active { transform: scale(1); }

/* مدال‌ها و ورودی‌ها */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 61, 46, 0.85); display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.35s; z-index: 2000; backdrop-filter: blur(8px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box { background: var(--color-white); width: 92%; max-width: 480px; padding: 40px; border-radius: var(--radius-lg); position: relative; text-align: right; transform: translateY(25px) scale(0.97); transition: all 0.35s; box-shadow: 0 20px 40px rgba(10, 61, 46, 0.14); }
.modal-large { max-width: 650px; }
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.close-btn { position: absolute; top: 15px; left: 20px; background: transparent; border: none; font-size: 28px; color: #9ca3af; cursor: pointer; padding: 0; line-height: 1; }
.close-btn:hover { color: #dc2626; }
.modal-box h3 { font-size: 22px; color: var(--color-green-dark); margin-bottom: 15px; font-weight: 800; }
.modal-subtitle { font-size: 14px; color: var(--color-text-muted); margin-bottom: 20px; }

.mock-input { width: 100%; padding: 14px 16px; margin-top: 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); font-family: inherit; font-size: 15px; background-color: #fafbfc; transition: all 0.25s; }
.mock-input:focus { border-color: var(--color-green-primary); background-color: var(--color-white); outline: none; box-shadow: 0 0 0 4px rgba(15, 76, 58, 0.08); }
.mock-input.error { border-color: #ef4444; background-color: #fef2f2; }
.ltr-input { direction: ltr; text-align: left; }

/* سوئیچر تب‌ها (ورود/ثبت‌نام) */
.auth-toggle { display: flex; background: #f3f4f6; border-radius: 12px; padding: 5px; margin-bottom: 25px; }
.toggle-btn { flex: 1; padding: 10px; border-radius: 8px; font-size: 14px; font-weight: bold; color: var(--color-text-muted); background: transparent; border: none; transition: 0.3s; }
.toggle-btn.active { background: var(--color-white); color: var(--color-green-dark); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); }

.auth-view { display: none; }
.auth-view.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.auth-action-btn { width: 100%; margin-top: 15px; padding: 14px; font-size: 16px; }
.msg-box { min-height: 22px; margin-top: 8px; font-size: 13px; font-weight: bold; text-align: right; display: block; }
.modal-actions { margin-top: 25px; display: flex; gap: 12px; flex-wrap: wrap; }
#modal-test-desc { font-size: 15px; line-height: 1.9; color: var(--color-text-muted); text-align: justify; padding: 15px; background: #f9fbfb; border-radius: 10px; border: 1px solid #eef2f2; }

/* موبایل */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .desktop-btn { display: none; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 100vw; height: 100vh; background-color: var(--color-green-dark); flex-direction: column; justify-content: center; align-items: center; transition: right 0.4s; z-index: 1001; gap: 32px; }
    .nav-links.active { right: 0; }
    .nav-links a { color: var(--color-white); font-size: 20px; font-weight: bold; }
    .hamburger.active span { background-color: var(--color-white); }
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .hero { padding: 100px 0 80px; }
    .hero h1 { font-size: 32px; }
    .modal-box { padding: 30px 20px; width: 95%; }
    .stat-box { border-right: none; border-bottom: 1px solid var(--color-border); }
    .stat-box:last-child { border-bottom: none; }
    .footer-content { flex-direction: column; text-align: center; }
}

/* استایل دکمه برجسته در منوی هدر */
.nav-highlight {
    color: var(--color-gold) !important;
    border: 1px solid var(--color-gold);
    padding: 6px 14px !important;
    border-radius: 20px;
    font-weight: bold !important;
}

.nav-highlight:hover {
    background-color: var(--color-gold);
    color: var(--color-green-dark) !important;
}