/* --- وارد کردن استایل‌های پایه از index.css برای حفظ یکپارچگی --- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700;900&display=swap');

:root {
    --primary-color: #0077b6; /* آبی عمیق */
    --secondary-color: #00b4d8; /* آبی روشن‌تر */
    --accent-color: #90e0ef; /* آبی ملایم */
    --dark-color: #03045e; /* آبی تیره برای متن/عناوین */
    --light-color: #f0f8ff; /* سفید مایل به آبی برای پس‌زمینه */
    --text-color: #333;
    --error-color: #d90429; /* رنگ قرمز برای هشدارهای رد شدن */
    --border-radius: 8px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 10px 20px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.8; /* افزایش line-height برای خوانایی بیشتر متن‌های طولانی */
}

/* --- استایل Header، Nav و Footer (کپی شده از index.css) --- */

header {
    background-color: var(--dark-color);
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-heavy);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    color: var(--accent-color);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 0;
    transition: color 0.3s, border-bottom 0.3s;
    font-weight: 400;
}

nav a:hover, nav a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.dropdown {
    position: relative;
    display: inline-block;
    margin: 0 15px;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 10px 0;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: color 0.3s;
}

.dropbtn:hover {
    color: var(--secondary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-color);
    min-width: 160px;
    box-shadow: var(--shadow-light);
    z-index: 1;
    border-radius: var(--border-radius);
    top: 100%;
    right: 0;
    text-align: right;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

footer {
    background-color: var(--dark-color);
    color: var(--accent-color);
    padding: 20px 5%;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
    font-weight: 400;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.footer-copy p {
    font-size: 0.9rem;
    color: var(--accent-color);
    opacity: 0.7;
}


/* --- استایل بخش اصلی (Main) و محتوا --- */
main {
    display: flex;
    justify-content: center;
    padding: 40px 5%;
    background-color: var(--light-color);
}

.card {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    max-width: 850px; /* حداکثر عرض برای خوانایی بهتر متن */
    width: 100%;
}

.main-title {
    font-size: 2.2rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 15px;
    font-weight: 900;
}

.intro-text {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
    padding: 0 10%;
    font-weight: 400;
}

.divider {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 40px 0;
}

.section-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    border-right: 5px solid var(--primary-color);
    padding-right: 15px;
    font-weight: 700;
}

.conditions-list {
    list-style: none;
    padding: 0;
}

.conditions-list li {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
    position: relative;
}

.conditions-list li:hover {
    background-color: var(--accent-color);
    cursor: default;
}

/* آیکون برای لیست مدارک مورد نیاز */
.required-docs li {
    border-right: 5px solid var(--secondary-color);
}

.required-docs li::before {
    content: "✅";
    position: absolute;
    left: 20px;
    font-size: 1.1rem;
}

/* آیکون و استایل برای دلایل رد شدن (تاکید بر هشدار) */
.rejection-reasons li {
    border-right: 5px solid var(--error-color);
}

.rejection-reasons li::before {
    content: "⚠️";
    position: absolute;
    left: 20px;
    font-size: 1.1rem;
}

.rejection-reasons li:last-child {
    background-color: #ffe5e5; /* پس‌زمینه روشن برای نکته مهم */
    border-color: var(--error-color);
    font-weight: 700;
    color: var(--error-color);
}

/* --- استایل دکمه اقدام (Action Box) --- */
.action-box {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px; /* دکمه گردتر برای تاکید بیشتر */
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.4);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- واکنش‌گرایی (Media Queries) --- */
@media (max-width: 768px) {
    /* Header/Nav responsive styles here (from index.css) */
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 5%;
    }

    header h1 {
        margin-bottom: 10px;
    }

    nav {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    nav a, .dropdown {
        margin: 5px 0;
        width: 100%;
        text-align: right;
    }

    .dropdown {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 5px 0;
    }

    .dropbtn {
        width: 100%;
        text-align: right;
        padding: 10px 0;
    }

    .dropdown-content {
        position: static;
        min-width: 100%;
        border-radius: 0;
    }

    /* Main Content adjustments */
    main {
        padding: 20px 3%;
    }
    
    .card {
        padding: 20px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .intro-text {
        font-size: 1rem;
        padding: 0;
    }

    .section-title {
        font-size: 1.4rem;
    }
    
    .conditions-list li {
        padding: 15px 10px 15px 40px; /* فضای بیشتر برای آیکون */
    }

    .required-docs li::before, .rejection-reasons li::before {
        left: 10px;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}