/* style/resources-online-gaming-safety.css */
:root {
  --primary-color: #2C3E50; /* Deep Blue */
  --secondary-color: #F39C12; /* Bright Orange */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #222222;
  --border-color: #e0e0e0;
  --accent-color: #28a745; /* Green for positive actions/highlights */
}

.page-resources-online-gaming-safety {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light);
}

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

.page-resources-online-gaming-safety__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-resources-online-gaming-safety__section:last-of-type {
  border-bottom: none;
}

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

.page-resources-online-gaming-safety__section-subtitle {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-online-gaming-safety p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-resources-online-gaming-safety__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-resources-online-gaming-safety__list li {
  margin-bottom: 10px;
}

/* Hero Section */
.page-resources-online-gaming-safety__hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  overflow: hidden;
}

.page-resources-online-gaming-safety__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-resources-online-gaming-safety__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-online-gaming-safety__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources-online-gaming-safety__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-color-light);
  font-weight: bold;
  line-height: 1.2;
}

.page-resources-online-gaming-safety__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-color-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-online-gaming-safety__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure button is not too small */
}

.page-resources-online-gaming-safety__cta-button:hover {
  background: #e68a00; /* Slightly darker orange */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-online-gaming-safety__image-content {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 30px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* FAQ Section */
.page-resources-online-gaming-safety__faq-list {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--text-color-light);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--background-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #e9e9e9;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fdfdfd;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.page-resources-online-gaming-safety__cta-button--bottom {
  margin-top: 40px;
  text-align: center;
  display: block;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-online-gaming-safety__hero-title {
    font-size: 3em;
  }
  .page-resources-online-gaming-safety__hero-description {
    font-size: 1.2em;
  }
  .page-resources-online-gaming-safety__section-title {
    font-size: 2em;
  }
  .page-resources-online-gaming-safety__section-subtitle {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources-online-gaming-safety__hero {
    padding: 40px 15px;
  }
  .page-resources-online-gaming-safety__hero-title {
    font-size: 2.5em;
  }
  .page-resources-online-gaming-safety__hero-description {
    font-size: 1.1em;
  }
  .page-resources-online-gaming-safety__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources-online-gaming-safety__section {
    padding: 40px 0;
  }
  .page-resources-online-gaming-safety__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources-online-gaming-safety__section-subtitle {
    font-size: 1.4em;
  }
  .page-resources-online-gaming-safety p, .page-resources-online-gaming-safety__list li {
    font-size: 1em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources-online-gaming-safety__hero-title {
    font-size: 2em;
  }
  .page-resources-online-gaming-safety__hero-description {
    font-size: 0.95em;
  }
  .page-resources-online-gaming-safety__section-title {
    font-size: 1.5em;
  }
  .page-resources-online-gaming-safety__section-subtitle {
    font-size: 1.2em;
  }
  .page-resources-online-gaming-safety__list {
    margin-left: 10px;
  }
}