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

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

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

.page-register__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #0A2239; /* Dark blue background for hero */
  color: #ffffff;
}

.page-register__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-register__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #E0B020; /* Gold title for contrast */
  line-height: 1.2;
  font-weight: bold;
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #E0B020; /* Gold button */
  color: #0A2239; /* Dark blue text for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__cta-button:hover {
  background: #ffc107; /* Slightly lighter gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--centered {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.page-register__cta-button--large {
    padding: 20px 50px;
    font-size: 1.5em;
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
  background-color: #f4f4f4;
  color: #333333;
}

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

.page-register__benefit-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-register__benefit-card img {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__card-title {
  font-size: 1.5em;
  color: #0A2239;
  margin-bottom: 15px;
}

.page-register__benefit-card p {
  font-size: 1em;
  color: #555555;
}

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

.page-register__steps-section .page-register__section-title {
  color: #E0B020;
}

.page-register__steps-section .page-register__section-intro {
  color: #f0f0f0;
}

.page-register__steps-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #E0B020;
  flex-shrink: 0;
  line-height: 1;
}

.page-register__step-content .page-register__card-title {
  color: #E0B020;
  margin-top: 0;
  font-size: 1.8em;
}

.page-register__step-content p {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-register__step-content img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Games Section */
.page-register__games-section {
  padding: 80px 0;
  background-color: #f4f4f4;
  color: #333333;
}

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

.page-register__game-card {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-register__game-card img {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__game-card .page-register__card-title {
  color: #0A2239;
  font-size: 1.4em;
}

.page-register__game-card p {
  color: #555555;
  font-size: 0.95em;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #0A2239;
  color: #ffffff;
}

.page-register__promotions-section .page-register__section-title {
  color: #E0B020;
}

.page-register__promotions-section .page-register__section-intro {
  color: #f0f0f0;
}

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

.page-register__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-register__promo-card img {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__promo-card .page-register__card-title {
  color: #E0B020;
  font-size: 1.5em;
}

.page-register__promo-card p {
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-register__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: #E0B020;
  color: #0A2239;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__btn-secondary:hover {
  background: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Security & Support Section */
.page-register__security-support-section {
  padding: 80px 0;
  background-color: #f4f4f4;
  color: #333333;
}

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

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

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

.page-register__feature-item img {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__feature-item .page-register__card-title {
  color: #0A2239;
  font-size: 1.4em;
}

.page-register__feature-item p {
  color: #555555;
}

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

.page-register__faq-section .page-register__section-title {
  color: #E0B020;
}

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

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #1a3a5a; /* Slightly lighter dark blue for answer background */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0A2239;
  border: 1px solid #1a3a5a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-register__faq-question:hover {
  background: #1a3a5a;
  border-color: #2a4a6a;
}

.page-register__faq-question:active {
  background: #2a4a6a;
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #E0B020; /* Gold for question text */
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #E0B020;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

/* Call to Action Section */
.page-register__call-to-action {
  padding: 80px 0;
  background-color: #f4f4f4;
  text-align: center;
  color: #333333;
}

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

.page-register__call-to-action .page-register__section-title {
  margin-bottom: 20px;
}

.page-register__call-to-action p {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #555555;
}

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

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

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-register__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

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

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

  .page-register__section-intro {
    font-size: 0.95em;
  }

  .page-register__benefits-grid, .page-register__game-categories, .page-register__promo-grid, .page-register__security-features {
    grid-template-columns: 1fr;
  }

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

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

  .page-register__step-content img {
    max-width: 100%;
  }

  .page-register__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-register__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

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

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

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

  /* Mobile image responsiveness */
  .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-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__games-section,
  .page-register__promotions-section,
  .page-register__security-support-section,
  .page-register__faq-section,
  .page-register__call-to-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-register__cta-button,
  .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;
    margin-bottom: 15px; /* Add space between stacked buttons */
  }

  .page-register__cta-button:last-child,
  .page-register__btn-secondary:last-child {
    margin-bottom: 0;
  }

  .page-register__cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure contrast for specific elements on light background */
.page-register__light-bg {
  color: #333333;
  background: #f4f4f4;
}

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

.page-register__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

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