/* style/terms-conditions.css */

/* Base styles for the terms-conditions page */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color); /* Inherit from shared.css */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  background-color: #26A9E0; /* Fallback for image loading */
}

.page-terms-conditions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: #FFFFFF;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-terms-conditions__main-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  max-width: 100%;
}

.page-terms-conditions__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

/* Buttons */
.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for CTA */
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #d16b00;
}

/* Content Area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF; /* Light background for main content */
  color: #333333; /* Dark text for light background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

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

.page-terms-conditions__section-wrapper:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-terms-conditions__sub-title {
  font-size: 1.4em;
  color: #000000;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  color: #333333;
}

.page-terms-conditions__paragraph a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-terms-conditions__paragraph a:hover {
  color: #1a7fb3;
}

.page-terms-conditions__image-text-block {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-terms-conditions__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-terms-conditions__content-image {
  flex: 0 0 40%;
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__text-content {
  flex: 1;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

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

.page-terms-conditions__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: #26A9E0;
  background-color: #eaf7ff; /* Lighter blue background for FAQ question */
  transition: background-color 0.3s ease;
}

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

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

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

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-terms-conditions__faq-answer {
  padding: 0 25px 18px;
  color: #333333;
  background-color: #f9f9f9;
}

/* Details element open state */
.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-question {
  background-color: #d6eaff;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  content: '−';
}

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

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

  .page-terms-conditions__sub-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-terms-conditions__hero-content {
    padding: 15px;
  }

  .page-terms-conditions__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-terms-conditions__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .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: 12px 15px;
  }

  .page-terms-conditions__content-area {
    padding: 30px 15px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.1em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__image-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-terms-conditions__image-text-block--reverse {
    flex-direction: column;
  }

  .page-terms-conditions__content-image {
    flex: 0 0 100%;
    max-width: 100%;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-terms-conditions__text-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

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

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

  /* Ensure all content containers are responsive */
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__faq-section,
  .page-terms-conditions__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-terms-conditions__hero-section {
    padding-left: 0; /* Hero image is full width */
    padding-right: 0;
  }
  .page-terms-conditions__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Fixes (if needed, based on body background) */
.page-terms-conditions__dark-bg {
  color: #ffffff;
  background-color: var(--black-color);
}

.page-terms-conditions__light-bg {
  color: #333333;
  background-color: #ffffff;
}