.rules-container {
    width: calc(100% - 24px);
    max-width: 1076px;
    margin: 80px auto 35px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #edf0f2;
    padding: 25px;
    box-sizing: border-box;
    font-family: 'IRANSansWeb', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
}

/* هدر مشترک داخلی کادر */
.qt-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f4f8;
}

.qt-card-icon {
    color: #003366;
    flex-shrink: 0;
    margin-top: 3px;
}

.qt-card-header-text h1 {
    font-size: 20px;
    color: #003366;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.qt-card-header-text p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rules-counter;
}

.rules-list li {
    position: relative;
    padding: 15px 45px 15px 10px;
    border-bottom: 1px dashed #f0f4f8;
    font-size: 14.5px;
    color: #475569;
    line-height: 2;
    text-align: justify;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: counter(rules-counter);
    counter-increment: rules-counter;
    position: absolute;
    right: 0;
    top: 15px;
    background: #f0f8ff;
    color: #0066cc;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
}

@media (max-width: 768px) {
    .rules-container { margin-top: 75px; padding: 18px; }
    .qt-card-header-text h1 { font-size: 18px; }
    .rules-list li { font-size: 13.5px; padding: 12px 40px 12px 5px; }
}