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

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px);
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.page-terms-conditions__hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 40px 20px;
  border-radius: 8px;
  max-width: 900px;
  margin: 20px;
  color: #FFFFFF;
}

.page-terms-conditions__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  line-height: 1.2;
}

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

.page-terms-conditions__hero-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Main color for text */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
}

.page-terms-conditions__hero-button:hover {
  background-color: #e0a53b;
}

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

.page-terms-conditions__article {
  line-height: 1.8;
}

.page-terms-conditions__article-heading {
  font-size: 1.8em;
  color: #000000; /* Main color */
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 5px;
}

.page-terms-conditions__article-paragraph {
  font-size: 1em;
  margin-bottom: 15px;
  color: #333333;
}

.page-terms-conditions__highlight {
  font-weight: bold;
  color: #FCBC45;
}

.page-terms-conditions__button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Main color for text */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-terms-conditions__button:hover {
  background-color: #e0a53b;
}

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

.page-terms-conditions__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

.page-terms-conditions__cta-section {
  background-color: #000000; /* Main color */
  padding: 60px 20px;
  text-align: center;
  color: #FFFFFF;
}

.page-terms-conditions__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-terms-conditions__cta-title {
  font-size: 2.5em;
  color: #FCBC45; /* Login button color */
  margin-bottom: 20px;
}

.page-terms-conditions__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 18px 35px;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Main color for text */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease;
}

.page-terms-conditions__cta-button:hover {
  background-color: #e0a53b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    min-height: 300px;
  }

  .page-terms-conditions__hero-overlay {
    padding: 30px 15px;
  }

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

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

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

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

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

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

  .page-terms-conditions__content-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  .page-terms-conditions__cta-section {
    padding: 40px 15px;
  }

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

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

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

  /* Critical: Prevent content images from overflowing on mobile */
  .page-terms-conditions img {
    max-width: 100%;
    height: auto;
  }
  
  .page-terms-conditions {
    overflow-x: hidden;
  }
}