/* style/terms-conditions.css */
.page-terms-conditions {
  background-color: #08160F; /* Background custom color */
  color: #F2FFF6; /* Main text custom color */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  background-color: #11271B; /* Card BG for hero background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-terms-conditions__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px auto; /* Image above text */
  border-radius: 8px;
  overflow: hidden;
}

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

.page-terms-conditions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px; /* Add horizontal padding for content */
}

.page-terms-conditions__main-title {
  color: #57E38D; /* Glow color for H1 */
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size with clamp */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-terms-conditions__description {
  color: #A7D9B8; /* Secondary text color */
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Main text color for button text */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-terms-conditions__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-terms-conditions__section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid #1E3A2A; /* Divider color */
}

.page-terms-conditions__section:last-of-type {
  border-bottom: none;
}

.page-terms-conditions__section-title {
  color: #57E38D; /* Glow color for H2 */
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  line-height: 1.3;
}

.page-terms-conditions__subsection-title {
  color: #F2C14E; /* Gold color for H3 */
  font-size: 1.6em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 500;
  line-height: 1.4;
}

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

.page-terms-conditions__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-terms-conditions__list-item {
  margin-bottom: 10px;
}

.page-terms-conditions__image-wrapper {
  margin: 30px auto;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  max-width: 800px;
}

.page-terms-conditions__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-terms-conditions__faq-section {
  padding-bottom: 80px;
}

.page-terms-conditions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-terms-conditions__faq-item details > summary {
  list-style: none;
}

.page-terms-conditions__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  cursor: pointer;
  color: #F2FFF6; /* Main text color */
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.1); /* Slight hover effect with brand color */
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
  color: #F2C14E; /* Gold for FAQ question text */
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #57E38D; /* Glow color for toggle */
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
  padding: 0 25px 18px 25px;
  color: #A7D9B8; /* Secondary text color */
  line-height: 1.7;
  /* For details tag, max-height is not needed for expansion */
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section,
  .page-terms-conditions__section {
    padding: 30px 15px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

  .page-terms-conditions__subsection-title {
    font-size: 1.4em;
  }

  /* Mobile image responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-terms-conditions__image-wrapper,
  .page-terms-conditions__hero-image-container,
  .page-terms-conditions__section,
  .page-terms-conditions__faq-list,
  .page-terms-conditions__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-terms-conditions__cta-button,
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary,
  .page-terms-conditions a[class*="button"],
  .page-terms-conditions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

  /* Ensure text is readable on mobile */
  .page-terms-conditions p,
  .page-terms-conditions li {
    font-size: 0.95em;
  }
}