/* style/terms-conditions.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background #0a0a0a */
  background-color: transparent; /* Main content background is transparent, letting body background show */
}

/* Fixed header offset */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px; /* Minimum height for hero section */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden; /* Ensure content doesn't spill */
  box-sizing: border-box;
}

.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: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

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

.page-terms-conditions__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF; /* White for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-terms-conditions__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-terms-conditions__btn-primary {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button text color */
  border: 2px solid #C30808;
}

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

.page-terms-conditions__btn-secondary {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login button text color */
  border: 2px solid #C30808;
}

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

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #0a0a0a; /* Ensure content area has a background for text contrast */
}

.page-terms-conditions__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-terms-conditions__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
  padding: 60px 20px;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #017439; /* Brand primary color for section titles */
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(1, 116, 57, 0.3);
  padding-bottom: 10px;
}

.page-terms-conditions__section-title--dark {
  color: #017439; /* Title in light-bg section */
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  color: #FFFFFF; /* White for sub titles */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #f0f0f0; /* Slightly off-white for body text */
}

.page-terms-conditions__text-block a {
  color: #017439; /* Brand color for links */
  text-decoration: underline;
}

.page-terms-conditions__text-block a:hover {
  color: #02a04d;
}

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

.page-terms-conditions__image--centered {
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section Styles */
.page-terms-conditions__faq-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Lighter dark background for FAQ */
  color: #ffffff;
}

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

.page-terms-conditions__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible item background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(1, 116, 57, 0.2);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.1); /* Slightly darker for question area */
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
  background-color: rgba(1, 116, 57, 0.2);
}

.page-terms-conditions__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439; /* Brand color for toggle icon */
  transition: transform 0.3s ease;
}

.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-answer p {
  margin: 0;
  padding-bottom: 20px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

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


/* Responsive styles */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__sub-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset is applied */
  }

  .page-terms-conditions__main-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__hero-description {
    font-size: 0.95em;
  }
  .page-terms-conditions__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important; /* Buttons take full width */
    max-width: 100% !important;
    padding: 15px 20px;
  }

  /* All images */
  .page-terms-conditions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers that might hold images/content */
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__content-area,
  .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-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-terms-conditions__section-title {
    font-size: 1.5em;
  }
  .page-terms-conditions__sub-title {
    font-size: 1.2em;
  }
  .page-terms-conditions__text-block,
  .page-terms-conditions__faq-text {
    font-size: 0.9em;
  }
  .page-terms-conditions__faq-title {
    font-size: 1em;
  }
}