.page-register {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-dark: #08160F;
  --bg-card: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  color: var(--text-main);
  background-color: var(--bg-dark);
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 20px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly transparent background for readability */
  border-radius: 10px;
}

.page-register__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-register__hero-description {
  font-size: clamp(1em, 2.5vw, 1.3em);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-register__cta-button--center {
  margin: 20px auto 0 auto;
  display: block;
  max-width: 300px;
}

.page-register__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-register__introduction-section,
.page-register__games-section,
.page-register__security-support-section {
  padding: 80px 20px;
  color: #333333; /* Light background, dark text */
  background-color: #ffffff;
}

.page-register__guide-section,
.page-register__promotions-section,
.page-register__cta-final-section {
  padding: 80px 20px;
  color: var(--text-main);
  background-color: var(--bg-dark);
}

.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-register__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-register__introduction-section .page-register__section-title,
.page-register__games-section .page-register__section-title,
.page-register__security-support-section .page-register__section-title {
  color: var(--deep-green);
}

.page-register__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: justify;
  color: inherit;
}

.page-register__text-block--note {
  background-color: var(--bg-card);
  padding: 20px;
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
  margin-top: 40px;
  color: var(--text-secondary);
}

.page-register__text-block--note strong {
  color: var(--gold-color);
}

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

.page-register__feature-item {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-register__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-register__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-register__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-register__step-by-step {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: var(--bg-card);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-register__step-number {
  min-width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: 700;
  flex-shrink: 0;
}

.page-register__step-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-register__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

.page-register__game-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
}

.page-register__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-register__game-card h3,
.page-register__game-card p,
.page-register__game-card a {
  padding: 0 20px;
}

.page-register__game-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--deep-green);
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-register__game-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-register__game-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  margin: 0 20px 20px 20px;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-register__game-link:hover {
  background-color: var(--secondary-color);
}

.page-register__promotion-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.page-register__promotion-item {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

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

.page-register__promotion-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-register__promotion-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-register__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
  text-align: center;
}

.page-register__info-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-register__info-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--deep-green);
  margin-bottom: 10px;
}

.page-register__info-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-register__section-subtitle {
  font-size: 2em;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  color: var(--deep-green);
}

.page-register__faq-list {
  margin-top: 30px;
}

.page-register__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-register__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: var(--deep-green);
  background-color: #ffffff;
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  background-color: #fcfcfc;
  border-top: 1px solid #e0e0e0;
}

.page-register__cta-final-section {
  padding: 100px 20px;
  text-align: center;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

.page-register__cta-final-section .page-register__section-title {
  color: var(--gold-color);
  margin-bottom: 30px;
}

.page-register__cta-final-section .page-register__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-section {
    padding: 40px 15px;
  }

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

  .page-register__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.5em);
  }

  .page-register__introduction-section,
  .page-register__games-section,
  .page-register__security-support-section,
  .page-register__guide-section,
  .page-register__promotions-section,
  .page-register__cta-final-section {
    padding: 60px 15px;
  }

  .page-register__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-register__step-number {
    margin-bottom: 15px;
  }

  .page-register__game-card h3,
  .page-register__game-card p,
  .page-register__game-card a {
    padding: 0 15px;
  }

  .page-register__game-link {
    margin: 0 15px 15px 15px;
  }
}

@media (max-width: 768px) {
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__hero-section,
  .page-register__introduction-section,
  .page-register__games-section,
  .page-register__security-support-section,
  .page-register__guide-section,
  .page-register__promotions-section,
  .page-register__cta-final-section,
  .page-register__container,
  .page-register__features-grid,
  .page-register__step-by-step,
  .page-register__games-grid,
  .page-register__promotion-list,
  .page-register__info-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-register__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body handles header offset, small decorative space */
  }

  .page-register__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-register__hero-description {
    font-size: 1em;
  }

  .page-register__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
    margin-bottom: 30px;
  }

  .page-register__text-block {
    font-size: 0.95em;
  }

  .page-register__cta-button,
  .page-register__cta-button--center,
  .page-register__cta-button--large,
  .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;
    font-size: 1em;
  }

  .page-register__features-grid,
  .page-register__games-grid,
  .page-register__promotion-list,
  .page-register__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-register__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-register__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 0.95em;
  }
  
  .page-register__game-card h3,
  .page-register__game-card p,
  .page-register__game-card a {
    padding: 0 10px;
  }

  .page-register__game-link {
    margin: 0 10px 10px 10px;
  }
}