/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background */
}

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

.page-register__section-title {
  font-size: clamp(28px, 3.5vw, 40px); /* H1 size constraint */
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-register__section-description {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}

.page-register__text-white {
  color: #ffffff;
}

/* Hero Section */
.page-register__hero-section {
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  padding-bottom: 40px;
  background-color: #017439;
}

.page-register__hero-section .page-register__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-register__hero-content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 900px;
}

.page-register__hero-title {
  font-size: clamp(32px, 4vw, 50px); /* H1 size constraint */
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 25px;
}

/* CTA Button Base */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background-color: #C30808; /* Register button color */
  color: #FFFFFF; /* WCAG AA compliant text color */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
}

/* Registration Steps Section */
.page-register__steps-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-register__step-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-register__step-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
}

.page-register__step-text {
  font-size: 16px;
  color: #555555;
}

.page-register__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: #017439;
}

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-register__benefit-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-register__benefit-title {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
}

.page-register__benefit-text {
  font-size: 16px;
  color: #555555;
}

/* Security Section */
.page-register__security-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-register__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-register__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-register__security-text-block {
  flex: 1;
  max-width: 50%;
}

.page-register__security-text-block h3 {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
}

.page-register__security-text-block p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
}

.page-register__security-text-block a {
  color: #017439;
  text-decoration: underline;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
  background-color: #017439;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-register__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-register__faq-item[open] > .page-register__faq-question .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #555555;
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-register__cta-final-section .page-register__button-group {
  margin-top: 40px;
}

/* Copyright Info */
.page-register__copyright-info {
  text-align: center;
  padding: 20px;
  background-color: #017439;
  color: #ffffff;
  font-size: 14px;
}

/* Placeholder styles for consistency as per prompt's CSS example, even if not directly used on this page */
.page-register__home-content {border:1px solid #FBB00D;border-radius:10px;height:650px;overflow-y:auto}
.page-register__row-games,.page-register__row-sport,.page-register__row-coop{background-color:#1A202C;padding:40px 20px;max-width:1330px;margin:0 auto}
.page-register__games-title,.page-register__sport-title,.page-register__coop-title{color:#fff;text-align:center}
.page-register__slider-wrapper{overflow:hidden}
.page-register__slider-track{display:flex;flex-wrap:nowrap;gap:16px}
.page-register__game-slide{flex:0 0 200px;max-width:200px}
.page-register__banners-top-wrapper{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;max-width:900px;margin:0 auto}
.page-register__banner-item img{object-fit:contain;margin:0 auto;display:block}
.page-register__blog-masonry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.page-register__blog-card-link{display:flex;flex-direction:column;height:100%}
.page-register__btn-outline{margin-top:auto}
.page-register__blog-slider-track{display:flex;flex-wrap:nowrap;gap:20px}
.page-register__blog-slide{flex:0 0 calc(33.333% - 14px);max-width:calc(33.333% - 14px)}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-register__container {
    padding: 15px;
  }

  .page-register__hero-content {
    padding: 25px;
  }

  .page-register__hero-title {
    font-size: 40px;
  }

  .page-register__hero-description {
    font-size: 17px;
  }

  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-register__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-register__security-image,
  .page-register__security-text-block {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-register__hero-section {
    padding-top: 10px !important; /* Approx 10px top padding */
    padding-bottom: 30px;
  }

  .page-register__hero-section .page-register__container {
    gap: 20px;
  }

  .page-register__hero-content {
    padding: 20px;
  }

  .page-register__hero-title {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .page-register__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Registration Steps Section */
  .page-register__steps-section {
    padding: 40px 0;
  }

  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__step-card {
    padding: 20px;
  }

  .page-register__step-title {
    font-size: 20px;
  }

  .page-register__step-text {
    font-size: 15px;
  }

  .page-register__button-group {
    flex-direction: column;
    gap: 15px;
  }

  /* Benefits Section */
  .page-register__benefits-section {
    padding: 40px 0;
  }

  .page-register__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__benefit-card {
    padding: 20px;
  }

  .page-register__benefit-title {
    font-size: 18px;
  }

  .page-register__benefit-text {
    font-size: 15px;
  }

  /* Security Section */
  .page-register__security-section {
    padding: 40px 0;
  }

  .page-register__security-text-block h3 {
    font-size: 20px;
  }

  .page-register__security-text-block p {
    font-size: 15px;
  }

  /* FAQ Section */
  .page-register__faq-section {
    padding: 40px 0;
  }

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-register__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

  /* Final CTA Section */
  .page-register__cta-final-section {
    padding: 40px 0;
  }

  /* 通用图片与容器 */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-image-wrapper,
  .page-register__hero-content,
  .page-register__step-card,
  .page-register__benefit-card,
  .page-register__security-content,
  .page-register__security-text-block,
  .page-register__faq-list,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-register__cta-button,
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for buttons */
  }

  /* Placeholder styles for consistency as per prompt's CSS example */
  .page-register__blog-masonry {grid-template-columns:1fr}
  .page-register__game-slide{flex:0 0 160px;max-width:160px}
  .page-register__banners-top-wrapper{grid-template-columns:repeat(3,minmax(0,1fr))}
  .page-register__banner-item img{}
  .page-register__blog-slide{flex:0 0 100%;max-width:100%}
}