.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 40px;
  background-color: #FFFFFF;
  color: #333333;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-register__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #017439;
}

.page-register__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.page-register__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-register__btn-register {
  background-color: #C30808; /* Custom color for register */
  color: #FFFFFF; /* Ensures WCAG AA contrast */
}

.page-register__btn-register:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-register__section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-register__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #017439;
}

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

.page-register__feature-card,
.page-register__info-card,
.page-register__step-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-register__feature-card:hover,
.page-register__info-card:hover,
.page-register__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-register__card-title,
.page-register__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-register__card-text,
.page-register__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
}

.page-register__dark-section {
  background-color: #017439;
  color: #FFFFFF;
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__card-title {
  color: #FFFFFF;
}

.page-register__dark-section .page-register__card-text {
  color: #f0f0f0;
}

.page-register__guide-cta {
  margin-top: 40px;
}

.page-register__explore-games .page-register__section-intro {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #555555;
}

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

.page-register__game-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-register__game-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-register__game-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

.page-register__game-card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-register__game-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #017439;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-register__game-button:hover {
  background-color: #005f2c;
}

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #f5f5f5;
}

.page-register__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-register__faq-answer p {
  margin: 0;
  padding-top: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.page-register__final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__final-cta-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-register__final-cta-content {
  max-width: 800px;
}

.page-register__btn-login {
  background-color: #C30808; /* Custom color for login */
  color: #FFFFFF; /* Ensures WCAG AA contrast */
}

.page-register__btn-login:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 0 15px;
  }

  .page-register__section {
    padding: 30px 15px;
    margin: 30px auto;
  }

  .page-register__grid-container {
    gap: 20px;
  }

  .page-register__game-cards-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: 10px; /* Small top padding, shared.css handles body padding */
    padding-bottom: 30px;
  }

  .page-register__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-register__hero-image,
  .page-register__card-image,
  .page-register__game-card-image,
  .page-register__final-cta-image,
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__main-title {
    font-size: 2rem;
  }

  .page-register__description {
    font-size: 1rem;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-register__cta-button,
  .page-register__btn-register,
  .page-register__btn-login,
  .page-register__game-button,
  .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 20px;
    font-size: 1rem;
  }

  .page-register__section {
    margin: 20px auto;
    padding: 25px 15px;
  }

  .page-register__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-register__grid-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-register__feature-card,
  .page-register__info-card,
  .page-register__step-card,
  .page-register__game-card {
    padding: 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-register__card-title,
  .page-register__step-title {
    font-size: 1.25rem;
  }

  .page-register__card-text,
  .page-register__step-text {
    font-size: 0.95rem;
  }

  .page-register__explore-games .page-register__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-register__game-cards-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px;
  }

  .page-register__faq-qtext {
    font-size: 15px;
  }

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

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

  .page-register__final-cta {
    padding: 40px 15px;
  }

  .page-register__final-cta-image {
    margin-bottom: 20px;
  }

  .page-register__final-cta-content {
    padding: 0 10px;
  }

  /* Ensure all containers with images/buttons are responsive */
  .page-register__section,
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__guide-section,
  .page-register__notes-section,
  .page-register__explore-games,
  .page-register__faq-section,
  .page-register__final-cta,
  .page-register__hero-image-wrapper,
  .page-register__grid-container,
  .page-register__game-cards-grid,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}