/* style/x-s.css */
:root {
  --primary-color: #0A2038;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #0A2038;
  --card-bg: #ffffff;
  --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 {
  padding: 60px 0;
  text-align: center;
}

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

.page-x-s h1,
.page-x-s h2,
.page-x-s h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-x-s h1 {
  font-size: 3.2em;
  color: var(--text-light);
}

.page-x-s h2 {
  font-size: 2.5em;
  margin-top: 20px;
}

.page-x-s h3 {
  font-size: 1.8em;
  color: var(--primary-color);
}

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

.page-x-s .btn-primary, .page-x-s .cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-x-s .btn-primary:hover, .page-x-s .cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-x-s .btn-small {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
}

.page-x-s .btn-small:hover {
  background-color: #071626; /* Slightly darker primary */
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.page-x-s .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5a 100%); /* Dark gradient background */
  overflow: hidden;
}

.page-x-s .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 .hero-image {
  width: 100%;
  max-width: 1000px; /* Adjust max-width for image */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 40px;
  object-fit: cover;
  display: block;
}

.page-x-s .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-x-s .hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: var(--secondary-color);
}

.page-x-s .hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-x-s .cta-button {
  margin-top: 20px;
  padding: 18px 45px;
  font-size: 1.4em;
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-x-s .cta-button:hover {
  background-color: #e6c200;
}

/* Grid Layouts */
.page-x-s .grid-2-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-x-s .grid-3-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

/* Type Card, Promo Card, News Item */
.page-x-s .type-card, .page-x-s .promo-card, .page-x-s .news-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  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;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-x-s .type-card:hover, .page-x-s .promo-card:hover, .page-x-s .news-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

.page-x-s .type-card h3, .page-x-s .promo-card h3, .page-x-s .news-item h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  min-height: 60px; /* Ensure consistent height for titles */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-x-s .type-card p, .page-x-s .promo-card p, .page-x-s .news-item p {
  font-size: 1em;
  color: #555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-x-s .card-title-link, .page-x-s .news-title-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-x-s .card-title-link:hover, .page-x-s .news-title-link:hover {
  color: var(--secondary-color);
}

/* Benefits Section */
.page-x-s .benefit-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-x-s .benefit-item:hover {
  transform: translateY(-5px);
}

.page-x-s .benefit-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-x-s .benefit-item h3 {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* How-to-Play Section */
.page-x-s .step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-x-s .step-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-x-s .step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-x-s .step-item h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-x-s .step-item p {
  flex-grow: 1;
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
}

/* Safety Section */
.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(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

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

.page-x-s .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-x-s .faq-question:hover {
  background: #f5f5f5;
  border-color: var(--secondary-color);
}

.page-x-s .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--primary-color);
  flex-grow: 1;
}

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

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

.page-x-s .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fcfcfc;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-x-s .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
  border-color: var(--secondary-color);
}

.page-x-s .faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #444;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-x-s h1 {
    font-size: 2.8em;
  }
  .page-x-s h2 {
    font-size: 2em;
  }
  .page-x-s .hero-content p {
    font-size: 1.1em;
  }
  .page-x-s .cta-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-x-s section {
    padding: 40px 0;
  }
  .page-x-s h1 {
    font-size: 2.2em;
  }
  .page-x-s h2 {
    font-size: 1.8em;
  }
  .page-x-s h3 {
    font-size: 1.5em;
  }
  .page-x-s p {
    font-size: 1em;
  }
  .page-x-s .hero-section {
    padding: 60px 15px;
  }
  .page-x-s .hero-image {
    margin-bottom: 30px;
  }
  .page-x-s .hero-content p {
    font-size: 1em;
  }
  .page-x-s .cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-x-s .grid-2-columns, .page-x-s .grid-3-columns, .page-x-s .step-by-step, .page-x-s .safety-features, .page-x-s .news-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-x-s .type-card, .page-x-s .promo-card, .page-x-s .news-item, .page-x-s .benefit-item, .page-x-s .step-item, .page-x-s .feature-item {
    padding: 20px;
  }
  .page-x-s .card-image, .page-x-s .news-image, .page-x-s .step-image {
    height: 160px;
  }
  .page-x-s .benefit-icon, .page-x-s .feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-x-s .faq-question {
    padding: 15px 20px;
  }
  .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 20px;
  }
  .page-x-s .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-x-s h1 {
    font-size: 1.8em;
  }
  .page-x-s h2 {
    font-size: 1.5em;
  }
  .page-x-s h3 {
    font-size: 1.3em;
  }
  .page-x-s .cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-x-s .hero-content h1 {
    font-size: 2.5em;
  }
  .page-x-s .hero-content p {
    font-size: 0.95em;
  }
}