.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: var(--background-color, #ffffff);
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  padding: 0;
  margin-bottom: 40px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability, not changing color */
}

.page-terms-conditions__hero-container {
  position: relative;
  width: 100%;
  max-height: 500px; /* Limit hero height for better UX */
  overflow: hidden;
}

.page-terms-conditions__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  z-index: 1;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background for text */
  border-radius: 8px;
}

.page-terms-conditions__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FCBC45; /* Login color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__heading {
  font-size: 2.2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 3px solid #FCBC45;
  padding-bottom: 10px;
}

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

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  font-size: 1em;
}

.page-terms-conditions__section-block {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 5px solid #000000;
  border-radius: 5px;
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-terms-conditions__image--left {
  float: left;
  margin-right: 20px;
  max-width: 40%;
}

.page-terms-conditions__image--right {
  float: right;
  margin-left: 20px;
  max-width: 40%;
}

.page-terms-conditions__cta-container {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  min-width: 200px;
  text-align: center;
}

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

.page-terms-conditions__cta-button--register:hover {
  background-color: #000000;
  color: #FFFFFF;
}

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

.page-terms-conditions__cta-button--login:hover {
  background-color: #000000;
  color: #FCBC45;
}

/* Clearfix for floated images */
.page-terms-conditions__section-block::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1.1em;
  }
  .page-terms-conditions__heading {
    font-size: 1.8em;
  }
  .page-terms-conditions__sub-heading {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1em;
  }
  .page-terms-conditions__content-area {
    padding: 20px 15px;
  }
  .page-terms-conditions__heading {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-terms-conditions__sub-heading {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-terms-conditions__image,
  .page-terms-conditions__image--left,
  .page-terms-conditions__image--right {
    float: none;
    margin: 20px auto;
    max-width: 100%;
    width: 100%;
    height: auto; /* Ensure images are responsive */
    min-width: 200px; /* Enforce min size for mobile */
    min-height: 200px; /* Enforce min size for mobile */
  }
  .page-terms-conditions__cta-button {
    display: block;
    margin: 10px auto;
  }
  .page-terms-conditions__hero-container img {
    max-width: 100%;
    height: auto;
  }
  .page-terms-conditions {
    padding-top: var(--header-offset, 120px);
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-title {
    font-size: 1.5em;
  }
  .page-terms-conditions__hero-description {
    font-size: 0.9em;
  }
  .page-terms-conditions__heading {
    font-size: 1.4em;
  }
  .page-terms-conditions__sub-heading {
    font-size: 1.2em;
  }
  .page-terms-conditions__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }
}