.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-terms-conditions__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Adjust as needed */
  overflow: hidden;
  background-color: #017439;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly dim the background image */
}

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

.page-terms-conditions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #a00606;
}

.page-terms-conditions__introduction.page-terms-conditions__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-terms-conditions__content-area.page-terms-conditions__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  padding: 60px 20px;
}

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

.page-terms-conditions__section-title {
  font-size: 2.5em;
  color: #017439;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-terms-conditions__introduction .page-terms-conditions__section-title {
  color: #ffffff;
}

.page-terms-conditions__text-block {
  margin-bottom: 30px;
  font-size: 1.1em;
}

.page-terms-conditions__text-block p {
  margin-bottom: 15px;
}

.page-terms-conditions__text-block ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-terms-conditions__text-block li {
  margin-bottom: 8px;
}

.page-terms-conditions__content-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* FAQ Styles */
.page-terms-conditions__faq-list {
  margin-top: 40px;
}

.page-terms-conditions__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e8f5e9; /* Light green for question background */
  border-bottom: 1px solid #e0e0e0;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-question {
  border-bottom: 1px solid #d0d0d0;
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent clicks on text from interfering with summary toggle */
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  pointer-events: none; /* Prevent clicks on toggle from interfering with summary toggle */
}

.page-terms-conditions__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  color: #333333;
  background-color: #ffffff;
}

.page-terms-conditions__faq-answer p {
  margin-bottom: 10px;
}

.page-terms-conditions__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

/* Details element specific styling for native toggle */
.page-terms-conditions__faq-item > summary {
  list-style: none;
}

.page-terms-conditions__faq-item > summary::-webkit-details-marker {
  display: none;
}

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

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

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    min-height: 400px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

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

  .page-terms-conditions__text-block, .page-terms-conditions__faq-answer {
    font-size: 0.95em;
  }

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

  /* Mobile image responsiveness */
  .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__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}