/* ===================================
   PART 1: ROOT VARIABLES, BASE, NAVBAR, HERO, BUTTONS
   MODERN LIGHT GLASS THEME
   =================================== */

:root {
    /* Light & Glass Colors */
    --bg-light: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.68);
    --border-glass: rgba(255, 255, 255, 0.6);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 8px 24px rgba(245, 176, 66, 0.25);
    
    /* Gradients */
    --grad-gold: linear-gradient(135deg, #f5b042, #ffd966);
    --grad-rose: linear-gradient(135deg, #ff6b9d, #ffb3c6);
    --grad-blue: linear-gradient(135deg, #3b82f6, #60a5fa);
    --grad-purple: linear-gradient(135deg, #a855f7, #c084fc);
    --grad-bg: linear-gradient(145deg, #fef9f0 0%, #eef2ff 100%);
    
    /* Solid Colors */
    --gold-dark: #e69a2e;
    --gold-light: #ffe6b3;
    --primary-dark: #1e293b;
    --text-muted: #475569;
    --text-light: #64748b;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 36px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.12);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;
}

/* ===================================
   DARK MODE - با استفاده از media query
   =================================== */
@media (prefers-color-scheme: dark) {
    :root {
        /* رنگ‌های پس‌زمینه تیره و شیشه‌ای */
        --bg-light: #0a0c15;
        --bg-glass: rgba(20, 25, 40, 0.7);
        --border-glass: rgba(255, 255, 255, 0.1);
        --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
        --shadow-glow: 0 8px 24px rgba(245, 176, 66, 0.2);
        
        /* گرادیانت پس‌زمینه اصلی */
        --grad-bg: linear-gradient(145deg, #0f1222 0%, #1a1f2e 100%);
        
        /* رنگ‌های متن */
        --primary-dark: #e2e8f0;
        --text-muted: #94a3b8;
        --text-light: #cbd5e1;
        --white: #f1f5f9;
        
        /* سایه‌ها برای تم تیره (کمتر شدت) */
        --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
        --shadow-lg: 0 12px 36px rgba(0,0,0,0.5);
        --shadow-xl: 0 20px 48px rgba(0,0,0,0.6);
        
        /* کارت‌ها در حالت دارک */
        --bg-glass-darker: rgba(10, 12, 25, 0.8);
    }
    
    /* اصلاح پس‌زمینه پویا برای دارک */
    .animated-bg .layer-1 {
        background: radial-gradient(circle at 20% 30%, rgba(245, 176, 66, 0.15) 0%, transparent 60%),
                    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
                    var(--grad-bg);
    }
    
    .layer-2 {
        background-image: radial-gradient(circle at 10% 20%, rgba(245, 176, 66, 0.1) 2px, transparent 2px);
    }
    
    /* کارت‌های شیشه‌ای در دارک */
    .option-card {
        background: var(--bg-glass-darker);
        backdrop-filter: blur(12px);
        border-color: rgba(255, 255, 255, 0.08);
    }
    
    .option-card:hover {
        border-color: rgba(245, 176, 66, 0.5);
        background: rgba(20, 25, 50, 0.85);
    }
    
    /* هدر کارت‌ها و متن‌ها */
    .option-title h3, 
    .section-title,
    .hero-title,
    .cta-title,
    .faq-question h3,
    .modal-header h3 {
        color: #f1f5f9;
    }
    
    .option-subtitle,
    .section-description,
    .hero-description,
    .feature span,
    .stat span,
    .comparison-item,
    .faq-answer p,
    .cta-description {
        color: var(--text-light);
    }
    
    /* پس‌زمینه بخش‌ها */
    .comparison-section,
    .cta-section {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .detail-section {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.05);
    }
    
    /* دکمه ثانویه */
    .btn-secondary {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #e2e8f0;
    }
    
    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* مودال */
    .modal-content {
        background: rgba(10, 12, 25, 0.95);
        border-color: rgba(245, 176, 66, 0.3);
    }
    
    .modal-header {
        background: linear-gradient(135deg, rgba(245, 176, 66, 0.15), transparent);
    }
    
    .modal-close {
        background: rgba(255, 255, 255, 0.1);
        color: #f1f5f9;
    }
    
    /* FAQ */
    .faq-item {
        background: var(--bg-glass-darker);
    }
    
    .faq-question {
        color: #f1f5f9;
    }
    
    /* دکمه بازگشت به بالا */
    .back-to-top {
        background: var(--grad-gold);
        color: #0a0c15;
    }
}


/* ===================================
   THEME TOGGLE BUTTON
   =================================== */
.btn-theme {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-dark);
}

.btn-theme i {
    transition: transform 0.3s ease;
}

.btn-theme:hover i {
    transform: rotate(15deg);
}

/* ===================================
   DARK MODE CLASS (دسترسی دستی)
   =================================== */
body.dark-mode {
    /* متغیرهای دارک - مشابه media query قبلی اما با اولویت بالاتر */
    --bg-light: #0a0c15;
    --bg-glass: rgba(20, 25, 40, 0.7);
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 8px 24px rgba(245, 176, 66, 0.2);
    --grad-bg: linear-gradient(145deg, #0f1222 0%, #1a1f2e 100%);
    --primary-dark: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --white: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 36px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 48px rgba(0,0,0,0.6);
    --bg-glass-darker: rgba(10, 12, 25, 0.8);
}

body.dark-mode .animated-bg .layer-1 {
    background: radial-gradient(circle at 20% 30%, rgba(245, 176, 66, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
                var(--grad-bg);
}

body.dark-mode .layer-2 {
    background-image: radial-gradient(circle at 10% 20%, rgba(245, 176, 66, 0.1) 2px, transparent 2px);
}

body.dark-mode .option-card {
    background: var(--bg-glass-darker);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .option-card:hover {
    border-color: rgba(245, 176, 66, 0.5);
    background: rgba(20, 25, 50, 0.85);
}

body.dark-mode .option-title h3,
body.dark-mode .section-title,
body.dark-mode .hero-title,
body.dark-mode .cta-title,
body.dark-mode .faq-question h3,
body.dark-mode .modal-header h3 {
    color: #f1f5f9;
}

body.dark-mode .option-subtitle,
body.dark-mode .section-description,
body.dark-mode .hero-description,
body.dark-mode .feature span,
body.dark-mode .stat span,
body.dark-mode .comparison-item,
body.dark-mode .faq-answer p,
body.dark-mode .cta-description {
    color: var(--text-light);
}

body.dark-mode .comparison-section,
body.dark-mode .cta-section {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .detail-section {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

body.dark-mode .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .modal-content {
    background: rgba(10, 12, 25, 0.95);
    border-color: rgba(245, 176, 66, 0.3);
}

body.dark-mode .modal-header {
    background: linear-gradient(135deg, rgba(245, 176, 66, 0.15), transparent);
}

body.dark-mode .modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

body.dark-mode .faq-item {
    background: var(--bg-glass-darker);
}

body.dark-mode .faq-question {
    color: #f1f5f9;
}

body.dark-mode .back-to-top {
    background: var(--grad-gold);
    color: #0a0c15;
}
/* ===================================
   DARK MODE - تکمیلی برای نوار و کارت‌ها
   =================================== */
body.dark-mode {
    /* نوار ناوبری در حالت تاریک */
    --navbar-bg: rgba(10, 12, 25, 0.85);
    --navbar-border: rgba(255, 255, 255, 0.08);
}

body.dark-mode .navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--navbar-border);
}

body.dark-mode .navbar.scrolled {
    background: rgba(8, 10, 20, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* لوگو و متن در دارک */
body.dark-mode .logo-title {
    background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.dark-mode .logo-subtitle {
    color: #94a3b8;
}

/* کارت‌ها - حفظ افکت ::before با گرادیانت طلایی در دارک */
body.dark-mode .option-card {
    background: var(--bg-glass-darker);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dark-mode .option-card::before {
    background: var(--grad-gold);
    opacity: 0.85; /* کمی ملایم‌تر از حالت روشن */
}

body.dark-mode .option-card:hover::before {
    height: 100%;
}

body.dark-mode .option-card:hover {
    border-color: rgba(245, 176, 66, 0.6);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* متن‌های داخل کارت در دارک */
body.dark-mode .option-title h3,
body.dark-mode .feature span,
body.dark-mode .stat strong,
body.dark-mode .stat span {
    color: #e2e8f0;
}

body.dark-mode .option-subtitle {
    color: #94a3b8;
}

body.dark-mode .feature {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .option-stats {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
}

/* دکمه ثانویه در کارت (اطلاعات بیشتر) */
body.dark-mode .option-details-btn {
    border-color: currentColor;
    opacity: 0.9;
}

body.dark-mode .option-details-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* هیرو سکشن در دارک */
body.dark-mode .hero-badge {
    background: rgba(20, 25, 40, 0.8);
    border-color: rgba(245, 176, 66, 0.3);
    color: var(--gold-dark);
}

body.dark-mode .hero-title {
    color: #f1f5f9;
}

body.dark-mode .hero-description {
    color: #cbd5e1;
}





* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Inter', system-ui, sans-serif;
    background: var(--grad-bg);
    color: var(--primary-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
.modal-open {
    overflow: hidden;
}

/* ===================================
   ANIMATED BACKGROUND (LIGHT & GLOWING)
   =================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.layer-1 {
    background: radial-gradient(circle at 20% 30%, rgba(245, 176, 66, 0.12) 0%, transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
                var(--grad-bg);
}

.layer-2 {
    background-image: radial-gradient(circle at 10% 20%, rgba(255,107,157,0.1) 2px, transparent 2px);
    background-size: 40px 40px;
    animation: floatParticles 20s linear infinite;
    opacity: 0.6;
}

.layer-3 {
    background: repeating-linear-gradient(45deg, rgba(255,255,240,0.03) 0px, rgba(255,255,240,0.03) 2px, transparent 2px, transparent 8px);
    animation: shiftGradient 15s ease infinite;
}

@keyframes floatParticles {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

@keyframes shiftGradient {
    0% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(1deg); opacity: 0.6; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
}

/* ===================================
   NAVBAR (GLASSMORPHIC LIGHT)
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.6rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-gold);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--primary-dark);
    box-shadow: var(--shadow-glow);
}

.logo-glow {
    position: absolute;
    inset: -2px;
    background: var(--grad-gold);
    border-radius: var(--radius-md);
    opacity: 0.5;
    filter: blur(8px);
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(0.98); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.logo-title {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2d3e50, #1e293b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* ===================================
   BUTTONS (MODERN GLASS)
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--grad-gold);
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(245, 176, 66, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(245, 176, 66, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--primary-dark);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ===================================
   HERO SECTION (FRESH & BRIGHT)
   =================================== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 8rem 5% 5rem;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    color: var(--gold-dark);
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,200,0.8);
    box-shadow: var(--shadow-sm);
}

.badge-icon {
    font-size: 1.2rem;
}

.hero-title {
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.title-line {
    display: block;
}

.title-highlight {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   RESPONSIVE (BASE)
   =================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero {
        padding-top: 10rem;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .nav-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
/* ===================================
   PART 2: RECRUITMENT OPTIONS CARDS
   =================================== */

.recruitment-options {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.options-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-icon {
    width: 70px;
    height: 70px;
    background: var(--grad-gold);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1e293b;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-normal);
}

.section-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

.section-info {
    max-width: 700px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Option Cards - Glass Morphism */
.option-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border-glass);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* حذف هر گونه transition روی transform pseudo-element */
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--grad-gold);
    transition: height 0.8s ease;
    z-index: 1;
}

.option-card:hover::before {
    height: 100%;
}

.option-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 176, 66, 0.4);
}

/* اطمینان از اینکه محتوای کارت بالای pseudo-element قرار گیرد */
.option-header,
.option-features,
.option-stats,
.option-footer {
    position: relative;
    z-index: 1;
}
.option-card {
    will-change: transform;
}


/* DOJ Card Specific */
.doj-card {
    --card-accent: var(--grad-blue);
}
.doj-card .option-icon {
    background: var(--grad-blue);
}
.doj-card .option-btn {
    background: var(--grad-blue);
}
.doj-card .feature i {
    color: #3b82f6;
}
.doj-card .stat i {
    color: #3b82f6;
}
.doj-card .option-details-btn {
    border-color: #3b82f6;
    color: #3b82f6;
}
.doj-card .option-details-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Lawyer Card Specific */
.lawyer-card {
    --card-accent: var(--grad-purple);
}
.lawyer-card .option-icon {
    background: var(--grad-purple);
}
.lawyer-card .option-btn {
    background: var(--grad-purple);
}
.lawyer-card .feature i {
    color: #a855f7;
}
.lawyer-card .stat i {
    color: #a855f7;
}
.lawyer-card .option-details-btn {
    border-color: #a855f7;
    color: #a855f7;
}
.lawyer-card .option-details-btn:hover {
    background: rgba(168, 85, 247, 0.1);
}

/* Option Header */
.option-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.option-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
    position: relative;
}

.icon-glow {
    position: absolute;
    inset: -2px;
    background: inherit;
    border-radius: var(--radius-md);
    filter: blur(6px);
    opacity: 0.5;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.option-icon:hover .icon-glow {
    opacity: 0.8;
}

.option-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.option-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Features List */
.option-features {
    margin: 1.5rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--primary-dark);
}

.feature i {
    font-size: 1.1rem;
    width: 24px;
}

.feature span {
    flex: 1;
}

/* Stats Box */
.option-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.02);
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat i {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    display: block;
}

.stat strong {
    color: var(--primary-dark);
    font-weight: 800;
}

/* Option Footer Buttons */
.option-footer {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: auto;
}

.option-btn, .option-details-btn {
    width: 100%;
    justify-content: center;
}

.option-btn {
    padding: 0.9rem;
    font-size: 1rem;
}

.option-details-btn {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    padding: 0.7rem;
}

.option-details-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

/* Responsive adjustments for cards */
@media (max-width: 1100px) {
    .options-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .recruitment-options {
        padding: 3rem 0;
    }
    
    .option-header {
        flex-direction: column;
        text-align: center;
    }
    
    .option-title h3 {
        font-size: 1.5rem;
    }
    
    .option-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: right;
        gap: 1rem;
    }
    
    .stat i {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .option-card {
        padding: 1.5rem;
    }
    
    .option-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .feature {
        font-size: 0.9rem;
    }
}
/* ===================================
   PART 3: COMPARISON, FAQ, CTA, BACK TO TOP
   =================================== */

/* ---------- Comparison Section ---------- */
.comparison-section {
    padding: 5rem 0;
    background: linear-gradient(120deg, rgba(245, 176, 66, 0.05), rgba(59, 130, 246, 0.05));
    border-radius: var(--radius-xl);
    margin: 2rem 0;
}

.comparison-header {
    text-align: center;
    margin-bottom: 3rem;
}

.comparison-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.comparison-header p {
    color: var(--text-muted);
}

.comparison-table {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-glass);
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.header {
    background: linear-gradient(135deg, rgba(245, 176, 66, 0.1), transparent);
    font-weight: 800;
    color: #0f172a;
}

.comparison-item {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    color: var(--primary-dark);
}

.comparison-row.header .comparison-item {
    justify-content: center;
    font-size: 1.1rem;
}

.comparison-item:not(:first-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.doj-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
    color: #3b82f6;
}

.lawyer-highlight {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), transparent);
    color: #a855f7;
}

.comparison-item i {
    font-size: 1.2rem;
    width: 28px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.badge-high {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-medium {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.salary {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold-dark);
    display: block;
}

/* ---------- FAQ Section ---------- */
.faq-section {
    padding: 5rem 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ff8f00;
    margin-bottom: 0.5rem;
}

.faq-header p {
    color: var(--text-muted);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(245, 176, 66, 0.4);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-question i:first-child {
    color: var(--gold-dark);
    font-size: 1.3rem;
}

.faq-question h3 {
    flex: 1;
    font-size: 1rem;
    margin: 0;
}

.faq-question i:last-child {
    transition: transform var(--transition-normal);
    color: var(--text-muted);
}

.faq-item.active .faq-question i:last-child {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
    color: var(--text-muted);
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
    border-top-color: rgba(0, 0, 0, 0.05);
}

.faq-answer p {
    margin: 0;
    line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(120deg, rgba(245, 176, 66, 0.08), rgba(59, 130, 246, 0.04));
    border-radius: var(--radius-xl);
    margin: 2rem 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: var(--grad-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-glow);
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.cta-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    min-width: 220px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.cta-btn:first-child {
    background: var(--grad-blue);
    color: white;
}

.cta-btn:last-child {
    background: var(--grad-purple);
    color: white;
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--grad-gold);
    border: none;
    border-radius: var(--radius-full);
    color: #1e293b;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    animation: bounceBtn 2s infinite;
}

@keyframes bounceBtn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.back-to-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ---------- Responsive for Part 3 ---------- */
@media (max-width: 768px) {
    .comparison-row {
        grid-template-columns: 1fr;
        border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    }
    
    .comparison-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .comparison-item:last-child {
        border-bottom: none;
    }
    
    .comparison-row.header .comparison-item {
        justify-content: flex-start;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .comparison-section, .faq-section, .cta-section {
        padding: 3rem 0;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
}
/* ===================================
   PART 4: MODALS, RESPONSIVE, PRINT, UTILITIES
   =================================== */

/* ---------- Details Modal - Fixed Scroll & Rounded Corners ---------- */
/* جلوگیری از اسکرول بدنه وقتی مودال باز است */
body:has(.details-modal:target) {
    overflow: hidden;
}

.details-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 1.5rem;
}

.details-modal:target {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform var(--transition-normal) cubic-bezier(0.34, 1.2, 0.64, 1);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* مهم: خود مودال اسکرول ندارد */
}

.details-modal:target .modal-content {
    transform: scale(1);
    animation: modalPop 0.4s ease;
}

@keyframes modalPop {
    0% { transform: scale(0.9); opacity: 0; }
    80% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 20;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    padding: 1.8rem;
    background: linear-gradient(135deg, rgba(245, 176, 66, 0.1), transparent);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

.modal-icon {
    width: 55px;
    height: 55px;
    background: var(--grad-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #1e293b;
    box-shadow: var(--shadow-sm);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

/* ---------- اسکرول فقط داخل این بخش ---------- */
.modal-scroll {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) rgba(0, 0, 0, 0.1);
}

/* استایل اسکرول بار برای کروم، سافاری، اج */
.modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 8px 0;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: var(--grad-gold);
    border-radius: 10px;
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

.modal-body {
    padding: 1.8rem;
}

/* بقیه استایل‌های detail-section و لیست‌ها مانند قبل */
.detail-section {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(245, 176, 66, 0.3);
}

.detail-section ul, 
.detail-section ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section li {
    padding: 0.6rem 0;
    padding-right: 1.8rem;
    position: relative;
    color: var(--primary-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.detail-section li:last-child {
    border-bottom: none;
}

.detail-section ul li::before {
    content: "•";
    position: absolute;
    right: 0.5rem;
    color: var(--gold-dark);
    font-size: 1.2rem;
}

.detail-section ol {
    counter-reset: item;
}

.detail-section ol li {
    counter-increment: item;
}

.detail-section ol li::before {
    content: counter(item) ".";
    position: absolute;
    right: 0;
    font-weight: 700;
    color: var(--gold-dark);
}

/* کلاس کمکی برای جاوااسکریپت (در صورت نیاز) */
body.modal-open {
    overflow: hidden;
}


/* ---------- Print Styles ---------- */
@media print {
    .animated-bg,
    .navbar,
    .back-to-top,
    .details-modal,
    .cta-section,
    .option-footer .btn,
    .option-details-btn,
    .nav-actions {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .option-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        background: white;
        box-shadow: none;
        margin-bottom: 20px;
    }
    
    .option-stats {
        border: 1px solid #ddd;
    }
    
    .comparison-table {
        border: 1px solid #000;
    }
    
    .faq-item {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
    
    .hero {
        padding: 1rem;
        text-align: center;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}

/* ---------- Error Toast ---------- */
.error-toast {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(239, 68, 68, 0.95);
    backdrop-filter: blur(12px);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
    z-index: 10001;
    max-width: 400px;
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border-right: 4px solid #ffcc00;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ---------- Additional Helper Classes ---------- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

.loaded .grain-overlay {
    opacity: 0.2;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--grad-gold);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Selection color */
::selection {
    background: rgba(245, 176, 66, 0.3);
    color: #0f172a;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--gold-dark);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ---------- Full Responsive Enhancements ---------- */
@media (max-width: 768px) {
    .details-modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1.2rem;
    }
    
    .detail-section {
        padding: 1rem;
    }
    
    .detail-section h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modal-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .detail-section li {
        font-size: 0.9rem;
        padding-right: 1.5rem;
    }
    
    .error-toast {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
}

/* High contrast / reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}