.page-index-how-to-join {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Body background from shared.css */
}

.page-index-how-to-join__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-index-how-to-join__hero-section {
  position: relative;
  background-color: #017439; /* Primary brand color for hero background */
  color: #ffffff;
  padding: 100px 0 60px; /* Adjust top padding for fixed header */
  padding-top: var(--header-offset, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-index-how-to-join__hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 20px;
}

.page-index-how-to-join__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index-how-to-join__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-index-how-to-join__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-index-how-to-join__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-index-how-to-join__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-how-to-join__cta-buttons--center {
  margin-top: 40px;
}

.page-index-how-to-join__btn-primary {
  background-color: #C30808; /* Custom color for registration/login */
  color: #FFFF00; /* Custom font color for registration/login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-index-how-to-join__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-index-how-to-join__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Primary brand color for text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
  box-sizing: border-box;
}

.page-index-how-to-join__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #005a2e;
  transform: translateY(-2px);
}

.page-index-how-to-join__section {
  padding: 60px 0;
  text-align: center;
}

.page-index-how-to-join__dark-bg {
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

.page-index-how-to-join__light-bg {
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-index-how-to-join__heading {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: inherit; /* Inherit color from section */
}

.page-index-how-to-join__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

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

.page-index-how-to-join__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-index-how-to-join__light-bg .page-index-how-to-join__card {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-how-to-join__feature-title,
.page-index-how-to-join__step-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: inherit;
}

.page-index-how-to-join__feature-text,
.page-index-how-to-join__step-text {
  font-size: 1em;
  color: inherit;
}

.page-index-how-to-join__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #C30808; /* Custom color for steps */
  margin-bottom: 15px;
  display: block;
}

.page-index-how-to-join__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index-how-to-join__list,
.page-index-how-to-join__ordered-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 900px;
  text-align: left;
}

.page-index-how-to-join__list-item,
.page-index-how-to-join__ordered-list .page-index-how-to-join__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.1em;
  display: flex;
  align-items: flex-start;
  color: #ffffff;
}

.page-index-how-to-join__light-bg .page-index-how-to-join__list-item,
.page-index-how-to-join__light-bg .page-index-how-to-join__ordered-list .page-index-how-to-join__list-item {
  background-color: #f0f0f0;
  color: #333333;
}

.page-index-how-to-join__list-item strong,
.page-index-how-to-join__ordered-list .page-index-how-to-join__list-item strong {
  color: #FFFF00; /* Custom color for strong text */
  margin-right: 8px;
}

.page-index-how-to-join__ordered-list .page-index-how-to-join__list-item:before {
  content: counter(list-item) ". ";
  counter-increment: list-item;
  font-weight: bold;
  color: #C30808; /* Custom color for ordered list numbers */
  margin-right: 10px;
  font-size: 1.2em;
}

.page-index-how-to-join__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-how-to-join__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  color: #ffffff;
}

.page-index-how-to-join__light-bg .page-index-how-to-join__faq-item {
  background-color: #f0f0f0;
  color: #333333;
}

.page-index-how-to-join__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index-how-to-join__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index-how-to-join__light-bg .page-index-how-to-join__faq-question:hover {
  background-color: #e0e0e0;
}

.page-index-how-to-join__faq-title {
  margin: 0;
  color: inherit;
}

.page-index-how-to-join__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #C30808; /* Custom color for toggle icon */
}

.page-index-how-to-join__faq-item.active .page-index-how-to-join__faq-toggle {
  transform: rotate(45deg);
}

.page-index-how-to-join__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  text-align: left;
  color: inherit;
}

.page-index-how-to-join__faq-item.active .page-index-how-to-join__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px 20px;
}

.page-index-how-to-join__faq-answer p {
  margin: 0;
  color: inherit;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-index-how-to-join__hero-title {
    font-size: 2.8em;
  }
  .page-index-how-to-join__heading {
    font-size: 2em;
  }
}

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

  .page-index-how-to-join__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    padding-bottom: 40px;
  }

  .page-index-how-to-join__hero-title {
    font-size: 2.2em;
  }

  .page-index-how-to-join__hero-description {
    font-size: 1em;
  }

  .page-index-how-to-join__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-how-to-join__btn-primary,
  .page-index-how-to-join__btn-secondary,
  .page-index-how-to-join a[class*="button"],
  .page-index-how-to-join 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-index-how-to-join__cta-buttons,
  .page-index-how-to-join__button-group,
  .page-index-how-to-join__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-index-how-to-join__section {
    padding: 40px 0;
  }

  .page-index-how-to-join__container {
    padding: 0 15px;
  }

  .page-index-how-to-join__heading {
    font-size: 1.8em;
  }

  .page-index-how-to-join__paragraph {
    font-size: 1em;
  }

  .page-index-how-to-join__features-grid,
  .page-index-how-to-join__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-how-to-join__card {
    padding: 20px;
  }

  .page-index-how-to-join__feature-title,
  .page-index-how-to-join__step-title {
    font-size: 1.3em;
  }

  .page-index-how-to-join__list-item,
  .page-index-how-to-join__ordered-list .page-index-how-to-join__list-item {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-index-how-to-join__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-index-how-to-join__faq-answer {
    padding: 0 15px;
  }

  .page-index-how-to-join__faq-item.active .page-index-how-to-join__faq-answer {
    padding: 12px 15px 15px;
  }

  /* Mobile image adaptation */
  .page-index-how-to-join img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-how-to-join__section,
  .page-index-how-to-join__card,
  .page-index-how-to-join__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-index-how-to-join__hero-title {
    font-size: 1.8em;
  }
  .page-index-how-to-join__heading {
    font-size: 1.5em;
  }
  .page-index-how-to-join__btn-primary,
  .page-index-how-to-join__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}