.page-register {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: var(--background-color, #FFFFFF);
}

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

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

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

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

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

.page-register__section-title--light {
  color: #ffffff;
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-register__section-description--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-register__hero-content {
  flex: 1;
  padding: 40px;
  z-index: 1;
  max-width: 50%;
  box-sizing: border-box;
}

.page-register__hero-title {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: left;
  color: #FFFF00;
}

.page-register__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  text-align: left;
  color: #f0f0f0;
}

.page-register__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

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

.page-register__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

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

.page-register__btn-secondary:hover {
  background-color: #a00606;
  border-color: #FFFF00;
  transform: translateY(-2px);
}

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

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

/* Why Register Section */
.page-register__why-register {
  background-color: #ffffff;
}

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

.page-register__feature-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  object-fit: cover;
}

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

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

/* Registration Steps Section */
.page-register__registration-steps {
  background-color: #017439;
}

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

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: #ffffff;
}

.page-register__step-number {
  font-size: 48px;
  font-weight: bold;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-register__step-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-register__step-text {
  font-size: 17px;
  color: #f0f0f0;
}

.page-register__steps-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 60px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Security Section */
.page-register__security {
  background-color: #ffffff;
}

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

.page-register__security-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

.page-register__security-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 60px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Common Issues Section */
.page-register__common-issues {
  background-color: #f5f5f5;
}

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

.page-register__issue-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

/* Member Benefits Section */
.page-register__member-benefits {
  background-color: #017439;
}

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

.page-register__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  color: #ffffff;
}

.page-register__benefit-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-register__benefit-text {
  font-size: 17px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-register__faq {
  background-color: #ffffff;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-toggle {
  font-size: 24px;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

.page-register__faq-answer p {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-register__cta-final {
  background-color: #017439;
  text-align: center;
  padding: 80px 0;
}

.page-register__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-register__cta-final .page-register__hero-cta-buttons {
  justify-content: center;
  margin-top: 40px;
}

.page-register__cta-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 60px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General image responsiveness */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-register__container {
    padding: 15px;
  }

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

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

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

  /* HERO Section Mobile */
  .page-register__hero-section {
    flex-direction: column;
    padding-top: var(--header-offset, 120px) !important;
    min-height: auto;
    text-align: center;
  }

  .page-register__hero-content {
    max-width: 100%;
    padding: 20px;
  }

  .page-register__hero-title {
    font-size: 32px;
    text-align: center;
  }

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

  .page-register__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-register__hero-image-wrapper {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-register__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Why Register Section Mobile */
  .page-register__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__feature-icon {
    width: 60px;
    height: 60px;
  }

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

  /* Registration Steps Section Mobile */
  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__steps-image {
    margin-top: 40px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Security Section Mobile */
  .page-register__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__security-image {
    margin-top: 40px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Common Issues Section Mobile */
  .page-register__issues-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* Member Benefits Section Mobile */
  .page-register__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* FAQ Section Mobile */
  .page-register__faq-question {
    font-size: 16px;
    padding: 15px;
  }

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

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

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

  .page-register__cta-final .page-register__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-register__cta-image {
    margin-top: 40px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Universal image and container rules for mobile */
  .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__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Ensure no horizontal scroll for product/gameshow grid if it were present */
  .page-register__products-section,
  .page-register__products-container,
  .page-register__products-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}