/* style/resources-sun88-security-compliance.css */
.page-resources-sun88-security-compliance {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8;
}

.page-resources-sun88-security-compliance__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  overflow: hidden;
  background-color: #1A202C;
  color: #ffffff;
}

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

.page-resources-sun88-security-compliance__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-resources-sun88-security-compliance__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-resources-sun88-security-compliance__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-resources-sun88-security-compliance__content-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-resources-sun88-security-compliance__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-sun88-security-compliance__section-title {
  font-size: 2.2em;
  color: #1A202C;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.page-resources-sun88-security-compliance__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-resources-sun88-security-compliance__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
  text-align: justify;
}

.page-resources-sun88-security-compliance__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-resources-sun88-security-compliance__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-resources-sun88-security-compliance__image-left,
.page-resources-sun88-security-compliance__image-right {
  flex: 1;
  min-width: 200px; /* Minimum size requirement */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-resources-sun88-security-compliance__text-content {
  flex: 1;
}

.page-resources-sun88-security-compliance__btn-primary,
.page-resources-sun88-security-compliance__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-resources-sun88-security-compliance__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
  margin-right: 15px;
}

.page-resources-sun88-security-compliance__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-resources-sun88-security-compliance__btn-secondary {
  background-color: transparent;
  color: #1A202C;
  border: 2px solid #1A202C;
}

.page-resources-sun88-security-compliance__btn-secondary:hover {
  background-color: #1A202C;
  color: #ffffff;
}

.page-resources-sun88-security-compliance__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-resources-sun88-security-compliance__faq-list {
  margin-top: 40px;
}

.page-resources-sun88-security-compliance__faq-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources-sun88-security-compliance__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #1A202C;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
}

.page-resources-sun88-security-compliance__faq-question:hover {
  background-color: #333d4d;
}

.page-resources-sun88-security-compliance__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-resources-sun88-security-compliance__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.page-resources-sun88-security-compliance__faq-item.active .page-resources-sun88-security-compliance__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-sun88-security-compliance__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-resources-sun88-security-compliance__faq-item.active .page-resources-sun88-security-compliance__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-sun88-security-compliance__hero-title {
    font-size: 2.8em;
  }
  .page-resources-sun88-security-compliance__section-title {
    font-size: 2em;
  }
  .page-resources-sun88-security-compliance__image-text-block {
    flex-direction: column;
    text-align: center;
  }
  .page-resources-sun88-security-compliance__image-text-block--reverse {
    flex-direction: column;
  }
  .page-resources-sun88-security-compliance__image-left,
  .page-resources-sun88-security-compliance__image-right {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources-sun88-security-compliance {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-sun88-security-compliance__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources-sun88-security-compliance__hero-title {
    font-size: 2em;
  }
  .page-resources-sun88-security-compliance__hero-description {
    font-size: 1em;
  }
  .page-resources-sun88-security-compliance__section-title {
    font-size: 1.8em;
  }
  .page-resources-sun88-security-compliance__content-section {
    padding: 40px 0;
  }
  .page-resources-sun88-security-compliance__container {
    padding: 0 15px;
  }
  .page-resources-sun88-security-compliance__btn-primary,
  .page-resources-sun88-security-compliance__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 10px;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-sun88-security-compliance__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image and video adaptation */
  .page-resources-sun88-security-compliance img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-sun88-security-compliance__section,
  .page-resources-sun88-security-compliance__card,
  .page-resources-sun88-security-compliance__container,
  .page-resources-sun88-security-compliance__video-section,
  .page-resources-sun88-security-compliance__video-container,
  .page-resources-sun88-security-compliance__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources-sun88-security-compliance__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-resources-sun88-security-compliance__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-resources-sun88-security-compliance__hero-title {
    font-size: 1.8em;
  }
  .page-resources-sun88-security-compliance__section-title {
    font-size: 1.5em;
  }
  .page-resources-sun88-security-compliance__text-block {
    font-size: 0.95em;
  }
}