/* style/terms-conditions.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  padding: 80px 0 40px;
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-terms-conditions__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__intro-text {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__hero-image-wrapper {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

/* Content Area */
.page-terms-conditions__content-area {
  padding: 60px 0;
  background-color: #f5f5f5; /* Light background for main content */
  color: #333333; /* Dark text for light background */
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #017439; /* Brand primary color for titles */
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 3px solid #017439;
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  color: #017439; /* Brand primary color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-terms-conditions__paragraph a {
  color: #017439; /* Link color */
  text-decoration: underline;
}

.page-terms-conditions__paragraph a:hover {
  color: #005f2e; /* Darker green on hover */
}

.page-terms-conditions__content-image-wrapper {
  margin: 40px 0;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-terms-conditions__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ item */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-terms-conditions__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

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

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Plus to X effect */
  content: '−';
}

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

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px;
}

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

.page-terms-conditions__cta-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: rgba(1, 116, 57, 0.2); /* Semi-transparent brand color */
  border-radius: 8px;
}

.page-terms-conditions__cta-text {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

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

.page-terms-conditions__faq-image-wrapper {
  margin-top: 40px;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Responsive styles */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 0 30px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

  .page-terms-conditions__content-area, .page-terms-conditions__faq-section {
    padding: 40px 0;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8em;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.4em;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__paragraph {
    font-size: 0.95em;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__faq-question {
    padding: 15px;
  }

  .page-terms-conditions__faq-question h3 {
    font-size: 1em;
  }

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

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

  .page-terms-conditions__cta-text {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-terms-conditions__btn-primary {
    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__container,
  .page-terms-conditions__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Ensure all images are responsive */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-terms-conditions__hero-image-wrapper,
  .page-terms-conditions__content-image-wrapper,
  .page-terms-conditions__faq-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Fixes (if needed, based on body background #1a1a1a - dark) */
.page-terms-conditions__dark-bg {
  color: #ffffff; /* Deep background with light text */
  background: #017439; /* Using brand color */
}

.page-terms-conditions__light-bg {
  color: #333333; /* Light background with dark text */
  background: #f5f5f5;
}

/* Specific elements for contrast */
.page-terms-conditions h1, .page-terms-conditions h2, .page-terms-conditions h3 {
  color: inherit; /* Inherit from parent, adjusted as needed */
}

.page-terms-conditions__faq-item h3 {
  color: #ffffff;
}

.page-terms-conditions__btn-primary {
  background: #C30808; /* Red for register/login */
  color: #FFFF00; /* Yellow for text */
}