.page-terms-conditions {
  color: #ffffff; /* Body background is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #017439; /* Fallback background */
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-terms-conditions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-terms-conditions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-terms-conditions__content-wrapper {
  background-color: var(--neon-dark-bg); /* Use shared dark background variable */
  padding: 60px 0;
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-terms-conditions__section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for sections */
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Light text on dark section background */
}

.page-terms-conditions__section-title {
  color: #017439; /* Brand color for titles */
  font-size: 2.2em;
  margin-bottom: 25px;
  border-bottom: 2px solid #017439;
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  color: #ffffff;
  font-size: 1.6em;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-terms-conditions a {
  color: #017439; /* Brand color for links */
  text-decoration: underline;
}

.page-terms-conditions a:hover {
  color: #02a04d; /* Slightly lighter green on hover */
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
  object-fit: cover;
}

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

.page-terms-conditions__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  content: '−';
}

.page-terms-conditions__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-terms-conditions__cta-section {
  text-align: center;
  padding: 60px 40px;
  background-color: #017439; /* Brand color background for CTA */
  border-radius: 8px;
  margin-top: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-title {
  color: #ffffff;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.page-terms-conditions__cta-description {
  color: #f0f0f0;
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #C30808;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
  color: #ffffff;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-terms-conditions__container {
    padding: 0 15px;
  }

  .page-terms-conditions__section {
    padding: 20px;
    margin-bottom: 20px;
  }

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

  .page-terms-conditions__sub-title {
    font-size: 1.3em;
  }

  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__cta-section {
    padding: 40px 20px;
  }

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

  .page-terms-conditions__cta-description {
    font-size: 0.9em;
  }

  .page-terms-conditions__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-terms-conditions__faq-question {
    padding: 15px;
    font-size: 1em;
  }

  .page-terms-conditions__faq-answer {
    padding: 15px;
  }
}