/* style/xo-so.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Dodger Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #222222;
  --border-color: #e0e0e0;
}

.page-xo-so {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

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

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

.page-xo-so-section h1,
.page-xo-so-section h2 {
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-size: 2.5em;
  font-weight: bold;
}

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

.page-xo-so-section p {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Banner Section */
.page-xo-so-hero-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-xo-so-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
  z-index: 1;
}

.page-xo-so-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-xo-so-hero-content h1 {
  color: var(--text-light);
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-xo-so-hero-content p {
  color: var(--text-light);
  font-size: 1.3em;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-xo-so-cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-dark);
  padding: 18px 45px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-xo-so-cta-button:hover {
  background-color: #FFC400; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-xo-so-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-xo-so-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for better text contrast */
}

/* Intro Section */
.page-xo-so-intro {
  background-color: var(--bg-light);
}

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

.page-xo-so-feature-item {
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-xo-so-feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-xo-so-feature-item h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-top: 20px;
}

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

.page-xo-so-feature-icon {
  width: 120px; /* Ensure minimum size */
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Game Types Section */
.page-xo-so-game-types {
  background-color: #eef2f6;
}

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

.page-xo-so-game-card {
  background-color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-xo-so-game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-xo-so-game-card h3 {
  color: var(--secondary-color);
  font-size: 1.6em;
  padding: 20px 25px 10px;
  margin-bottom: 0;
}

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

.page-xo-so-card-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-dark);
  padding: 12px 25px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  width: 100%;
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-xo-so-card-button:hover {
  background-color: #FFC400;
}

/* Guide Section */
.page-xo-so-guide {
  background-color: var(--bg-light);
}

.page-xo-so-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-xo-so-steps li {
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  margin-bottom: 25px;
  border-left: 5px solid var(--primary-color);
}

.page-xo-so-steps li h3 {
  color: var(--secondary-color);
  font-size: 1.6em;
  margin-top: 0;
}

.page-xo-so-steps li p {
  font-size: 1.1em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-xo-so-link-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-xo-so-link-button:hover {
  background-color: #1a7ad8; /* Slightly darker blue */
}

/* Tips Section */
.page-xo-so-tips {
  background-color: #f0f4f7;
}

.page-xo-so-tips ul {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-xo-so-tips li {
  background-color: var(--text-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  border-left: 4px solid var(--secondary-color);
}

.page-xo-so-tips li h3 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-top: 0;
}

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

/* FAQ Section */
.page-xo-so-faq {
  background-color: var(--bg-light);
}

.page-xo-so-faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--secondary-color);
}

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

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin-bottom: 15px;
  text-align: left;
  font-size: 1em;
}

.faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-block;
  margin-top: 10px;
  text-align: left;
}

.faq-answer a:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-xo-so-hero-content h1 {
    font-size: 3em;
  }
  .page-xo-so-section h2 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-xo-so-hero-banner {
    padding: 60px 15px;
  }
  .page-xo-so-hero-content h1 {
    font-size: 2.5em;
  }
  .page-xo-so-hero-content p {
    font-size: 1.1em;
  }
  .page-xo-so-cta-button {
    padding: 15px 35px;
    font-size: 1.1em;
  }
  .page-xo-so-section {
    padding: 40px 0;
  }
  .page-xo-so-section h2 {
    font-size: 1.8em;
  }
  .page-xo-so-section h3 {
    font-size: 1.5em;
  }
  .page-xo-so-features {
    grid-template-columns: 1fr;
  }
  .page-xo-so-game-grid {
    grid-template-columns: 1fr;
  }
  .page-xo-so-guide .page-xo-so-steps li {
    padding: 20px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-xo-so-hero-content h1 {
    font-size: 2em;
  }
  .page-xo-so-hero-content p {
    font-size: 1em;
  }
  .page-xo-so-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-xo-so-section h2 {
    font-size: 1.5em;
  }
  .page-xo-so-section h3 {
    font-size: 1.3em;
  }
  .page-xo-so-feature-icon {
    width: 90px;
    height: 90px;
  }
  .page-xo-so-game-image {
    height: 180px;
  }
}