.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8; /* Light background for the page */
}

.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #08160F; /* Deep Green background for hero */
  color: #F2FFF6; /* Light text for dark background */
  overflow: hidden;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 400px; /* Limit height of the image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 0.7; /* Slightly dim the image to make text stand out */
}

.page-terms-conditions__hero-content {
  position: relative; /* Ensure content is above image */
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 5vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-terms-conditions__hero-description {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-terms-conditions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* White background for content */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-top: -50px; /* Overlap hero section slightly */
  position: relative;
  z-index: 5;
}

.page-terms-conditions__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #11A84E; /* Brand primary color */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #22C768; /* Auxiliary color for accent */
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  font-size: 1.5em;
  color: #0A4B2C; /* Deep Green */
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-terms-conditions p a {
  color: #11A84E;
  text-decoration: underline;
}

.page-terms-conditions p a:hover {
  color: #22C768;
}

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

.page-terms-conditions li {
  margin-bottom: 5px;
  color: #333333;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-terms-conditions__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__call-to-action {
  background-color: #E6FAE6; /* Very light green background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  margin-top: 50px;
  border: 1px solid #22C768;
}

.page-terms-conditions__call-to-action p {
  font-size: 1.2em;
  color: #0A4B2C;
  margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-terms-conditions__hero-image-wrapper {
    max-height: 250px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-terms-conditions__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }

  .page-terms-conditions__content-area {
    padding: 20px 15px;
    margin-top: -30px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px 0;
  }

  .page-terms-conditions__call-to-action {
    padding: 20px;
  }

  .page-terms-conditions__call-to-action p {
    font-size: 1em;
  }
}