/* style/resources-online-card-games-safety.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #28A745;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

.page-resources-online-card-games-safety {
  color: var(--text-light); /* Base text color for dark body background */
  background-color: var(--background-dark);
  min-height: 100vh;
}

/* Fixed navigation bar spacing */
.page-resources-online-card-games-safety__hero-banner {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #007BFF, #28A745);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources-online-card-games-safety__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-resources-online-card-games-safety__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.page-resources-online-card-games-safety__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
}

.page-resources-online-card-games-safety__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-resources-online-card-games-safety__keyword {
  color: #FFD700; /* Highlight keyword */
}

.page-resources-online-card-games-safety__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-resources-online-card-games-safety__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--shadow-dark);
  border: none;
}

.page-resources-online-card-games-safety__cta-button:hover {
  background: #218838; /* Darker secondary color */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-dark);
}

.page-resources-online-card-games-safety__content-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-resources-online-card-games-safety__text-block {
  background: var(--card-bg-dark);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-dark);
  color: var(--text-light);
  line-height: 1.7;
}

.page-resources-online-card-games-safety__section-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-light);
}

.page-resources-online-card-games-safety__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources-online-card-games-safety__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-resources-online-card-games-safety__text-block ul {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-resources-online-card-games-safety__text-block li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-resources-online-card-games-safety__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-online-card-games-safety__text-block a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-resources-online-card-games-safety__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-dark);
}

/* FAQ Section */
.page-resources-online-card-games-safety__faq-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-resources-online-card-games-safety__faq-list {
  margin-top: 30px;
}

.page-resources-online-card-games-safety__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
  box-shadow: 0 2px 8px var(--shadow-dark);
}

.page-resources-online-card-games-safety__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-online-card-games-safety__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-resources-online-card-games-safety__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-resources-online-card-games-safety__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources-online-card-games-safety__faq-item.active .page-resources-online-card-games-safety__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.page-resources-online-card-games-safety__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--border-color-dark);
}

.page-resources-online-card-games-safety__faq-item.active .page-resources-online-card-games-safety__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources-online-card-games-safety__main-title {
    font-size: 36px;
  }
  .page-resources-online-card-games-safety__section-title {
    font-size: 28px;
  }
  .page-resources-online-card-games-safety__sub-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-resources-online-card-games-safety__hero-banner {
    padding-top: 140px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
  }
  .page-resources-online-card-games-safety__container {
    padding: 0 15px;
  }
  .page-resources-online-card-games-safety__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-resources-online-card-games-safety__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-resources-online-card-games-safety__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-resources-online-card-games-safety__content-section {
    padding: 40px 0;
  }
  .page-resources-online-card-games-safety__text-block {
    padding: 25px;
  }
  .page-resources-online-card-games-safety__section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .page-resources-online-card-games-safety__sub-title {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 10px;
  }
  .page-resources-online-card-games-safety__text-block p,
  .page-resources-online-card-games-safety__text-block li {
    font-size: 15px;
  }
  .page-resources-online-card-games-safety__faq-section {
    padding: 40px 0;
  }
  .page-resources-online-card-games-safety__faq-question {
    padding: 15px 20px;
  }
  .page-resources-online-card-games-safety__faq-question h3 {
    font-size: 16px;
  }
  .page-resources-online-card-games-safety__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources-online-card-games-safety__faq-answer {
    padding: 0 20px;
  }
  .page-resources-online-card-games-safety__faq-item.active .page-resources-online-card-games-safety__faq-answer {
    padding: 15px 20px !important;
  }

  /* Force responsive image scaling */
  .page-resources-online-card-games-safety img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources-online-card-games-safety__section,
  .page-resources-online-card-games-safety__card,
  .page-resources-online-card-games-safety__container,
  .page-resources-online-card-games-safety__text-block,
  .page-resources-online-card-games-safety__hero-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-online-card-games-safety__hero-banner {
    padding-left: 0;
    padding-right: 0;
  }
}