/* style/x-s.css */

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #1a1a1a;
  --bg-light: #f5f5f5;
  --border-color: #e0e0e0;
}

.page-x-s {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

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

.page-x-s .section-spacing {
  padding: 60px 0;
}

.page-x-s .bg-light {
  background-color: var(--bg-light);
}

.page-x-s h1,
.page-x-s h2,
.page-x-s h3 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-x-s h2 {
  font-size: 2.2em;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 15px;
}

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

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

.page-x-s p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-x-s .text-center {
  text-align: center;
}

/* Buttons */
.page-x-s .cta-button,
.page-x-s .secondary-button,
.page-x-s .card-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-x-s .cta-button {
  background-color: var(--primary-color);
  color: var(--text-dark);
  font-size: 1.1em;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-x-s .cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-x-s .cta-button.large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-x-s .cta-button.small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-x-s .secondary-button {
  background-color: var(--secondary-color);
  color: var(--text-light);
  font-size: 1em;
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.page-x-s .secondary-button:hover {
  background-color: #a00000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

.page-x-s .card-button {
  background-color: var(--primary-color);
  color: var(--text-dark);
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-x-s .card-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Xổ Số Hero Section */
.page-x-s .xoso-hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-dark);
  padding: 80px 0;
}

.page-x-s .xoso-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;
}

.page-x-s .xoso-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: brightness(0.7); /* Only for background effect, not changing original image color */
}

.page-x-s .xoso-hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 800px;
  padding: 20px;
}

.page-x-s .xoso-hero-content h1 {
  color: var(--primary-color);
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-x-s .xoso-hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-align: center;
  color: #f0f0f0;
}

/* Xổ Số Intro */
.page-x-s .xoso-intro p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Type Grid */
.page-x-s .type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-x-s .type-card {
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-x-s .type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-x-s .type-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-x-s .type-card h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 0 15px;
  color: var(--secondary-color);
}

.page-x-s .type-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  padding: 0 15px;
  text-align: center;
  flex-grow: 1;
}

/* Guide Steps */
.page-x-s .guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-x-s .step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-x-s .step-item .step-image {
  width: 100%;
  max-width: 250px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-x-s .step-item h3 {
  color: var(--secondary-color);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-x-s .step-item p {
  font-size: 0.95em;
  color: var(--text-dark);
  text-align: center;
}

/* Promotions */
.page-x-s .promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-x-s .promo-card {
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-x-s .promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-x-s .promo-card .promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-x-s .promo-card h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 0 15px;
  color: var(--secondary-color);
}

.page-x-s .promo-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  padding: 0 15px;
  text-align: center;
  flex-grow: 1;
}

.page-x-s .promo-note {
  text-align: center;
  font-style: italic;
  margin-top: 30px;
  color: #666;
}

/* Tips List */
.page-x-s .tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-x-s .tips-list li {
  background-color: var(--text-light);
  border-left: 5px solid var(--primary-color);
  margin-bottom: 20px;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-x-s .tips-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-x-s .tips-list li h3 {
  text-align: left;
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-x-s .tips-list li p {
  text-align: justify;
}

/* Safety Features */
.page-x-s .safety-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-x-s .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-x-s .feature-item .feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-x-s .feature-item h3 {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-x-s .feature-item p {
  font-size: 0.95em;
  color: var(--text-dark);
  text-align: center;
}

/* FAQ Section */
.page-x-s .faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-x-s .faq-question:hover {
  background: #f0f0f0;
}

.page-x-s .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  text-align: left;
  color: var(--text-dark);
  flex-grow: 1;
}

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

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

.page-x-s .faq-answer p {
  margin: 0;
  padding-bottom: 15px;
  text-align: justify;
}

.page-x-s .faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 15px 20px;
}

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

/* Conclusion */
.page-x-s .xoso-conclusion p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-x-s .xoso-hero-content h1 {
    font-size: 2.8em;
  }
  .page-x-s h1 {
    font-size: 2.5em;
  }
  .page-x-s h2 {
    font-size: 2em;
  }
  .page-x-s h3 {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-x-s .section-spacing {
    padding: 40px 0;
  }
  .page-x-s .xoso-hero {
    min-height: 400px;
    padding: 60px 0;
  }
  .page-x-s .xoso-hero-content h1 {
    font-size: 2em;
  }
  .page-x-s .xoso-hero-content p {
    font-size: 1em;
  }
  .page-x-s .cta-button.large {
    padding: 15px 30px;
    font-size: 1em;
  }
  .page-x-s h1 {
    font-size: 2em;
  }
  .page-x-s h2 {
    font-size: 1.8em;
  }
  .page-x-s h3 {
    font-size: 1.4em;
  }
  .page-x-s .type-grid, .page-x-s .guide-steps, .page-x-s .promo-cards, .page-x-s .safety-features {
    grid-template-columns: 1fr;
  }
  .page-x-s .type-card .card-image,
  .page-x-s .promo-card .promo-image {
    height: 180px;
  }
  .page-x-s .faq-question {
    padding: 12px 15px;
  }
  .page-x-s .faq-question h3 {
    font-size: 1.1em;
  }
  .page-x-s .faq-toggle {
    font-size: 20px;
  }
  .page-x-s .faq-answer {
    padding: 0 15px;
  }
  .page-x-s .faq-item.active .faq-answer {
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .page-x-s .xoso-hero-content h1 {
    font-size: 1.8em;
  }
  .page-x-s .cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page-x-s h1 {
    font-size: 1.8em;
  }
  .page-x-s h2 {
    font-size: 1.6em;
  }
  .page-x-s h3 {
    font-size: 1.2em;
  }
  .page-x-s .tips-list li {
    padding: 15px 20px;
  }
  .page-x-s .feature-item .feature-icon {
    width: 80px;
    height: 80px;
  }
}