.page-register {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #f5f5f5;
}

.page-register__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 500px;
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #FFF5E1; /* Text Main */
  width: 100%;
  box-sizing: border-box;
  margin-top: -100px; /* Overlap with image for visual effect, but not covering text */
}

.page-register__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD86A; /* Gold-like for title */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

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

.page-register__cta-button--gold {
  background: linear-gradient(180deg, #F4D34D 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
}

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

.page-register__why-join-section,
.page-register__games-section,
.page-register__faq-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-register__dark-bg {
  background-color: #B71C1C; /* Background color */
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-register__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #C91F17; /* Main color */
}

.page-register__text-main {
  color: #FFF5E1; /* Text Main */
}

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

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__section-intro {
  color: #FFF5E1; /* Text Main */
}

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

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

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

.page-register__feature-image,
.page-register__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-register__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #C91F17; /* Main color */
}

.page-register__card-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-register__card-link {
  display: inline-block;
  color: #E53935; /* Accent color */
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #E53935;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-register__card-link:hover {
  color: #C91F17;
  border-color: #C91F17;
}

.page-register__step-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  color: #FFF5E1; /* Text Main */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-register__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #F4D34D; /* Gold */
  color: #7A0E0E; /* Deep Red */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  border: 3px solid #F2B544; /* Border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
}

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

.page-register__notice-box {
  background-color: #D32F2F; /* Card BG */
  border: 2px solid #F2B544; /* Border */
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
  color: #FFF5E1; /* Text Main */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-register__notice-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD86A; /* Gold-like */
}

.page-register__notice-list {
  list-style-type: disc;
  margin-left: 20px;
  font-size: 1em;
}

.page-register__notice-list li {
  margin-bottom: 8px;
}

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

.page-register__conclusion-section {
  text-align: center;
  background-color: #7A0E0E; /* Deep Red */
  padding: 80px 0;
  color: #FFF5E1; /* Text Main */
}

.page-register__conclusion-section .page-register__section-title {
  color: #FFD86A; /* Gold-like */
}

.page-register__conclusion-section .page-register__section-intro {
  color: #FFF5E1; /* Text Main */
  margin-bottom: 40px;
}

/* FAQ Styles */
details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333;
}
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;
  font-weight: 600;
}
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;
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17; /* Main color */
  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;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-image {
    max-height: 400px;
  }

  .page-register__main-title {
    font-size: 2.8em;
  }

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

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

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

  .page-register__feature-card,
  .page-register__game-card {
    padding: 25px;
  }

  .page-register__card-title {
    font-size: 1.4em;
  }

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

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__hero-section {
    padding-top: 10px; /* Small top padding, consistent */
    margin-bottom: 20px;
  }

  .page-register__hero-image {
    max-height: 300px !important;
    object-fit: contain !important; /* Ensure image fits */
  }

  .page-register__hero-content {
    padding: 25px 15px;
    margin-top: -50px; /* Adjust overlap */
  }

  .page-register__main-title {
    font-size: 2em;
    letter-spacing: -0.5px; /* Adjust for smaller screens */
  }

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

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

  .page-register__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  .page-register__cta-container {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .page-register__why-join-section,
  .page-register__guide-section,
  .page-register__games-section,
  .page-register__faq-section,
  .page-register__conclusion-section {
    padding: 40px 0;
    margin-bottom: 20px;
  }

  .page-register__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-register__feature-card,
  .page-register__game-card,
  .page-register__step-item,
  .page-register__notice-box {
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-register__feature-image,
  .page-register__game-image {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__card-title {
    font-size: 1.3em;
  }

  .page-register__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    top: -15px;
  }

  .page-register__step-title {
    font-size: 1.4em;
    margin-top: 20px;
  }

  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; height: 24px; margin-left: 10px; }
  details.page-register__faq-item .page-register__faq-answer { padding: 0 15px 15px; }

  .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;
  }
}