/* style/terms-conditions.css */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #1a1a1a, so text is light */
  background-color: #1a1a1a;
}

.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  min-height: 450px;
  overflow: hidden;
  background-color: #0d0d0d;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-terms-conditions__main-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold brand color */
  color: #1a1a1a; /* Dark text for contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-terms-conditions__content-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #FFD700; /* Gold brand color */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #8B0000; /* Dark red accent */
  padding-bottom: 10px;
}

.page-terms-conditions__sub-section-title {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__text-block {
  margin-bottom: 15px;
  color: #ffffff;
}

.page-terms-conditions__list,
.page-terms-conditions__list-item {
  margin-bottom: 10px;
  color: #ffffff;
  padding-left: 20px;
}

.page-terms-conditions__list {
  list-style-type: disc;
}

.page-terms-conditions__link {
  color: #FFD700;
  text-decoration: none;
}

.page-terms-conditions__link:hover {
  text-decoration: underline;
}

.page-terms-conditions__image-container {
  margin: 40px 0;
  text-align: center;
}

.page-terms-conditions__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-terms-conditions__faq-section {
  margin-top: 40px;
}

.page-terms-conditions__faq-item {
  background-color: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #8B0000; /* Dark red brand color */
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-terms-conditions__faq-question .page-terms-conditions__sub-section-title {
  margin: 0;
  color: #ffffff;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.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 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #3a3a3a;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px 25px;
}

.page-terms-conditions__faq-answer .page-terms-conditions__text-block {
  margin-bottom: 0;
}

.page-terms-conditions__video-section {
  margin-top: 60px;
  background-color: #000000;
  padding: 40px 0;
  text-align: center;
}

.page-terms-conditions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px; /* Limit video width */
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  width: 100%; /* Ensure video wrapper is responsive */
  box-sizing: border-box;
}

.page-terms-conditions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__intro-text {
    font-size: 1.1em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    min-height: 350px;
  }

  .page-terms-conditions__hero-content {
    padding: 15px;
  }

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

  .page-terms-conditions__intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-terms-conditions__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important; /* Button responsive */
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-terms-conditions__container {
    padding: 0 15px;
  }

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

  .page-terms-conditions__sub-section-title {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  /* Image responsive */
  .page-terms-conditions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-terms-conditions__image-container,
  .page-terms-conditions__video-section,
  .page-terms-conditions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video responsive */
  .page-terms-conditions video,
  .page-terms-conditions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-terms-conditions__video-wrapper {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
  }

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

  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px 20px;
  }
}

/* Ensure min-size for all content images */
.page-terms-conditions__content-image {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast fixes for specific elements if needed */
.page-terms-conditions__dark-section {
  background: #FFD700;
  color: #ffffff;
}
.page-terms-conditions__light-bg {
  background: #ffffff;
  color: #333333;
}