.page-terms-conditions {
  color: #333333; /* Dark text for default light body background */
}

.page-terms-conditions__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #0A2463; /* Main brand color for hero background */
  color: #ffffff;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-terms-conditions__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
  filter: brightness(0.7); /* Darken image to ensure text contrast */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  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: 3.5em;
  margin-bottom: 20px;
  color: #E3B23C; /* Auxiliary color for emphasis */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  line-height: 1.6;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #E3B23C; /* Auxiliary color for CTA */
  color: #0A2463;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button:hover {
  background-color: #f5db9c; /* Lighter shade on hover */
  transform: translateY(-3px);
}

.page-terms-conditions__content-area {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.8;
  font-size: 1.05em;
}

.page-terms-conditions__article {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__article-heading {
  font-size: 2.2em;
  color: #0A2463; /* Main brand color for headings */
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 3px solid #E3B23C;
  padding-bottom: 10px;
}

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

.page-terms-conditions__paragraph {
  margin-bottom: 20px;
  color: #444444;
}

.page-terms-conditions__paragraph a {
  color: #0A2463;
  text-decoration: underline;
  font-weight: bold;
}

.page-terms-conditions__paragraph a:hover {
  color: #E3B23C;
}

.page-terms-conditions__inline-button {
  display: inline-block;
  background-color: #0A2463;
  color: #E3B23C;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-terms-conditions__inline-button:hover {
  background-color: #1c4dc3; /* Complementary color for subtle hover */
  transform: translateY(-2px);
}

.page-terms-conditions__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-terms-conditions__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
  object-fit: cover;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .page-terms-conditions__hero-title {
    font-size: 2.5em;
  }

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

  .page-terms-conditions__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-terms-conditions__article-heading {
    font-size: 1.8em;
  }

  .page-terms-conditions__sub-heading {
    font-size: 1.4em;
  }

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

  /* Mobile content image constraint */
  .page-terms-conditions__image-wrapper img {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px; /* Maintain minimum size */
    min-height: 200px;
  }

  /* Ensure no horizontal scroll for content area */
  .page-terms-conditions {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-title {
    font-size: 2em;
  }

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

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

  .page-terms-conditions__article-heading {
    font-size: 1.6em;
  }

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