.page-user-community-rules {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.page-user-community-rules-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-user-community-rules-hero {
  background: linear-gradient(135deg, #0056B3 0%, #003f8a 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-user-community-rules-main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFC107;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-user-community-rules-hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
}

.page-user-community-rules-hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
}

.page-user-community-rules-section {
  padding: 60px 0;
  border-bottom: 1px solid #e0e0e0;
}

.page-user-community-rules-section:last-of-type {
  border-bottom: none;
}

.page-user-community-rules-heading {
  font-size: 2em;
  color: #0056B3;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.page-user-community-rules-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFC107;
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-user-community-rules-section p {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-user-community-rules-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-user-community-rules-list li {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #0056B3;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
}

.page-user-community-rules-list li strong {
  color: #0056B3;
}

.page-user-community-rules-list li ul {
  list-style: disc;
  margin-top: 10px;
  margin-left: 20px;
}

.page-user-community-rules-image-mid {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-user-community-rules-image-small {
  display: block;
  max-width: 60%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-user-community-rules-button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-user-community-rules-btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-user-community-rules-btn-primary {
  background-color: #FFC107;
  color: #0056B3;
  border-color: #FFC107;
}

.page-user-community-rules-btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-user-community-rules-btn-secondary {
  background-color: #0056B3;
  color: #ffffff;
  border-color: #0056B3;
}

.page-user-community-rules-btn-secondary:hover {
  background-color: #003f8a;
  border-color: #003f8a;
  color: #FFC107;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-user-community-rules-conclusion {
  text-align: center;
  background-color: #f0f8ff;
  padding: 80px 0;
}

.page-user-community-rules-conclusion .page-user-community-rules-heading {
  color: #0056B3;
}

.page-user-community-rules-conclusion p {
  max-width: 900px;
  margin: 0 auto 20px auto;
  font-size: 1.15em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-user-community-rules-main-title {
    font-size: 2em;
  }

  .page-user-community-rules-hero-description,
  .page-user-community-rules-section p {
    font-size: 1em;
  }

  .page-user-community-rules-heading {
    font-size: 1.8em;
  }

  .page-user-community-rules-list li {
    padding: 10px 15px;
    font-size: 0.95em;
  }

  .page-user-community-rules-image-mid,
  .page-user-community-rules-image-small {
    max-width: 90%;
  }

  .page-user-community-rules-btn {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-user-community-rules-button-group {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-user-community-rules-hero {
    padding: 60px 0;
  }

  .page-user-community-rules-main-title {
    font-size: 1.8em;
  }

  .page-user-community-rules-heading {
    font-size: 1.5em;
  }

  .page-user-community-rules-section {
    padding: 40px 0;
  }

  .page-user-community-rules-list li {
    border-left-width: 3px;
  }
}