/* کانتینر اصلی صفحه */
.rules-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 60px 20px;
    background-color: #f6f8fa; /* هماهنگ با پس‌زمینه صفحات ورود/ثبت‌نام */
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif !important;
    direction: rtl;
}

/* کارت اصلی قوانین */
.rules-card {
    background: #ffffff;
    max-width: 850px;
    width: 100%;
    padding: 50px 45px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(4, 62, 89, 0.05);
    border: 1.5px solid #dbe2eb; /* مرزبندی دقیق و واضح هماهنگ با ثبت‌نام/ورود */
    box-sizing: border-box;
}

/* هدر کارت */
.rules-header {
    text-align: center;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.rules-header h1 {
    color: #043e59; /* آبی تیره سازمانی */
    font-size: 28px;
    font-weight: 850;
    margin: 0 0 10px 0;
}

.rules-header .subtitle {
    color: #067fb2; /* آبی ثانویه */
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.rules-header .update-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f0f7fa;
    color: #043e59;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

/* متن مقدمه */
.rules-intro {
    background-color: #f8fafc;
    border-right: 4px solid #067fb2;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 35px;
}

.rules-intro p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
    margin: 0;
}

/* بخش‌های بدنه قوانین */
.rules-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.rules-section h2 {
    color: #043e59;
    font-size: 18px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 12px;
    border-right: 3px solid #043e59;
    padding-right: 10px;
}

.rules-section p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
    margin: 0 0 12px 0;
}

/* لیست‌ها */
.rules-list {
    list-style: none;
    padding: 0;
    margin: 0 15px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rules-list li {
    position: relative;
    padding-right: 20px;
    color: #4a5568;
    font-size: 14.5px;
    line-height: 1.7;
    text-align: justify;
}

/* بولت‌های اختصاصی آبی */
.rules-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    background-color: #067fb2;
    border-radius: 50%;
}

/* بخش فوتر کارت (تماس با ما) */
.rules-footer {
    margin-top: 45px;
    padding-top: 30px;
    border-top: 2px solid #f0f4f8;
    text-align: center;
}

.rules-footer h3 {
    color: #043e59;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.rules-footer p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.btn-contact {
    display: inline-block;
    background-color: #043e59;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-contact:hover {
    background-color: #067fb2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 127, 178, 0.25);
}

/* بهینه‌سازی رسپانسیو برای تبلت و موبایل */
@media (max-width: 768px) {
    .rules-container {
        padding: 30px 15px;
    }

    .rules-card {
        padding: 30px 20px;
    }

    .rules-header h1 {
        font-size: 22px;
    }

    .rules-section h2 {
        font-size: 16px;
    }
}
