/* Reset and update rules.css */
.rules-container {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(10, 10, 10, 0.9);
  min-height: calc(100vh - 60px);
}

.rules-section {
  margin-bottom: 3rem;
}

.rules-section h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.rule-card {
  background: rgba(26, 26, 26, 0.95);
  border-radius: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 51, 51, 0.2);
  overflow: hidden;
}

.rule-card h3 {
  padding: 1.5rem;
  margin: 0;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rule-card h3::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  transition: transform 0.3s ease;
}

.rule-card.expanded h3::after {
  transform: rotate(180deg);
}

.rule-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
}

.rule-card.expanded .rule-content {
  max-height: 1000px; /* Large enough to contain content */
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 51, 51, 0.2);
}

.rule-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.rule-content p {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 51, 51, 0.1);
  border-left: 3px solid var(--primary-color);
  border-radius: 0 5px 5px 0;
}

.rule-content p strong {
  color: var(--primary-color);
}

.rule-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 51, 51, 0.1);
}

.rule-card:hover .rule-content p {
  background: rgba(255, 51, 51, 0.2);
}