.rules-page {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
}

.rules-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.rules-header {
    margin-bottom: 40px;
    text-align: center;
}

.rules-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg,
        var(--primary-color) 0%,
        var(--primary-rgba-medium) 45%,
        var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rules-subtitle {
    font-size: 18px;
    opacity: 0.8;
    color: var(--text-color);
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.rule-category:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.rule-category-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rule-category-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.category-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 40px;
}

.category-title {
    flex: 1;
}

.category-arrow {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    flex-shrink: 0;
}

.rule-category.active .category-arrow {
    transform: rotate(180deg);
}

.rule-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 24px;
}

.rule-category.active .rule-category-content {
    max-height: 5000px;
    padding: 0 24px 24px 24px;
}

.rule-item {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rule-item:first-child {
    margin-top: 24px;
    border-top: none;
    padding-top: 0;
}

.rule-item-title {
    --text-color: rgb(255, 0, 0);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rule-item-number {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

.rule-item-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.85;
    margin: 0;
}

.rule-item-content p {
    margin: 0 0 12px 0;
}

.rule-item-content p:last-child {
    margin-bottom: 0;
}

.rule-item-content ul,
.rule-item-content ol {
    margin: 0 0 12px 22px;
    padding-left: 8px;
}

.rule-item-content li {
    margin-bottom: 6px;
}

.rule-item-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.rule-item-empty {
    padding: 24px;
    text-align: center;
    opacity: 0.5;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .rules-container {
        padding: 0 24px;
    }
    
    .rules-title {
        font-size: 36px;
    }
    
    .rule-category-header {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .category-number {
        font-size: 20px;
        min-width: 32px;
    }
    
    .rule-category-content {
        padding: 0 20px;
    }
    
    .rule-category.active .rule-category-content {
        padding: 0 20px 20px 20px;
    }
}

