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

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 40px;
  overflow: hidden; /* Ensure no overflow */
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  max-width: 1920px; /* Max width for the actual image */
  display: block;
  object-fit: cover;
}

.page-terms-conditions__hero-content {
  text-align: center;
  padding: 20px;
  background-color: #FFFFFF; /* Card BG color */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Adjust to slightly overlap the image for visual effect, but not cover text */
  position: relative;
  z-index: 1;
  max-width: 90%;
  width: 100%;
}

.page-terms-conditions__main-title {
  color: #2F6BFF; /* Main color */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
  max-width: 600px; /* Constrain H1 width */
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive font size */
}

.page-terms-conditions__hero-description {
  color: #1F2D3D; /* Text Main */
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-terms-conditions__section-wrapper {
  padding: 20px 40px;
}

.page-terms-conditions__section-title {
  color: #2F6BFF; /* Main color */
  font-size: 1.8rem;
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions__paragraph {
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  font-size: 1rem;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-terms-conditions__list-item {
  color: #1F2D3D; /* Text Main */
  margin-bottom: 8px;
  font-size: 1rem;
}

.page-terms-conditions__link {
  color: #2F6BFF; /* Main color */
  text-decoration: none;
  font-weight: bold;
}

.page-terms-conditions__link:hover {
  text-decoration: underline;
  color: #6FA3FF; /* Accent color on hover */
}

.page-terms-conditions__action-buttons {
  margin-top: 40px;
  text-align: center;
}

.page-terms-conditions__button {
  display: inline-block;
  padding: 12px 25px;
  margin: 0 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #FFFFFF;
  border: none;
  cursor: pointer;
}

.page-terms-conditions__button:hover {
  background: linear-gradient(180deg, #6FA3FF 0%, #4A8BFF 100%); /* Slightly lighter gradient on hover */
  transform: translateY(-2px);
}

/* Ensure images in content area are not too small */
.page-terms-conditions__content-area img {
  min-width: 200px;
  min-height: 200px;
  height: auto; /* Maintain aspect ratio */
}

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

  .page-terms-conditions__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-terms-conditions__hero-description {
    font-size: 0.95rem;
  }

  .page-terms-conditions__content-area {
    padding: 15px;
    margin-left: 10px;
    margin-right: 10px;
  }

  .page-terms-conditions__section-wrapper {
    padding: 15px 20px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.5rem;
    margin-top: 30px;
  }

  .page-terms-conditions__list {
    margin-left: 20px;
  }

  .page-terms-conditions__list-item,
  .page-terms-conditions__paragraph {
    font-size: 0.9rem;
  }

  .page-terms-conditions__action-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-terms-conditions__button {
    width: calc(100% - 20px);
    margin: 5px 0;
  }

  /* Mobile responsive image constraint */
  .page-terms-conditions img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-content {
    margin-top: -40px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-terms-conditions__section-title {
    font-size: 1.3rem;
  }
}