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

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  padding: 10px 0 40px; /* Small top padding, more bottom padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 10; /* Ensure content is above image filter */
  padding: 20px;
  max-width: 900px;
  margin-top: -200px; /* Pull content up over the image, but not overlapping text */
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.8) 50%, #0A0A0A 100%); /* Gradient for smooth transition */
  padding-top: 220px; /* Adjust padding to make space for text over gradient */
  padding-bottom: 40px;
  border-radius: 8px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Dark text for bright button */
  border: none;
}

.page-terms-conditions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-terms-conditions__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #FFD36B; /* Glow color for border */
}

.page-terms-conditions__btn-secondary:hover {
  background: #FFD36B;
  color: #0A0A0A; /* Dark text for bright background */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #0A0A0A; /* Ensure consistent background */
  color: #FFF6D6;
}

.page-terms-conditions__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #F2C14E; /* Main brand color for section titles */
  margin-top: 40px;
  margin-bottom: 25px;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid #3A2A12; /* Border color */
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: #FFD36B; /* Auxiliary color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 500;
  text-align: left;
}

.page-terms-conditions__paragraph {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #FFF6D6;
}

.page-terms-conditions__paragraph a {
  color: #F2C14E;
  text-decoration: underline;
}

.page-terms-conditions__paragraph a:hover {
  color: #FFD36B;
}

.page-terms-conditions__faq-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #111111; /* Card BG color */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-terms-conditions__faq-item {
  background-color: #0A0A0A; /* Darker background for individual items */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-terms-conditions__faq-title {
  margin: 0;
  color: #FFF6D6;
}

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

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-question {
  background-color: #1a1a1a;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(45deg);
  color: #FFD36B;
}

.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;
}

.page-terms-conditions__faq-answer p {
  margin-bottom: 10px;
  font-size: 0.95em;
  color: #FFF6D6;
}

.page-terms-conditions__conclusion-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
  background-color: #111111; /* Card BG color */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border color */
}

.page-terms-conditions__conclusion-section .page-terms-conditions__section-title {
  border-bottom: none;
  text-align: center;
  margin-top: 0;
  color: #F2C14E;
}

.page-terms-conditions__conclusion-section .page-terms-conditions__paragraph {
  margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-content {
    margin-top: -150px;
    padding-top: 170px;
  }
}

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

  .page-terms-conditions__hero-section {
    padding: 10px 0 20px;
  }

  .page-terms-conditions__hero-image-wrapper {
    max-height: 300px;
  }

  .page-terms-conditions__hero-content {
    margin-top: -100px; /* Adjust for smaller screens */
    padding-top: 120px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }

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

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__content-area,
  .page-terms-conditions__faq-section,
  .page-terms-conditions__conclusion-section {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-terms-conditions__sub-title {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

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

  .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;
  }

  /* Mobile image adaptation */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
  }

  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding for hero section */
  }
}