/* 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; /* Default text color for dark body background */
  background-color: #121212; /* Matches body background type */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  box-sizing: border-box;
}

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

.page-terms-conditions__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

.page-terms-conditions__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Content Area */
.page-terms-conditions__content-area {
  background-color: #121212; /* Dark background */
  color: #ffffff; /* Light text for contrast */
  padding: 60px 0;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #017439; /* Brand primary color for headings */
  margin-top: 40px;
  margin-bottom: 20px;
  padding-left: 15px;
  padding-right: 15px;
}

.page-terms-conditions__sub-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-left: 15px;
  padding-right: 15px;
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 40px;
  margin-bottom: 20px;
  padding-right: 15px;
}

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

.page-terms-conditions__list-strong {
  color: #017439; /* Highlight key terms */
}

.page-terms-conditions__link {
  color: #FFFF00; /* Highlight links for visibility */
  text-decoration: underline;
}

.page-terms-conditions__link:hover {
  color: #C30808;
}

/* Images */
.page-terms-conditions__image-wrapper {
  margin: 30px 0;
  text-align: center;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center the image */
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  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%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-terms-conditions__btn-primary {
  background-color: #C30808; /* Custom color for login/register */
  color: #FFFF00; /* Custom font color for login/register */
  border: 2px solid #C30808;
}

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

.page-terms-conditions__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* FAQ Section */
.page-terms-conditions__faq-heading {
  margin-top: 60px;
  text-align: center;
  color: #017439;
}

.page-terms-conditions__faq-container {
  max-width: 800px;
  margin: 40px auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 15px;
}

.page-terms-conditions__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__faq-item:last-child {
  border-bottom: none;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  transition: background-color 0.3s ease;
}

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

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439; /* Brand primary color for toggle icon */
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: #222222; /* Darker background for answer */
  color: #cccccc;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

  .page-terms-conditions__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
  }

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

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

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

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__list {
    margin-left: 25px;
  }

  /* Mobile image responsiveness */
  .page-terms-conditions__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__image-wrapper,
  .page-terms-conditions__faq-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

@media (max-width: 480px) {
  .page-terms-conditions__main-title {
    font-size: 1.8em;
  }

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

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