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

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

.page-register__section {
  padding: 60px 0;
  text-align: center;
}

.page-register__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #f9f9f9;
  color: #333333;
}

.page-register__section-title {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-register__text-block {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
}

.page-register__text-block .page-register__highlight {
  font-weight: bold;
  color: inherit; /* Inherit color from parent to maintain contrast */
}

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__text-block {
  color: #ffffff;
}

.page-register__dark-bg .page-register__text-block .page-register__highlight {
  color: #FFFFFF;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 10px 0 60px 0; /* Small top padding, relying on body padding for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #ffffff;
  text-align: center;
}

.page-register__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-register__description {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #ffffff;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-register__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.page-register__btn-large {
  min-width: 200px;
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
}

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

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

.page-register__feature-item:hover {
  transform: translateY(-5px);
}

.page-register__feature-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-register__feature-description {
  font-size: 16px;
  color: #555555;
}

/* How to Register Section */
.page-register__how-to-register-section {
  padding: 80px 0;
}

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

.page-register__step-item {
  text-align: left;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.page-register__step-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

/* Games Section */
.page-register__games-section {
  padding: 80px 0;
}

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

.page-register__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__game-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-register__game-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-register__game-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-register__btn-link {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-register__btn-link:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
}

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

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

.page-register__promo-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-register__promo-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-register__promo-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

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

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

.page-register__security-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-register__security-subtitle {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-register__security-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

.page-register__security-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  min-width: 200px;
  min-height: 200px;
}

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

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}

details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #f5f5f5;
}

.page-register__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-register__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 80px 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__section-title {
    font-size: 32px;
  }

  .page-register__text-block {
    font-size: 17px;
  }

  .page-register__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .page-register__description {
    font-size: 18px;
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__games-grid,
  .page-register__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-register__feature-title,
  .page-register__step-title,
  .page-register__game-title,
  .page-register__promo-title,
  .page-register__security-subtitle {
    font-size: 20px;
  }

  .page-register__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__section {
    padding: 40px 0;
  }

  .page-register__hero-section {
    padding: 10px 0 40px 0; /* Small top padding */
  }

  .page-register__hero-image {
    object-fit: contain !important; /* Ensure image fits well on mobile */
  }

  .page-register__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-register__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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: 12px 20px;
    font-size: 16px;
  }

  .page-register__section-title {
    font-size: 28px;
  }

  .page-register__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__games-grid,
  .page-register__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-register__feature-item,
  .page-register__step-item,
  .page-register__game-card,
  .page-register__promo-card {
    padding: 20px;
  }

  .page-register__feature-title,
  .page-register__step-title,
  .page-register__game-title,
  .page-register__promo-title,
  .page-register__security-subtitle {
    font-size: 18px;
  }

  .page-register__feature-description,
  .page-register__step-description,
  .page-register__game-description,
  .page-register__promo-description,
  .page-register__security-description {
    font-size: 15px;
  }

  .page-register__step-image,
  .page-register__game-image,
  .page-register__promo-image,
  .page-register__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  .page-register__security-text {
    min-width: unset;
  }

  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px;
  }

  .page-register__faq-qtext {
    font-size: 16px;
  }

  .page-register__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 15px 15px;
  }

  .page-register__faq-answer p {
    font-size: 15px;
  }

  /* General image responsiveness for all images within .page-register */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-content,
  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__games-grid,
  .page-register__promo-grid,
  .page-register__security-content,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Placeholder for homepage specific mobile media queries as per prompt, even if not directly used on register page */
/* Banner __hero-section: 849px object-fit:contain;顶距约 10px，禁止 var(--header-offset) 双倍 */
/* This is covered by .page-register__hero-image { object-fit: contain !important; } in the general 768px media query and the fixed padding. */

/* Three-link buttons __access-links: 768px single column, max-width:100% */
/* Not present on this page, but if it were, it would be handled by general button rules. */

/* Five-entry __category-lobby: aspect-ratio:1/1; no border/box-shadow; no visible text outside image */
/* Not present on this page. Example if it were: */
/*
@media (max-width: 768px) {
  .page-register__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 15px !important;
  }
  .page-register__category-card-link {
    aspect-ratio: 1/1 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .page-register__category-card-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }
  .page-register__category-card-text { display: none !important; } 
}
*/

/* Blog slider __blog-slider: 768px single card visible, arrows clickable */
/* Not present on this page. Example if it were: */
/*
@media (max-width: 768px) {
  .page-register__blog-slider-track {
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
  }
  .page-register__post-item {
    flex: 0 0 90%; 
    scroll-snap-align: start;
  }
}
*/