/* style/terms-conditions.css */

/* Ensure content starts below the fixed header */
.page-terms-conditions {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  background-color: #1A1A1A;
  padding: var(--header-offset, 120px) 20px 60px; /* Use header offset for top padding */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

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

.page-terms-conditions__hero-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

.page-terms-conditions__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15;
  overflow: hidden;
}

.page-terms-conditions__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-terms-conditions__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #333; /* Matches body background for seamless integration */
}

.page-terms-conditions__article {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for readability */
  padding: 40px;
  border-radius: 10px;
}

.page-terms-conditions__article-heading {
  font-size: 2em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 10px;
}

.page-terms-conditions__article-paragraph {
  font-size: 1.05em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-terms-conditions__article-paragraph a {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

.page-terms-conditions__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce min width */
  min-height: 200px; /* Enforce min height */
}

.page-terms-conditions__image-float-right {
  width: 100%; /* Default for mobile */
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce min width */
  min-height: 200px; /* Enforce min height */
}

@media (min-width: 768px) {
  .page-terms-conditions__image-float-right {
    width: 45%;
    float: right;
    margin: 15px 0 15px 30px;
  }
}

.page-terms-conditions__button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-terms-conditions__button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-terms-conditions__button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-terms-conditions__final-note {
  font-style: italic;
  text-align: center;
  margin-top: 50px;
  color: #bbb;
}

.page-terms-conditions__cta-section {
  background-color: #1A1A1A;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-terms-conditions__cta-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.page-terms-conditions__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

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

.page-terms-conditions__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.1;
  overflow: hidden;
}

.page-terms-conditions__cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px) 20px 40px;
  }

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

  .page-terms-conditions__article {
    padding: 20px;
  }

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

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

  .page-terms-conditions__image-full-width,
  .page-terms-conditions__image-float-right {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
  }

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

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

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

/* Ensure all content area images are responsive and not smaller than 200px */
.page-terms-conditions__article img {
  max-width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

@media (max-width: 768px) {
  .page-terms-conditions__article img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure mobile images are not too small */
    min-height: 200px;
  }
}