/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Body background is light */
}

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

/* Header offset for main content, applied to hero section as it's the first content element */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px);
}

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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background: linear-gradient(135deg, #017439, #005f2f); /* Brand green gradient */
  color: #FFFFFF;
  text-align: center;
  padding-bottom: 80px; /* Adjusted to keep padding-top for offset */
}

.page-register__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-register__hero-content {
  max-width: 700px;
  text-align: center;
  z-index: 1;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Register/Login font color */
}

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

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

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

.page-register__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

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

.page-register__hero-image-wrapper {
  margin-top: 40px;
}

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

/* Why Register Section */
.page-register__why-register-section {
  background-color: #f8f8f8;
  padding: 80px 0;
  color: #333333;
}

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

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

.page-register__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-register__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

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

.page-register__feature-description {
  font-size: 1em;
  color: #666666;
}

/* How To Section */
.page-register__how-to-section {
  background-color: #017439;
  padding: 80px 0;
  color: #FFFFFF;
}

.page-register__how-to-section .page-register__section-title {
  color: #FFFF00; /* Title in brand color for dark background */
}

.page-register__how-to-section .page-register__note {
  color: #f0f0f0;
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

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

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

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 3px solid #FFFF00;
  border-radius: 50%;
}

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

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

.page-register__step-description a {
  color: #FFFF00; /* Link in step description */
  text-decoration: underline;
}

.page-register__step-description a:hover {
  color: #ffcc00;
}

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

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

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

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

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

.page-register__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-register__game-title {
  font-size: 1.4em;
  color: #017439;
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-register__game-title a {
  color: #017439;
  text-decoration: none;
}

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

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

/* Promotions Section */
.page-register__promotions-section {
  background-color: #005f2f; /* Darker brand green */
  padding: 80px 0;
  color: #FFFFFF;
}

.page-register__promotions-section .page-register__section-title {
  color: #FFFF00; /* Title in brand color for dark background */
}

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

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

.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.page-register__promo-description {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 20px 20px 20px;
}

.page-register__promo-card .page-register__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
}

.page-register__promo-card .page-register__btn-primary:hover {
  background-color: #a00606;
}

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

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

.page-register__faq-item {
  background-color: #FFFFFF;
  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 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none;
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  margin-left: 15px;
}

.page-register__faq-answer {
  padding: 20px 25px;
  background-color: #FFFFFF;
  color: #555555;
  font-size: 1em;
  line-height: 1.7;
}

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

.page-register__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-register__faq-answer a:hover {
  color: #005f2f;
}

/* Conclusion Section */
.page-register__conclusion-section {
  background: linear-gradient(135deg, #017439, #005f2f);
  padding: 80px 0;
  color: #FFFFFF;
  text-align: center;
}

.page-register__conclusion-section .page-register__section-title {
  color: #FFFF00;
}

.page-register__conclusion-section .page-register__section-intro {
  color: #f0f0f0;
  margin-bottom: 50px;
}

.page-register__cta-final {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Dark background elements */
.page-register__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-register__dark-bg .page-register__section-title {
  color: #FFFF00;
}

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

/* Light background elements */
.page-register__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-register__light-bg .page-register__section-title {
  color: #017439;
}

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

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

  .page-register__hero-section {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    flex-direction: column;
    text-align: center;
    padding: var(--header-offset, 120px) 20px 60px 20px; /* Adjust padding for mobile hero */
    min-height: auto;
  }

  .page-register__hero-content,
  .page-register__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
  }

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

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    margin-bottom: 10px; /* Space between stacked buttons */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-cta-buttons,
  .page-register__cta-bottom,
  .page-register__cta-final {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-register__container,
  .page-register__section,
  .page-register__card,
  .page-register__promo-card,
  .page-register__game-card,
  .page-register__feature-card,
  .page-register__step-item,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-register__game-image {
    height: auto; /* Allow auto height for mobile to maintain aspect ratio */
  }

  .page-register__promo-image {
    height: auto; /* Allow auto height for mobile to maintain aspect ratio */
  }

  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-register__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-register__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
}

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

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

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