/* style/responsible-gambling.css */

/* Body background is dark from shared.css, so main text should be light */
.page-responsible-gambling {
  color: #ffffff; /* Default text color for the page content */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* Container for content, ensuring maximum width and centering */
.page-responsible-gambling__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Sections */
.page-responsible-gambling__hero-section,
.page-responsible-gambling__introduction-section,
.page-responsible-gambling__signs-section,
.page-responsible-gambling__tools-section,
.page-responsible-gambling__support-section,
.page-responsible-gambling__tips-section,
.page-responsible-gambling__faq-section,
.page-responsible-gambling__cta-section {
  padding: 60px 0;
  text-align: center;
}

/* Specific background and text colors based on brightness */
.page-responsible-gambling__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-responsible-gambling__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-responsible-gambling__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Minimal top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-responsible-gambling__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
  text-align: center;
}

.page-responsible-gambling__main-title {
  font-size: clamp(2em, 3.5vw, 3em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-responsible-gambling__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* General Titles and Text */
.page-responsible-gambling__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.3;
  color: inherit; /* Inherit from section for contrast */
}

.page-responsible-gambling__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
  color: inherit;
}

.page-responsible-gambling__text-block {
  font-size: 1em;
  margin-bottom: 15px;
  line-height: 1.7;
  text-align: left;
  color: inherit;
}

/* Buttons */
.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  margin: 10px;
}

.page-responsible-gambling__btn-primary {
  background-color: #EA7C07; /* Login/CTA color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-responsible-gambling__btn-primary:hover {
  background-color: #d16b00;
  border-color: #d16b00;
}

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

.page-responsible-gambling__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-responsible-gambling__button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Lists */
.page-responsible-gambling__list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 800px;
  text-align: left;
}

.page-responsible-gambling__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  color: #ffffff;
}

.page-responsible-gambling__light-bg .page-responsible-gambling__list-item {
  background-color: #f5f5f5;
  color: #333333;
}

.page-responsible-gambling__list-item::before {
  content: '✔';
  color: #EA7C07;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

/* Content Flex Layout */
.page-responsible-gambling__content-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-responsible-gambling__content-flex--reverse {
  flex-direction: row-reverse;
}

.page-responsible-gambling__content-text,
.page-responsible-gambling__content-image {
  flex: 1;
  min-width: 300px;
}

.page-responsible-gambling__content-text {
  max-width: 600px;
  margin: 0 auto;
}

.page-responsible-gambling__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* FAQ Section */
.page-responsible-gambling__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-responsible-gambling__light-bg .page-responsible-gambling__faq-item {
  background-color: #f5f5f5;
  color: #333333;
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* For details/summary */
  color: inherit;
}

.page-responsible-gambling__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-responsible-gambling__faq-item[open] .page-responsible-gambling__faq-toggle {
  transform: rotate(45deg);
}

.page-responsible-gambling__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  line-height: 1.8;
  text-align: left;
  color: inherit;
}

.page-responsible-gambling__faq-answer p {
  margin-bottom: 0;
}

/* CTA Section */
.page-responsible-gambling__cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Images in content areas */
.page-responsible-gambling__content-area p,
.page-responsible-gambling__content-area li,
.page-responsible-gambling__content-area h2,
.page-responsible-gambling__content-area h3 {
  color: inherit; /* Ensure text color matches section background */
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-responsible-gambling__content-flex {
    flex-direction: column;
  }
  .page-responsible-gambling__content-flex--reverse {
    flex-direction: column;
  }
  .page-responsible-gambling__content-text,
  .page-responsible-gambling__content-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling {
    font-size: 15px;
  }
  .page-responsible-gambling__hero-section,
  .page-responsible-gambling__introduction-section,
  .page-responsible-gambling__signs-section,
  .page-responsible-gambling__tools-section,
  .page-responsible-gambling__support-section,
  .page-responsible-gambling__tips-section,
  .page-responsible-gambling__faq-section,
  .page-responsible-gambling__cta-section {
    padding: 40px 0;
  }

  .page-responsible-gambling__hero-content,
  .page-responsible-gambling__container,
  .page-responsible-gambling__cta-content {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-responsible-gambling__section-title {
    font-size: 1.8em;
  }

  .page-responsible-gambling__sub-title {
    font-size: 1.3em;
  }

  /* Images responsive */
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-responsible-gambling__hero-image-wrapper,
  .page-responsible-gambling__content-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .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;
    margin: 10px 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-responsible-gambling__button-group {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-responsible-gambling__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  .page-responsible-gambling__list-item {
    padding: 12px 15px;
  }
}