/* style/terms-conditions.css */

/* Base styles for the page */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for content area if needed, but body handles global */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  overflow: hidden; /* Ensure no overflow from images */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it takes full width */
  margin-bottom: 30px; /* Space between image and content */
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any background effects */
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  color: #017439; /* Brand primary color */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-terms-conditions__intro-description {
  font-size: 1.15em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Area */
.page-terms-conditions__content-area {
  padding: 60px 20px;
  background-color: #f9f9f9; /* Light grey background for content distinction */
}

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

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-terms-conditions__article-section {
  background-color: #ffffff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-terms-conditions__article-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions__paragraph {
  font-size: 1em;
  color: #333333;
  margin-bottom: 10px;
}

.page-terms-conditions__highlight {
  font-weight: bold;
  color: #017439;
}

.page-terms-conditions__image {
  width: 100%;
  max-width: 400px; /* Example max-width for content images */
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__image--left {
  float: left;
  margin-right: 20px;
}

.page-terms-conditions__image--right {
  float: right;
  margin-left: 20px;
}

/* Clearfix for floated images */
.page-terms-conditions__article-section::after {
  content: "";
  display: table;
  clear: both;
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons adapt to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

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

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

.page-terms-conditions__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 20px;
  background-color: #f0f8f0; /* Lighter green tint for FAQ */
}

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

.page-terms-conditions__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-terms-conditions__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  color: #017439;
  font-size: 1.1em;
  border-bottom: 1px solid #eee;
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
}

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

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-terms-conditions__faq-answer {
  padding: 20px;
  font-size: 0.95em;
  color: #555555;
  border-top: 1px solid #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-content {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset, small decorative padding */
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for mobile */
  }

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

  .page-terms-conditions__content-area,
  .page-terms-conditions__faq-section {
    padding: 30px 15px;
  }

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

  .page-terms-conditions__article-title {
    font-size: 1.5em;
  }

  /* Images */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    float: none !important; /* Remove float on mobile */
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-terms-conditions__hero-image-wrapper,
  .page-terms-conditions__container,
  .page-terms-conditions__article-section,
  .page-terms-conditions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Buttons */
  .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;
  }

  .page-terms-conditions__hero-content .page-terms-conditions__btn-primary {
    margin-top: 20px; /* Space for the button below content */
  }

  .page-terms-conditions__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

/* Ensure no filter on images */
.page-terms-conditions img {
  filter: none !important;
}