.page-terms-conditions {
  background-color: var(--bg-color, #08160F); /* Fallback to Deep Green if --bg-color not set */
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Ensure headings also use light color on dark background */
.page-terms-conditions h1,
.page-terms-conditions h2,
.page-terms-conditions h3 {
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding as per instruction */
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  align-items: center;
  text-align: center;
  overflow: hidden; /* Ensure nothing overflows */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(17, 39, 27, 0.9); /* Card B G with some transparency */
  border-radius: 8px;
  margin-top: -80px; /* Pull content up slightly over the image for visual effect, but not overlapping text on image */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-50px); /* Adjust to ensure no text overlaps image */
  margin-bottom: -50px; /* Compensate for transform */
}

.page-terms-conditions__main-title {
  font-size: clamp(24px, 4vw, 48px); /* H1 font size clamp */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-terms-conditions__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-terms-conditions__content-area {
  padding: 60px 20px;
}

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

.page-terms-conditions__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__light-bg {
  background-color: #11271B; /* Card B G */
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: #57E38D; /* Glow color for main titles */
}

.page-terms-conditions__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #22C768; /* Auxiliary color */
}

.page-terms-conditions__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-terms-conditions__image-card {
  background-color: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 15px;
  margin: 30px auto;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  overflow: hidden; /* For responsive image */
}

.page-terms-conditions__card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 15px;
  min-height: 200px; /* Minimum size requirement */
}

.page-terms-conditions__image-caption {
  font-size: 14px;
  color: #A7D9B8; /* Text Secondary */
}

.page-terms-conditions__final-cta {
  text-align: center;
  margin-top: 50px;
}

.page-terms-conditions__cta-button--large {
  padding: 20px 40px;
  font-size: 20px;
}

/* Responsive styles for images, videos, buttons */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-terms-conditions video,
.page-terms-conditions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-terms-conditions__video-section,
.page-terms-conditions__video-container,
.page-terms-conditions__video-wrapper,
.page-terms-conditions__image-card,
.page-terms-conditions__cta-buttons,
.page-terms-conditions__button-group,
.page-terms-conditions__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-terms-conditions__hero-content {
    padding: 20px 15px;
    margin-top: -40px;
    transform: translateY(-20px);
    margin-bottom: -20px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(20px, 6vw, 36px);
    margin-bottom: 15px;
  }

  .page-terms-conditions__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__cta-button,
  .page-terms-conditions__cta-button--large {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 18px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-terms-conditions__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__sub-title {
    font-size: 20px;
    margin-top: 30px;
  }

  /* Force responsive images, videos, buttons */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-terms-conditions__video-section,
  .page-terms-conditions__video-container,
  .page-terms-conditions__video-wrapper,
  .page-terms-conditions__image-card,
  .page-terms-conditions__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__btn-container,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* Small top padding */
  }
}