/* =========================================
   استایل صفحه مراحل ترخیص
========================================= */
.clearance-page {
    margin-top: 50px;
    margin-bottom: 80px;
}

.clearance-header {
    text-align: center;
    margin-bottom: 50px;
}

.clearance-header .page-title {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.clearance-header .page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* ساختار گرید: تایم‌لاین و سایدبار */
.clearance-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* -----------------------------------------
   تایم‌لاین عمودی
----------------------------------------- */
.timeline-container {
    position: relative;
    padding-right: 30px; /* فضای خط عمودی در راست */
}

/* خط اصلی تایم‌لاین */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 14px; /* تنظیم دقیق وسط دایره‌ها */
    width: 2px;
    background: var(--border-color);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.step-indicator {
    position: absolute;
    right: -30px; /* قرارگیری دقیق روی خط */
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--bg-dark);
    border: 2px solid var(--cta-bg);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(179, 57, 57, 0.2);
}

.step-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-right: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-content:hover {
    transform: translateX(-5px);
    border-color: var(--cta-bg);
}

.step-content h2 {
    font-size: 18px;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.step-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

/* -----------------------------------------
   سایدبار مدارک (باکس E-E-A-T)
----------------------------------------- */
.docs-box {
    background: var(--bg-surface-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    position: sticky;
    top: 100px; /* چسبیدن هنگام اسکرول */
}

.docs-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.docs-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-main);
}

.docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-list li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.docs-list li:last-child {
    margin-bottom: 0;
}

/* بولت‌های کاستوم */
.docs-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cta-bg);
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .clearance-wrapper {
        grid-template-columns: 1fr;
    }

    .docs-box {
        position: static;
    }
}