.page-register {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.page-register__dark-section {
  background-color: #0A2342;
  color: #ffffff;
}

.page-register__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #F5B041;
  font-weight: bold;
}

.page-register__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.8);
}

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

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

/* Hero Section */
.page-register__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  position: relative;
  overflow: hidden;
  text-align: left;
}

.page-register__hero-content {
  flex: 1;
  max-width: 600px;
  padding: 20px;
  z-index: 1;
}

.page-register__hero-title {
  font-size: 3.5em;
  color: #F5B041;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.3em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

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

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

/* CTA Button Styles */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__btn-primary {
  background-color: #F5B041;
  color: #0A2342;
}

.page-register__btn-primary:hover {
  background-color: #e09f2d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 176, 65, 0.4);
}

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

.page-register__btn-secondary:hover {
  background-color: #F5B041;
  color: #0A2342;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 176, 65, 0.4);
}

/* Why Join Section */
.page-register__why-join-section .page-register__section-intro {
  color: #ffffff;
}

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

.page-register__feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 176, 65, 0.3);
}

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

.page-register__feature-title {
  font-size: 1.5em;
  color: #F5B041;
  margin-bottom: 15px;
}

.page-register__feature-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* How to Register Section */
.page-register__how-to-register-section .page-register__section-intro {
  color: rgba(255, 255, 255, 0.8);
}

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

.page-register__step-card {
  position: relative;
  padding-top: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 176, 65, 0.3);
  text-align: center;
}

.page-register__step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #F5B041;
  color: #0A2342;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-register__step-title {
  font-size: 1.4em;
  color: #F5B041;
  margin-bottom: 10px;
}

.page-register__step-description {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
}

.page-register__note {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 40px;
}

.page-register__note-highlight {
  color: #F5B041;
}

/* Games Showcase Section */
.page-register__games-showcase .page-register__section-intro {
  color: #ffffff;
}

.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: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 176, 65, 0.3);
}

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

.page-register__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-register__game-title a {
  color: #F5B041;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__game-title a:hover {
  color: #ffffff;
}

.page-register__game-description {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
}

/* Security Section */
.page-register__security-section .page-register__section-intro {
  color: rgba(255, 255, 255, 0.8);
}

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

.page-register__security-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 176, 65, 0.3);
}

.page-register__security-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-register__security-title {
  font-size: 1.4em;
  color: #F5B041;
  margin-bottom: 10px;
}

.page-register__security-description {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
}

/* FAQ Section */
.page-register__faq-section .page-register__section-intro {
  color: #ffffff;
}

.page-register__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 176, 65, 0.3);
  overflow: hidden;
  color: #ffffff;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #F5B041;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #F5B041;
  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.4s ease-out, padding 0.4s ease-out;
  color: rgba(255, 255, 255, 0.7);
}

.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: 0;
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
  background-color: #0A2342;
  color: #ffffff;
}

.page-register__cta-final-section .page-register__section-title {
  font-size: 3em;
}

.page-register__cta-final-section .page-register__section-intro {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-section {
    flex-direction: column;
    text-align: center;
  }

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

  .page-register__hero-image-wrapper {
    justify-content: center;
    margin-top: 30px;
  }

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

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

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

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

  .page-register__hero-section {
    min-height: auto;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    padding-bottom: 40px;
  }

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

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

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

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

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

  .page-register__container {
    padding: 0 15px;
  }

  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsive rules */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  /* Ensure image containers do not overflow */
  .page-register__hero-image-wrapper,
  .page-register__feature-card,
  .page-register__step-card,
  .page-register__game-card,
  .page-register__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-register__feature-icon,
  .page-register__security-icon {
    width: 80px;
    height: 80px;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-register__game-image {
    height: 180px;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-register__faq-question h3 {
    font-size: 1.1em;
  }

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

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

  .page-register__cta-final-section .page-register__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }

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

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

  .page-register__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}