.page-register {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #000; /* Inherited from body, explicit for clarity */
}

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

.page-register__dark-bg {
  background-color: #0A2E36;
  color: #ffffff;
}

.page-register__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjust top padding for header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding-top: var(--header-offset, 120px);
}

.page-register__hero-content {
  max-width: 700px;
  margin-bottom: 40px;
}

.page-register__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__hero-image-wrapper {
  display: none; /* Hidden on desktop for hero, content takes precedence */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #FFD700;
  color: #0A2E36;
  border: 2px solid #FFD700;
}

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

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

.page-register__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2E36;
}

.page-register__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #FFD700;
}

.page-register__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

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

.page-register__benefit-icon {
  width: 200px; /* Min size requirement */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-register__benefit-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-register__benefit-description {
  font-size: 1em;
  color: #cccccc;
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
}

.page-register__registration-form {
  max-width: 500px;
  margin: 40px auto 0;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-register__form-group {
  margin-bottom: 20px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFD700;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  background-color: #0A2E36;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: #999999;
}

.page-register__form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.page-register__checkbox {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  accent-color: #FFD700; /* Style checkbox with accent color */
}

.page-register__checkbox-label {
  font-size: 0.95em;
  color: #cccccc;
}

.page-register__form-link {
  color: #FFD700;
  text-decoration: none;
}

.page-register__form-link:hover {
  text-decoration: underline;
}

.page-register__form-submit-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background-color: #FFD700;
  color: #0A2E36;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.page-register__form-submit-btn:hover {
  background-color: #e6c200;
}

.page-register__form-submit-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  line-height: 1.2;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 25px;
  color: #cccccc;
  font-size: 1em;
}

/* Explore Section */
.page-register__explore-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-register__game-card {
  display: block;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-register__game-title {
  font-size: 1.3em;
  font-weight: bold;
  padding: 20px;
  text-align: center;
  color: #FFD700;
}

/* CTA Section */
.page-register__cta-section {
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}

.page-register__cta-section .page-register__btn-secondary {
  margin-top: 30px;
  background-color: #FFD700;
  color: #0A2E36;
  border-color: #FFD700;
}

.page-register__cta-section .page-register__btn-secondary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #0A2E36;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: #0A2E36;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__faq-question:hover {
  background-color: #08262d;
}

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

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  padding-bottom: 10px; /* Add some spacing if answer is multi-paragraph */
}

/* Contact CTA Section */
.page-register__contact-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-register__contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-register__hero-section .page-register__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .page-register__hero-content {
    text-align: left;
    margin-bottom: 0;
    max-width: 55%;
  }
  .page-register__hero-image-wrapper {
    display: block;
    max-width: 40%;
  }
  .page-register__hero-title {
    font-size: 3.8em;
  }
  .page-register__hero-description {
    font-size: 1.3em;
  }
  .page-register__btn-primary {
    margin-right: 20px;
  }
}

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

  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-section {
    padding: 80px 0 40px; /* Adjusted padding for mobile */
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset */
  }

  .page-register__hero-title {
    font-size: 2.2em;
  }

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

  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Images responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__hero-image-wrapper {
    display: block; /* Show hero image on mobile below text */
    margin-top: 30px;
  }

  .page-register__benefit-icon {
    width: 150px; 
    height: auto;
  }

  .page-register__game-image {
    height: 150px;
  }

  /* Buttons responsiveness */
  .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;
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }

  .page-register__contact-buttons {
    flex-direction: column;
    gap: 0; /* Remove gap if stacking */
  }

  .page-register__form-submit-btn {
    margin-bottom: 0;
  }

  .page-register__registration-form,
  .page-register__faq-list {
    padding: 20px;
  }
  
  .page-register__faq-question,
  .page-register__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure content areas don't overflow */
.page-register__hero-section,
.page-register__benefits-section,
.page-register__form-section,
.page-register__explore-section,
.page-register__cta-section,
.page-register__faq-section,
.page-register__contact-cta-section {
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.page-register__form-submit-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  line-height: normal; /* Ensure text fits */
  padding: 15px 0;
}

.page-register__form-submit-btn a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}