.page-terms-conditions {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
}

.page-terms-conditions__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  background-color: #000080; /* Deep blue background for hero */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-terms-conditions__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  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.3; /* Subtly blend the image with the background */
  z-index: 0;
}

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

.page-terms-conditions__intro-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__register-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Dark blue text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__register-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  color: #00005a;
}

.page-terms-conditions__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-top: -60px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 2;
}

.page-terms-conditions__article {
  margin-bottom: 40px;
}

.page-terms-conditions__section-title {
  color: #000080; /* Deep blue for section titles */
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FFD700; /* Gold underline */
  padding-bottom: 10px;
}

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

.page-terms-conditions__article a {
  color: #000080; /* Deep blue for internal links */
  text-decoration: underline;
  font-weight: bold;
}

.page-terms-conditions__article a:hover {
  color: #FFD700;
}

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

.page-terms-conditions__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-terms-conditions__image-caption {
  font-style: italic;
  color: #666666;
  margin-top: 10px;
  font-size: 0.9em;
}

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

.page-terms-conditions__cta-title {
  color: #000080;
  font-size: 2.2em;
  margin-bottom: 15px;
}

.page-terms-conditions__cta-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__join-button,
.page-terms-conditions__home-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 0 10px;
}

.page-terms-conditions__join-button {
  background-color: #FFD700;
  color: #000080;
  border: 2px solid #FFD700;
}

.page-terms-conditions__join-button:hover {
  background-color: #e6c200;
  color: #00005a;
  border-color: #e6c200;
}

.page-terms-conditions__home-button {
  background-color: transparent;
  color: #000080;
  border: 2px solid #000080;
}

.page-terms-conditions__home-button:hover {
  background-color: #000080;
  color: #FFD700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-terms-conditions__main-title {
    font-size: 2.5em;
  }

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

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

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

  .page-terms-conditions__join-button,
  .page-terms-conditions__home-button {
    display: block;
    margin: 15px auto;
    width: 80%;
  }

  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 80px);
    padding-bottom: 20px;
  }

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

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

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

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

  .page-terms-conditions__register-button,
  .page-terms-conditions__join-button,
  .page-terms-conditions__home-button {
    font-size: 1em;
    padding: 12px 20px;
  }
}