.page-terms-conditions__hero-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  padding-top: var(--header-offset, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:hero:1920x1080:888_casino,terms_conditions,legal_document,abstract_background,secure_data]') no-repeat center center/cover;
  opacity: 0.15;
  z-index: 0;
}

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

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

.page-terms-conditions__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-terms-conditions__content-area {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 20px;
  line-height: 1.7;
}

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

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  color: #333333;
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #333333;
}

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

.page-terms-conditions__btn-primary {
  background-color: #C30808; /* Đăng ký */
  color: #FFFF00; /* Đăng ký và Đăng nhập font */
  border: 2px solid #C30808;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
  color: #ffffff;
}

.page-terms-conditions__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  margin-top: 20px;
}

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

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

.page-terms-conditions__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-terms-conditions__faq-title {
  margin: 0;
  flex-grow: 1;
}

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

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

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

.page-terms-conditions__faq-text {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

/* Image and Video Responsive Styles */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-terms-conditions video,
.page-terms-conditions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-terms-conditions__video-section,
.page-terms-conditions__video-container,
.page-terms-conditions__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-terms-conditions__hero-title {
    font-size: 2.5em;
  }

  .page-terms-conditions__hero-description {
    font-size: 1em;
  }

  .page-terms-conditions__content-area {
    padding: 30px 15px;
  }

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

  .page-terms-conditions__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__text-block {
    font-size: 0.95em;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-terms-conditions__btn-secondary {
    margin-top: 15px;
  }

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

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

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

  /* Mobile image and video responsive styles */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-terms-conditions video,
  .page-terms-conditions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__video-section,
  .page-terms-conditions__video-container,
  .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;
  }

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

/* General Content Area Image CSS for minimum size enforcement */
.page-terms-conditions__content-area img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Ensure no filter is used on images */
.page-terms-conditions img {
  filter: none;
}