/* style/resources-safe-gaming-guide.css */
.page-resources-safe-gaming-guide {
  --primary-color: #FFD700;
  --secondary-color: #000080;
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-bg-light: rgba(255, 255, 255, 0.1);
  --card-bg-dark: #ffffff;

  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--dark-bg); /* Inherited from shared.css */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-resources-safe-gaming-guide__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--secondary-color);
  padding-bottom: 60px;
  overflow: hidden;
}

.page-resources-safe-gaming-guide__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  z-index: 1;
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__hero-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-safe-gaming-guide__hero-description {
  font-size: 1.2em;
  color: var(--text-light);
  margin-bottom: 30px;
}

.page-resources-safe-gaming-guide__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-resources-safe-gaming-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  overflow: hidden;
}

.page-resources-safe-gaming-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-resources-safe-gaming-guide__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-safe-gaming-guide__btn-primary:hover {
  background-color: #e6c200;
  color: var(--secondary-color);
  border-color: #e6c200;
}

.page-resources-safe-gaming-guide__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-safe-gaming-guide__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-resources-safe-gaming-guide__content-section {
  padding: 80px 0;
  background-color: var(--dark-bg); /* Default for content sections */
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__dark-bg {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

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

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

.page-resources-safe-gaming-guide__section-description {
  font-size: 1.1em;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-safe-gaming-guide__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-resources-safe-gaming-guide__feature-card {
  background-color: var(--card-bg-light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__feature-card:hover {
  transform: translateY(-10px);
}

.page-resources-safe-gaming-guide__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-resources-safe-gaming-guide__feature-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources-safe-gaming-guide__feature-text {
  font-size: 1em;
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__call-to-action-text {
  text-align: center;
  font-size: 1.2em;
  margin-top: 40px;
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-safe-gaming-guide__link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-resources-safe-gaming-guide__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-resources-safe-gaming-guide__list-item {
  background-color: var(--card-bg-light);
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__list-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-resources-safe-gaming-guide__list-text {
  font-size: 1em;
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__image-full-width {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
}

.page-resources-safe-gaming-guide__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-resources-safe-gaming-guide__card {
  background-color: var(--card-bg-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__card:hover {
  transform: translateY(-10px);
}

.page-resources-safe-gaming-guide__card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources-safe-gaming-guide__card-text {
  font-size: 1em;
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__risk-factors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-resources-safe-gaming-guide__risk-item {
  background-color: var(--card-bg-light);
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__risk-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-resources-safe-gaming-guide__risk-text {
  font-size: 1em;
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__tips-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-resources-safe-gaming-guide__tips-item {
  background-color: var(--card-bg-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__tips-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-resources-safe-gaming-guide__tips-text {
  font-size: 1em;
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-resources-safe-gaming-guide__contact-card {
  background-color: var(--card-bg-light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__contact-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources-safe-gaming-guide__contact-text {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-resources-safe-gaming-guide__faq-section {
  padding: 80px 0;
  background-color: var(--dark-bg); /* Use dark background */
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-safe-gaming-guide__faq-item {
  background-color: var(--card-bg-light);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-resources-safe-gaming-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.2); /* Slightly darker for question */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-resources-safe-gaming-guide__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.page-resources-safe-gaming-guide__faq-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin: 0;
  flex-grow: 1;
}

.page-resources-safe-gaming-guide__faq-toggle {
  font-size: 1.8em;
  color: var(--primary-color);
  font-weight: bold;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-resources-safe-gaming-guide__faq-item.active .page-resources-safe-gaming-guide__faq-toggle {
  transform: rotate(45deg); /* Or just change to '-' */
}

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

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

.page-resources-safe-gaming-guide__faq-answer p {
  margin: 0;
  font-size: 1em;
}

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

.page-resources-safe-gaming-guide__cta-title {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-safe-gaming-guide__cta-description {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-safe-gaming-guide__cta-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources-safe-gaming-guide__cta-button:hover {
  background-color: #000066;
  border-color: #000066;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-safe-gaming-guide__hero-title {
    font-size: 2.8em;
  }
  .page-resources-safe-gaming-guide__section-title {
    font-size: 2em;
  }
  .page-resources-safe-gaming-guide__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-resources-safe-gaming-guide {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-safe-gaming-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-safe-gaming-guide__hero-title {
    font-size: 2.2em;
  }
  .page-resources-safe-gaming-guide__hero-description {
    font-size: 1em;
  }
  .page-resources-safe-gaming-guide__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-resources-safe-gaming-guide__btn-primary,
  .page-resources-safe-gaming-guide__btn-secondary,
  .page-resources-safe-gaming-guide__cta-button,
  .page-resources-safe-gaming-guide a[class*="button"],
  .page-resources-safe-gaming-guide a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-safe-gaming-guide__cta-buttons,
  .page-resources-safe-gaming-guide__button-group,
  .page-resources-safe-gaming-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-resources-safe-gaming-guide__section-title {
    font-size: 1.8em;
  }
  .page-resources-safe-gaming-guide__section-description {
    font-size: 0.95em;
  }
  .page-resources-safe-gaming-guide__feature-grid,
  .page-resources-safe-gaming-guide__card-grid,
  .page-resources-safe-gaming-guide__risk-factors,
  .page-resources-safe-gaming-guide__contact-info {
    grid-template-columns: 1fr;
  }
  .page-resources-safe-gaming-guide__feature-card,
  .page-resources-safe-gaming-guide__card,
  .page-resources-safe-gaming-guide__risk-item,
  .page-resources-safe-gaming-guide__contact-card,
  .page-resources-safe-gaming-guide__list-item,
  .page-resources-safe-gaming-guide__tips-item,
  .page-resources-safe-gaming-guide__faq-item {
    padding: 20px;
  }
  .page-resources-safe-gaming-guide__feature-title,
  .page-resources-safe-gaming-guide__card-title,
  .page-resources-safe-gaming-guide__risk-title,
  .page-resources-safe-gaming-guide__list-title,
  .page-resources-safe-gaming-guide__tips-title,
  .page-resources-safe-gaming-guide__contact-title,
  .page-resources-safe-gaming-guide__faq-title {
    font-size: 1.3em;
  }
  .page-resources-safe-gaming-guide__hero-image,
  .page-resources-safe-gaming-guide__feature-image,
  .page-resources-safe-gaming-guide__image-full-width,
  .page-resources-safe-gaming-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-safe-gaming-guide__section,
  .page-resources-safe-gaming-guide__card,
  .page-resources-safe-gaming-guide__container,
  .page-resources-safe-gaming-guide__video-section,
  .page-resources-safe-gaming-guide__video-container,
  .page-resources-safe-gaming-guide__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-safe-gaming-guide__faq-question {
    padding: 15px 20px;
  }
  .page-resources-safe-gaming-guide__faq-answer {
    padding: 0 20px;
  }
  .page-resources-safe-gaming-guide__faq-item.active .page-resources-safe-gaming-guide__faq-answer {
    padding: 15px 20px 20px;
  }
  .page-resources-safe-gaming-guide__cta-title {
    font-size: 2em;
  }
  .page-resources-safe-gaming-guide__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-resources-safe-gaming-guide__hero-title {
    font-size: 1.8em;
  }
  .page-resources-safe-gaming-guide__section-title {
    font-size: 1.5em;
  }
  .page-resources-safe-gaming-guide__cta-title {
    font-size: 1.6em;
  }
}