/* General Styles */
body {
    font-family: 'Vazir', sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  
  h2 {
    font-size: 2.8rem;
    color: #444;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    position: relative;
  }
  
  h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #6c5ce7;
    margin: 15px auto 0;
    border-radius: 2px;
  }
  
  p {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #666;
  }
  
  /* Rules List Styles */
  .rules-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }
  
  .rule-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  
  .rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }
  
  .rule-icon {
    margin-left: 20px;
  }
  
  .rule-icon i {
    font-size: 2.5rem;
    color: #6c5ce7;
    transition: transform 0.3s ease;
  }
  
  .rule-card:hover .rule-icon i {
    transform: rotate(15deg) scale(1.1);
  }
  
  .rule-content h3 {
    font-size: 1.6rem;
    color: #444;
    margin-bottom: 15px;
    font-weight: 600;
  }
  
  .rule-content p {
    font-size: 1.1rem;
    color: #666;
    text-align: right;
    margin: 0;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    h2 {
      font-size: 2.2rem;
    }
  
    .rule-card {
      flex-direction: column;
      text-align: center;
      padding: 25px;
    }
  
    .rule-icon {
      margin: 0 0 20px 0;
    }
  
    .rule-content h3 {
      font-size: 1.4rem;
    }
  
    .rule-content p {
      font-size: 1rem;
    }
  }
  
  /* Animation for Rule Cards */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .rule-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
  }
  
  .rule-card:nth-child(1) {
    animation-delay: 0.2s;
  }
  
  .rule-card:nth-child(2) {
    animation-delay: 0.4s;
  }
  
  .rule-card:nth-child(3) {
    animation-delay: 0.6s;
  }
  
  .rule-card:nth-child(4) {
    animation-delay: 0.8s;
  }
  
  .rule-card:nth-child(5) {
    animation-delay: 1s;
  }
  
  /* Subtle Hover Border Effect */
  .rule-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #6c5ce7;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
  }
  
  .rule-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }



  /* Cool Back Button */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    z-index: 1000;
  }
  
  .back-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
  }
  
  .back-button:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }
  
  .back-button:hover i {
    transform: translateX(-5px);
  }
  
  .back-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }