.page-terms-conditions {
  background-color: var(--bg-color, #08160F); /* Fallback to a dark green if --bg-color is not defined */
  color: var(--text-main-color, #F2FFF6); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: #08160F; /* Dark background from custom colors */
  color: #F2FFF6; /* Light text from custom colors */
}

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

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

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

.page-terms-conditions__main-title {
  color: #F2C14E; /* Gold color for main title from custom colors */
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

.page-terms-conditions__intro-text {
  font-size: 18px;
  color: #A7D9B8; /* Secondary text color from custom colors */
  margin-bottom: 30px;
}

.page-terms-conditions__content-section {
  background-color: #11271B; /* Card BG color for content sections from custom colors */
  color: #F2FFF6; /* Main text color from custom colors */
  padding: 40px 0;
}

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

.page-terms-conditions__article {
  background-color: #11271B;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-terms-conditions__article-heading {
  color: #F2C14E; /* Gold color for headings from custom colors */
  font-size: 28px;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #2E7A4E; /* Border color from custom colors */
  padding-bottom: 10px;
}

.page-terms-conditions__sub-heading {
  color: #22C768; /* Accent color for sub-headings from custom colors */
  font-size: 22px;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-terms-conditions__article p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Main text color from custom colors */
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #F2FFF6; /* Main text color from custom colors */
}

.page-terms-conditions__list li {
  margin-bottom: 8px;
}

.page-terms-conditions__image-inline {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 25px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  background-color: #0A4B2C; /* Deep Green for FAQ section from custom colors */
  padding: 30px;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__faq-heading {
  color: #F2C14E; /* Gold color for FAQ heading from custom colors */
  font-size: 32px;
  text-align: center;
  margin-bottom: 30px;
}

.page-terms-conditions__faq-item {
  background-color: #11271B; /* Card BG for FAQ items from custom colors */
  border: 1px solid #2E7A4E; /* Border color from custom colors */
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #F2FFF6; /* Main text color from custom colors */
  font-size: 18px;
  position: relative;
  list-style: none; /* Remove default marker for details summary */
}

.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #22C768; /* Accent color for toggle from custom colors */
}

/* The toggle content is handled by JS, but this ensures initial state */
/* .page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle { content: '−'; } */

.page-terms-conditions__faq-answer {
  padding: 0 20px 15px;
  color: #A7D9B8; /* Secondary text color from custom colors */
  font-size: 16px;
}

.page-terms-conditions__faq-answer p {
  margin-bottom: 0;
}

.page-terms-conditions__faq-answer a {
  color: #2AD16F; /* Button color for links from custom colors */
  text-decoration: underline;
}

/* CTA Section */
.page-terms-conditions__cta-section {
  background-color: #0A4B2C; /* Deep Green from custom colors */
  color: #F2FFF6;
  text-align: center;
  padding: 50px 20px;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-heading {
  color: #F2C14E; /* Gold color from custom colors */
  font-size: 36px;
  margin-bottom: 20px;
}

.page-terms-conditions__cta-text {
  font-size: 20px;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color from custom colors */
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient from custom colors */
  color: #FFFFFF;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-terms-conditions__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Link styles within article */
.page-terms-conditions__article a {
  color: #2AD16F; /* Button color for links from custom colors */
  text-decoration: underline;
}

.page-terms-conditions__article a:hover {
  color: #57E38D; /* Glow color on hover from custom colors */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }
  .page-terms-conditions__article-heading {
    font-size: 26px;
  }
  .page-terms-conditions__sub-heading {
    font-size: 20px;
  }
  .page-terms-conditions__cta-heading {
    font-size: 30px;
  }
  .page-terms-conditions__cta-text {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 10px 15px 40px;
  }
  .page-terms-conditions__container {
    padding: 0 15px;
  }
  .page-terms-conditions__article {
    padding: 20px;
  }
  .page-terms-conditions__main-title {
    font-size: clamp(22px, 6vw, 36px);
  }
  .page-terms-conditions__intro-text {
    font-size: 16px;
  }
  .page-terms-conditions__article-heading {
    font-size: 24px;
  }
  .page-terms-conditions__sub-heading {
    font-size: 18px;
  }
  .page-terms-conditions__list {
    margin-left: 20px;
  }
  .page-terms-conditions__image-inline {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-terms-conditions__faq-section, .page-terms-conditions__cta-section {
    padding: 20px;
  }
  .page-terms-conditions__faq-heading {
    font-size: 28px;
  }
  .page-terms-conditions__cta-heading {
    font-size: 26px;
  }
  .page-terms-conditions__cta-text {
    font-size: 16px;
  }
  .page-terms-conditions__cta-button {
    padding: 12px 25px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-terms-conditions__faq-question {
    font-size: 16px;
  }
  .page-terms-conditions__faq-answer {
    font-size: 14px;
  }

  /* Ensure all containers with images/buttons are responsive */
  .page-terms-conditions__content-section,
  .page-terms-conditions__hero-section,
  .page-terms-conditions__faq-section,
  .page-terms-conditions__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-terms-conditions__hero-image-wrapper,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-terms-conditions__hero-content {
    padding: 0;
  }
}