/* style/resources-safe-gaming-tips.css */

:root {
  --page-primary-color: #26A9E0;
  --page-secondary-color: #FFFFFF;
  --page-text-color-dark: #333333;
  --page-text-color-light: #ffffff;
  --page-login-color: #EA7C07;
}

.page-resources-safe-gaming-tips {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-color-light); /* Default to light text for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

.page-resources-safe-gaming-tips__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  box-sizing: border-box;
}

.page-resources-safe-gaming-tips__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources-safe-gaming-tips__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-resources-safe-gaming-tips__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-resources-safe-gaming-tips__main-title {
  font-size: 3.2em;
  color: var(--page-secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources-safe-gaming-tips__hero-description {
  font-size: 1.3em;
  color: var(--page-secondary-color);
  margin-bottom: 30px;
}

.page-resources-safe-gaming-tips__btn-primary {
  display: inline-block;
  background: var(--page-primary-color);
  color: var(--page-secondary-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

.page-resources-safe-gaming-tips__btn-primary:hover {
  background-color: #1e87b7;
}

.page-resources-safe-gaming-tips__content-section {
  padding: 60px 20px;
  background-color: var(--page-secondary-color);
  color: var(--page-text-color-dark);
}

.page-resources-safe-gaming-tips__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources-safe-gaming-tips__section-title {
  font-size: 2.5em;
  color: var(--page-primary-color);
  margin-bottom: 30px;
  text-align: center;
}

.page-resources-safe-gaming-tips__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources-safe-gaming-tips__text-block {
  margin-bottom: 40px;
  font-size: 1.1em;
}

.page-resources-safe-gaming-tips__text-block h3 {
  font-size: 1.8em;
  color: var(--page-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-safe-gaming-tips__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources-safe-gaming-tips__list li {
  margin-bottom: 10px;
}

.page-resources-safe-gaming-tips__image-container {
  text-align: center;
  margin: 30px 0;
}

.page-resources-safe-gaming-tips__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-gaming-tips__faq-list {
  margin-top: 40px;
}

.page-resources-safe-gaming-tips__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources-safe-gaming-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--page-text-color-dark);
  background-color: var(--page-secondary-color);
  transition: background-color 0.3s ease;
}

.page-resources-safe-gaming-tips__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources-safe-gaming-tips__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-primary-color);
  transition: transform 0.3s ease;
}

.page-resources-safe-gaming-tips__faq-item.active .page-resources-safe-gaming-tips__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-safe-gaming-tips__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
  color: var(--page-text-color-dark);
}

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

.page-resources-safe-gaming-tips__video-section {
  padding: 60px 20px;
  background-color: var(--page-primary-color);
  text-align: center;
  color: var(--page-secondary-color);
}

.page-resources-safe-gaming-tips__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin: 30px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-gaming-tips__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
}

.page-resources-safe-gaming-tips__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.page-resources-safe-gaming-tips__video-link:hover .page-resources-safe-gaming-tips__video {
  filter: brightness(0.9);
}

.page-resources-safe-gaming-tips__text-white {
  color: var(--page-secondary-color);
}

.page-resources-safe-gaming-tips__text-center {
  text-align: center;
}

.page-resources-safe-gaming-tips__video-cta {
  margin-top: 20px;
  font-size: 1.1em;
  font-style: italic;
}

.page-resources-safe-gaming-tips a {
  color: var(--page-primary-color);
  text-decoration: underline;
}

.page-resources-safe-gaming-tips a:hover {
  color: #1e87b7;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-resources-safe-gaming-tips {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-safe-gaming-tips__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-safe-gaming-tips__main-title {
    font-size: 2.2em;
  }

  .page-resources-safe-gaming-tips__hero-description {
    font-size: 1em;
  }

  .page-resources-safe-gaming-tips__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-safe-gaming-tips__section-title {
    font-size: 2em;
  }

  .page-resources-safe-gaming-tips__text-block h3 {
    font-size: 1.5em;
  }

  .page-resources-safe-gaming-tips__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-resources-safe-gaming-tips__faq-answer {
    padding: 10px 20px;
  }

  /* Critical mobile image/video/container responsiveness */
  .page-resources-safe-gaming-tips img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-safe-gaming-tips__image-container,
  .page-resources-safe-gaming-tips__video-wrapper,
  .page-resources-safe-gaming-tips__container,
  .page-resources-safe-gaming-tips__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-resources-safe-gaming-tips video,
  .page-resources-safe-gaming-tips__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-safe-gaming-tips__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header offset */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}