/* style/safe-gaming-guide.css */
:root {
  --primary-color: #B80F0A;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f1f3f5;
  --background-white: #ffffff;
  --border-light: #e0e0e0;
}

.page-safe-gaming-guide {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: transparent; /* Body background is black from shared.css */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-safe-gaming-guide__intro-section {
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), #8a0b08);
  text-align: center;
  color: var(--text-light);
}

.page-safe-gaming-guide__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-safe-gaming-guide__lead-paragraph {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-safe-gaming-guide__keyword {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-safe-gaming-guide__intro-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.page-safe-gaming-guide__section {
  padding: 60px 0;
  background: var(--background-light);
  color: var(--text-dark);
}

.page-safe-gaming-guide__section:nth-of-type(even) {
  background: var(--background-white);
}

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

.page-safe-gaming-guide__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-safe-gaming-guide__text-block--summary {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin-top: 40px;
}

.page-safe-gaming-guide__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-safe-gaming-guide__text-link:hover {
  color: #8a0b08;
}

.page-safe-gaming-guide__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-safe-gaming-guide__list-item {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-safe-gaming-guide__card {
  background: var(--background-white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-dark);
}

.page-safe-gaming-guide__card-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-safe-gaming-guide__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-safe-gaming-guide__card-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-safe-gaming-guide__responsive-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-safe-gaming-guide__section--faq {
  background: var(--background-light);
}

.page-safe-gaming-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-safe-gaming-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-safe-gaming-guide__faq-item.active .page-safe-gaming-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-safe-gaming-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-safe-gaming-guide__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-safe-gaming-guide__faq-question:active {
  background: #eeeeee;
}

.page-safe-gaming-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-safe-gaming-guide__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}

.page-safe-gaming-guide__faq-item.active .page-safe-gaming-guide__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* CTA Section */
.page-safe-gaming-guide__cta-section {
  background: linear-gradient(135deg, #8a0b08, var(--primary-color));
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

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

.page-safe-gaming-guide__cta-text {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-safe-gaming-guide__btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

.page-safe-gaming-guide__btn--primary:hover {
  background: #e0b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-safe-gaming-guide__btn--secondary:hover {
  background: var(--primary-color);
  color: var(--background-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-safe-gaming-guide__main-title {
    font-size: 36px;
  }

  .page-safe-gaming-guide__section-title {
    font-size: 28px;
  }

  .page-safe-gaming-guide__card-title {
    font-size: 22px;
  }
  .page-safe-gaming-guide__cta-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-safe-gaming-guide__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
  }

  .page-safe-gaming-guide__section {
    padding: 40px 0;
  }

  .page-safe-gaming-guide__main-title {
    font-size: 30px;
  }

  .page-safe-gaming-guide__lead-paragraph,
  .page-safe-gaming-guide__text-block,
  .page-safe-gaming-guide__list-item,
  .page-safe-gaming-guide__card-text,
  .page-safe-gaming-guide__cta-text {
    font-size: 15px;
  }

  .page-safe-gaming-guide__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-safe-gaming-guide__card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-safe-gaming-guide__card-image {
    max-width: 250px;
  }

  .page-safe-gaming-guide__card-title {
    font-size: 20px;
  }

  .page-safe-gaming-guide__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-safe-gaming-guide__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-safe-gaming-guide__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-safe-gaming-guide__faq-answer {
    padding: 0 15px;
  }
  
  .page-safe-gaming-guide__faq-item.active .page-safe-gaming-guide__faq-answer {
    padding: 15px !important;
  }

  .page-safe-gaming-guide__cta-section {
    padding: 60px 0;
  }

  .page-safe-gaming-guide__cta-title {
    font-size: 26px;
  }

  .page-safe-gaming-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-safe-gaming-guide__btn {
    width: 100%;
    max-width: 300px; /* Limit width on small screens */
    margin: 0 auto;
    font-size: 16px;
    padding: 12px 25px;
  }
  
  /* Mobile image specific rules */
  .page-safe-gaming-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-safe-gaming-guide__container,
  .page-safe-gaming-guide__section,
  .page-safe-gaming-guide__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-safe-gaming-guide__main-title {
    font-size: 26px;
  }
  .page-safe-gaming-guide__section-title {
    font-size: 22px;
  }
  .page-safe-gaming-guide__cta-title {
    font-size: 24px;
  }
}