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

.page-terms-conditions__hero-section {
  background-color: #1A237E; /* Main brand color for hero background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-terms-conditions__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; /* Subtle overlay for background */
  z-index: 0;
}

.page-terms-conditions__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Auxiliary color for emphasis */
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.page-terms-conditions__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-terms-conditions__button--primary {
  background-color: #FFD700; /* Auxiliary color */
  color: #1A237E; /* Main brand color */
  border: 2px solid #FFD700;
}

.page-terms-conditions__button--primary:hover {
  background-color: #e5c100;
  transform: translateY(-2px);
}

.page-terms-conditions__button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-terms-conditions__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-40px); /* Slightly lift content over hero bottom */
  position: relative;
  z-index: 2;
}

.page-terms-conditions__article {
  padding: 20px;
}

.page-terms-conditions__heading {
  font-size: 2em;
  color: #1A237E; /* Main brand color */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-terms-conditions__image {
  width: 100%; /* Default to full width for content images */
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-terms-conditions__image--inline {
  width: 800px; /* Explicit width for content image display area */
  height: 600px; /* Explicit height for content image display area */
  max-width: 100%;
  margin: 30px auto;
}

.page-terms-conditions__cta-section {
  background-color: #f0f0f0;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  margin-top: 60px;
}

.page-terms-conditions__cta-text {
  font-size: 1.5em;
  color: #1A237E;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-terms-conditions__button--cta {
  background-color: #FFD700;
  color: #1A237E;
  border: 2px solid #FFD700;
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-terms-conditions__button--cta:hover {
  background-color: #e5c100;
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.8em;
  }

  .page-terms-conditions__intro-text {
    font-size: 1.1em;
  }

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

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
  }

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

  .page-terms-conditions__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-terms-conditions__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-terms-conditions__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-terms-conditions__content-area {
    padding: 30px 15px;
    transform: translateY(-30px);
  }

  .page-terms-conditions__article {
    padding: 0;
  }

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

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

  /* Ensure content images are responsive and do not overflow */
  .page-terms-conditions__image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
  }
  
  .page-terms-conditions__image--inline {
    width: auto; /* Allow image to scale down */
    height: auto; /* Maintain aspect ratio */
    margin: 20px auto;
  }

  .page-terms-conditions__cta-section {
    padding: 30px 20px;
    margin-top: 40px;
  }

  .page-terms-conditions__cta-text {
    font-size: 1.2em;
  }

  .page-terms-conditions__button--cta {
    padding: 15px 25px;
    font-size: 1.1em;
  }
}