/* style/terms-conditions.css */

/* Base styles for the page content, ensuring contrast with dark body background */
.page-terms-conditions {
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #1a1a1a; /* Slightly lighter than body for sections, or transparent */
  font-family: 'Arial', sans-serif;
  line-height: 1.7;
  padding-bottom: 60px; /* Space before footer */
}

/* Fixed navigation bar spacing */
.page-terms-conditions__main-content {
  padding-top: 120px; /* Desktop spacing */
}

/* Hero Banner Section */
.page-terms-conditions__hero-banner {
  background: linear-gradient(135deg, #003366, #FFA500); /* Brand colors */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-terms-conditions__hero-subtitle {
  font-size: 1.4em;
  margin-bottom: 30px;
  opacity: 0.9;
  color: #f0f0f0;
}

.page-terms-conditions__hero-btn {
  display: inline-block;
  background-color: #FFA500; /* Auxiliary color for CTA */
  color: #000000; /* Dark text for contrast on orange */
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-terms-conditions__hero-btn:hover {
  background-color: #ffc107;
  transform: translateY(-3px);
}

/* Main Content Area */
.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #1a1a1a; /* Slightly lighter than body for content area */
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__article {
  margin-bottom: 40px;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #FFA500; /* Auxiliary color for main headings */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #003366; /* Main color for underline */
  padding-bottom: 10px;
  font-weight: 600;
}

.page-terms-conditions__sub-section-title {
  font-size: 1.6em;
  color: #003366; /* Main color for sub-headings */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

.page-terms-conditions__list-item {
  margin-bottom: 8px;
  color: #f0f0f0;
}

.page-terms-conditions__contact-info p {
  margin-bottom: 5px;
  color: #f0f0f0;
}

.page-terms-conditions__contact-info a {
  color: #FFA500; /* Link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions__contact-info a:hover {
  color: #ffc107;
  text-decoration: underline;
}

/* Call to Action Section */
.page-terms-conditions__cta-section {
  background: #003366;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-title {
  font-size: 2.5em;
  color: #FFA500;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-terms-conditions__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-btn {
  display: inline-block;
  background-color: #FFA500;
  color: #000000;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-terms-conditions__cta-btn:hover {
  background-color: #ffc107;
  transform: translateY(-3px);
}

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

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

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

/* FAQ default state - answer hidden */
.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 20px;
  opacity: 0;
  color: #e0e0e0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important for priority, value large enough for any content */
  padding: 20px !important;
  opacity: 1;
  background: #333333; /* Slightly lighter background for expanded answer */
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #003366; /* Main brand color for question background */
  border: 1px solid #004488;
  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: #004488;
  border-color: #0055aa;
}

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

/* Question title style */
.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 */
  color: #ffffff;
}

/* Toggle icon */
.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFA500; /* Auxiliary color 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: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #FFA500;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: #ffffff;
  border-color: #ffffff;
  transform: rotate(45deg); /* Plus to X effect */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 2.8em;
  }
  .page-terms-conditions__hero-subtitle {
    font-size: 1.3em;
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
  .page-terms-conditions__sub-section-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  /* Fixed navigation bar spacing */
  .page-terms-conditions__main-content {
    padding-top: 100px; /* Mobile spacing */
  }

  .page-terms-conditions__hero-banner {
    padding: 60px 15px;
  }
  .page-terms-conditions__hero-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__hero-subtitle {
    font-size: 1.1em;
  }
  .page-terms-conditions__hero-btn {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-terms-conditions__container {
    padding: 30px 15px;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__sub-section-title {
    font-size: 1.3em;
  }

  .page-terms-conditions__cta-section {
    padding: 30px 15px;
  }
  .page-terms-conditions__cta-title {
    font-size: 2em;
  }
  .page-terms-conditions__cta-description {
    font-size: 1em;
  }
  .page-terms-conditions__cta-btn {
    padding: 12px 25px;
    font-size: 1.1em;
  }

  /* FAQ mobile adaptation */
  .page-terms-conditions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-terms-conditions__faq-question h3 {
    font-size: 1.1em;
    margin-bottom: 0;
    width: calc(100% - 40px); /* Adjust width for toggle */
  }
  .page-terms-conditions__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-terms-conditions__faq-answer {
    padding: 0 15px;
  }
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image responsive adaptation */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-terms-conditions__hero-banner img,
  .page-terms-conditions__container img,
  .page-terms-conditions__article img,
  .page-terms-conditions__cta-section img,
  .page-terms-conditions__faq-section img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure strong/bold text has good contrast */
.page-terms-conditions__paragraph strong,
.page-terms-conditions__list-item strong {
    color: #FFA500; /* Auxiliary color for emphasis */
}