/* style/terms-conditions.css */
.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); /* Ensure content is not hidden by fixed header */
}

.page-terms-conditions__hero-section {
  background-color: #1A2B4C; /* Primary brand color */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

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

.page-terms-conditions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold accent */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

.page-terms-conditions__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

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

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

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

.page-terms-conditions__section-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-terms-conditions__section-title {
  font-size: 2.5em;
  color: #1A2B4C;
  margin-bottom: 15px;
}

.page-terms-conditions__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto;
  color: #555555;
}

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

.page-terms-conditions__article-title {
  font-size: 1.8em;
  color: #1A2B4C;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
}

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

.page-terms-conditions__article-paragraph a {
  color: #1A2B4C;
  text-decoration: underline;
  font-weight: bold;
}

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

.page-terms-conditions__article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 25px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-terms-conditions__article-button {
  display: inline-block;
  background-color: #1A2B4C; /* Dark blue button */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.page-terms-conditions__article-button:hover {
  background-color: #2b416e;
}

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

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

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

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #1A2B4C; /* Dark text on gold */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 10px;
}

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

.page-terms-conditions__cta-button--secondary {
  background-color: #1A2B4C;
  color: #ffffff;
}

.page-terms-conditions__cta-button--secondary:hover {
  background-color: #2b416e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
  }

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

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

  .page-terms-conditions__hero-button,
  .page-terms-conditions__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 10px 5px;
  }

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

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

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

  /* Ensure content images are responsive and not too small */
  .page-terms-conditions__article-image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
  }
  .page-terms-conditions__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-terms-conditions__cta-button {
    display: block;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
  }
}

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

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

  .page-terms-conditions__article-title {
    font-size: 1.3em;
  }
}