/* style/resources-responsible-gambling.css */
:root {
  --page-primary-color: #017439;
  --page-secondary-color: #FFFFFF;
  --page-text-dark: #333333;
  --page-text-light: #ffffff;
  --page-bg-light: #ffffff;
  --page-bg-dark: #017439;
  --page-btn-register: #C30808;
  --page-btn-login: #C30808;
  --page-btn-font-color: #FFFF00;
}

.page-resources-responsible-gambling {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-dark);
  background-color: var(--page-bg-light); /* Default to light background */
}

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

.page-resources-responsible-gambling__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
  color: var(--page-text-light);
  background-color: var(--page-bg-dark);
}

.page-resources-responsible-gambling__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-resources-responsible-gambling__hero-section .page-resources-responsible-gambling__container {
  position: relative;
  z-index: 2;
}

.page-resources-responsible-gambling__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-responsible-gambling__intro-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-text-light);
}

.page-resources-responsible-gambling__btn-primary {
  display: inline-block;
  background-color: var(--page-btn-register);
  color: var(--page-btn-font-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

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

.page-resources-responsible-gambling__content-area {
  padding: 60px 0;
  background-color: var(--page-bg-light);
  color: var(--page-text-dark);
}

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

.page-resources-responsible-gambling__section-title--white {
  color: var(--page-text-light);
}

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

.page-resources-responsible-gambling__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--page-text-dark);
}

.page-resources-responsible-gambling__text-block a {
  color: var(--page-primary-color);
  text-decoration: underline;
}

.page-resources-responsible-gambling__text-block a:hover {
  color: #005a2e;
}

.page-resources-responsible-gambling__list {
  list-style: disc inside;
  margin-bottom: 30px;
  padding-left: 20px;
  color: var(--page-text-dark);
}

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

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

.page-resources-responsible-gambling__faq-container {
  margin-top: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--page-bg-light);
}

.page-resources-responsible-gambling__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-resources-responsible-gambling__faq-item:last-child {
  border-bottom: none;
}

.page-resources-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--page-text-dark);
  transition: background-color 0.3s ease;
}

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

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

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

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

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

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

.page-resources-responsible-gambling__cta-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: var(--page-bg-dark);
  color: var(--page-text-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-responsible-gambling__cta-text {
  font-size: 1.3em;
  margin-bottom: 25px;
  color: var(--page-text-light);
}

.page-resources-responsible-gambling__btn-secondary {
  display: inline-block;
  background-color: var(--page-secondary-color);
  color: var(--page-primary-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
  border: 2px solid var(--page-primary-color);
  cursor: pointer;
  font-size: 1.1em;
}

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

.page-resources-responsible-gambling__video-section {
  background-color: var(--page-bg-dark);
  padding: 80px 0;
  text-align: center;
  color: var(--page-text-light);
}

.page-resources-responsible-gambling__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  box-sizing: border-box;
}

.page-resources-responsible-gambling__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

.page-resources-responsible-gambling__video-caption {
  margin-top: 20px;
  font-size: 1.1em;
  color: var(--page-text-light);
}

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 768px) {
  .page-resources-responsible-gambling__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure proper offset on mobile */
  }

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

  .page-resources-responsible-gambling__intro-text {
    font-size: 1em;
  }

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

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

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

  .page-resources-responsible-gambling__text-block,
  .page-resources-responsible-gambling__list-item,
  .page-resources-responsible-gambling__faq-question,
  .page-resources-responsible-gambling__faq-answer p {
    font-size: 1em;
  }

  .page-resources-responsible-gambling__image {
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
    box-sizing: border-box !important;
  }

  .page-resources-responsible-gambling__video-section .page-resources-responsible-gambling__container,
  .page-resources-responsible-gambling__content-area .page-resources-responsible-gambling__container,
  .page-resources-responsible-gambling__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources-responsible-gambling__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
  }

  .page-resources-responsible-gambling__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all images inside content area are responsive */
  .page-resources-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure content area images are not smaller than 200px */
  .page-resources-responsible-gambling__content-area img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

/* Desktop specific adjustments */
@media (min-width: 769px) {
  .page-resources-responsible-gambling__hero-section {
    background-attachment: fixed;
  }
}