.page-register {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #017439, #005a2e);
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-register__hero-section .page-register__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-register__hero-content {
  max-width: 700px;
  text-align: center;
}

.page-register__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Custom font color for register/login */
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
}

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

.page-register__cta-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  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: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin: 0; /* Managed by gap in parent */
  box-sizing: border-box;
}

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

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for Login */
  border: 2px solid #FFFF00;
}

.page-register__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808; /* Custom font color for Login */
  transform: translateY(-2px);
}

/* General Section Styles */
.page-register__benefits-section,
.page-register__steps-section,
.page-register__security-section,
.page-register__faq-section,
.page-register__cta-section {
  padding: 60px 0;
}

.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Ensure visibility on dark background */
  font-weight: bold;
}

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

/* Benefits Section */
.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  background-color: rgba(1, 116, 57, 0.5); /* Brand color with transparency */
}

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

.page-register__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Ensure visibility */
  font-weight: bold;
}

.page-register__card-text {
  font-size: 1em;
  color: #e0e0e0;
  flex-grow: 1;
}

/* Steps Section */
.page-register__steps-section {
  background-color: #1a1a1a; /* Darker background for contrast */
  color: #ffffff;
}

.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-register__step-card:hover {
  transform: translateY(-5px);
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00; /* Highlight step number */
  background-color: #017439; /* Brand color background */
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 3px solid #FFFF00;
}

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

/* Security Section */
.page-register__security-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-register__security-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-register__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 600px;
  text-align: left;
}

.page-register__security-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #e0e0e0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-register__security-list li::before {
  content: '✔';
  color: #FFFF00; /* Checkmark color */
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
  flex-shrink: 0;
}

.page-register__list-strong {
  color: #FFFF00;
}

/* FAQ Section */
.page-register__faq-section {
  background-color: #1a1a1a; /* Darker background */
  color: #ffffff;
}

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

.page-register__faq-item {
  background-color: 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;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: #005a2e;
}

.page-register__faq-title {
  margin: 0;
  color: #FFFF00; /* Ensure title visibility */
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00;
}

.page-register__faq-item.active .page-register__faq-question {
  background-color: #005a2e;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px;
}

.page-register__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
  color: #e0e0e0;
}

/* CTA Section */
.page-register__cta-section {
  text-align: center;
  background-color: #0a0a0a;
  color: #ffffff;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.8em;
  }

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

  .page-register__hero-section .page-register__container {
    flex-direction: column;
  }

  .page-register__security-content {
    flex-direction: column;
  }

  .page-register__security-image {
    order: -1;
  }
}

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

  .page-register__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    min-height: 500px;
  }

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

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

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

  .page-register__section-description {
    font-size: 0.95em;
  }

  .page-register__benefits-grid,
  .page-register__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-register__benefit-card,
  .page-register__step-card {
    padding: 25px;
  }

  .page-register__card-icon {
    max-width: 200px;
  }

  .page-register__security-list li {
    font-size: 1em;
    padding: 12px 15px;
  }

  /* Image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-image-wrapper,
  .page-register__security-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Button responsiveness */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    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,
  .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;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-register__faq-answer {
    padding: 15px;
  }

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

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

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}