/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Ensuring consistency with body background */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 15px;
  background-color: #000;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

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

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

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

/* General Section Styles */
.page-register__section-title {
  font-size: 2.5em;
  color: #FFB800;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-register__dark-bg {
  background-color: #000;
  color: #ffffff;
  padding: 60px 0;
}

/* Buttons */
.page-register__btn-primary {
  display: inline-block;
  background-color: #E44D26;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #E44D26;
}

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

.page-register__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFB800;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFB800;
  margin-left: 20px;
}

.page-register__btn-secondary:hover {
  background-color: #FFB800;
  color: #000;
  transform: translateY(-2px);
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-register__cta-buttons--center {
  text-align: center;
}

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

/* Why Join Section */
.page-register__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-register__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

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

.page-register__feature-text {
  font-size: 1em;
  color: #555555;
}

/* Steps Section */
.page-register__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__step-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: #E44D26;
  color: #ffffff;
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-register__step-title {
  font-size: 1.6em;
  color: #FFB800;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-register__game-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

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

.page-register__game-card h3 {
  padding: 20px 20px 10px;
  font-size: 1.4em;
  color: #E44D26;
  font-weight: bold;
}

.page-register__game-card h3 a {
  color: #E44D26;
  text-decoration: none;
}

.page-register__game-card h3 a:hover {
  text-decoration: underline;
}

.page-register__game-text {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: #555555;
}

/* Security Section */
.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-register__security-text {
  flex: 1;
}

.page-register__security-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #cccccc;
}

.page-register__security-image-wrapper {
  flex: 1;
  text-align: center;
}

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

/* Promotions Section */
.page-register__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__promo-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.page-register__promo-title {
  padding: 20px 20px 10px;
  font-size: 1.4em;
  color: #E44D26;
  font-weight: bold;
}

.page-register__promo-text {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
}

/* FAQ Section */
.page-register__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-register__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-register__faq-title {
  margin: 0;
  color: inherit;
  font-size: 1.1em;
}

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

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

.page-register__faq-answer p {
  padding: 15px 0;
  margin: 0;
  font-size: 1em;
  color: #cccccc;
}

.page-register__faq-item.active .page-register__faq-question {
  background-color: #FFB800;
  color: #000;
}

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

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

/* Final CTA Section */
.page-register__cta-final-section {
  text-align: center;
  padding: 80px 15px;
}

.page-register__cta-final-content {
  max-width: 900px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.2em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__security-content {
    flex-direction: column;
  }
  .page-register__security-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .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;
    padding: 12px 15px !important;
    margin: 0 !important;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 0.95em;
  }
  .page-register__feature-card,
  .page-register__step-item,
  .page-register__game-card,
  .page-register__promo-card {
    margin-bottom: 20px;
  }
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !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;
  }
  .page-register__security-image-wrapper {
    padding: 0 15px;
  }
  .page-register__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-register__faq-answer p {
    padding: 10px 0;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 15px !important;
  }
}