.page-terms-conditions {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #121212; /* Matches body background from shared.css */
}

.page-terms-conditions__hero-section {
  position: relative;
  padding: 100px 20px 60px; /* Adjust padding-top to accommodate header */
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background-color: #017439; /* Brand main color for hero */
  background-image: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:terms_hero:1920x1080:13win casino,terms of service,legal,security,agreement,vietnam]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-terms-conditions__hero-image {
  display: none; /* Hide the background image as a separate img tag, use it in CSS background */
}

.page-terms-conditions__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  z-index: 1;
}

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

.page-terms-conditions__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom color for Register/Login font */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

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

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* White background for content area for readability */
  color: #333333; /* Dark text for white background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #017439; /* Brand main color for section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-terms-conditions__text-block {
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-terms-conditions__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__cta-section {
  text-align: center;
  background-color: #f0f0f0;
  padding: 40px 20px;
  margin-top: 60px;
  border-radius: 8px;
}

.page-terms-conditions__cta-text {
  font-size: 1.3em;
  margin-bottom: 25px;
  color: #333333;
  font-weight: bold;
}

/* FAQ Section Styles */
.page-terms-conditions__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  color: #333333;
  border-radius: 8px;
  margin-top: 60px;
}

.page-terms-conditions__faq-list {
  margin-top: 30px;
}

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

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-terms-conditions__faq-question h3 {
  margin: 0;
  color: #017439; /* Brand color for FAQ questions */
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(0deg); /* No rotation for '-' */
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 300px;
  }

  .page-terms-conditions__main-title {
    font-size: 2em;
  }

  .page-terms-conditions__description,
  .page-terms-conditions__cta-text {
    font-size: 1em;
  }

  .page-terms-conditions__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 0.9em;
  }

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

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

  .page-terms-conditions__image-content {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
  }

  .page-terms-conditions__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-terms-conditions__faq-question h3 {
    font-size: 1em;
  }

  .page-terms-conditions__faq-answer {
    padding: 0 20px;
  }

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

  /* Ensure content containers also adapt */
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* General image responsiveness to prevent overflow */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Content area images specific CSS size lower limit */
.page-terms-conditions__content-area img {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Color contrast fixes for specific elements if needed */
.page-terms-conditions__dark-bg {
  color: #ffffff;
  background-color: #017439;
}

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

.page-terms-conditions__faq-question h3 {
  color: #017439; /* Ensure brand color has good contrast on white background */
}

.page-terms-conditions p,
.page-terms-conditions li {
  color: #333333; /* Default text color for light backgrounds */
}