.page-register__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

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

.page-register__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for register/login font */
  line-height: 1.2;
  font-weight: 700;
}

.page-register__hero-description {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-register__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #C30808; /* Custom color for login button */
  border: 2px solid #C30808;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #a00606;
  border-color: #a00606;
}

.page-register__hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__why-join-section,
.page-register__security-section,
.page-register__final-cta {
  padding: 60px 20px;
  text-align: center;
}

.page-register__steps-section,
.page-register__faq-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

.page-register__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.page-register__section-intro {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

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

.page-register__card {
  background: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-register__card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #017439;
  font-weight: 600;
}

.page-register__card-description {
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1;
}

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

.page-register__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-register__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFFF00; /* Custom color for register font */
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-register__step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-register__text-link {
  color: #FFFF00;
  text-decoration: underline;
}

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

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

.page-register__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-register__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

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

.page-register__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00; /* Custom color for register font */
}

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

/* General text colors for light/dark sections */
.page-register__dark-section {
  background-color: #017439;
  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__card-title {
  color: #017439;
}

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

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__main-title {
    font-size: 2.5rem;
  }

  .page-register__hero-description {
    font-size: 1rem;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__final-cta {
    padding: 40px 15px;
  }

  .page-register__section-title {
    font-size: 2rem;
  }

  .page-register__section-intro {
    font-size: 0.95rem;
  }

  .page-register__features-grid,
  .page-register__security-grid,
  .page-register__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-register__step-title {
    font-size: 1.4rem;
  }

  .page-register__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-register__faq-answer {
    font-size: 0.95rem;
    padding: 10px 20px 15px;
  }

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

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper,
  .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;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-register__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 2rem;
  }

  .page-register__section-title {
    font-size: 1.8rem;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
}