/* style/xo-so.css */

:root {
  --primary-color: #336699; /* new8 Blue */
  --secondary-color: #FFCC00; /* Fortune Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7fa;
  --background-dark: #2a2a2a;
  --border-color: #e0e0e0;
  --button-hover-dark: #2a527a;
  --button-hover-light: #e6b800;
}

.page-xo-so {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-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 h1,
.page-xo-so h2,
.page-xo-so h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-xo-so h1 {
  font-size: 3.2em;
  font-weight: bold;
  color: var(--text-light);
}

.page-xo-so h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
}

.page-xo-so h3 {
  font-size: 1.8em;
  margin-top: 20px;
}

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

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

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

/* 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%, #0a3d62 100%); /* Darker shade of primary for depth */
  color: var(--text-light);
  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: 1; /* Ensure content is above any background effects */
}

.page-xo-so .hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-xo-so .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.page-xo-so .hero-image img:hover {
  transform: scale(1.03);
}

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

.page-xo-so .hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-xo-so .cta-button:hover {
  background: var(--button-hover-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-xo-so .intro-section {
  background-color: var(--background-light);
  padding: 80px 0;
}

.page-xo-so .intro-section p {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

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

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

.page-xo-so .feature-item img {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
}

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

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

/* Game Types Section */
.page-xo-so .game-types-section {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 80px 0;
}

.page-xo-so .game-types-section h2 {
  color: var(--secondary-color);
}

.page-xo-so .game-types-section p {
  color: #cccccc;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-xo-so .game-type-card {
  background: #3a3a3a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-xo-so .game-type-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #4a4a4a;
}

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

.page-xo-so .game-type-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

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

.page-xo-so .game-type-card p {
  font-size: 0.95em;
  color: #b0b0b0;
  padding: 0 20px 15px 20px;
  margin-bottom: 0;
}

.page-xo-so .btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  margin: 15px 20px 20px 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-xo-so .btn-small:hover {
  background: var(--button-hover-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

/* How-To-Play Section */
.page-xo-so .how-to-play-section {
  background-color: var(--text-light);
  padding: 80px 0;
}

.page-xo-so .how-to-play-section ol {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-xo-so .how-to-play-section ol li {
  position: relative;
  padding: 25px 0 25px 80px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.page-xo-so .how-to-play-section ol li:last-child {
  border-bottom: none;
}

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

.page-xo-so .how-to-play-section ol li h3 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-xo-so .how-to-play-section ol li p {
  font-size: 1.05em;
  margin-bottom: 15px;
}

.page-xo-so .btn-action {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-xo-so .btn-action:hover {
  background: var(--button-hover-light);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Benefits Section */
.page-xo-so .benefits-section {
  background-color: var(--background-light);
  padding: 80px 0;
}

.page-xo-so .benefits-section ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-xo-so .benefits-section ul li {
  background: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-xo-so .benefits-section ul li:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-xo-so .benefits-section ul li img {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
}

.page-xo-so .benefits-section ul li h4 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

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

/* Promotions Section */
.page-xo-so .promotions-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0;
}

.page-xo-so .promotions-section h2 {
  color: var(--secondary-color);
}

.page-xo-so .promotions-section p {
  color: #e0e0e0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-xo-so .promotion-card {
  background: #4a75a4; /* Slightly lighter primary for contrast */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-xo-so .promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.page-xo-so .promotion-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #5a85b4;
}

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

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

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

.page-xo-so .promotion-card p {
  font-size: 0.95em;
  color: #e0e0e0;
  padding: 0 20px 15px 20px;
  margin-bottom: 0;
}

.page-xo-so .promo-cta {
  margin-top: 40px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-color);
}

/* Security & Support Section */
.page-xo-so .security-support-section {
  background-color: var(--text-light);
  padding: 80px 0;
}

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

.page-xo-so .security-item {
  background: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-xo-so .security-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.page-xo-so .security-item img {
  width: 90px;
  height: auto;
  margin-bottom: 20px;
}

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

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

.page-xo-so .support-info {
  margin-top: 60px;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 40px;
  border-radius: 10px;
  text-align: left;
}

.page-xo-so .support-info h3 {
  color: var(--secondary-color);
  font-size: 2em;
  margin-bottom: 20px;
}

.page-xo-so .support-info p {
  color: #e0e0e0;
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-xo-so .support-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-xo-so .support-info ul li {
  color: var(--text-light);
  font-size: 1.05em;
  margin-bottom: 10px;
}

.page-xo-so .support-info .cta-button {
  background: var(--secondary-color);
  color: var(--text-dark);
}

.page-xo-so .support-info .cta-button:hover {
  background: var(--button-hover-light);
}

/* FAQ Section */
.page-xo-so .faq-section {
  background-color: var(--background-light);
  padding: 80px 0;
}

.page-xo-so .faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-xo-so .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-xo-so .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;
}

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

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

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

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

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

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

.page-xo-so .faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-xo-so .faq-answer .btn-small {
  margin-top: 10px;
  margin-left: 0;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-xo-so .faq-answer .btn-small:hover {
  background: var(--button-hover-dark);
}

/* Latest Articles Section */
.page-xo-so .latest-articles-section {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 80px 0;
}

.page-xo-so .latest-articles-section h2 {
  color: var(--secondary-color);
}

.page-xo-so .latest-articles-section p {
  color: #cccccc;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-xo-so .article-card {
  background: #3a3a3a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-xo-so .article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.page-xo-so .article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #4a4a4a;
}

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

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

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

.page-xo-so .article-card p {
  font-size: 0.95em;
  color: #b0b0b0;
  padding: 0 20px 15px 20px;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-xo-so h1 {
    font-size: 2.5em;
  }
  .page-xo-so h2 {
    font-size: 2em;
  }
  .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 .feature-grid, .page-xo-so .game-type-grid, .page-xo-so .promotion-cards, .page-xo-so .security-features, .page-xo-so .article-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-xo-so .how-to-play-section ol li {
    padding-left: 60px;
  }
  .page-xo-so .how-to-play-section ol li::before {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-xo-so section {
    padding: 40px 0;
  }
  .page-xo-so h1 {
    font-size: 2em;
  }
  .page-xo-so h2 {
    font-size: 1.8em;
  }
  .page-xo-so h3 {
    font-size: 1.4em;
  }
  .page-xo-so p {
    font-size: 1em;
  }
  .page-xo-so .hero-image {
    margin-bottom: 20px;
  }
  .page-xo-so .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-xo-so .feature-grid, .page-xo-so .game-type-grid, .page-xo-so .promotion-cards, .page-xo-so .security-features, .page-xo-so .article-cards {
    grid-template-columns: 1fr;
  }
  .page-xo-so .feature-item, .page-xo-so .game-type-card, .page-xo-so .promotion-card, .page-xo-so .security-item, .page-xo-so .benefits-section ul li, .page-xo-so .article-card {
    text-align: center;
    align-items: center;
  }
  .page-xo-so .game-type-card h3, .page-xo-so .game-type-card p, .page-xo-so .promotion-card h3, .page-xo-so .promotion-card p, .page-xo-so .article-card h3, .page-xo-so .article-card p {
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
  }
  .page-xo-so .btn-small {
    margin-left: auto;
    margin-right: auto;
  }
  .page-xo-so .how-to-play-section ol li {
    padding: 20px 0 20px 50px;
  }
  .page-xo-so .how-to-play-section ol li::before {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }
  .page-xo-so .faq-question {
    padding: 15px 20px;
  }
  .page-xo-so .faq-question h3 {
    font-size: 1.1em;
  }
  .page-xo-so .faq-toggle {
    font-size: 1.5em;
  }
  .page-xo-so .faq-answer {
    padding: 0 20px;
  }
  .page-xo-so .faq-item.active .faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .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 .hero-content p {
    font-size: 1em;
  }
  .page-xo-so .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-xo-so .how-to-play-section ol li {
    padding-left: 45px;
  }
  .page-xo-so .how-to-play-section ol li::before {
    width: 30px;
    height: 30px;
    font-size: 1.2em;
  }
}