/* style/terms-conditions.css */

/* Variables from shared.css */
/* :root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --header-offset: 120px;
} */

.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark, #333333); /* Default text color for light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure consistency with body background */
}

/* 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: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Blend colors */
  color: var(--text-light, #FFFFFF); /* Light text on gradient background */
}

.page-terms-conditions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-terms-conditions__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Constrain image width within hero */
}

.page-terms-conditions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no image color alteration */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-terms-conditions__main-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light, #FFFFFF);
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light, #FFFFFF);
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login/Register specific color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box; /* Button responsive */
  white-space: normal; /* Button responsive */
  word-wrap: break-word; /* Button responsive */
}

.page-terms-conditions__cta-button:hover {
  background: #c56506; /* Darken on hover, equivalent to darken(#EA7C07, 10%) */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: var(--secondary-color, #FFFFFF); /* Light background for content */
  color: var(--text-dark, #333333); /* Dark text on light background */
}

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

.page-terms-conditions__section-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color, #26A9E0);
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark, #333333);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-terms-conditions__text-block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  filter: none; /* Ensure no image color alteration */
}

.page-terms-conditions__contact-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-terms-conditions__contact-list li {
  margin-bottom: 8px;
}

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

/* FAQ container styles */
.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 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 15px;
  opacity: 0;
}

/* 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 to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* Question title style */
.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--text-dark, #333333);
}

/* Toggle icon */
.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: var(--primary-color, #26A9E0);
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 34px;
  }
  .page-terms-conditions__description {
    font-size: 17px;
  }
  .page-terms-conditions__section-title {
    font-size: 26px;
  }
  .page-terms-conditions__sub-title {
    font-size: 20px;
  }
}