.page-xo-so-game-rules {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
}

.page-xo-so-game-rules .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-xo-so-game-rules .section-title {
  font-size: 36px;
  color: #0A2463;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  font-weight: bold;
}

.page-xo-so-game-rules .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #E3B505;
  border-radius: 2px;
}

.page-xo-so-game-rules h1 {
  font-size: 48px;
  color: #0A2463;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-xo-so-game-rules h2 {
  font-size: 32px;
  color: #0A2463;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-xo-so-game-rules h3 {
  font-size: 24px;
  color: #0A2463;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-xo-so-game-rules p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #555555;
}

.page-xo-so-game-rules ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #555555;
}

.page-xo-so-game-rules ul li {
  margin-bottom: 8px;
  font-size: 17px;
}

.page-xo-so-game-rules a {
  color: #0A2463;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-xo-so-game-rules a:hover {
  color: #E3B505;
}

/* Hero Section */
.page-xo-so-game-rules .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #f0f4f8; /* Light background for contrast */
}

.page-xo-so-game-rules .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-xo-so-game-rules .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-xo-so-game-rules .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-xo-so-game-rules .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-xo-so-game-rules .hero-content p {
  font-size: 20px;
  color: #444444;
  margin-bottom: 30px;
}

.page-xo-so-game-rules .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #E3B505;
  color: #0A2463;
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(227, 181, 5, 0.3);
  border: 2px solid #E3B505;
}

.page-xo-so-game-rules .cta-button:hover {
  background: #0A2463;
  color: #E3B505;
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
  border-color: #0A2463;
}

/* Sections Padding */
.page-xo-so-game-rules .introduction-section,
.page-xo-so-game-rules .game-types-section,
.page-xo-so-game-rules .rules-section,
.page-xo-so-game-rules .tips-section,
.page-xo-so-game-rules .safety-support-section,
.page-xo-so-game-rules .faq-section {
  padding: 60px 0;
}

.page-xo-so-game-rules .introduction-section {
  background-color: #ffffff;
}

.page-xo-so-game-rules .game-types-section {
  background-color: #f9f9f9;
}

.page-xo-so-game-rules .rules-section {
  background-color: #ffffff;
}

.page-xo-so-game-rules .tips-section {
  background-color: #f9f9f9;
}

.page-xo-so-game-rules .safety-support-section {
  background-color: #ffffff;
}

.page-xo-so-game-rules .faq-section {
  background-color: #f0f4f8;
}

/* Game Type Cards */
.page-xo-so-game-rules .game-type-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-xo-so-game-rules .game-type-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-xo-so-game-rules .game-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-xo-so-game-rules .game-type-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-xo-so-game-rules .game-type-card h3 {
  font-size: 22px;
  color: #0A2463;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-xo-so-game-rules .game-type-card h3 a {
  color: #0A2463;
}

.page-xo-so-game-rules .game-type-card h3 a:hover {
  color: #E3B505;
}

.page-xo-so-game-rules .game-type-card p {
  font-size: 16px;
  color: #666666;
  margin-bottom: 20px;
}

.page-xo-so-game-rules .game-type-card .btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: #0A2463;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-xo-so-game-rules .game-type-card .btn-small:hover {
  background: #E3B505;
  color: #0A2463;
  transform: translateY(-2px);
}

/* Tips Section */
.page-xo-so-game-rules .tip-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-xo-so-game-rules .tip-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-xo-so-game-rules .tip-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-xo-so-game-rules .tip-card .card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-xo-so-game-rules .tip-card h3 {
  font-size: 20px;
  color: #0A2463;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-xo-so-game-rules .tip-card p {
  font-size: 16px;
  color: #666666;
}

.page-xo-so-game-rules .call-to-action-text {
  text-align: center;
  font-size: 18px;
  margin-top: 40px;
  color: #444444;
}

.page-xo-so-game-rules .call-to-action-text a {
  color: #E3B505;
  font-weight: bold;
}

.page-xo-so-game-rules .call-to-action-text a:hover {
  color: #0A2463;
}

/* Safety & Support Section */
.page-xo-so-game-rules .safety-support-section ul {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

.page-xo-so-game-rules .safety-support-section ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #555555;
}

.page-xo-so-game-rules .safety-support-section ul li::before {
  content: '✓'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: #E3B505;
  font-weight: bold;
  font-size: 20px;
  top: -2px;
}

/* FAQ Section */
.page-xo-so-game-rules .faq-list {
  margin-top: 30px;
}

.page-xo-so-game-rules .faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-xo-so-game-rules .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-xo-so-game-rules .faq-question:hover {
  background: #f5f5f5;
}

.page-xo-so-game-rules .faq-question h3 {
  margin: 0;
  font-size: 18px;
  color: #0A2463;
  font-weight: bold;
}

.page-xo-so-game-rules .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E3B505;
  transition: transform 0.3s ease;
}

.page-xo-so-game-rules .faq-item.active .faq-toggle {
  transform: rotate(45deg); /* Plus to X (rotate 45deg) or just change to minus */
  color: #0A2463;
}

.page-xo-so-game-rules .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fcfcfc;
  color: #666666;
}

.page-xo-so-game-rules .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px;
}

.page-xo-so-game-rules .faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #666666;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-xo-so-game-rules .section-title {
    font-size: 30px;
  }
  .page-xo-so-game-rules h1 {
    font-size: 40px;
  }
  .page-xo-so-game-rules h2 {
    font-size: 28px;
  }
  .page-xo-so-game-rules h3 {
    font-size: 22px;
  }
  .page-xo-so-game-rules .hero-content p {
    font-size: 18px;
  }
  .page-xo-so-game-rules .cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-xo-so-game-rules .game-type-card-grid,
  .page-xo-so-game-rules .tip-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-xo-so-game-rules .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-xo-so-game-rules h1 {
    font-size: 32px;
  }
  .page-xo-so-game-rules h2 {
    font-size: 24px;
  }
  .page-xo-so-game-rules h3 {
    font-size: 20px;
  }
  .page-xo-so-game-rules p, .page-xo-so-game-rules ul li, .page-xo-so-game-rules .faq-answer p {
    font-size: 16px;
  }
  .page-xo-so-game-rules .hero-section {
    padding: 40px 15px;
  }
  .page-xo-so-game-rules .hero-content p {
    font-size: 16px;
  }
  .page-xo-so-game-rules .cta-button {
    padding: 10px 25px;
    font-size: 16px;
  }
  .page-xo-so-game-rules .introduction-section,
  .page-xo-so-game-rules .game-types-section,
  .page-xo-so-game-rules .rules-section,
  .page-xo-so-game-rules .tips-section,
  .page-xo-so-game-rules .safety-support-section,
  .page-xo-so-game-rules .faq-section {
    padding: 40px 0;
  }
  .page-xo-so-game-rules .game-type-card,
  .page-xo-so-game-rules .tip-card {
    padding: 20px;
  }
  .page-xo-so-game-rules .faq-question {
    padding: 15px 20px;
  }
  .page-xo-so-game-rules .faq-question h3 {
    font-size: 16px;
  }
  .page-xo-so-game-rules .faq-answer {
    padding: 0 20px;
  }
  .page-xo-so-game-rules .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-xo-so-game-rules h1 {
    font-size: 28px;
  }
  .page-xo-so-game-rules .section-title {
    font-size: 22px;
  }
  .page-xo-so-game-rules .game-type-card-grid,
  .page-xo-so-game-rules .tip-card-grid {
    grid-template-columns: 1fr;
  }
  .page-xo-so-game-rules .faq-question h3 {
    font-size: 15px;
  }
  .page-xo-so-game-rules .faq-toggle {
    font-size: 20px;
  }
}