/* style/responsible-gambling.css */
.page-responsible-gambling {
  color: #ffffff; /* Body background is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #1a1a1a; /* Matches body background from shared.css */
}

.page-responsible-gambling__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  background-color: #1a1a1a;
}

.page-responsible-gambling__hero-content {
  max-width: 900px;
  padding: 20px;
  z-index: 1;
}

.page-responsible-gambling__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for title */
  font-weight: bold;
}

.page-responsible-gambling__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-responsible-gambling__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
  overflow: hidden;
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__section {
  padding: 60px 20px;
  background-color: #1a1a1a;
}

.page-responsible-gambling__section--principles {
  background-color: #1a1a1a;
}

.page-responsible-gambling__section--golden-rules,
.page-responsible-gambling__section--support,
.page-responsible-gambling__section--cta {
  background-color: #0d0d0d; /* Slightly darker background for contrast */
  color: #ffffff;
}

.page-responsible-gambling__section--signs {
  background-color: #ffffff;
  color: #333333;
}

.page-responsible-gambling__section--minors,
.page-responsible-gambling__section--faq {
  background-color: #1a1a1a;
}

.page-responsible-gambling__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-responsible-gambling__container--center {
  text-align: center;
}

.page-responsible-gambling__section-title {
  font-size: 2.2em;
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
}

.page-responsible-gambling__section--signs .page-responsible-gambling__section-title {
  color: #000000;
}

.page-responsible-gambling__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-responsible-gambling__section--signs .page-responsible-gambling__text-block {
  color: #333333;
}

.page-responsible-gambling__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-responsible-gambling__grid--two-columns {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-responsible-gambling__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-responsible-gambling__section--signs .page-responsible-gambling__card {
  background-color: #f5f5f5; /* Light background for cards in light section */
  color: #333333;
}

.page-responsible-gambling__card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-responsible-gambling__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling__section--signs .page-responsible-gambling__card-title {
  color: #000000;
}

.page-responsible-gambling__card-text {
  font-size: 1em;
  line-height: 1.7;
}

.page-responsible-gambling__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-responsible-gambling__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__feature-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-responsible-gambling__feature-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-responsible-gambling__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-responsible-gambling__section--signs .page-responsible-gambling__list {
  color: #333333;
}

.page-responsible-gambling__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-responsible-gambling__list-item strong {
  color: #26A9E0;
}

.page-responsible-gambling__section--signs .page-responsible-gambling__list-item strong {
  color: #000000;
}

.page-responsible-gambling__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.page-responsible-gambling__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-responsible-gambling__btn-primary:hover {
  background-color: #1e87b6;
  transform: translateY(-2px);
}

.page-responsible-gambling__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-responsible-gambling__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-responsible-gambling__faq-list {
  margin-top: 40px;
}

.page-responsible-gambling__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-responsible-gambling__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #26A9E0;
}

.page-responsible-gambling__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
  transform: rotate(45deg);
  content: '−';
}

.page-responsible-gambling__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-responsible-gambling__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

.page-responsible-gambling a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-responsible-gambling a:hover {
  color: #1e87b6;
  text-decoration: underline;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-responsible-gambling__hero-title {
    font-size: 2.5em;
  }
  .page-responsible-gambling__section-title {
    font-size: 2em;
  }
  .page-responsible-gambling__grid--two-columns {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-responsible-gambling__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-responsible-gambling__hero-title {
    font-size: 2em;
  }

  .page-responsible-gambling__hero-description {
    font-size: 1em;
  }

  .page-responsible-gambling__section {
    padding: 40px 15px;
  }

  .page-responsible-gambling__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-responsible-gambling__text-block {
    font-size: 1em;
  }

  .page-responsible-gambling__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-responsible-gambling__grid--two-columns {
    grid-template-columns: 1fr;
  }

  .page-responsible-gambling__card,
  .page-responsible-gambling__feature-item {
    padding: 20px;
  }

  .page-responsible-gambling__card-title,
  .page-responsible-gambling__feature-title {
    font-size: 1.3em;
  }

  /* Images */
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Image containers */
  .page-responsible-gambling__hero-image-wrapper,
  .page-responsible-gambling__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Buttons */
  .page-responsible-gambling__cta-button,
  .page-responsible-gambling__btn-primary,
  .page-responsible-gambling__btn-secondary,
  .page-responsible-gambling a[class*="button"],
  .page-responsible-gambling 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: 12px 20px;
  }

  /* Button containers */
  .page-responsible-gambling__cta-buttons,
  .page-responsible-gambling__button-group,
  .page-responsible-gambling__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

  .page-responsible-gambling__faq-question {
    padding: 15px 20px;
  }

  .page-responsible-gambling__faq-question h3 {
    font-size: 1.1em;
  }

  .page-responsible-gambling__faq-answer {
    padding: 0 20px;
  }

  .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    padding: 10px 20px 20px;
  }
}