/* style/xo-so.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #000080;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f4f4;
  --bg-dark: #000050;
  --border-color: #e0e0e0;
}

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

.page-xo-so h1, .page-xo-so h2, .page-xo-so h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-xo-so h2 {
  font-size: 2.2em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  position: relative;
}

.page-xo-so h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

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

.page-xo-so p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

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

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

/* 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-color: var(--bg-dark);
}

.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;
}

.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 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.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.3);
}

.page-xo-so .cta-button:hover {
  background: #FFC400;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-xo-so .cta-button-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-xo-so .cta-button-secondary:hover {
  background: transparent;
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

.page-xo-so .intro-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-xo-so .feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-xo-so .feature-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
}

.page-xo-so .feature-item h3 {
  color: var(--secondary-color);
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Lottery Types Section */
.page-xo-so .section-lottery-types {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-xo-so .lottery-card {
  background-color: #fefefe;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-xo-so .lottery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

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

.page-xo-so .lottery-card h3 a {
  color: var(--secondary-color);
  font-size: 1em;
}

.page-xo-so .lottery-card p {
  padding: 0 15px 20px;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-xo-so .lottery-card .btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.page-xo-so .lottery-card .btn-small:hover {
  background: #FFC400;
  transform: translateY(-2px);
}

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

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

.page-xo-so .how-to-steps li {
  background-color: #ffffff;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-xo-so .how-to-steps li h3 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin-bottom: 15px;
  text-align: center;
}

.page-xo-so .how-to-steps li h3 a {
  color: var(--primary-color);
}

.page-xo-so .how-to-steps li p {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  text-align: center;
}

.page-xo-so .how-to-steps li img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.page-xo-so .section-promotions {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-xo-so .promo-card {
  background-color: #fefefe;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-xo-so .promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

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

.page-xo-so .promo-card h3 a {
  color: var(--secondary-color);
  font-size: 1em;
}

.page-xo-so .promo-card p {
  padding: 0 15px 20px;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-xo-so .promo-card .btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.page-xo-so .promo-card .btn-small:hover {
  background: #FFC400;
  transform: translateY(-2px);
}

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

.page-xo-so .section-security-support h2 {
  color: var(--primary-color);
}

.page-xo-so .section-security-support h2::after {
  background: var(--text-light);
}

.page-xo-so .section-security-support p {
  max-width: 900px;
  margin: 0 auto 30px;
  color: #cccccc;
}

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

.page-xo-so .support-item {
  background-color: #000060;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-xo-so .support-item:hover {
  background-color: #000070;
}

.page-xo-so .support-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-xo-so .support-item p {
  color: #b0b0b0;
  font-size: 0.95em;
}

/* FAQ Section */
.page-xo-so .section-faq {
  padding: 60px 0;
  background-color: #fefefe;
}

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

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

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

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

.page-xo-so .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--secondary-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);
}

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

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

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

/* Latest News Section */
.page-xo-so .section-latest-news {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.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-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;
  display: flex;
  flex-direction: column;
}

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

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

.page-xo-so .news-card h3 {
  font-size: 1.3em;
  margin: 20px 20px 10px;
  color: var(--secondary-color);
  flex-grow: 1;
}

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

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

.page-xo-so .news-card .btn-read-more {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin: 0 20px 20px;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.page-xo-so .news-card .btn-read-more:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-xo-so h1 {
    font-size: 2.4em;
  }
  .page-xo-so h2 {
    font-size: 1.8em;
  }
  .page-xo-so h3 {
    font-size: 1.4em;
  }
  .page-xo-so .cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-xo-so .intro-features, .page-xo-so .lottery-grid, .page-xo-so .promo-grid, .page-xo-so .support-info-grid, .page-xo-so .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .page-xo-so .how-to-steps li {
    padding: 25px;
  }
  .page-xo-so .how-to-steps li h3 {
    font-size: 1.6em;
  }
  .page-xo-so .faq-question h3 {
    font-size: 1.1em;
  }
  .page-xo-so .faq-toggle {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-xo-so h1 {
    font-size: 2em;
  }
  .page-xo-so h2 {
    font-size: 1.6em;
  }
  .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 25px;
    font-size: 1em;
  }
  .page-xo-so .section-intro, .page-xo-so .section-lottery-types, .page-xo-so .section-how-to-play, .page-xo-so .section-promotions, .page-xo-so .section-security-support, .page-xo-so .section-faq, .page-xo-so .section-latest-news {
    padding: 40px 0;
  }
  .page-xo-so .feature-item {
    min-width: unset;
    width: 100%;
  }
  .page-xo-so .how-to-steps li {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .page-xo-so .how-to-steps li img {
    margin-top: 20px;
  }
  .page-xo-so .faq-question {
    padding: 12px 15px;
  }
  .page-xo-so .faq-answer {
    padding: 0 15px;
  }
  .page-xo-so .faq-item.active .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-xo-so h1 {
    font-size: 1.8em;
  }
  .page-xo-so h2 {
    font-size: 1.4em;
  }
  .page-xo-so h3 {
    font-size: 1.2em;
  }
  .page-xo-so p {
    font-size: 0.95em;
  }
  .page-xo-so .feature-item img {
    width: 120px;
    height: 120px;
  }
  .page-xo-so .lottery-card img, .page-xo-so .promo-card img, .page-xo-so .news-card img {
    height: 180px;
  }
}