.page-terms-conditions {
  background-color: #0A0A0A; /* Main background color for the page content */
  color: #FFF6D6; /* Main text color for the page content */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  align-items: center;
  text-align: center;
  padding-bottom: 60px; /* Space below hero content */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background: #0A0A0A; /* Ensure consistent background */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure image wrapper does not overflow */
  overflow: hidden;
}

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

.page-terms-conditions__hero-content {
  position: relative; /* Not absolute, to flow below the image */
  max-width: 900px;
  margin-top: 40px; /* Space between image and text */
  padding: 0 20px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #F2C14E; /* Brand primary color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-terms-conditions__section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Consistent background */
  color: #FFF6D6; /* Consistent text color */
}

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

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #F2C14E; /* Brand primary color for H2 */
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

.page-terms-conditions__text-block {
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.page-terms-conditions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  text-align: center;
  max-width: 100%; /* Ensure buttons do not overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: none;
}

.page-terms-conditions__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
  background: #111111; /* Card BG color */
  color: #F2C14E; /* Primary brand color */
  border: 2px solid #F2C14E; /* Primary brand color border */
}

.page-terms-conditions__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  background-color: #111111; /* Card BG for FAQ section */
  padding: 60px 0;
  color: #FFF6D6;
}

.page-terms-conditions__faq-list {
  margin-top: 40px;
}

.page-terms-conditions__faq-item {
  background-color: #0A0A0A; /* Background color for individual FAQ item */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #FFF6D6;
  background-color: #111111; /* Ensure good contrast for question background */
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
  background-color: #222222;
}

.page-terms-conditions__faq-title {
  margin: 0;
  color: #FFF6D6; /* Ensure question title is visible */
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFD36B; /* Glow color for toggle */
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Plus to X (or minus) */
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 20px 25px; /* Adjust padding when active */
}

.page-terms-conditions__faq-answer p {
  margin: 0;
  padding-top: 10px; /* Small padding for paragraph inside answer */
}

/* Contact Support Section */
.page-terms-conditions__contact-support {
  background-color: #0A0A0A;
  padding: 60px 0;
  text-align: center;
}

.page-terms-conditions__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: inline-block; /* Center the list */
  text-align: left;
}

.page-terms-conditions__contact-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #FFF6D6;
}

.page-terms-conditions__contact-list a {
  color: #F2C14E; /* Primary brand color for links */
  text-decoration: none;
}

.page-terms-conditions__contact-list a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* Ensure small top padding for mobile */
  }

  .page-terms-conditions__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Smaller H1 on mobile */
  }

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

  .page-terms-conditions__section {
    padding: 40px 0;
  }

  .page-terms-conditions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-terms-conditions__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    margin-top: 30px;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-terms-conditions__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-terms-conditions__faq-answer {
    padding: 0 20px;
  }

  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px 20px 20px 20px;
  }

  .page-terms-conditions__contact-list {
    padding: 0 15px;
  }
}