/* style/terms-conditions.css */
.page-terms-conditions {
  /* Default text color for the entire page, assuming shared.css sets body background to #121212 (dark) */
  color: #ffffff; /* Light text for dark body background */
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #017439; /* Fallback background color */
}

.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: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

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

.page-terms-conditions__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-terms-conditions__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #ffffff;
}

.page-terms-conditions__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* White background for main content readability */
  color: #333333; /* Dark text for white background */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-50px); /* Slightly lift it to overlap hero or stand out */
  position: relative;
  z-index: 10;
  padding-top: var(--header-offset, 120px); /* Apply header offset to the main content wrapper */
}

/* Override default text color for elements inside content-wrapper */
.page-terms-conditions__content-wrapper h1,
.page-terms-conditions__content-wrapper h2,
.page-terms-conditions__content-wrapper h3,
.page-terms-conditions__content-wrapper p,
.page-terms-conditions__content-wrapper li {
  color: #333333; /* Ensure dark text on white background */
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
  background-color: #017439; /* Brand green */
  color: #ffffff;
  border: 2px solid #017439;
  margin-right: 15px;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

.page-terms-conditions__btn-secondary {
  background-color: #C30808; /* Login/Register red */
  color: #FFFF00; /* Login/Register font yellow */
  border: 2px solid #C30808;
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #9e0606;
  border-color: #9e0606;
}

.page-terms-conditions__section {
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

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

.page-terms-conditions__section-title {
  font-size: 2em;
  margin-bottom: 20px;
  color: #017439; /* Brand green for section titles */
  font-weight: bold;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-terms-conditions ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-terms-conditions ol {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-terms-conditions li {
  margin-bottom: 8px;
  line-height: 1.6;
}

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

/* Video Section */
.page-terms-conditions__video-section {
  position: relative;
  width: 100%;
  padding: 60px 0;
  background-color: #0d0d0d; /* Dark background for video section */
  text-align: center;
  color: #ffffff; /* Light text for dark background */
  overflow: hidden;
}

.page-terms-conditions__video-container {
  max-width: 960px; /* Max width for video */
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

.page-terms-conditions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%; /* Ensure video does not overflow */
}

.page-terms-conditions__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.page-terms-conditions__video-link:hover .page-terms-conditions__video-overlay {
  opacity: 1;
}

.page-terms-conditions__video-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-terms-conditions__video-description {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0;
  max-width: 80%;
}

/* CTA Section */
.page-terms-conditions__cta-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #f8f8f8; /* Light background for CTA */
  color: #333333; /* Dark text */
  border-top: 1px solid #eee;
}

.page-terms-conditions__cta-section .page-terms-conditions__section-title {
  color: #017439;
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 50px 0;
  background-color: #f8f8f8; /* Light background for FAQ */
  color: #333333;
}

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

.page-terms-conditions__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #fefefe;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

.page-terms-conditions__faq-item[open] > .page-terms-conditions__faq-question {
  background-color: #e9e9e9;
  color: #017439;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  color: #017439;
}

.page-terms-conditions__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.8em;
  }
  .page-terms-conditions__description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    height: 450px;
  }
  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__description {
    font-size: 1em;
  }
  .page-terms-conditions__content-wrapper {
    padding: 20px 15px;
    transform: translateY(-30px);
    width: calc(100% - 30px) !important; /* Ensure full width minus padding */
    box-sizing: border-box !important;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    padding: 10px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Image responsive */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__cta-section,
  .page-terms-conditions__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Video responsive */
  .page-terms-conditions video,
  .page-terms-conditions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-terms-conditions__video-section,
  .page-terms-conditions__video-container,
  .page-terms-conditions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* Fixed header offset for video section on mobile if it's the first element */
  .page-terms-conditions__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-terms-conditions__video-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__video-description {
    font-size: 0.9em;
  }
}