.page-responsible-gambling {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text on dark body background */
  background-color: #1a1a2e; /* Body background from shared.css */
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.page-responsible-gambling * {
  box-sizing: border-box;
}

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

.page-responsible-gambling__hero-section {
  background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:hero_responsible_gambling:1920x1080:responsible_gambling,safety,awareness,green_white]') no-repeat center center/cover;
  padding: 100px 20px;
  text-align: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-responsible-gambling__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-responsible-gambling__cta-button {
  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, transform 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-responsible-gambling__btn-primary {
  background-color: #C30808; /* Use custom color for registration/primary actions */
  color: #FFFF00; /* Use custom font color */
  border: 2px solid #C30808;
}

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

.page-responsible-gambling__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

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

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__section-title {
  color: #ffffff;
}

.page-responsible-gambling__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-responsible-gambling__intro-section, .page-responsible-gambling__tools-section, .page-responsible-gambling__resources-section, .page-responsible-gambling__faq-section {
  background-color: #f8f9fa;
  color: #333333; /* Dark text on light background */
  padding: 60px 0;
}

.page-responsible-gambling__intro-section .page-responsible-gambling__section-title,
.page-responsible-gambling__tools-section .page-responsible-gambling__section-title,
.page-responsible-gambling__resources-section .page-responsible-gambling__section-title,
.page-responsible-gambling__faq-section .page-responsible-gambling__section-title {
  color: #017439;
}

.page-responsible-gambling__intro-section .page-responsible-gambling__section-description,
.page-responsible-gambling__tools-section .page-responsible-gambling__section-description,
.page-responsible-gambling__resources-section .page-responsible-gambling__section-description,
.page-responsible-gambling__faq-section .page-responsible-gambling__section-description {
  color: #555555;
}

.page-responsible-gambling__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-responsible-gambling__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.page-responsible-gambling__text-content h3 {
  font-size: 1.8em;
  color: #017439;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__text-content h3 {
  color: #ffffff;
}

.page-responsible-gambling__text-content p, .page-responsible-gambling__text-content ul li {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.page-responsible-gambling__text-content a {
  color: #017439;
  text-decoration: underline;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__text-content a {
  color: #ffffff;
}

.page-responsible-gambling__image-wrapper {
  text-align: center;
}

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

.page-responsible-gambling__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-responsible-gambling__intro-section .page-responsible-gambling__card,
.page-responsible-gambling__tools-section .page-responsible-gambling__card,
.page-responsible-gambling__resources-section .page-responsible-gambling__card,
.page-responsible-gambling__faq-section .page-responsible-gambling__card {
  background-color: #ffffff;
  color: #333333;
}

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

.page-responsible-gambling__intro-section .page-responsible-gambling__card-title,
.page-responsible-gambling__tools-section .page-responsible-gambling__card-title,
.page-responsible-gambling__resources-section .page-responsible-gambling__card-title,
.page-responsible-gambling__faq-section .page-responsible-gambling__card-title {
  color: #017439;
}

.page-responsible-gambling__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-responsible-gambling__card-list {
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
}

.page-responsible-gambling__card-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1em;
}

.page-responsible-gambling__card-list li::before {
  content: '✓';
  color: #C30808; /* Highlight checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-responsible-gambling__video-section {
  background-color: #1a1a2e;
  padding: 60px 0;
  text-align: center;
}

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

.page-responsible-gambling__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

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

.page-responsible-gambling__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

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

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

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

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

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

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

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

.page-responsible-gambling__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .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: 1fr;
  }
  .page-responsible-gambling__image-wrapper {
    order: -1; /* Image first on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling__hero-title {
    font-size: 2em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 1em;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__section-description {
    font-size: 0.95em;
  }
  .page-responsible-gambling__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-responsible-gambling__grid-three-columns {
    grid-template-columns: 1fr;
  }
  .page-responsible-gambling__card {
    padding: 20px;
  }
  .page-responsible-gambling__card-title {
    font-size: 1.3em;
  }
  .page-responsible-gambling__text-content h3 {
    font-size: 1.5em;
  }
  .page-responsible-gambling p, .page-responsible-gambling li {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile video responsiveness */
  .page-responsible-gambling video,
  .page-responsible-gambling__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-responsible-gambling__video-section,
  .page-responsible-gambling__video-container,
  .page-responsible-gambling__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-responsible-gambling__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile button responsiveness */
  .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-left: 15px;
    padding-right: 15px;
  }
  .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;
  }
  .page-responsible-gambling__cta-buttons {
    display: flex;
    flex-direction: column;
  }

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