/* --- تنظیمات کلی و فونت --- */
*, *::before, *::after { box-sizing: border-box; }
:root { --accent-color: #00D1FF; --neon-glow-color: rgba(0, 209, 255, 0.5); }
html { scroll-behavior: smooth; }
body {
    margin: 0; padding: 0;
    font-family: 'Vazirmatn', sans-serif;
    color: #ffffff;
    background-color: #0B0E1B;
    background-image: linear-gradient(180deg, #0a041a 0%, #1c0b2b 100%);
    overflow-x: hidden;
}

/* --- ستاره‌ها --- */
@keyframes animStar { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(50px, -500px); opacity: 0; } }
#stars1, #stars2, #stars3 { position: fixed; top: 0; left: 0; background: #FFF; z-index: -1; border-radius: 50%; }
#stars1 { width: 1px; height: 1px; animation: animStar 50s linear infinite; box-shadow: 576px 1665px #FFF, 1221px 1860px #FFF, 1488px 101px #FFF; animation-delay: -5s; }
#stars2 { width: 2px; height: 2px; animation: animStar 100s linear infinite; box-shadow: 1774px 1814px #FFF, 1378px 182px #FFF, 114px 1279px #FFF; animation-delay: -10s; }
#stars3 { width: 3px; height: 3px; animation: animStar 150s linear infinite; box-shadow: 173px 1583px #FFF, 1691px 1971px #FFF, 1813px 104px #FFF; animation-delay: -15s; }

/* --- ساختار کلی صفحه کارگاه --- */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.workshop-header { padding: 40px 0 20px 0; text-align: center; margin-bottom: 20px; }
.workshop-header h1 { margin: 0; font-size: 28px; text-shadow: 0 0 10px var(--neon-glow-color); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: #aaa; border: 1px solid #555; padding: 8px 18px; border-radius: 50px; text-decoration: none; margin-bottom: 20px; font-size: 14px; transition: all 0.3s; }
.back-link:hover { color: #fff; border-color: var(--accent-color); background-color: rgba(0, 209, 255, 0.1); box-shadow: 0 0 15px var(--neon-glow-color); }
.workshop-main { padding: 20px 0 50px 0; }
.content-box { background: rgba(10, 20, 40, 0.7); border: 1px solid rgba(0, 209, 255, 0.3); border-radius: 15px; padding: 30px 40px; backdrop-filter: blur(10px); box-shadow: 0 0 25px rgba(0, 209, 255, 0.15); }

/* --- بخش پادکست و دانلود --- */
.podcast-section { margin-bottom: 40px; text-align: center; }
.podcast-section h3 { margin-top: 0; }
.media-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.podcast-section audio { max-width: 400px; flex-grow: 1; filter: invert(1) sepia(1) saturate(5) hue-rotate(170deg); }
.worksheet-hint { margin-top: 30px; padding-top: 20px; border-top: 1px dashed rgba(255, 255, 255, 0.2); }
.worksheet-hint p { font-size: 16px; color: #ccc; line-height: 1.8; }
.download-button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 25px; border: 1px solid var(--accent-color); color: var(--accent-color); background-color: transparent; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 16px; transition: all 0.3s ease; margin-top: 15px; }
.download-button:hover { background-color: var(--accent-color); color: #0B0E1B; box-shadow: 0 0 20px var(--neon-glow-color); }

/* --- ساختار تب‌بندی --- */
.tabs-container { margin-bottom: 60px; }
.tab-nav { display: flex; background-color: rgba(0, 0, 0, 0.2); border-radius: 15px 15px 0 0; }
.tab-button {
    flex-grow: 1; padding: 15px 10px; cursor: pointer; background: transparent;
    border: none; border-bottom: 3px solid transparent; color: #aaa;
    font-family: 'Vazirmatn', sans-serif; font-size: 16px; font-weight: 600;
    transition: all 0.3s;
}
.tab-button:hover { color: #fff; background-color: rgba(0, 209, 255, 0.1); }
.tab-button.active { color: var(--accent-color); border-bottom-color: var(--accent-color); }
.tab-content-wrapper { padding: 30px; background: rgba(10, 20, 40, 0.7); border: 1px solid rgba(0, 209, 255, 0.3); border-top: none; border-radius: 0 0 15px 15px; backdrop-filter: blur(10px); box-shadow: 0 10px 25px rgba(0, 209, 255, 0.1); }
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- استایل‌های محتوای داخلی تب‌ها --- */
h3 { font-size: 22px; color: var(--accent-color); }
h4 { font-size: 18px; }
p { font-size: 17px; line-height: 2; color: #ccc; }
ul { padding-right: 20px; list-style: square; }
ul li { margin-bottom: 10px; }
.testimonial-box { border: 1px dashed rgba(255,255,255,0.3); border-radius: 10px; padding: 20px; text-align: center; margin-top: 30px; }
.testimonial-box h4 { display: inline-flex; align-items: center; gap: 10px; }
.hint-icon { fill: #ffc107; width: 24px; height: 24px; vertical-align: middle; margin-left: 8px; }
.testimonial-box blockquote { margin: 0 0 15px 0; font-style: italic; }
.testimonial-box cite { font-weight: 700; color: var(--accent-color); }
.tip-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.tip-item:last-child { border-bottom: none; }

/* --- کوییز تستی مرحله‌ای --- */
#sequential-quiz { padding-top: 20px; }
.quiz-step { display: none; animation: fadeIn 0.5s ease; }
.quiz-step.active { display: block; }
.quiz-question-text { font-weight: 700; font-size: 18px; margin-bottom: 20px; min-height: 50px; }
.quiz-options { display: grid; grid-template-columns: 1fr; gap: 15px; }
.quiz-option { width: 100%; padding: 15px; font-family: 'Vazirmatn', sans-serif; font-size: 16px; background: transparent; border: 2px solid #555; color: #ccc; border-radius: 10px; cursor: pointer; transition: all 0.3s; }
.quiz-option:hover:not(:disabled) { background: rgba(0, 209, 255, 0.1); border-color: var(--accent-color); color: #fff; }
.quiz-option:disabled { cursor: not-allowed; opacity: 0.7; }
.quiz-option.correct { background: #27ae60; border-color: #2ecc71; color: #fff; box-shadow: 0 0 15px #2ecc71; }
.quiz-option.incorrect { background: #c0392b; border-color: #e74c3c; color: #fff; box-shadow: 0 0 15px #e74c3c; }
.quiz-explanation { margin-top: 20px; padding: 20px; border-radius: 10px; background: rgba(0,0,0,0.2); display: none; }
.quiz-explanation p { margin: 0 0 15px 0; }
.next-question-btn, .finish-quiz-btn { display: block; width: 100%; padding: 12px; background: var(--accent-color); color: #0B0E1B; border: none; border-radius: 8px; font-family: 'Vazirmatn', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; }
.next-question-btn:hover, .finish-quiz-btn:hover { box-shadow: 0 0 15px var(--neon-glow-color); }
.quiz-results { text-align: center; }
.quiz-results h3 { font-size: 24px; color: var(--accent-color); }

/* --- بخش جداول و رشته‌ها --- */
.table-wrapper {
    margin-bottom: 40px;
    overflow-x: auto; /* برای ریسپانسیو بودن جداول */
}
.table-wrapper h4 {
    font-size: 20px;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.analysis-box table, .table-wrapper table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.analysis-box th, .analysis-box td, .table-wrapper th, .table-wrapper td { padding: 12px 15px; border: 1px solid rgba(0, 209, 255, 0.2); text-align: right; }
.analysis-box th, .table-wrapper th { background-color: rgba(0, 209, 255, 0.1); font-weight: 700; }
.analysis-box { margin-top: 30px; padding-top: 20px; border-top: 1px dashed rgba(255,255,255,0.2); }

.telegram-box { text-align: center; margin-top: 40px; padding: 20px; border: 1px dashed var(--accent-color); border-radius: 10px; }
.telegram-button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 25px; background: #2AABEE; color: #fff; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 16px; transition: all 0.3s ease; margin-top: 15px; box-shadow: 0 0 15px #2AABEE; }
.telegram-button:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 0 25px #2AABEE; }

/* --- تب سربازی --- */
.warning-box {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.warning-box svg {
    width: 32px;
    height: 32px;
    stroke: #ffc107;
    flex-shrink: 0;
}
.warning-box h4 { margin: 0 0 5px 0; color: #ffc107; }
.warning-box p { margin: 0; color: #eee; }

/* --- دکمه تست‌ها --- */
.test-button-ws { display: inline-block; background: var(--accent-color); color: #0B0E1B; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-size: 16px; font-weight: 800; transition: all 0.3s ease; border: none; margin-top: 20px; box-shadow: 0 0 15px var(--neon-glow-color); }
.test-button-ws:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 0 25px var(--neon-glow-color); }

/* --- دکمه نهایی --- */
.cta-final-section { text-align: center; margin-top: 60px; }
.cta-final-button { display: inline-block; background: linear-gradient(90deg, #4e54c8, #8f94fb); color: #ffffff; padding: 16px 40px; border-radius: 50px; text-decoration: none; font-size: 18px; font-weight: 700; transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(143, 148, 251, 0.4); }
.cta-final-button:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 25px rgba(143, 148, 251, 0.6); }
.urgency-note { font-size: 14px; color: #ffc107; margin-top: 15px; font-weight: 600; text-shadow: 0 0 5px #ffc107; }

/* --- استایل فوتر --- */
.site-footer { border-top: 1px solid rgba(0, 209, 255, 0.2); box-shadow: 0 -5px 15px rgba(0, 209, 255, 0.1); }
/* --- استایل دکمه بازگشت به سایت اصلی --- */
.footer-main-site {
    text-align: center;
}

.main-site-button {
    color: #aaa;
    border: 1px solid #555;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.main-site-button:hover {
    color: #fff;
    border-color: var(--accent-color);
    background-color: rgba(0, 209, 255, 0.1);
    box-shadow: 0 0 15px var(--neon-glow-color);
}

/* برای چیدمان بهتر فوتر در دسکتاپ */
@media (min-width: 768px) {
    .footer-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    .footer-left { justify-self: start; }
    .footer-main-site { justify-self: center; }
    .footer-right { justify-self: end; }
}

/* اصلاح چیدمان فوتر در موبایل */
@media (max-width: 767px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
        height: auto;
        padding: 20px;
    }
    .footer-main-site {
        order: -1; /* دکمه سایت اصلی در موبایل بالا قرار می‌گیرد */
    }
}
/* --- کدهای واکنش‌گرایی برای موبایل --- */
@media (max-width: 767px) {
    .container {
        padding: 0 15px; /* کاهش فاصله از کناره‌های صفحه */
    }

    .workshop-header h1 {
        font-size: 22px; /* کوچک‌تر کردن عنوان اصلی صفحه */
    }

    .back-link {
        padding: 6px 14px;
        font-size: 13px;
    }

    .content-box,
    .tab-content-wrapper {
        padding: 20px 15px; /* کاهش پدینگ داخلی کادرها */
    }

    /* --- بهینه‌سازی تب‌ها --- */
    .tab-nav {
        flex-wrap: wrap; /* اجازه می‌دهد دکمه‌ها در چند خط نمایش داده شوند */
        justify-content: center;
    }

    .tab-button {
        flex-basis: calc(50% - 10px); /* هر دکمه نصف عرض را بگیرد */
        font-size: 14px;
        text-align: center;
        margin: 5px;
        border-radius: 8px; /* گرد کردن گوشه برای ظاهر بهتر */
        border-bottom-width: 2px;
    }
    
    .tab-button.active {
        border-radius: 8px 8px 0 0;
    }

    /* --- بهینه‌سازی سایر بخش‌ها --- */
    .media-controls audio {
        width: 100%; /* جلوگیری از بیرون زدن پلیر صوتی */
    }

    h3 {
        font-size: 20px;
    }

    p, .worksheet-hint p {
        font-size: 15px;
        line-height: 1.9;
    }
    
    .download-button {
        padding: 10px 20px;
        font-size: 15px;
    }

    /* --- بهینه‌سازی جداول --- */
    .table-wrapper th, .table-wrapper td {
        padding: 10px 8px;
        font-size: 13px; /* کوچک کردن فونت جدول برای جا شدن بهتر */
    }
    
    .quiz-question-text {
        font-size: 17px;
        min-height: auto;
    }

    /* --- بهینه‌سازی دکمه نهایی --- */
    .cta-final-button {
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* اصلاحات بیشتر برای صفحه‌های خیلی کوچک */
@media (max-width: 360px) {
    .tab-button {
        flex-basis: 100%; /* هر دکمه یک خط کامل را بگیرد */
    }

    .content-box,
    .tab-content-wrapper {
        padding: 15px 10px;
    }
}
/* --- کدهای واکنش‌گرایی برای موبایل (ادامه) --- */
@media (max-width: 767px) {
    /* ... کدهای قبلی که برای ریسپانسیو اضافه شد ... */

    /* --- بهبود نهایی نمایش جداول چشم انداز (طرح کارتی جدید) --- */
    .table-wrapper {
        overflow-x: auto; /* اسکرول افقی برای جدول‌هایی که کارتی نیستند (مثل سربازی) */
    }
    .job-outlook-table {
        border: none;
        width: 100%;
    }
    .job-outlook-table thead {
        display: none; 
    }
    .job-outlook-table tr {
        display: block;
        border: 1px solid rgba(0, 209, 255, 0.2);
        border-radius: 10px;
        margin-bottom: 20px;
        padding: 5px 15px;
    }
    .job-outlook-table td {
        display: flex; /* استفاده از فلکس برای چیدمان منظم */
        justify-content: space-between; /* عنوان و محتوا در دو طرف قرار می‌گیرند */
        align-items: center;
        text-align: left;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
        padding: 12px 0;
    }
    .job-outlook-table tr:last-child {
         margin-bottom: 0;
    }
    .job-outlook-table td:last-child {
        border-bottom: none;
    }
    .job-outlook-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--accent-color);
        text-align: right;
        margin-left: 15px; /* فاصله بین عنوان و محتوا */
        flex-shrink: 0;
    }

    /* --- اصلاح جایگاه آیکن لامپ --- */
    .testimonial-box h4 {
        display: flex;
        flex-direction: column; /* چیدمان عمودی */
        align-items: center;
        gap: 15px; /* فاصله بین آیکن و متن */
    }

    .hint-icon {
        width: 32px; /* کمی بزرگ‌تر کردن آیکن */
        height: 32px;
        margin-left: 0;
    }
}
/* --- استایل گروه دکمه‌های فراخوان نهایی --- */
.cta-button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* باعث می‌شود در موبایل دکمه‌ها زیر هم قرار بگیرند */
    gap: 15px; /* فاصله بین دکمه‌ها */
    margin-top: 25px;
    margin-bottom: 10px;
}

/* حذف مارجین اضافی از دکمه قبلی برای هماهنگی */
.cta-final-section .cta-final-button {
    margin-top: 0;
}