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

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

.page-register__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Max height for hero image */
}

.page-register__hero-content {
  position: relative; /* Not absolute to avoid overlapping image */
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay for text readability */
  width: 100%;
  max-width: 900px;
  margin-top: -100px; /* Pull content slightly over the bottom of the image for visual flow */
  z-index: 1;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__main-heading {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #FFFF00; /* Custom color for H1 */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-register__section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #FFFF00; /* Custom color for headings */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-register__dark-section {
  background-color: #017439; /* Primary brand color for dark sections */
  color: #ffffff;
  padding: 60px 0;
}

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

.page-register__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-register__benefit-title {
  font-size: 1.5rem;
  color: #FFFF00; /* Custom color for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__benefit-text {
  font-size: 1rem;
  color: #ffffff;
}

.page-register__guide-section {
  padding: 60px 0;
  background-color: #000000; /* Body background is black */
  color: #ffffff;
}

.page-register__guide-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-register__guide-steps {
  flex: 2;
  min-width: 300px;
}

.page-register__guide-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.page-register__step-number {
  width: 40px;
  height: 40px;
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.5rem;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-register__step-title {
  font-size: 1.4rem;
  color: #FFFF00; /* Custom color for titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 1rem;
  color: #ffffff;
}

.page-register__security-section {
  padding: 60px 0;
}

.page-register__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap-reverse; /* Image after text on mobile */
}

.page-register__security-list {
  flex: 2;
  min-width: 300px;
  list-style: none;
  padding: 0;
}

.page-register__security-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-bottom: 20px;
  border-left: 5px solid #C30808; /* Custom color accent */
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-register__security-title {
  font-size: 1.3rem;
  color: #FFFF00; /* Custom color for titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__security-text {
  font-size: 1rem;
  color: #ffffff;
}

.page-register__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-register__explore-games-section {
  padding: 60px 0;
  background-color: #000000; /* Body background is black */
  color: #ffffff;
}

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

.page-register__game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

.page-register__game-title {
  font-size: 1.3rem;
  color: #FFFF00; /* Custom color for titles */
  padding: 15px;
  font-weight: bold;
}

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

.page-register__game-title a:hover {
  color: #C30808; /* Custom color for register/login on hover */
}

.page-register__game-text {
  font-size: 0.95rem;
  color: #ffffff;
  padding: 0 15px 15px;
}

.page-register__promotions-section {
  padding: 60px 0;
}

.page-register__promotion-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-register__promotion-text-block {
  flex: 2;
  min-width: 300px;
}

.page-register__promotion-text {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-register__promotion-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-register__faq-section {
  padding: 60px 0;
  background-color: #000000; /* Body background is black */
  color: #ffffff;
}

.page-register__faq-list {
  margin-top: 40px;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFFF00; /* Custom color for titles */
  cursor: pointer;
  background-color: #017439; /* Primary brand color */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-register__faq-item[open] .page-register__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-register__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFFF00;
}

.page-register__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5); /* Slightly darker background for answer */
}

.page-register__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-register__final-cta-content {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 50px 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-register__button--primary {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

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

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

.page-register__button--secondary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-register__cta-section--center {
  text-align: center;
  margin-top: 40px;
}

/* Ensure all images are responsive by default */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register__section,
.page-register__card,
.page-register__container,
.page-register__hero-content,
.page-register__hero-cta-buttons,
.page-register__cta-section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-register__hero-content {
    margin-top: -80px;
  }
  .page-register__main-heading {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-register__section-heading {
    font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  }
  .page-register__hero-cta-buttons {
    gap: 15px;
  }
  .page-register__button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-register__benefits-grid,
  .page-register__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-register__guide-content,
  .page-register__security-content,
  .page-register__promotion-content {
    flex-direction: column;
    text-align: center;
  }
  .page-register__guide-image-wrapper,
  .page-register__security-image-wrapper,
  .page-register__promotion-image-wrapper {
    order: -1; /* Image first on smaller screens */
    margin-bottom: 30px;
  }
  .page-register__guide-steps,
  .page-register__security-list,
  .page-register__promotion-text-block {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    padding-top: 10px !important;
  }
  .page-register__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
    border-radius: 0; /* No border-radius on small screens */
  }
  .page-register__main-heading {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-register__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-register__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-register__button,
  .page-register__button--primary,
  .page-register__button--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-left: 15px;
    padding-right: 15px;
  }
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-register__section-heading {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .page-register__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-register__dark-section,
  .page-register__guide-section,
  .page-register__security-section,
  .page-register__explore-games-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 40px 0;
  }
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__benefits-grid,
  .page-register__games-grid {
    grid-template-columns: 1fr;
  }
  .page-register__benefit-item,
  .page-register__game-card,
  .page-register__security-item,
  .page-register__faq-item,
  .page-register__final-cta-content {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-register__game-image {
    height: 180px;
  }
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-content,
  .page-register__hero-cta-buttons,
  .page-register__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__guide-image-wrapper,
  .page-register__security-image-wrapper,
  .page-register__promotion-image-wrapper {
    margin-bottom: 20px;
  }
  .page-register__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-register__faq-answer {
    padding: 15px;
  }
}