.page-terms-conditions {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding as per rule */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  min-height: 200px; /* Ensure minimum size */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.85); /* Semi-transparent background for readability */
  border-radius: 10px;
  margin-top: 20px; /* Separates text from image in document flow */
  color: #1F2D3D;
}

.page-terms-conditions__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #2F6BFF;
  margin-bottom: 15px;
  max-width: 100%; /* Ensures it doesn't overflow */
}

.page-terms-conditions__hero-description {
  font-size: 1.1em;
  color: #1F2D3D;
}

.page-terms-conditions__content-section {
  padding: 40px 20px;
  background-color: #F4F7FB;
}

.page-terms-conditions__container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__section-title {
  color: #2F6BFF;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.8em;
  font-weight: bold;
}

.page-terms-conditions__sub-title {
  color: #1F2D3D;
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.4em;
  font-weight: 600;
}

.page-terms-conditions__text-block {
  color: #1F2D3D;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 25px 0;
  object-fit: cover;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px; /* Minimum size for content images */
}

.page-terms-conditions__image--inline {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__contact-button-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-terms-conditions__button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 200px; /* Ensure button is not too small */
}

.page-terms-conditions__button:hover {
  background: linear-gradient(180deg, #6FA3FF 0%, #4A8BFF 100%);
  box-shadow: 0 0 10px #A5C4FF;
}

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

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em); /* Responsive font size for H1 */
  }

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

  .page-terms-conditions__content-section {
    padding: 20px 10px;
  }

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

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

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

  .page-terms-conditions__image {
    max-width: 100%;
    height: auto;
  }
}