/* style/resources-responsible-gambling-guide.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color: #FFFFFF; /* For sections/cards that need a light background */
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-resources-responsible-gambling-guide {
  color: var(--text-light); /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--neon-bg-dark); /* Inherited from shared.css */
}

.page-resources-responsible-gambling-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-resources-responsible-gambling-guide__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-resources-responsible-gambling-guide__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-resources-responsible-gambling-guide__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-responsible-gambling-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-resources-responsible-gambling-guide__btn-primary,
.page-resources-responsible-gambling-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-resources-responsible-gambling-guide__btn-primary {
  background-color: var(--login-color);
  color: var(--text-light);
  border: 2px solid var(--login-color);
}

.page-resources-responsible-gambling-guide__btn-primary:hover {
  background-color: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
}

.page-resources-responsible-gambling-guide__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-resources-responsible-gambling-guide__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

/* Content Area */
.page-resources-responsible-gambling-guide__content-area {
  background-color: var(--background-color); /* Light background for main content */
  color: var(--text-dark); /* Dark text on light background */
  padding: 60px 0;
}

.page-resources-responsible-gambling-guide__section-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

.page-resources-responsible-gambling-guide__sub-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-resources-responsible-gambling-guide__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-resources-responsible-gambling-guide__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-responsible-gambling-guide__list {
  list-style: disc;
  margin-left: 40px;
  margin-bottom: 20px;
}

.page-resources-responsible-gambling-guide__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* FAQ Section */
.page-resources-responsible-gambling-guide__faq-list {
  margin-top: 40px;
}

.page-resources-responsible-gambling-guide__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-resources-responsible-gambling-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--primary-color);
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources-responsible-gambling-guide__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources-responsible-gambling-guide__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
}

.page-resources-responsible-gambling-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-responsible-gambling-guide__faq-item.active .page-resources-responsible-gambling-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-responsible-gambling-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
  background-color: var(--secondary-color);
}

.page-resources-responsible-gambling-guide__faq-item.active .page-resources-responsible-gambling-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-resources-responsible-gambling-guide__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources-responsible-gambling-guide__hero-title {
    font-size: 2em;
  }

  .page-resources-responsible-gambling-guide__hero-description {
    font-size: 1em;
  }

  .page-resources-responsible-gambling-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-responsible-gambling-guide__btn-primary,
  .page-resources-responsible-gambling-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-responsible-gambling-guide__content-area {
    padding: 40px 15px;
  }

  .page-resources-responsible-gambling-guide__section-title {
    font-size: 1.8em;
  }

  .page-resources-responsible-gambling-guide__sub-title {
    font-size: 1.4em;
  }

  .page-resources-responsible-gambling-guide__text-block,
  .page-resources-responsible-gambling-guide__list-item {
    font-size: 1em;
  }

  .page-resources-responsible-gambling-guide__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources-responsible-gambling-guide__faq-question {
    padding: 15px 20px;
  }

  .page-resources-responsible-gambling-guide__faq-title {
    font-size: 1em;
  }

  .page-resources-responsible-gambling-guide__faq-answer {
    padding: 0 20px;
  }

  .page-resources-responsible-gambling-guide__faq-item.active .page-resources-responsible-gambling-guide__faq-answer {
    padding: 15px 20px;
  }

  /* Ensure content containers also adapt */
  .page-resources-responsible-gambling-guide__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-resources-responsible-gambling-guide__list {
    margin-left: 20px;
  }
}

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

  .page-resources-responsible-gambling-guide__section-title {
    font-size: 1.6em;
  }

  .page-resources-responsible-gambling-guide__sub-title {
    font-size: 1.2em;
  }
}