/* ===== سیستم ۱۲ ستونی ===== */
.rs-container {
    width: 100%;
    max-width: 100% !important;
    padding: 0 15px;
    margin: 0 auto;
    direction: rtl;
    box-sizing: border-box;
}

/* Clearfix */
.rs-container::after,
.rs-row::after {
    content: "";
    clear: both;
    display: table;
}

/* ===== ردیف ===== */
.rs-row {
    margin-right: -15px;
    margin-left: -15px;
    box-sizing: border-box;
    max-width: 90%;
}

/* ===== ستون‌ها ===== */
[class*="rs-col-"] {
    float: right;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
    min-height: 1px;
}

/* تعریف عرض ستون‌ها */
.rs-col-1 { width: 8.33333333%; }
.rs-col-2 { width: 16.66666667%; }
.rs-col-3 { width: 25%; }
.rs-col-4 { width: 33.33333333%; }
.rs-col-5 { width: 41.66666667%; }
.rs-col-6 { width: 50%; }
.rs-col-7 { width: 58.33333333%; }
.rs-col-8 { width: 66.66666667%; }
.rs-col-9 { width: 75%; }
.rs-col-10 { width: 83.33333333%; }
.rs-col-11 { width: 91.66666667%; }
.rs-col-12 { width: 100%; }

/* ===== تنظیمات ویژه صفحه ===== */
.rs-page-header {
    text-align: center;
    margin: 40px 0 50px;
    padding: 0 15px;
}

.rs-page-title {
    font-size: 42px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.rs-page-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.rs-page-description {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ===== کارت آیتم‌ها ===== */
.rs-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 30px;
}

.rs-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.12);
    border-color: #3b82f6;
}

.rs-item-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

/* تصویر */
.rs-item-image {
    padding: 20px;
    background: #f8fafc;
    text-align: center;
}

.rs-item-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* محتوا */
.rs-item-content {
    padding: 0 20px;
    color: #475569;
    line-height: 1.6;
    flex-grow: 1;
}

/* فرم */
.rs-select-form {
    padding: 20px;
    background: #f8fafc;
    border-top: 2px dashed #e2e8f0;
}

.rs-form-fields p {
    margin: 15px 0;
}

.rs-form-fields label {
    display: block;
    margin-bottom: 5px;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
}

.rs-form-fields input,
.rs-form-fields textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.rs-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

/* ===== واکنش‌گرایی برای موبایل ===== */
@media (max-width: 768px) {
    [class*="rs-col-"] {
        width: 100%;
    }

    .rs-page-title {
        font-size: 32px;
    }
}

/* ===== دستگاه‌های متوسط ===== */
@media (min-width: 769px) and (max-width: 992px) {
    .rs-col-md-1 { width: 8.33333333%; }
    .rs-col-md-2 { width: 16.66666667%; }
    .rs-col-md-3 { width: 25%; }
    .rs-col-md-4 { width: 33.33333333%; }
    .rs-col-md-5 { width: 41.66666667%; }
    .rs-col-md-6 { width: 50%; }
    .rs-col-md-7 { width: 58.33333333%; }
    .rs-col-md-8 { width: 66.66666667%; }
    .rs-col-md-9 { width: 75%; }
    .rs-col-md-10 { width: 83.33333333%; }
    .rs-col-md-11 { width: 91.66666667%; }
    .rs-col-md-12 { width: 100%; }
}