/* style/resources-safe-gaming.css */
.page-resources-safe-gaming {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: #0a0a0a; /* Matches shared.css body background */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources-safe-gaming__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #26A9E0, #0056b3);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-resources-safe-gaming__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-resources-safe-gaming__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-resources-safe-gaming__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-resources-safe-gaming__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Subtle filter, not changing color */
}

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

.page-resources-safe-gaming__btn-primary,
.page-resources-safe-gaming__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  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; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-resources-safe-gaming__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resources-safe-gaming__btn-primary:hover {
  background-color: #1a7fb3;
  border-color: #1a7fb3;
}

.page-resources-safe-gaming__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources-safe-gaming__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-resources-safe-gaming__btn-register {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-resources-safe-gaming__btn-register:hover {
  background-color: #c96700;
  border-color: #c96700;
}

.page-resources-safe-gaming__btn-login {
  background-color: transparent;
  color: #EA7C07;
  border-color: #EA7C07;
}

.page-resources-safe-gaming__btn-login:hover {
  background-color: #EA7C07;
  color: #ffffff;
}

.page-resources-safe-gaming__content-area,
.page-resources-safe-gaming__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body */
}

.page-resources-safe-gaming__section-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-resources-safe-gaming__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources-safe-gaming__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-safe-gaming__text-block {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 30px;
}

.page-resources-safe-gaming__text-block h3 {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-safe-gaming__text-block p {
  margin-bottom: 15px;
}

.page-resources-safe-gaming__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-safe-gaming__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-resources-safe-gaming__flex-container--reverse {
  flex-direction: row-reverse;
}

.page-resources-safe-gaming__image-block {
  flex: 1;
  min-width: 300px;
}

.page-resources-safe-gaming__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-resources-safe-gaming__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-safe-gaming__card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-safe-gaming__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-resources-safe-gaming__card-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources-safe-gaming__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources-safe-gaming__btn-text {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  padding: 8px 15px;
  border-radius: 5px;
  border: 1px solid #26A9E0;
}

.page-resources-safe-gaming__btn-text:hover {
  color: #ffffff;
  background-color: #26A9E0;
}

.page-resources-safe-gaming__cta-block {
  text-align: center;
  padding: 40px;
  background-color: rgba(38, 169, 224, 0.1);
  border-radius: 12px;
  margin-top: 40px;
}

.page-resources-safe-gaming__cta-block p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-resources-safe-gaming__faq-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-resources-safe-gaming__faq-list {
  margin-top: 30px;
}

.page-resources-safe-gaming__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-resources-safe-gaming__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-safe-gaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(38, 169, 224, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-safe-gaming__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-resources-safe-gaming__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

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

.page-resources-safe-gaming__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-resources-safe-gaming__faq-item.active .page-resources-safe-gaming__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-resources-safe-gaming__hero-title {
    font-size: 2.8em;
  }

  .page-resources-safe-gaming__hero-description {
    font-size: 1.1em;
  }

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

  .page-resources-safe-gaming__flex-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-resources-safe-gaming {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  .page-resources-safe-gaming__hero-section {
    padding: 40px 15px;
  }

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

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

  .page-resources-safe-gaming__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-safe-gaming__btn-primary,
  .page-resources-safe-gaming__btn-secondary,
  .page-resources-safe-gaming a[class*="button"],
  .page-resources-safe-gaming 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__content-area,
  .page-resources-safe-gaming__section,
  .page-resources-safe-gaming__faq-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-safe-gaming__section-title {
    font-size: 1.8em;
  }

  .page-resources-safe-gaming__section-description {
    font-size: 0.95em;
  }

  .page-resources-safe-gaming__grid-container {
    grid-template-columns: 1fr;
  }

  .page-resources-safe-gaming__card {
    padding: 25px;
  }

  .page-resources-safe-gaming__card-image {
    height: 200px;
  }

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

  .page-resources-safe-gaming__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }
  
  .page-resources-safe-gaming img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources-safe-gaming__video-section,
  .page-resources-safe-gaming__video-container,
  .page-resources-safe-gaming__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__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-resources-safe-gaming__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-safe-gaming__hero-title {
    font-size: 1.8em;
  }

  .page-resources-safe-gaming__section-title {
    font-size: 1.5em;
  }
}