/* style/responsible-gaming-help-resources.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: var(--dark-bg-1); /* Inherited from shared.css */
  --border-color: #e0e0e0;
}

.page-responsible-gaming-help-resources {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-light); /* Default text color for dark body background */
  background-color: var(--background-dark);
}

/* Ensure content is not covered by fixed header */
.page-responsible-gaming-help-resources__hero-banner {
  padding-top: 180px; /* Desktop: Adjust based on actual header height */
}

.page-responsible-gaming-help-resources__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px 60px;
}

.page-responsible-gaming-help-resources__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-responsible-gaming-help-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-responsible-gaming-help-resources__main-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--text-color-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-responsible-gaming-help-resources__hero-description {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-responsible-gaming-help-resources__cta-button {
  display: inline-block;
  padding: 16px 45px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 19px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
}

.page-responsible-gaming-help-resources__cta-button:hover {
  background: #218838; /* Darker green */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gaming-help-resources__section {
  padding: 60px 0;
  background-color: var(--background-light); /* Light background for content sections */
  color: var(--text-color-dark); /* Dark text for light background */
}

.page-responsible-gaming-help-resources__section:nth-of-type(odd) {
  background-color: #ffffff;
}

.page-responsible-gaming-help-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-responsible-gaming-help-resources__container--reverse {
  flex-direction: row-reverse;
}

.page-responsible-gaming-help-resources__text-content {
  flex: 1;
}

.page-responsible-gaming-help-resources__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-responsible-gaming-help-resources__section-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-responsible-gaming-help-resources__section-title {
  font-size: 34px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-responsible-gaming-help-resources__paragraph {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page-responsible-gaming-help-resources__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page-responsible-gaming-help-resources__list-item {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.page-responsible-gaming-help-resources__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-responsible-gaming-help-resources__link:hover {
  color: #0056b3; /* Darker blue */
  text-decoration: underline;
}

/* FAQ Section */
.page-responsible-gaming-help-resources__section--faq {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-responsible-gaming-help-resources__faq-list {
  margin-top: 30px;
}

.page-responsible-gaming-help-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-responsible-gaming-help-resources__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 25px;
  opacity: 0;
}

.page-responsible-gaming-help-resources__faq-item.active .page-responsible-gaming-help-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #f1f1f1;
  border-radius: 0 0 8px 8px;
  color: var(--text-color-dark);
}

.page-responsible-gaming-help-resources__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
}

.page-responsible-gaming-help-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-responsible-gaming-help-resources__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-responsible-gaming-help-resources__faq-question:active {
  background: #eeeeee;
}

.page-responsible-gaming-help-resources__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-color-dark);
}

.page-responsible-gaming-help-resources__faq-toggle {
  font-size: 26px;
  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: 30px;
  height: 30px;
}

.page-responsible-gaming-help-resources__faq-item.active .page-responsible-gaming-help-resources__faq-toggle {
  color: #333;
  transform: rotate(45deg);
}

/* Contact Section */
.page-responsible-gaming-help-resources__section--contact {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-align: center;
}

.page-responsible-gaming-help-resources__section--contact .page-responsible-gaming-help-resources__section-title {
  color: var(--text-color-light);
}

.page-responsible-gaming-help-resources__section--contact .page-responsible-gaming-help-resources__paragraph {
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-responsible-gaming-help-resources__contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-responsible-gaming-help-resources__btn {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.page-responsible-gaming-help-resources__btn--primary {
  background: var(--secondary-color);
  color: var(--text-color-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-responsible-gaming-help-resources__btn--primary:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-responsible-gaming-help-resources__btn--secondary {
  background: var(--text-color-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-responsible-gaming-help-resources__btn--secondary:hover {
  background: #f0f0f0;
  color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-responsible-gaming-help-resources__disclaimer {
  font-size: 15px;
  color: #c0dfff;
  margin-top: 40px;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gaming-help-resources__container {
    flex-direction: column;
    gap: 30px;
  }

  .page-responsible-gaming-help-resources__container--reverse {
    flex-direction: column;
  }

  .page-responsible-gaming-help-resources__hero-image {
    max-height: 400px;
  }

  .page-responsible-gaming-help-resources__main-title {
    font-size: 36px;
  }

  .page-responsible-gaming-help-resources__section-title {
    font-size: 30px;
    text-align: center;
  }

  .page-responsible-gaming-help-resources__text-content, .page-responsible-gaming-help-resources__image-wrapper {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-responsible-gaming-help-resources__hero-banner {
    padding-top: 140px !important; /* Mobile: Adjust based on actual header height */
    padding-bottom: 40px;
  }

  .page-responsible-gaming-help-resources__hero-container {
    padding: 0 15px 40px;
  }

  .page-responsible-gaming-help-resources__hero-image {
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .page-responsible-gaming-help-resources__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-responsible-gaming-help-resources__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-responsible-gaming-help-resources__cta-button {
    padding: 14px 30px;
    font-size: 17px;
  }

  .page-responsible-gaming-help-resources__section {
    padding: 40px 0;
  }

  .page-responsible-gaming-help-resources__container {
    padding: 0 15px;
    gap: 25px;
  }

  .page-responsible-gaming-help-resources__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-responsible-gaming-help-resources__paragraph,
  .page-responsible-gaming-help-resources__list-item {
    font-size: 15px;
    line-height: 1.6;
  }

  .page-responsible-gaming-help-resources__list {
    margin-left: 15px;
  }

  /* FAQ */
  .page-responsible-gaming-help-resources__faq-question {
    padding: 15px 20px;
  }

  .page-responsible-gaming-help-resources__faq-question h3 {
    font-size: 16px;
  }

  .page-responsible-gaming-help-resources__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }

  .page-responsible-gaming-help-resources__faq-item.active .page-responsible-gaming-help-resources__faq-answer {
    padding: 15px 20px !important;
  }

  /* Contact */
  .page-responsible-gaming-help-resources__contact-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-responsible-gaming-help-resources__btn {
    width: 100%;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-responsible-gaming-help-resources__disclaimer {
    font-size: 14px;
    margin-top: 30px;
  }

  /* Global image responsive rules */
  .page-responsible-gaming-help-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-responsible-gaming-help-resources__section,
  .page-responsible-gaming-help-resources__container,
  .page-responsible-gaming-help-resources__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}