.page-terms-conditions {
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #FFFFFF; /* Consistent with body background */
  color: #333333; /* Dark text for readability on light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 450px; /* Minimum height for hero section */
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2; /* Make image subtle behind text */
}

.page-terms-conditions__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #000000; /* Dark text for readability */
}

.page-terms-conditions__main-title {
  font-size: 2.8em;
  color: #000000; /* Main title color */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-terms-conditions__description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 40px;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-terms-conditions__button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 150px;
  text-align: center;
  font-size: 1.1em;
}

.page-terms-conditions__button--register {
  background-color: #000000; /* Primary button background */
  color: #FFFFFF; /* Register button text color */
  border: 2px solid #000000;
}

.page-terms-conditions__button--register:hover {
  background-color: #333333;
  border-color: #333333;
}

.page-terms-conditions__button--login {
  background-color: #FCBC45; /* Login button background color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-terms-conditions__button--login:hover {
  background-color: #e0a538;
  border-color: #e0a538;
}

.page-terms-conditions__button--contact,
.page-terms-conditions__button--faq {
  background-color: #FCBC45; /* Consistent button style */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-terms-conditions__button--contact:hover,
.page-terms-conditions__button--faq:hover {
  background-color: #e0a538;
  border-color: #e0a538;
}

.page-terms-conditions__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-terms-conditions__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #333333;
}

.page-terms-conditions__list-item {
  margin-bottom: 8px;
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    min-height: 350px;
  }

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

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

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-terms-conditions__button {
    width: 100%;
    padding: 10px 20px;
  }

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

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

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list-item {
    font-size: 0.95em;
  }

  /* Ensure content images are responsive and do not overflow */
  .page-terms-conditions__content-image {
    max-width: 100%;
    height: auto;
  }
}

/* Further ensure no horizontal scrolling on small screens */
@media (max-width: 768px) {
  .page-terms-conditions {
    overflow-x: hidden;
  }
  .page-terms-conditions__hero-container,
  .page-terms-conditions__content-area {
    width: 100%;
    box-sizing: border-box; /* Include padding in width calculation */
  }
  .page-terms-conditions__hero-image {
    max-width: 100%; /* Ensure hero image is responsive */
    height: auto;
  }
  /* Apply to all img elements within the page-terms-conditions content */
  .page-terms-conditions img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}