/* style/terms-conditions.css */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust as needed */
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-terms-conditions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Login/Register color */
  color: #FFFF00; /* Login/Register font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-terms-conditions__content-wrapper {
  background-color: #1a1a1a; /* Slightly lighter dark background for content */
  padding: 60px 0;
}

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

.page-terms-conditions__section {
  margin-bottom: 40px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark bg */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #017439; /* Primary brand color for titles */
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(1, 116, 57, 0.5);
  padding-bottom: 10px;
}

.page-terms-conditions h3 {
  font-size: 1.6em;
  color: #ffffff;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-terms-conditions__text-block {
  font-size: 1.1em;
  color: #f0f0f0; /* Light text for readability */
  margin-bottom: 15px;
}

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

.page-terms-conditions__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-terms-conditions__list-item strong {
  color: #017439; /* Highlight strong text with brand color */
}

.page-terms-conditions__link {
  color: #017439; /* Brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
  color: #00a050; /* Lighter shade on hover */
  text-decoration: underline;
}

.page-terms-conditions__image-container {
  text-align: center;
  margin: 30px 0;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center image */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly different background for FAQ */
  padding: 40px;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(1, 116, 57, 0.3);
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.03);
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
  background-color: #00a050; /* Lighter brand color on hover */
}

.page-terms-conditions__faq-title {
  margin: 0;
  color: #ffffff; /* Ensure title color is white */
}

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

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.02);
  color: #f0f0f0;
}

/* IMPORTANT: Ensure this max-height is sufficient for content */
.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px !important; /* Adjust padding when active */
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 2.8em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1.2em;
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    height: 60vh;
    min-height: 350px;
  }
  .page-terms-conditions__hero-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1.1em;
  }
  .page-terms-conditions__btn-primary {
    padding: 12px 25px;
    font-size: 0.95em;
  }
  .page-terms-conditions__content-wrapper {
    padding: 40px 0;
  }
  .page-terms-conditions__container {
    padding: 0 15px; /* Add padding for mobile content */
  }
  .page-terms-conditions__section {
    padding: 20px;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions h3 {
    font-size: 1.4em;
  }
  .page-terms-conditions__text-block,
  .page-terms-conditions__list-item {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  /* Ensure hero section padding-top for mobile */
  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile button responsiveness */
  .page-terms-conditions__btn-primary,
  .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;
    text-align: center;
  }
  .page-terms-conditions__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow-x: hidden !important;
  }
  .page-terms-conditions__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.6em;
  }
  .page-terms-conditions h3 {
    font-size: 1.2em;
  }
  .page-terms-conditions__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-terms-conditions__faq-answer {
    padding: 15px !important;
  }
}