/* Base Styles */
#main-cont{
  box-shadow: none;
  border-radius: 0;
}

#rules-container {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    font-family: 'Segoe UI', sans-serif;
  }
  
  /* Rule Item Container */
  .rule-item {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    overflow: hidden;
  }
  
  /* Question Button */
  .rule-question {
    width: 100%;
    color: #13125E;
    text-align: left;
    font-weight: bold;
    padding: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease-in-out;
  }
  
  .bold{
    font-weight: bold;
  }
  
  ul{
    margin-top: 0.5em;
    margin-bottom: 1em;
  }
  /* Toggle Icon */
  .toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
  }
  
  .rule-question[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg); /* "+" becomes "x" style */
  }
  
  /* Answer Section */
  .rule-answer {
    padding: 1rem;
    background-color: #fff;
    line-height: 1.6;
    display: block;
    border-top: 1px solid #ccc;
  }
  
  /* Context Heading Container */
  .rules-context-panel {
    display: flex;
    justify-content: center;
    padding: 1em;
    width: 100%;
  }
  
  .rules-context-box {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1em;
    width: 95%;
  }
  
  .context-val {
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  #rules-heading {
    font-size: calc(0.9rem + 1vw); /* Mobile-friendly scaling */
  }
  
  /* Responsive Enhancements */
  @media (min-width: 768px) {
    #rules-container {
      font-size: 0.95rem;
    }
  
    .rule-question {
      font-size: 1.05rem;
    }
  
    .rule-answer {
      font-size: 0.95rem;
    }
  
    #rules-heading {
      font-size: calc(1.1rem + 0.7vw);
    }
  }
  
  @media (min-width: 992px) {
    .rules-context-box {
      width: 400px;
    }
  }

  .rule-section{
    text-align: left;
    margin-bottom: 2.5em;
  }

  .section-head{
    background: linear-gradient(to right, #1e90ff, #13125e);
    color: #fff;
    font-weight: bold;
    min-width: 50%;
    padding: 1em;
    text-align: left;
    border-radius: 4px 4px 0 0;
    font-size: 1.1em;
  }
  