/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

/* Fixed header offset */
.page-terms-conditions__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  position: relative;
  overflow: hidden;
  background-color: #1A2B4A; /* Dark blue background for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay */
  z-index: 0;
}

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

.page-terms-conditions__hero-title {
  font-size: 3em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

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

.page-terms-conditions__hero-cta {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #1A2B4A; /* Dark blue text on gold button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-terms-conditions__hero-cta:hover {
  background-color: #e0b800; /* Slightly darker gold on hover */
  color: #0d1a33;
}

.page-terms-conditions__content-area,
.page-terms-conditions__faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-terms-conditions__dark-bg {
  background-color: #1A2B4A; /* Dark blue section background */
  color: #ffffff; /* Light text for dark background */
}

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

.page-terms-conditions__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for section titles */
  margin-bottom: 40px;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__sub-section-title {
  font-size: 1.8em;
  color: #FFD700; /* Gold for sub-section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 10px;
}

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

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

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

.page-terms-conditions__link {
  color: #FFD700; /* Gold for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
  color: #e0b800; /* Slightly darker gold on hover */
}

/* FAQ Section Styling */
.page-terms-conditions__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-terms-conditions__faq-intro {
  text-align: center;
  margin-bottom: 30px;
}

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

.page-terms-conditions__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

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

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

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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; /* Sufficient height for content */
  padding: 20px;
}

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

/* Global image styles for content area */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto; /* Center images */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

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

  .page-terms-conditions__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }

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

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

  .page-terms-conditions__hero-cta {
    padding: 12px 25px;
    font-size: 1em;
    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__content-area,
  .page-terms-conditions__faq-section {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-terms-conditions__sub-section-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__faq-question {
    padding: 15px;
    font-size: 1em;
  }

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

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

  /* Force responsive image behavior */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding-left: 0 !important; /* Ensure no extra padding pushes it out */
    padding-right: 0 !important;
  }

  /* Ensure containers with images are also responsive */
  .page-terms-conditions__container,
  .page-terms-conditions__section,
  .page-terms-conditions__box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Button container mobile adaptation */
  .page-terms-conditions__button-group,
  .page-terms-conditions__btn-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .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;
  }
}