.page-register {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f9f9f9;
}

/* 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);
  color: #ffffff;
  background-color: #003366; /* Use secondary brand color as background for dark-bg */
}

.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__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

/* General Section Styling */
.page-register__section {
  padding: 80px 20px;
}

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

.page-register__container--center {
  text-align: center;
}

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #003366; /* Secondary color for titles on light backgrounds */
}

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

.page-register__section-intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

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

/* Color Contrast Helpers */
.page-register__dark-bg {
  background-color: #003366;
  color: #ffffff;
}

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

/* CTA Buttons */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-register__btn-primary {
  background: #FF6600; /* Primary brand color */
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-register__btn-secondary {
  background: #ffffff;
  color: #FF6600; /* Primary brand color */
  border: 2px solid #FF6600;
}

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

.page-register__btn--large {
  padding: 18px 50px;
  font-size: 20px;
}

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

.page-register__benefit-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
}

.page-register__benefit-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

/* Registration Steps */
.page-register__registration-steps {
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
}

.page-register__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-register__step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FF6600; /* Primary color for step titles */
}

.page-register__step-item p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-register__link-text {
  color: #FF6600; /* Primary color for links */
  text-decoration: underline;
}

.page-register__link-text:hover {
  color: #e65c00;
}

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

.page-register__feature-item {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #003366;
}

/* Games Grid */
.page-register__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-register__game-card {
  text-align: center;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-register__game-card:hover {
  transform: translateY(-5px);
}

.page-register__game-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-register__game-card .page-register__card-title a {
  color: #003366;
  text-decoration: none;
}

.page-register__game-card .page-register__card-title a:hover {
  color: #FF6600;
}

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

/* Promotions List */
.page-register__promotion-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-register__promotion-item {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-register__promotion-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FF6600;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 30px;
}

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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, opacity 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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

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

.page-register__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #003366;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FF6600;
  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: #003366;
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 36px;
  }
  .page-register__section-title {
    font-size: 32px;
  }
  .page-register__hero-description,
  .page-register__section-intro {
    font-size: 16px;
  }
}

@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-image img {
    border-radius: 4px;
  }

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

  .page-register__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

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

  .page-register__btn--large {
    padding: 15px 40px;
    font-size: 18px;
  }

  .page-register__section {
    padding: 50px 15px;
  }

  .page-register__section-title {
    font-size: 26px;
  }

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

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

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

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

  .page-register__game-card,
  .page-register__benefit-card {
    padding: 20px;
  }

  .page-register__card-title {
    font-size: 18px;
  }

  .page-register__button-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__button-group .page-register__cta-button {
    width: 100%;
  }

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

  .page-register__promotion-title {
    font-size: 18px;
  }

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

  .page-register__faq-question h3 {
    font-size: 15px;
    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;
  }

  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}