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

.page-terms-conditions__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
}

.page-terms-conditions__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-terms-conditions__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  z-index: 1;
}

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for highlight */
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.page-terms-conditions__section-title {
  font-size: 2.5em;
  color: #CC0000; /* Primary color */
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #FFD700;
}

.page-terms-conditions__sub-section-title {
  font-size: 1.8em;
  color: #CC0000; /* Primary color */
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-terms-conditions__paragraph {
  font-size: 1.1em;
  margin-bottom: 15px;
  text-align: justify;
}

.page-terms-conditions__link {
  color: #CC0000; /* Primary color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-terms-conditions__link:hover {
  text-decoration: underline;
  color: #FFD700; /* Auxiliary color on hover */
}

.page-terms-conditions__cta-section {
  background-color: #CC0000;
  padding: 50px;
  margin-top: 60px;
  text-align: center;
  border-radius: 10px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.page-terms-conditions__cta-text {
  font-size: 1.4em;
  margin-bottom: 30px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Auxiliary color for button */
  color: #CC0000; /* Primary color for button text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-terms-conditions__related-links-section {
  margin: 60px auto;
  padding: 0 20px;
  max-width: 1000px;
}

.page-terms-conditions__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-terms-conditions__link-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-terms-conditions__link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__link-card-icon {
  width: 100%;
  max-width: 200px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-terms-conditions__link-card-title {
  font-size: 1.5em;
  color: #CC0000; /* Primary color */
  margin-bottom: 10px;
}

.page-terms-conditions__link-card-description {
  font-size: 1em;
  color: #666666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-title {
    font-size: 2.2em;
  }

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

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

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

  .page-terms-conditions__paragraph,
  .page-terms-conditions__cta-text {
    font-size: 1em;
  }

  .page-terms-conditions__links-grid {
    grid-template-columns: 1fr;
  }

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

  /* Ensure content images are responsive and not too small */
  .page-terms-conditions__content-area img,
  .page-terms-conditions__cta-image,
  .page-terms-conditions__link-card-icon {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

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

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

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