/* style/terms-conditions.css */

/* Base Styles */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background #FFFFFF */
  background-color: #ffffff;
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #017439; /* Fallback for hero section */
}

.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;
}

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

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

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.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: #e02a2a;
  border-color: #e02a2a;
  color: #ffffff;
}

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

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

/* Content Area */
.page-terms-conditions__content-area {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #017439;
  margin-bottom: 25px;
  margin-top: 40px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-terms-conditions__text-block {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-terms-conditions__text-block--with-image {
  flex-direction: row;
  align-items: flex-start;
}

.page-terms-conditions__text-block--reverse-image {
  flex-direction: row-reverse;
}

.page-terms-conditions__text-block p {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
  flex: 1;
}

.page-terms-conditions__text-block p:first-child {
  margin-top: 0;
}

.page-terms-conditions__text-block p:last-child {
  margin-bottom: 0;
}

.page-terms-conditions__content-image {
  width: 100%;
  max-width: 400px; /* Display width */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-terms-conditions__text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-terms-conditions__text-link:hover {
  color: #005f2e;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 40px 0;
  background-color: #f8f8f8;
  border-top: 1px solid #eee;
  margin-top: 50px;
}

.page-terms-conditions__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-terms-conditions__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #fefefe;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}

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

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

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #017439;
}

.page-terms-conditions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  color: #555555;
  background-color: #ffffff;
}

.page-terms-conditions__faq-answer p {
  margin-bottom: 10px;
}

.page-terms-conditions__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 3em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1.1em;
  }
  .page-terms-conditions__text-block--with-image,
  .page-terms-conditions__text-block--reverse-image {
    flex-direction: column;
    align-items: center;
  }
  .page-terms-conditions__content-image {
    max-width: 600px;
    margin: 20px 0;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    min-height: 400px;
  }
  .page-terms-conditions__hero-title {
    font-size: 2em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1em;
  }
  .page-terms-conditions__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-terms-conditions__content-area {
    padding: 30px 0;
  }
  .page-terms-conditions__container {
    padding: 0 15px;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-top: 30px;
  }
  .page-terms-conditions__text-block p {
    font-size: 1em;
  }
  .page-terms-conditions__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 15px 0;
  }
  .page-terms-conditions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !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;
  }
  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Fixed header offset for mobile */
  }
  .page-terms-conditions__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-terms-conditions__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__hero-description {
    font-size: 0.9em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.5em;
  }
  .page-terms-conditions__faq-question {
    font-size: 1em;
  }
}

/* Color Contrast Fixes (based on body background #FFFFFF) */
.page-terms-conditions__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-terms-conditions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-terms-conditions p, .page-terms-conditions li {
  color: #333333;
}

/* Specific button colors */
.page-terms-conditions__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
}

.page-terms-conditions__btn-secondary {
  background-color: transparent;
  color: #FFFF00;
  border-color: #C30808;
}

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