.page-register {
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-register__container--centered {
  text-align: center;
}

.page-register__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-register__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.page-register__hero-container {
  display: flex;
  flex-direction: row; /* Desktop: row layout */
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
}

.page-register__hero-content {
  flex: 1;
  text-align: left;
  z-index: 1;
}

.page-register__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: none;
}

.page-register__hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* CTA Buttons */
.page-register__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #EA7C07; /* Login/Register color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-register__cta-button:hover {
  background: #d46a00;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--small {
  padding: 12px 30px;
  font-size: 16px;
  margin-top: 15px;
}

.page-register__cta-button--large {
  padding: 22px 55px;
  font-size: 24px;
  margin-top: 40px;
}

.page-register__cta-button--final {
  background: #26A9E0;
}

.page-register__cta-button--final:hover {
  background: #1e87bb;
}

.page-register__secondary-button {
  display: inline-block;
  padding: 18px 45px;
  background: #ffffff;
  color: #26A9E0;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  margin-left: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid #26A9E0;
  cursor: pointer;
}

.page-register__secondary-button:hover {
  background: #f0f8ff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-register__text-link {
  color: #EA7C07;
  text-decoration: underline;
  font-weight: bold;
}

.page-register__text-link:hover {
  color: #d46a00;
}

/* Why Join Section */
.page-register__why-join {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-register__feature-card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

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

.page-register__feature-card p {
  font-size: 16px;
  color: #555555;
}

/* Guide Section */
.page-register__guide-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-register__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 50px;
}

.page-register__step-item {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-register__step-item:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image and text direction */
}

.page-register__step-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

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

.page-register__step-content {
  flex: 1;
  max-width: 50%;
  color: #ffffff;
}

.page-register__step-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__step-content p {
  font-size: 18px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-register__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}

/* Important Notes Section */
.page-register__important-notes {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-register__notes-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.page-register__notes-list li {
  background: #f8f8f8;
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-size: 16px;
  color: #333333;
  line-height: 1.6;
}

.page-register__notes-list li strong {
  color: #26A9E0;
  font-size: 18px;
}

/* New Member Benefits Section */
.page-register__new-member-benefits {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-register__benefit-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.page-register__benefit-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-register__benefit-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__benefit-card p {
  font-size: 16px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-register__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #555555;
  font-size: 16px;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-register__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333;
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #26A9E0;
  transform: rotate(45deg); /* Change to X for active state */
}

/* Call to Action Final */
.page-register__call-to-action {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* General Image Styles */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 80px) !important; /* Adjust header offset for mobile */
  }

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

  .page-register__section {
    padding: 40px 0;
  }

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

  .page-register__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Hero Section Mobile */
  .page-register__hero-container {
    flex-direction: column; /* Mobile: column layout */
    gap: 30px;
  }

  .page-register__hero-content {
    text-align: center;
  }

  .page-register__hero-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-register__hero-description {
    font-size: 17px;
  }

  .page-register__cta-button,
  .page-register__secondary-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 25px;
    font-size: 18px;
    margin-left: 0;
  }

  .page-register__cta-button--small {
    padding: 10px 20px;
    font-size: 14px;
  }

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

  .page-register__button-group {
    flex-direction: column;
    gap: 15px;
  }

  /* Features Grid Mobile */
  .page-register__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Guide Section Mobile */
  .page-register__guide-steps {
    gap: 40px;
  }

  .page-register__step-item {
    flex-direction: column;
    gap: 20px;
  }

  .page-register__step-item:nth-child(even) {
    flex-direction: column; /* Reset order for mobile */
  }

  .page-register__step-image {
    max-width: 100%;
  }

  .page-register__step-content {
    max-width: 100%;
    text-align: center;
  }

  .page-register__step-title {
    font-size: 24px;
  }

  /* Important Notes Mobile */
  .page-register__notes-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__notes-list li {
    padding: 20px;
    font-size: 15px;
  }

  .page-register__notes-list li strong {
    font-size: 17px;
  }

  /* Benefits Grid Mobile */
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__benefit-image {
    height: 180px;
  }

  /* FAQ Section Mobile */
  .page-register__faq-question {
    padding: 15px;
  }

  .page-register__faq-question h3 {
    font-size: 16px;
  }

  .page-register__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }
}

/* Ensure all images are responsive and do not cause overflow */
.page-register img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

.page-register__section,
.page-register__card,
.page-register__container,
.page-register__hero-container,
.page-register__guide-steps,
.page-register__features-grid,
.page-register__benefits-grid,
.page-register__faq-list,
.page-register__button-group {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden; /* Prevent horizontal scroll */
}