.page-register {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--page-background-color, #FFFFFF);
  color: #333333; /* Default text color */
  font-family: Arial, sans-serif;
}

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

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

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Default to column for mobile */
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #017439; /* Primary color as background for hero */
  padding: 20px 0 60px; /* Adjust padding for content */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16/9; /* Default aspect ratio for hero */
  min-width: 200px; /* Minimum size for all images */
  min-height: 200px;
}

.page-register__hero-content {
  padding: 20px 15px;
  max-width: 900px;
  z-index: 1; /* Ensure content is above any potential background effect */
}

.page-register__main-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem); /* Adjusted for better visual hierarchy with H1 */
  color: #FFFFFF;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.page-register__hero-description {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-register__register-button {
  display: inline-block;
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-register__register-button:hover {
  background-color: #a00606; /* Slightly darker red on hover */
}

.page-register__section-title {
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  color: #017439; /* Primary color for section titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.3;
}

.page-register__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.page-register__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.page-register__step-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

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

.page-register__step-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-register__guide-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  aspect-ratio: 4/3; /* Example aspect ratio */
}

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

.page-register__benefit-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-register__benefit-title {
  font-size: 1.25rem;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__benefit-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-register__benefits-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

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

.page-register__faq-item {
  background-color: #f9f9f9;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-register__faq-question {
  font-size: 1.15rem;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  padding-right: 30px; /* Space for arrow icon */
}

.page-register__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-register__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-register__faq-answer {
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding-top: 0;
}

.page-register__faq-answer.active {
  max-height: 200px; /* Adjust as needed */
  padding-top: 10px;
}

.page-register__faq-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.page-register__cta {
  background-color: #017439; /* Primary color for CTA background */
  color: #FFFFFF;
  text-align: center;
  padding: 60px 0;
}

.page-register__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-register__cta .page-register__section-title {
  color: #FFFFFF;
}

.page-register__cta .page-register__section-description {
  color: #FFFFFF;
  margin-bottom: 0;
}

.page-register__register-button--large {
  padding: 18px 40px;
  font-size: 1.2rem;
  min-width: 250px;
}

.page-register__login-link {
  color: #FFFF00; /* Login link font color */
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.page-register__login-link:hover {
  color: #FFFFFF;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .page-register__hero-section {
    padding: 40px 0 80px;
  }
  .page-register__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Larger H1 on desktop */
  }
  .page-register__hero-description {
    font-size: 1.2rem;
  }
  .page-register__guide-steps {
    flex-direction: row;
  }
  .page-register__section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-register__hero-image,
  .page-register__guide-image,
  .page-register__benefits-image,
  .page-register__faq-image {
    max-width: 100%;
    height: auto;
  }
  /* Ensure all content area images are responsive and not smaller than 200px */
  .page-register__registration-guide img,
  .page-register__benefits img,
  .page-register__faq img {
    width: 100%; /* Ensure width fills container */
    height: auto;
    max-width: 100%; /* Prevent overflow */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
  }
  .page-register__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust clamp for mobile H1 */
  }
}

@media (max-width: 549px) {
  .page-register__section {
    padding: 30px 0;
  }
  .page-register__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-register__hero-description {
    font-size: 1rem;
  }
  .page-register__register-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-register__section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  .page-register__step-item,
  .page-register__benefit-item {
    padding: 20px;
  }
  .page-register__step-title,
  .page-register__benefit-title {
    font-size: 1.15rem;
  }
  .page-register__faq-question {
    font-size: 1.05rem;
  }
}