:root {

    --primary-red: #9C2D2D;
    --accent-red: #B23A3A;
    --pure-white: #FFFFFF;
    --warm-white: #F7F5F2;
    --light-gray-bg: #EFECEA;
    --dark-text: #1F1F1F;
    --medium-text: #555555;
    --light-text: #9A9A9A;
    --border-color: #D6D6D6;
    --input-bg: #FAFAFA;
    --icon-red: #9C2D2D;
    --icon-gray: #8A8A8A;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
html{
    overflow-x: hidden;
}
body {
    background-color: var(--warm-white);
    color: var(--medium-text);
    line-height: 1.7;
     font-family: 'Vazirmatn', Tahoma, sans-serif;
}


/* استایل‌های اصلی */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 20px;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
    padding: 2rem 0;
}

.page-title {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.page-subtitle {
    color: var(--medium-text);
    max-width: 800px;
    margin: 0 auto;
     font-weight:500;
    font-size: 1rem;
}

/* استایل‌های تب‌ها */
.tabs-container {
    background-color: var(--pure-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-gray-bg);
}

.tab-btn {
    padding: 1.2rem 2rem;
    background: none;
    border: none;
    
  
    color: var(--medium-text);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-red);
    background-color: rgba(156, 45, 45, 0.05);
}

.tab-btn.active {
    color: var(--primary-red);
   
     font-weight:500;
    font-size: 1rem;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-red);
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

/* استایل‌های بخش‌های قوانین */
.section-title {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    display: flex;

    align-items: center;
    border-left: 4px solid var(--primary-red);
    padding-left: 1rem;
}

.section-title i {
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 1rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.rule-card {
    background-color: var(--light-gray-bg);
    border-radius: var(--border-radius);
    padding: 1.8rem;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: left;
    direction: ltr;
}

.rule-card:hover {
    border-color: var(--border-color);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.rule-card-title {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.rule-card-title i {
    color: var(--primary-red);
    margin-right: 10px;
}

.rule-list {
    list-style-type: none;

    font-size: 1rem;
}

.rule-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
}

.rule-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background-color: var(--primary-red);
    border-radius: 50%;
}

/* استایل‌های هایلایت */
.highlight-box {
    background-color: rgba(156, 45, 45, 0.08);
    border-left: 4px solid var(--primary-red);
    padding: 1.8rem;
    border-radius: 8px;
    margin: 2.5rem 0;
}

.highlight-title {
    color: var(--primary-red);
    margin-bottom: 1rem;
   font-size: 1rem;
   font-weight: 600;
    display: flex;
    align-items: center;
}

.highlight-title i {
    margin-right: 10px;
}

/* استایل‌های جدول */
.rules-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--pure-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rules-table th {
    background-color: var(--primary-red);
    color: var(--pure-white);
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
}

.rules-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 1rem;
}

.rules-table tr:last-child td {
    border-bottom: none;
}

.rules-table tr:hover {
    background-color: rgba(156, 45, 45, 0.03);
}


/* استایل‌های واکنش‌گرا */
@media (max-width: 768px) {
  
    .tabs-header {
        flex-direction: column;
    }

    .tab-btn {
        text-align: right;
        border-bottom: 1px solid var(--border-color);
    }

    .tab-btn:last-child {
        border-bottom: none;
    }

    .tab-btn.active::after {
        width: 3px;
        height: 100%;
        right: 0;
        top: 0;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .tab-content {
        padding: 1.5rem;
    }
}

/* استایل‌های اضافی */
.last-updated {
    background-color: var(--pure-white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    display: flex;
   
font-weight: 600;
    font-size: 1rem;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.last-updated i {
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 1rem;
}

.agreement-box {
    background-color: var(--pure-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    margin-top: 2rem;
    font-weight: 600;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.agreement-checkbox input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-red);
}

.agreement-checkbox label {
    font-weight: 500;
    color: var(--dark-text);
    font-size: 1.2rem;
}
