/* style/terms-conditions.css */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so text is light */
  background-color: #0a0a0a;
  padding-bottom: 40px;
}

.page-terms-conditions__main-content-wrapper {
  padding-top: 120px; /* Desktop padding for fixed header */
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__heading-primary {
  font-size: 38px;
  color: #FFD700; /* Gold color for main heading */
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.page-terms-conditions__introduction-text {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: justify;
  color: #f0f0f0;
}

.page-terms-conditions__section-block {
  margin-bottom: 40px;
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.03); /* Lighter transparent white for sections */
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-terms-conditions__heading-secondary {
  font-size: 28px;
  color: #FFD700; /* Gold color for sub-headings */
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.5);
  padding-bottom: 10px;
  font-weight: 600;
}

.page-terms-conditions__heading-tertiary {
  font-size: 22px;
  color: #FFD700; /* Gold color for tertiary headings */
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: #e0e0e0;
  text-align: justify;
}

.page-terms-conditions__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-terms-conditions__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #e0e0e0;
}

.page-terms-conditions__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFD700; /* Gold checkmark */
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

.page-terms-conditions__link {
  color: #FFD700; /* Gold color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
  color: #ffffff; /* White on hover */
  text-decoration: underline;
}

.page-terms-conditions__highlight {
  color: #FFD700; /* Gold for highlight text */
  font-weight: bold;
}

.page-terms-conditions__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-terms-conditions__button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #0a0a0a; /* Dark text for contrast */  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #FFD700;
  margin-top: 20px;
}

.page-terms-conditions__button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  color: #000000;
}

/* FAQ Section Styles */
.page-terms-conditions__faq-section {
  background-color: rgba(0, 0, 128, 0.1); /* Navy blue transparent background for FAQ */
  border: 1px solid rgba(0, 0, 128, 0.3);
}

.page-terms-conditions__faq-intro {
  font-style: italic;
  color: #cccccc;
  margin-bottom: 30px;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05); /* Light transparent background */
  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: rgba(255, 255, 255, 0.1); /* Slightly lighter on hover */
  border-color: rgba(255, 215, 0, 0.3);
}

.page-terms-conditions__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #FFD700; /* Gold color for FAQ questions */
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle icon */
  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: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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 20px;
  opacity: 0;
  color: #e0e0e0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* Use !important and large value for content */
  padding: 20px !important;
  opacity: 1;
  background: rgba(0, 0, 128, 0.05); /* Lighter navy transparent for answer */
  border-radius: 0 0 5px 5px;
  border-top: 1px dashed rgba(255, 215, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__container {
    padding: 30px 15px;
  }

  .page-terms-conditions__heading-primary {
    font-size: 32px;
  }

  .page-terms-conditions__heading-secondary {
    font-size: 24px;
  }

  .page-terms-conditions__heading-tertiary {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__main-content-wrapper {
    padding-top: 100px; /* Mobile padding for fixed header */
  }

  .page-terms-conditions__container {
    padding: 20px 15px;
    border-radius: 0;
    box-shadow: none;
  }

  .page-terms-conditions__heading-primary {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .page-terms-conditions__introduction-text {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-terms-conditions__section-block {
    padding: 15px;
    margin-bottom: 30px;
  }

  .page-terms-conditions__heading-secondary {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__heading-tertiary {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-terms-conditions p,
  .page-terms-conditions__list-item {
    font-size: 14px;
  }

  .page-terms-conditions__list-item::before {
    font-size: 18px;
  }

  .page-terms-conditions__button {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    font-size: 15px;
  }

  /* FAQ Mobile Styles */
  .page-terms-conditions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-terms-conditions__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-terms-conditions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-terms-conditions__faq-answer {
    padding: 0 15px;
  }
  
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px !important;
  }

  /* Image responsive fix */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-terms-conditions__section-block,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}