/* style/xo-so.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #1a1a2e; /* Slightly lighter than secondary for contrast */
  --border-color: #e0e0e0;
  --hover-gold: #e6c200;
  --hover-blue: #000066;
}

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

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

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

.page-xo-so h2 {
  font-size: 2.2em;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 20px;
  color: var(--secondary-color);
}

.page-xo-so h3 {
  font-size: 1.6em;
  margin-top: 25px;
  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);
  text-decoration: underline;
}

.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: linear-gradient(135deg, var(--secondary-color), #00004d);
  color: var(--text-light);
}

.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;
  max-width: 800px; /* Limit image width */
}

.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%;
  padding: 20px;
}

.page-xo-so .hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-xo-so .hero-content a {
  color: var(--text-light);
  text-decoration: underline;
}

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

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

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

/* Section Styling */
.page-xo-so section {
  padding: 60px 0;
}

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

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

/* Why Choose Section */
.page-xo-so .section-why-choose h2, .page-xo-so .section-why-choose p {
  text-align: center;
}

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

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

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

.page-xo-so .feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

/* Lottery Types Section */
.page-xo-so .lottery-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

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

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

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

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

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

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

.page-xo-so .section-how-to-play h2 {
  text-align: center;
}

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

.page-xo-so .step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-xo-so .step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--secondary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  border: 4px solid var(--secondary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-xo-so .step-item p {
  font-size: 1em;
  margin-bottom: 20px;
}

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

.page-xo-so .btn-step:hover {
  background-color: var(--hover-blue);
  color: var(--primary-color);
}

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

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

.page-xo-so .promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-xo-so .promo-list li {
  background-color: var(--background-light);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-size: 1.1em;
  color: var(--text-dark);
  transition: background-color 0.3s ease;
}

.page-xo-so .promo-list li:hover {
  background-color: #e0e6e4;
}

.page-xo-so .promo-list li strong {
  color: var(--secondary-color);
}

.page-xo-so .promo-list li a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-xo-so .promo-list li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-xo-so .btn-primary {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 15px 35px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-xo-so .btn-primary:hover {
  background-color: var(--hover-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-xo-so .section-security-support h2, .page-xo-so .section-security-support h3 {
  color: var(--primary-color);
  text-align: center;
}

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

.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-color: #00004d; /* Darker blue for contrast */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-xo-so .security-item:hover {
  transform: translateY(-5px);
  background-color: var(--secondary-color);
}

.page-xo-so .security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Slightly brighten icons for visibility on dark background, not changing hue */
}

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

.page-xo-so .security-item p {
  font-size: 1em;
  color: #e0e0e0;
}

.page-xo-so .contact-info {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-xo-so .contact-info h3 {
  font-size: 2em;
  margin-bottom: 15px;
}

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

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

.page-xo-so .section-security-support a:hover {
  color: var(--hover-gold);
}

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

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

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

.page-xo-so .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-xo-so .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  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(--secondary-color);
}

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

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

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

.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;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

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

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

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

/* Latest News Section */
.page-xo-so .section-latest-news {
  background-color: #ffffff;
}

.page-xo-so .section-latest-news h2 {
  text-align: center;
}

.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: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  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.15);
}

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

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

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

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

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

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

.page-xo-so .read-more:hover {
  background-color: var(--hover-gold);
}

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

@media (max-width: 768px) {
  .page-xo-so .hero-section {
    padding: 40px 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: 18px;
  }
  .page-xo-so h2 {
    font-size: 1.8em;
  }
  .page-xo-so h3 {
    font-size: 1.4em;
  }
  .page-xo-so .features-grid, .page-xo-so .lottery-type-grid, .page-xo-so .steps-grid, .page-xo-so .security-features, .page-xo-so .news-grid {
    grid-template-columns: 1fr;
  }
  .page-xo-so .feature-item, .page-xo-so .lottery-card, .page-xo-so .step-item, .page-xo-so .security-item, .page-xo-so .news-card {
    padding: 25px;
  }
  .page-xo-so .step-item {
    padding-top: 50px;
  }
  .page-xo-so .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.8em;
    top: -20px;
  }
  .page-xo-so .promo-list li {
    padding: 15px;
    font-size: 1em;
  }
  .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.8em;
  }
  .page-xo-so .faq-answer {
    padding: 0 20px;
  }
  .page-xo-so .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: 16px;
  }
  .page-xo-so h2 {
    font-size: 1.6em;
  }
  .page-xo-so h3 {
    font-size: 1.2em;
  }
  .page-xo-so .feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-xo-so .lottery-img {
    height: 180px;
  }
  .page-xo-so .news-img {
    height: 150px;
  }
  .page-xo-so .btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-xo-so .contact-info h3 {
    font-size: 1.6em;
  }
}