.page-xo-so {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-dark: #212529;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #343a40;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-xo-so .text-center {
  text-align: center;
}

.page-xo-so a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-xo-so a:hover {
  text-decoration: underline;
}

.page-xo-so .cta-button,
.page-xo-so .button-secondary,
.page-xo-so .button-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: 15px;
  text-decoration: none;
}

.page-xo-so .cta-button {
  background: var(--secondary-color);
  color: var(--text-dark);
  border: 2px solid var(--secondary-color);
}

.page-xo-so .cta-button:hover {
  background: #e0a800;
  border-color: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-xo-so .button-secondary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-xo-so .button-secondary:hover {
  background: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-xo-so .button-tertiary {
  background: var(--bg-light);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.page-xo-so .button-tertiary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.page-xo-so section {
  padding: 60px 0;
}

.page-xo-so section:nth-of-type(even) {
  background-color: var(--bg-light);
}

.page-xo-so h1,
.page-xo-so h2,
.page-xo-so h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

.page-xo-so h1 {
  font-size: 3.2em;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-xo-so h2 {
  font-size: 2.5em;
}

.page-xo-so h3 {
  font-size: 1.8em;
  color: var(--text-dark);
}

/* Hero Section */
.page-xo-so .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Fallback gradient */
  overflow: hidden;
}

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

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

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

.page-xo-so .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-xo-so .hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Intro & Why Choose */
.page-xo-so .section-intro p,
.page-xo-so .section-how-to-play p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-xo-so .grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-xo-so .feature-card {
  background: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-xo-so .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-xo-so .feature-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-xo-so .feature-card h3 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 1.5em;
}

.page-xo-so .feature-card p {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* Game Type Section */
.page-xo-so .game-type-item {
  background: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-xo-so .game-type-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-xo-so .game-type-item h3 {
  color: var(--primary-color);
  font-size: 2em;
  margin-top: 0;
}

.page-xo-so .game-type-item ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
  max-width: 600px;
  width: 100%;
}

.page-xo-so .game-type-item ul li {
  background: var(--bg-light);
  margin-bottom: 10px;
  padding: 10px 15px;
  border-left: 4px solid var(--secondary-color);
  border-radius: 5px;
  color: var(--text-dark);
}

/* How to Play Section */
.page-xo-so .section-how-to-play ol {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-xo-so .section-how-to-play ol li {
  background: var(--text-light);
  margin-bottom: 20px;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-left: 80px;
}

.page-xo-so .section-how-to-play ol li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-xo-so .section-how-to-play ol li h3 {
  margin-top: 0;
  margin-bottom: 10px;
  text-align: left;
  color: var(--primary-color);
}

.page-xo-so .section-how-to-play ol li p {
  text-align: left;
  margin-bottom: 0;
}

/* Promotions Section */
.page-xo-so .section-promotions .grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-xo-so .promo-card {
  background: var(--text-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-xo-so .promo-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-xo-so .promo-card h3 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 1.6em;
}

.page-xo-so .promo-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-xo-so .faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-xo-so .faq-item {
  margin-bottom: 15px;
}

.page-xo-so .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.page-xo-so .faq-question:hover {
  background: var(--bg-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-xo-so .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-dark);
  text-align: left;
  flex-grow: 1;
}

.page-xo-so .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.page-xo-so .faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.page-xo-so .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  background: #fdfdfd;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 0 5px 5px;
}

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

.page-xo-so .faq-answer p {
  margin: 0;
  color: var(--text-dark);
}

/* News Section */
.page-xo-so .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-xo-so .news-card {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-xo-so .news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-xo-so .news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-xo-so .news-card h3 {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  text-align: left;
}

.page-xo-so .news-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-xo-so .news-card h3 a:hover {
  text-decoration: underline;
}

.page-xo-so .news-card p {
  font-size: 0.95em;
  color: #555;
  margin: 0 20px 15px 20px;
}

.page-xo-so .news-card .news-date {
  display: block;
  font-size: 0.85em;
  color: #888;
  margin: 0 20px 20px 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-xo-so h1 {
    font-size: 2.8em;
  }
  .page-xo-so h2 {
    font-size: 2em;
  }
  .page-xo-so h3 {
    font-size: 1.6em;
  }
  .page-xo-so .grid-3-cols, .page-xo-so .section-promotions .grid-2-cols, .page-xo-so .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-xo-so .hero-content p {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-xo-so section {
    padding: 40px 0;
  }
  .page-xo-so h1 {
    font-size: 2.2em;
  }
  .page-xo-so h2 {
    font-size: 1.8em;
  }
  .page-xo-so h3 {
    font-size: 1.4em;
  }
  .page-xo-so .hero-section {
    padding: 40px 15px;
  }
  .page-xo-so .hero-image img {
    border-radius: 4px;
  }
  .page-xo-so .hero-content p {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-xo-so .cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-xo-so .feature-card, .page-xo-so .promo-card, .page-xo-so .game-type-item {
    padding: 20px;
  }
  .page-xo-so .feature-card img,
  .page-xo-so .game-type-item img,
  .page-xo-so .promo-card img {
    max-width: 200px;
  }
  .page-xo-so .section-how-to-play ol li {
    padding-left: 65px;
  }
  .page-xo-so .section-how-to-play ol li::before {
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    left: 20px;
  }
  .page-xo-so .faq-question {
    padding: 12px 15px;
  }
  .page-xo-so .faq-question h3 {
    font-size: 1em;
  }
  .page-xo-so .faq-toggle {
    font-size: 20px;
  }
  .page-xo-so .faq-answer {
    padding: 10px 15px;
  }
  .page-xo-so .news-card img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .page-xo-so .container {
    padding: 0 15px;
  }
  .page-xo-so h1 {
    font-size: 1.8em;
  }
  .page-xo-so h2 {
    font-size: 1.5em;
  }
  .page-xo-so h3 {
    font-size: 1.2em;
  }
  .page-xo-so .grid-3-cols, .page-xo-so .section-promotions .grid-2-cols, .page-xo-so .news-grid {
    grid-template-columns: 1fr;
  }
  .page-xo-so .feature-card, .page-xo-so .promo-card, .page-xo-so .game-type-item {
    padding: 15px;
  }
  .page-xo-so .section-how-to-play ol li {
    padding: 15px 15px 15px 55px;
  }
  .page-xo-so .section-how-to-play ol li::before {
    left: 15px;
    width: 25px;
    height: 25px;
    font-size: 1em;
  }
}