/* ==========================================================================
   Turkish Placement Test - Main CSS (Clean & Unified Theme)
   ========================================================================== */
:root {
    --tpt-primary: #1e293b;        /* سرمه‌ای اصلی */
    --tpt-primary-2: #334155;      /* سرمه‌ای روشن‌تر (هاور) */
    --tpt-primary-3: #e2e8f0;      /* خاکستری ملایم */
    --tpt-accent: #1e293b;         /* یکپارچه سازی رنگ اکسنت با سرمه ای */
    --tpt-text: #0f172a;           
    --tpt-muted: #64748b;          
    --tpt-border: rgba(30, 41, 59, 0.16); 
    --tpt-bg: #f8fafc;             
    --tpt-white: #ffffff;
    --tpt-error: #ea580c;          
    --tpt-radius-lg: 28px;
    --tpt-radius-md: 20px;
    --tpt-shadow: 0 24px 70px rgba(30, 41, 59, 0.12);
    --tpt-shadow-soft: 0 16px 45px rgba(30, 41, 59, 0.06);
}

.tpt-page * {
    box-sizing: border-box;
}

.tpt-page {
    font-family: inherit;
    color: var(--tpt-text);
    background-color: var(--tpt-bg);
    overflow: hidden;
}

.tpt-container {
    width: min(1140px, calc(100% - 32px));
    margin-inline: auto;
}

/* =========================================
   Hero Section & Overlapping Banner
========================================= */
.tpt-hero-section {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem 6rem 2rem; /* پدینگ پایین برای جا دادن بنر */
    position: relative;
    direction: rtl;
}

.tpt-hero-container {
    display: flex;
    max-width: 1456px;
    width: 100%;
    min-height: 500px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.tpt-hero-content {
    flex: 1;
}

.tpt-hero-title {
    color: var(--tpt-primary);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tpt-hero-subtitle {
    color: var(--tpt-muted);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.tpt-hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.tpt-hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}
/* بنر ویژگی‌ها (تمام‌صفحه) */
.tpt-features-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(50%); /* حفظ حالت هم‌پوشانی لبه پایین */
    width: 100%;
    background-color: var(--tpt-primary); /* دقیقاً همرنگ دکمه‌ها */
    border-radius: 0; /* حذف انحنا برای چسبیدن به لبه‌های تصویر */
    display: flex;
    justify-content: center; /* مرکزچین کردن آیتم‌ها */
    align-items: center;
    padding: 2rem 2rem;
    box-shadow: 0 20px 40px rgba(30, 41, 59, 0.15);
    z-index: 10;
    flex-wrap: wrap;
    gap: 4rem; /* فاصله مناسب بین آیتم‌ها در حالت تمام‌صفحه */
}

.tpt-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tpt-white);
    font-weight: 700;
    font-size: 1.05rem;
}

.tpt-feature-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--tpt-white); /* آیکون‌های کاملاً سفید */
}

/* فاصله برای سکشن بعدی تا زیر بنر نرود */
.tpt-mt-overlap {
    padding-top: 5rem !important; 
}

/* =========================================
   Unified Buttons (All Navy)
========================================= */
.tpt-btn, .tpt-hero-btn, .st-btn-dark {
    appearance: none;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    white-space: nowrap;
    border: none;
    /* یکپارچه سازی رنگ تمام دکمه‌ها */
    background: var(--tpt-primary) !important;
    color: var(--tpt-white) !important;
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.15);
    transition: all 0.3s ease;
}

.tpt-btn:hover, .tpt-hero-btn:hover, .st-btn-dark:hover {
    background: var(--tpt-primary-2) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(30, 41, 59, 0.25);
    color: var(--tpt-white) !important;
}

/* =========================================
   General Sections & Layout
========================================= */
.tpt-section {
    padding: 58px 0;
}

.tpt-section--soft {
    background: rgba(255,255,255,0.44);
}

.tpt-section-heading {
    max-width: 820px;
    margin: 0 auto 30px;
    text-align: center;
}

.tpt-section-heading h2, .tpt-test-header h2, .tpt-seo-content h2 {
    margin: 12px 0 10px;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.45;
    color: var(--tpt-text);
}

.tpt-section-heading p, .tpt-card p, .tpt-start-box p, .tpt-lead-box p, 
.tpt-result-text, .tpt-seo-content p, .tpt-faq-item p, .st-desc-text {
    color: var(--tpt-muted);
    font-size: 16px;
    line-height: 2;
}

/* =========================================
   Cards & Grids
========================================= */
.tpt-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tpt-card {
    padding: 26px;
    border-radius: var(--tpt-radius-md);
    background: #fff;
    border: 1px solid var(--tpt-border);
    box-shadow: var(--tpt-shadow-soft);
}

.tpt-card__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--tpt-primary-3);
    color: var(--tpt-primary);
    font-weight: 900;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

/* =========================================
   Test Shell & Screens
========================================= */
.tpt-test-shell {
    background: #fff;
    border: 1px solid var(--tpt-border);
    box-shadow: var(--tpt-shadow);
    border-radius: var(--tpt-radius-lg);
    padding: clamp(20px, 4vw, 34px);
}

.tpt-test-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    border-bottom: 1px solid var(--tpt-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.tpt-test-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tpt-test-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--tpt-primary-3);
    color: var(--tpt-primary);
    font-weight: 800;
    font-size: 20px;
}

.tpt-screen { display: none; }
.tpt-screen.is-active { display: block; }

.tpt-start-box, .tpt-lead-box, .tpt-result-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 18px 0;
}

/* =========================================
   Quiz Elements
========================================= */
.tpt-progress-wrap { margin-bottom: 22px; }
.tpt-progress-info {
    display: flex;
    justify-content: space-between;
    color: var(--tpt-muted);
    font-weight: 800;
    margin-bottom: 10px;
}
.tpt-progress {
    height: 12px;
    border-radius: 999px;
    background: var(--tpt-primary-3);
    overflow: hidden;
}
.tpt-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--tpt-primary);
    transition: width 0.25s ease;
}

.tpt-question-card {
    padding: clamp(20px, 4vw, 30px);
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--tpt-border);
}

.tpt-question-title {
    margin: 0 0 22px;
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.8;
    text-align: right;
}

.tpt-option {
    width: 100%;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 17px;
    border: 1px solid var(--tpt-border);
    background: #fff;
    color: var(--tpt-text);
    font-weight: 900;
    cursor: pointer;
    transition: 0.18s ease;
    margin-bottom: 10px;
    font-size: 18px
}

.tpt-option:hover {
    border-color: var(--tpt-primary);
    background: var(--tpt-primary-3);
}

.tpt-quiz-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* =========================================
   Forms
========================================= */
.tpt-lead-form {
    margin-top: 24px;
    text-align: right;
}

.tpt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tpt-form-grid__full {
    grid-column: 1 / -1;
}

.tpt-lead-form label span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 900;
}

.tpt-lead-form input {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid var(--tpt-border);
    padding: 0 14px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    direction: rtl;
}

.tpt-lead-form input:focus {
    border-color: var(--tpt-primary);
    box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.1);
}

.tpt-form-error {
    min-height: 26px;
    margin: 12px 0 16px;
    color: var(--tpt-error);
    font-size: 14px;
    font-weight: 800;
}

/* =========================================
   Results
========================================= */
.tpt-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.tpt-result-item {
    padding: 22px;
    border-radius: 20px;
    background: var(--tpt-primary-3);
}

.tpt-result-item strong {
    display: block;
    font-size: 28px;
    color: var(--tpt-primary);
}

.tpt-section-score {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    text-align: right;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--tpt-border);
    margin-bottom: 10px;
}

.tpt-section-score em {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--tpt-primary-3);
    color: var(--tpt-primary);
    font-style: normal;
    font-weight: 900;
}

.tpt-result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

/* =========================================
   About / Next Step Section
========================================= */
.st-about-section {
    padding: 80px 0;
}
.st-about-inner {
    display: flex;
    align-items: center;
    gap: 80px;
}
.st-about-image { flex: 1; }
.st-blob-img {
    width: 100%;
    max-width: 480px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.st-about-content { flex: 1; }
.st-welcome-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #999;
    display: block;
    margin-bottom: 15px;
}
.st-lead-text {
    font-size: 1.15rem;
    font-style: italic;
    border-right: 3px solid var(--tpt-primary);
    padding-right: 15px;
    margin-bottom: 20px;
}

/* =========================================
   FAQ Section (سوالات متداول دو ستونه)
========================================= */
.course-faq {
    padding: 80px 20px;
    background-color: #f8fafc;
    direction: rtl;
}

.faq-container { max-width: 1200px; margin: 0 auto; }

.course-faq .section-title {
    text-align: center;
    color: #1e293b;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
}

.course-faq .section-subtitle {
    text-align: center;
    color: #475569;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.faq-column { display: flex; flex-direction: column; gap: 16px; }

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary {
    list-style: none;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-icon {
    font-size: 26px;
    font-weight: 300;
    color: #64748b;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    color: #1e293b;
}

.faq-content {
    padding: 0 24px 24px 24px;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.faq-content p {
    margin: 0;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr; }
    .course-faq { padding: 60px 20px; }
}

/* =========================================
   Responsive Adjustments
========================================= */
@media (max-width: 992px) {
    .tpt-hero-container, .st-about-inner {
        flex-direction: column;
        text-align: center;
    }
    .tpt-hero-image, .st-about-image {
        justify-content: center;
    }
    .st-lead-text {
        border-right: none;
        padding-right: 0;
    }
    @media (max-width: 768px) {
    .tpt-features-banner {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* ایجاد دو ستون مساوی */
        gap: 1.5rem; /* فاصله بین آیتم‌ها در ردیف و ستون */
        padding: 1.5rem 1rem;
        /* اگر در کدهای قبلی flex-direction: column وجود دارد، grid آن را باطل می‌کند */
    }

    .tpt-feature-item {
        justify-content: flex-start; /* راست‌چین کردن محتوای هر آیتم در ستون خودش */
        font-size: 0.9rem; /* تنظیم سایز فونت برای جا شدن در موبایل (در صورت نیاز) */
        gap: 8px; /* فاصله کمتر بین آیکون و متن در موبایل */
    }

    .tpt-feature-item svg {
        width: 15px; /* کمی کوچک‌تر کردن آیکون‌ها برای موبایل */
        height: 15px;
        flex-shrink: 0; /* جلوگیری از فشرده شدن آیکون */
    }
}

    .tpt-hero-section {
        padding-bottom: 0;
    }
    .tpt-mt-overlap {
        padding-top: 5rem !important;
    }
}

@media (max-width: 640px) {
    .tpt-feature-grid, .tpt-form-grid, .tpt-result-grid, .tpt-section-score {
        grid-template-columns: 1fr;
    }
    .tpt-result-actions {
        flex-direction: column;
    }
    .tpt-btn, .tpt-hero-btn, .st-btn-dark {
        width: 100%;
    }
    .tpt-test-header {
        flex-direction: column;
    }
    .tpt-test-meta {
        justify-content: flex-start;
    }
    .tpt-features-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
}
