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

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for hero section */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-color: #007bff; /* Fallback background color */
  margin-bottom: 40px;
}

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

.page-terms-conditions__hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

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

.page-terms-conditions__hero-button {
  display: inline-block;
  background-color: #28a745; /* Auxiliary color for CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-terms-conditions__hero-button:hover {
  background-color: #1e7e34;
}

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

.page-terms-conditions__section {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  padding: 30px;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #007bff; /* Primary color for main titles */
  margin-bottom: 20px;
  border-bottom: 3px solid #007bff;
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  font-size: 1.5em;
  color: #0056b3; /* Darker shade of primary color */
  margin-top: 25px;
  margin-bottom: 15px;
}

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

.page-terms-conditions__paragraph a {
  color: #007bff; /* Primary color for internal links */
  text-decoration: none;
}

.page-terms-conditions__paragraph a:hover {
  text-decoration: underline;
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  object-fit: cover;
}

.page-terms-conditions__image--left {
  float: left;
  margin-right: 20px;
  max-width: 300px; /* Smaller size for floating images */
}

.page-terms-conditions__image--right {
  float: right;
  margin-left: 20px;
  max-width: 300px; /* Smaller size for floating images */
}

.page-terms-conditions__cta-card {
  background-color: #f8f9fa; /* Light background for CTA card */
  border-left: 5px solid #28a745; /* Auxiliary color accent */
  padding: 25px;
  border-radius: 8px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-terms-conditions__cta-card--bottom {
  margin-bottom: 0;
}

.page-terms-conditions__cta-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #555555;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #007bff; /* Primary color for CTA */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-terms-conditions__cta-button:hover {
  background-color: #0056b3;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    height: 450px;
  }

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

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

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

  .page-terms-conditions__sub-title {
    font-size: 1.3em;
  }

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

  .page-terms-conditions__image {
    float: none;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; /* Ensure images don't overflow on mobile */
    height: auto; /* Maintain aspect ratio */
  }

  .page-terms-conditions__image--left,
  .page-terms-conditions__image--right {
    margin-right: 0;
    margin-left: 0;
    max-width: 100%;
    height: auto;
  }
  
  .page-terms-conditions__section {
    padding: 20px;
  }

  .page-terms-conditions__cta-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-section {
    height: 350px;
  }

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

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

  .page-terms-conditions__hero-button {
    padding: 10px 20px;
    font-size: 1em;
  }

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

  .page-terms-conditions__sub-title {
    font-size: 1.2em;
  }
}