body {
  margin: 0;
  font-family: Arial, sans-serif;
  direction: rtl;
  background-color: #f9f9f9;
  color: #222;
}

header {
  background: linear-gradient(90deg, #8e44ad, #f39c12);
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2em;
  color: #fff8e1;
}

section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 20px auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
  text-align: center;
  color: #222;
  margin-bottom: 30px;
}

#rules-container, #forms-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rule-item, .form-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.rule-item:hover, .form-item:hover {
  transform: scale(1.01);
}

.rule-toggle {
  background: none;
  border: none;
  font-size: 1.1em;
  font-weight: bold;
  color: #8e44ad;
  cursor: pointer;
  text-align: right;
  width: 100%;
}

.rule-item p {
  margin-top: 10px;
  color: #333;
  font-size: 1em;
  line-height: 1.6;
  display: none;
}

.form-item h3 {
  color: #8e44ad;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.form-item p {
  color: #333;
  font-size: 1em;
  line-height: 1.6;
}

.form-item a {
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(90deg, #f39c12, #f1c40f);
  color: #222;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.form-item a:hover {
  background: linear-gradient(90deg, #e67e22, #f39c12);
  transform: scale(1.05);
}

a.home-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}
