.page-register {
  color: #ffffff; /* Body background is dark, so text is light */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Inherit from body */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
  background-color: #1a1a2e; /* Match body background for consistency */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-register__hero-content {
  position: relative; /* Ensure content is not positioned absolutely over image */
  z-index: 10;
  max-width: 800px;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-register__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.page-register__why-join-section,
.page-register__steps-section,
.page-register__tips-section,
.page-register__faq-section,
.page-register__cta-bottom-section {
  padding: 60px 0;
}

.page-register__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__text-block {
  color: #333333;
}

.page-register__light-bg .page-register__feature-title,
.page-register__light-bg .page-register__info-title {
  color: #26A9E0;
}

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

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

/* Buttons */
.page-register__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  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: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-register__cta-button {
  margin-top: 30px;
}

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

.page-register__feature-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark bg */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-register__light-bg .page-register__feature-item {
  background: #f9f9f9; /* Light background for light bg */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.page-register__light-bg .page-register__feature-description {
  color: #555555;
}

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

.page-register__step-item {
  text-align: center;
  position: relative;
  padding-top: 40px; /* Space for number */
}

.page-register__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  box-shadow: 0 0 0 5px rgba(38, 169, 224, 0.3);
}

.page-register__step-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-register__info-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-register__info-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-register__info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-register__info-list li {
  margin-bottom: 10px;
  font-size: 1em;
  color: #555555;
  position: relative;
  padding-left: 25px;
}

.page-register__info-list li::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__faq-item[open] .page-register__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-register__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-register__faq-item:not([open]) .page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-register__faq-item[open] .page-register__faq-answer {
  max-height: 1000px; /* Arbitrarily large value for smooth transition */
  transition: max-height 0.3s ease-in;
}

/* Hide default details marker */
.page-register__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-register__faq-item summary::marker {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-register__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-register__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }
  .page-register__description,
  .page-register__text-block {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__tips-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    padding: 40px 0;
  }
  .page-register__container {
    padding: 0 15px;
  }

  /* Mobile specific image adaptation */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images/videos/buttons */
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__tips-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section,
  .page-register__container,
  .page-register__feature-item,
  .page-register__step-item,
  .page-register__info-card,
  .page-register__faq-item,
  .page-register__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Mobile specific button adaptation */
  .page-register__btn-primary,
  .page-register__cta-button {
    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 {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-register__hero-image-wrapper {
    max-height: 300px; /* Adjust hero image height for mobile */
  }
  .page-register__hero-image {
    width: auto; /* Allow image to fill height and crop width */
    height: 100%;
  }
  .page-register__step-image {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: clamp(1.6em, 7vw, 2.5em);
  }
  .page-register__section-title {
    font-size: 1.6em;
  }
  .page-register__feature-title,
  .page-register__info-title {
    font-size: 1.3em;
  }
  .page-register__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-register__faq-answer {
    padding: 0 15px 15px 15px;
  }
}