/* style/x-s.css */
.page-x-s {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
}

.page-x-s strong.page-x-s__highlight {
  color: #8B0000; /* Darker red for emphasis */
}

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

/* Hero Section */
.page-x-s__hero {
  background: linear-gradient(135deg, #FFD700 0%, #8B0000 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 450px; /* Ensure sufficient height */
}

.page-x-s__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Overlay for better text readability */
  z-index: 1;
}

.page-x-s__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-x-s__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  color: #fff;
}

.page-x-s__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #eee;
}

.page-x-s__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-x-s__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text contrast, not color change */
}

/* General Section Styling */
.page-x-s__section {
  padding: 60px 0;
  background-color: #fff;
  margin-bottom: 20px;
}

.page-x-s__section:nth-of-type(even) {
  background-color: #f0f0f0;
}

.page-x-s__section-title {
  font-size: 2.5em;
  color: #8B0000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-x-s__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555;
}

/* Buttons */
.page-x-s__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.05em;
  cursor: pointer;
  border: none;
}

.page-x-s__button--primary {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

.page-x-s__button--primary:hover {
  background-color: #e6c200;
  color: #6a0000;
  transform: translateY(-2px);
}

.page-x-s__button--secondary {
  background-color: #8B0000;
  color: #FFD700;
  border: 2px solid #8B0000;
}

.page-x-s__button--secondary:hover {
  background-color: #6a0000;
  color: #e6c200;
  transform: translateY(-2px);
}

.page-x-s__button--link {
  background: none;
  color: #8B0000;
  padding: 0;
  border: none;
  text-decoration: underline;
  font-size: 1em;
}

.page-x-s__button--link:hover {
  color: #FFD700;
  text-decoration: none;
}

.page-x-s__button--center {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 250px;
}

/* Grid Layout */
.page-x-s__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-x-s__card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 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__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-x-s__card-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-x-s__card-description {
  font-size: 1em;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Steps Section */
.page-x-s__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.page-x-s__step {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  flex: 1 1 calc(33% - 40px);
  min-width: 280px;
  max-width: 350px;
  transition: transform 0.3s ease;
}

.page-x-s__step:hover {
  transform: translateY(-5px);
}

.page-x-s__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #FFD700;
  color: #8B0000;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-x-s__step-title {
  font-size: 1.6em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-x-s__step-description {
  font-size: 1em;
  color: #666;
  margin-bottom: 20px;
}

/* Tips Section */
.page-x-s__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-x-s__tip-item {
  background-color: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-x-s__tip-item:hover {
  transform: translateY(-3px);
}

.page-x-s__tip-image {
  width: 100%;
  height: 180px;
  object-fit: contain; /* Use contain for illustrations/charts */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-x-s__tip-title {
  font-size: 1.7em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-x-s__tip-description {
  font-size: 1em;
  color: #666;
}

/* Promotions Section */
.page-x-s__section--promotions {
  background-color: #FFD700;
  color: #8B0000;
}

.page-x-s__section--promotions .page-x-s__section-title,
.page-x-s__section--promotions .page-x-s__section-intro {
  color: #8B0000;
}

.page-x-s__promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-x-s__promo-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-x-s__promo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 1.1em;
  max-width: 500px;
}

.page-x-s__promo-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.page-x-s__icon--check {
  color: #8B0000;
  margin-right: 10px;
  font-size: 1.2em;
  line-height: 1.6;
}

.page-x-s__icon--check::before {
  content: '✓'; /* Simple checkmark, can be replaced with an icon font */
  display: inline-block;
  margin-right: 5px;
  font-weight: bold;
}

.page-x-s__promo-cta {
  text-align: center;
  font-size: 1.2em;
  margin-top: 40px;
  font-weight: bold;
  color: #8B0000;
}

/* CTA Section */
.page-x-s__section--cta {
  background: #8B0000;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.page-x-s__section-title--light {
  color: #FFD700;
}

.page-x-s__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 20px auto 40px auto;
  color: #f0f0f0;
}

.page-x-s__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-x-s__button--cta-register {
  background-color: #FFD700;
  color: #8B0000;
  padding: 15px 35px;
  font-size: 1.15em;
}

.page-x-s__button--cta-register:hover {
  background-color: #e6c200;
  color: #6a0000;
}

.page-x-s__button--cta-login {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 15px 35px;
  font-size: 1.15em;
}

.page-x-s__button--cta-login:hover {
  background-color: #FFD700;
  color: #8B0000;
}

.page-x-s__button--cta-download {
  background-color: #fff;
  color: #8B0000;
  padding: 15px 35px;
  font-size: 1.15em;
}

.page-x-s__button--cta-download:hover {
  background-color: #eee;
  color: #6a0000;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-x-s__hero-title {
    font-size: 2.5em;
  }
  .page-x-s__section-title {
    font-size: 2em;
  }
  .page-x-s__grid, .page-x-s__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-x-s__promo-content {
    flex-direction: column;
    text-align: center;
  }
  .page-x-s__promo-list {
    text-align: center;
  }
  .page-x-s__promo-list li {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-x-s__hero {
    padding: 60px 0;
  }
  .page-x-s__hero-title {
    font-size: 2em;
  }
  .page-x-s__hero-description {
    font-size: 1em;
  }
  .page-x-s__section {
    padding: 40px 0;
  }
  .page-x-s__section-title {
    font-size: 1.8em;
  }
  .page-x-s__steps {
    flex-direction: column;
    align-items: center;
  }
  .page-x-s__step {
    flex: 1 1 100%;
    max-width: 90%;
  }
  .page-x-s__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-x-s__button--cta-register, .page-x-s__button--cta-login, .page-x-s__button--cta-download {
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .page-x-s__hero-title {
    font-size: 1.8em;
  }
  .page-x-s__section-title {
    font-size: 1.5em;
  }
  .page-x-s__button {
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-x-s__card-title, .page-x-s__step-title, .page-x-s__tip-title {
    font-size: 1.5em;
  }
}