/* style/resources-l88-online-entertainment-safety.css */
.page-resources-l88-online-entertainment-safety {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Body background from shared.css */
}

.page-resources-l88-online-entertainment-safety__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure hero is not covered by fixed header */
  background-color: #26A9E0; /* Brand color for hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-resources-l88-online-entertainment-safety__hero-content {
  max-width: 900px;
  z-index: 1;
  margin-bottom: 40px;
}

.page-resources-l88-online-entertainment-safety__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-resources-l88-online-entertainment-safety__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-l88-online-entertainment-safety__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-resources-l88-online-entertainment-safety__hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-resources-l88-online-entertainment-safety__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-l88-online-entertainment-safety__btn-primary,
.page-resources-l88-online-entertainment-safety__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-l88-online-entertainment-safety__btn-primary {
  background: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-resources-l88-online-entertainment-safety__btn-primary:hover {
  background: #d66f06;
}

.page-resources-l88-online-entertainment-safety__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources-l88-online-entertainment-safety__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

.page-resources-l88-online-entertainment-safety__section {
  padding: 60px 20px;
}

.page-resources-l88-online-entertainment-safety__content-area {
  max-width: 1200px;
  margin: 0 auto;
  color: #ffffff; /* Text color for light-bg sections on dark body */
}

.page-resources-l88-online-entertainment-safety__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-resources-l88-online-entertainment-safety__light-bg {
  background-color: #1a1a1a; /* Even lighter dark background for contrast */
  color: #ffffff;
}

.page-resources-l88-online-entertainment-safety__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
}

.page-resources-l88-online-entertainment-safety__text-block {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-resources-l88-online-entertainment-safety__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-resources-l88-online-entertainment-safety__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources-l88-online-entertainment-safety__grid-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-resources-l88-online-entertainment-safety__grid-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 800px; /* Base width for content images */
  height: 600px; /* Base height for content images */
  object-fit: cover;
}

.page-resources-l88-online-entertainment-safety__item-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-resources-l88-online-entertainment-safety__item-description {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-resources-l88-online-entertainment-safety__item-description a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Video Section */
.page-resources-l88-online-entertainment-safety__video-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  background-color: #0d0d0d;
  color: #ffffff;
  text-align: center;
}

.page-resources-l88-online-entertainment-safety__video-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources-l88-online-entertainment-safety__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-resources-l88-online-entertainment-safety__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-resources-l88-online-entertainment-safety__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.page-resources-l88-online-entertainment-safety__video-container:hover .page-resources-l88-online-entertainment-safety__video-overlay {
  opacity: 1;
}

.page-resources-l88-online-entertainment-safety__video-title {
  font-size: 2.2em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-resources-l88-online-entertainment-safety__video-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
}

/* FAQ Section */
.page-resources-l88-online-entertainment-safety__faq-section {
  padding: 60px 20px;
  color: #ffffff;
}

.page-resources-l88-online-entertainment-safety__faq-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-resources-l88-online-entertainment-safety__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-l88-online-entertainment-safety__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-l88-online-entertainment-safety__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background: #26A9E0;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-l88-online-entertainment-safety__faq-question:hover {
  background: #1e87bb;
}

.page-resources-l88-online-entertainment-safety__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-resources-l88-online-entertainment-safety__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-l88-online-entertainment-safety__faq-item.active .page-resources-l88-online-entertainment-safety__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-l88-online-entertainment-safety__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.05);
}

.page-resources-l88-online-entertainment-safety__faq-item.active .page-resources-l88-online-entertainment-safety__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-resources-l88-online-entertainment-safety__faq-answer p {
  margin: 0;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-resources-l88-online-entertainment-safety__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Final CTA Section */
.page-resources-l88-online-entertainment-safety__cta-final {
  text-align: center;
  padding-bottom: 80px;
}

.page-resources-l88-online-entertainment-safety__cta-final .page-resources-l88-online-entertainment-safety__section-title {
  color: #ffffff;
}

.page-resources-l88-online-entertainment-safety__cta-final .page-resources-l88-online-entertainment-safety__text-block {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-l88-online-entertainment-safety__hero-title {
    font-size: 2.8em;
  }

  .page-resources-l88-online-entertainment-safety__hero-description {
    font-size: 1.1em;
  }

  .page-resources-l88-online-entertainment-safety__section-title {
    font-size: 2em;
  }

  .page-resources-l88-online-entertainment-safety__item-title {
    font-size: 1.5em;
  }

  .page-resources-l88-online-entertainment-safety__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources-l88-online-entertainment-safety {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-l88-online-entertainment-safety__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile hero padding-top is correct */
  }

  .page-resources-l88-online-entertainment-safety__hero-title {
    font-size: 2.2em;
  }

  .page-resources-l88-online-entertainment-safety__hero-description {
    font-size: 1em;
  }

  .page-resources-l88-online-entertainment-safety__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-l88-online-entertainment-safety__btn-primary,
  .page-resources-l88-online-entertainment-safety__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-l88-online-entertainment-safety__section,
  .page-resources-l88-online-entertainment-safety__content-area,
  .page-resources-l88-online-entertainment-safety__content-wrapper,
  .page-resources-l88-online-entertainment-safety__video-section,
  .page-resources-l88-online-entertainment-safety__video-container,
  .page-resources-l88-online-entertainment-safety__video-wrapper,
  .page-resources-l88-online-entertainment-safety__faq-section,
  .page-resources-l88-online-entertainment-safety__faq-list,
  .page-resources-l88-online-entertainment-safety__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-resources-l88-online-entertainment-safety__text-block {
    font-size: 1em;
    margin-left: 0;
    margin-right: 0;
  }

  .page-resources-l88-online-entertainment-safety__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-l88-online-entertainment-safety__grid-item {
    padding: 20px;
  }

  .page-resources-l88-online-entertainment-safety__grid-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-l88-online-entertainment-safety__video,
  .page-resources-l88-online-entertainment-safety__video-wrapper video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-l88-online-entertainment-safety__video-section {
    padding: 40px 0;
  }
  
  .page-resources-l88-online-entertainment-safety__video-container {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
  }

  .page-resources-l88-online-entertainment-safety__video-overlay {
    padding: 15px;
  }

  .page-resources-l88-online-entertainment-safety__video-title {
    font-size: 1.5em;
  }

  .page-resources-l88-online-entertainment-safety__video-description {
    font-size: 0.9em;
  }

  .page-resources-l88-online-entertainment-safety__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-resources-l88-online-entertainment-safety__faq-answer {
    padding: 0 15px;
  }

  .page-resources-l88-online-entertainment-safety__faq-item.active .page-resources-l88-online-entertainment-safety__faq-answer {
    padding: 15px;
  }
}

/* Global image responsiveness for content area */
.page-resources-l88-online-entertainment-safety img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure content area img CSS dimensions don't shrink below 200px */
.page-resources-l88-online-entertainment-safety__content-area img,
.page-resources-l88-online-entertainment-safety__grid-item img {
  min-width: 200px;
  min-height: 200px;
}

.page-resources-l88-online-entertainment-safety p,
.page-resources-l88-online-entertainment-safety li {
  color: #f0f0f0;
}

.page-resources-l88-online-entertainment-safety__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-resources-l88-online-entertainment-safety__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}