/* style/xo-so.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #222222;
  --border-color: #e0e0e0;
}

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

.page-xo-so-banner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-xo-so-banner-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-banner-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-xo-so-banner-content p {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-xo-so-banner-content strong {
  color: var(--primary-color);
}

.page-xo-so-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-xo-so-cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-xo-so-section {
  padding: 60px 20px;
  margin-bottom: 20px;
  background-color: var(--background-light);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-xo-so-section:nth-of-type(even) {
  background-color: #f0f0f0;
}

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

.page-xo-so-container h2 {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-xo-so-container h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  border-radius: 2px;
}

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

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

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

.page-xo-so-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-xo-so-card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-xo-so-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-xo-so-card h3 a:hover {
  color: var(--primary-color);
}

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

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

.page-xo-so-link-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

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

.page-xo-so-list li {
  background-color: #ffffff;
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.page-xo-so-list li h3 {
  color: var(--secondary-color);
  margin-top: 0;
}

.page-xo-so-steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-xo-so-steps li {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  text-align: center;
}

.page-xo-so-steps li::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-xo-so-steps li h3 {
  margin-top: 20px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-xo-so-mobile-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-xo-so-mobile-image {
  flex: 1 1 400px;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.page-xo-so-mobile-text {
  flex: 1 1 400px;
}

.page-xo-so-mobile-text h3 {
  color: var(--secondary-color);
  font-size: 2em;
}

/* FAQ Styles */
.page-xo-so-faq .faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

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

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

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

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

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

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

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

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

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

.page-xo-so-blog-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-xo-so-blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-xo-so-blog-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-xo-so-blog-card h3 a:hover {
  color: var(--primary-color);
}

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

.page-xo-so-readmore {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-xo-so-readmore:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-xo-so-banner-content h1 {
    font-size: 2.8em;
  }
  .page-xo-so-banner-content p {
    font-size: 1.1em;
  }
  .page-xo-so-container h2 {
    font-size: 2em;
  }
  .page-xo-so-mobile-content {
    flex-direction: column;
  }
  .page-xo-so-mobile-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-xo-so-banner {
    padding: 40px 15px;
  }
  .page-xo-so-banner-content h1 {
    font-size: 2.2em;
  }
  .page-xo-so-banner-content p {
    font-size: 1em;
  }
  .page-xo-so-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-xo-so-section {
    padding: 40px 15px;
  }
  .page-xo-so-container h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-xo-so-container h2::after {
    bottom: -10px;
  }
  .page-xo-so-container h3 {
    font-size: 1.4em;
  }
  .page-xo-so-game-types, .page-xo-so-steps, .page-xo-so-blog-list {
    grid-template-columns: 1fr;
  }
  .page-xo-so-card, .page-xo-so-steps li, .page-xo-so-blog-card {
    padding: 20px;
  }
  .page-xo-so-faq .faq-question {
    padding: 15px;
  }
  .page-xo-so-faq .faq-question h3 {
    font-size: 1.1em;
  }
  .page-xo-so-faq .faq-toggle {
    font-size: 20px;
  }
  .page-xo-so-faq .faq-answer {
    padding: 0 15px;
  }
  .page-xo-so-faq .faq-item.active .faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-xo-so-banner-content h1 {
    font-size: 1.8em;
  }
  .page-xo-so-banner-content p {
    font-size: 0.9em;
  }
  .page-xo-so-cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-xo-so-container h2 {
    font-size: 1.6em;
  }
  .page-xo-so-list li {
    padding: 15px;
  }
}