/* style/terms-conditions.css */

/* General page styling */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  line-height: 1.6;
  background-color: #121212; /* Ensure consistency with body background */
}

/* Fixed navigation bar spacing */
.page-terms-conditions__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on actual nav height */
  padding-bottom: 60px;
  background-color: var(--primary-color, #0A2E50); /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

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

.page-terms-conditions__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color, #FFD700); /* Gold for main title */
  font-weight: bold;
}

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

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

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
  white-space: normal; /* Responsive button */
  word-wrap: break-word; /* Responsive button */
}

.page-terms-conditions__cta-button--primary {
  background-color: var(--secondary-color, #FFD700); /* Gold button */
  color: var(--primary-color, #0A2E50); /* Dark blue text */
  border: 2px solid var(--secondary-color, #FFD700);
}

.page-terms-conditions__cta-button--primary:hover {
  background-color: #e6c200; /* Darken gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-button--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-terms-conditions__cta-button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__content-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-terms-conditions__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
  color: #f0f0f0;
}

/* Ensure strong contrast for text in general content */
.page-terms-conditions p,
.page-terms-conditions li {
  color: #f0f0f0; /* Explicitly set light color for paragraphs and list items */
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: var(--secondary-color, #FFD700); /* Gold for section titles */
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-terms-conditions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color, #FFD700);
  border-radius: 2px;
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-top: 35px;
  margin-bottom: 15px;
}

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

.page-terms-conditions ul li {
  margin-bottom: 0.5em;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section Styling */
.page-terms-conditions__faq-list {
  margin-top: 40px;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a; /* Darker background for FAQ items */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color, #0A2E50); /* Primary brand color for question background */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-terms-conditions__faq-question:hover {
  background: #0d365e; /* Slightly lighter on hover */
  border-color: rgba(255, 255, 255, 0.2);
}

.page-terms-conditions__faq-question:active {
  background: #103c6b;
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color, #FFD700); /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: #2a2a2a; /* Background for answer */
  color: #f0f0f0;
  border-radius: 0 0 8px 8px;
}

/* Ensure padding is set to 0 initially and then to actual value when active */
.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 25px !important;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile nav height */
    padding-bottom: 40px;
  }

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

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

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-terms-conditions__cta-button {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-terms-conditions__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-terms-conditions__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
  }

  .page-terms-conditions ul {
    margin-left: 15px;
  }

  /* Responsive Images */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 30px auto !important;
    box-sizing: border-box !important;
  }
  .page-terms-conditions__image {
    padding: 0 0px;
  }

  /* Responsive FAQ */
  .page-terms-conditions__faq-question {
    padding: 15px 20px;
  }

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

  .page-terms-conditions__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }

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

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