.page-responsible-gambling {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff;
}

.page-responsible-gambling__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  box-sizing: border-box;
}

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

.page-responsible-gambling__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 20px;
}

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

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

.page-responsible-gambling__hero-cta {
  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;
}

.page-responsible-gambling__btn-primary {
  background: #FFD700;
  color: #0A192F; /* Button text always dark on bright background */
  border: 2px solid #FFD700;
}

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

.page-responsible-gambling__btn-secondary {
  background: #0A192F;
  color: #FFD700; /* Button text always bright on dark background */
  border: 2px solid #FFD700;
}

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

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

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  color: #0A192F;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-responsible-gambling__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-responsible-gambling__intro-section, 
.page-responsible-gambling__help-section, 
.page-responsible-gambling__faq-section {
  padding: 80px 0;
}

.page-responsible-gambling__dark-bg {
  background-color: #0A192F;
  color: #f0f0f0;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__section-title {
  color: #FFD700;
}

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

.page-responsible-gambling__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-responsible-gambling__grid-container--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.page-responsible-gambling__grid-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.page-responsible-gambling__checklist {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.page-responsible-gambling__checklist li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFD700" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 24px;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.4;
}

.page-responsible-gambling__card {
  background: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__card {
  background: rgba(255, 255, 255, 0.08);
  color: #f0f0f0;
}

.page-responsible-gambling__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-responsible-gambling__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: contain; /* Ensure image fits without cropping */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-responsible-gambling__card-title {
  font-size: 1.6em;
  color: #0A192F;
  margin-bottom: 15px;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__card-title {
  color: #FFD700;
}

.page-responsible-gambling__card-description {
  font-size: 1em;
  line-height: 1.5;
  flex-grow: 1; /* Allow description to take available space */
}

.page-responsible-gambling__cta-buttons {
  text-align: center;
  margin-top: 40px;
}

.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;
}

.page-responsible-gambling__tips-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.page-responsible-gambling__tips-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFD700" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>') no-repeat left center;
  background-size: 24px;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.5;
}

.page-responsible-gambling__tips-list li strong {
  color: #FFD700;
}

.page-responsible-gambling__resource-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 20px;
}

.page-responsible-gambling__resource-list li {
  margin-bottom: 10px;
  font-size: 1em;
}

.page-responsible-gambling__policy-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.page-responsible-gambling__policy-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFD700" d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-1 6h2v2h-2V7zm0 4h2v6h-2v-6z"/></svg>') no-repeat left center;
  background-size: 24px;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.5;
}

.page-responsible-gambling__policy-list li strong {
  color: #FFD700;
}

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

.page-responsible-gambling__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

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

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

.page-responsible-gambling__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  color: #FFD700;
  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-out, padding 0.3s ease-out;
  background-color: #ffffff;
  color: #333333;
}

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

.page-responsible-gambling__faq-answer p {
  margin: 0;
  font-size: 1em;
  text-align: justify;
}

.page-responsible-gambling__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-responsible-gambling__cta-bottom-section .page-responsible-gambling__section-title {
  color: #FFD700;
}

.page-responsible-gambling__cta-bottom-section .page-responsible-gambling__paragraph {
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-responsible-gambling__cta-bottom-section .page-responsible-gambling__cta-button {
  background: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

.page-responsible-gambling__cta-bottom-section .page-responsible-gambling__cta-button:hover {
  background-color: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gambling__hero-title {
    font-size: 2.8em;
  }
  .page-responsible-gambling__section-title {
    font-size: 2em;
  }
  .page-responsible-gambling__grid-container--3-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-responsible-gambling__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-responsible-gambling__hero-title {
    font-size: 2.2em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 1em;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__grid-container {
    grid-template-columns: 1fr;
  }
  .page-responsible-gambling__grid-container--3-cols {
    grid-template-columns: 1fr;
  }
  .page-responsible-gambling__card {
    padding: 20px;
  }
  .page-responsible-gambling__card-image {
    height: 150px;
  }
  .page-responsible-gambling__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-responsible-gambling__faq-question h3 {
    font-size: 1em;
  }
  .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;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }
  .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 on mobile */
  }
  .page-responsible-gambling__container,
  .page-responsible-gambling__intro-section,
  .page-responsible-gambling__signs-section,
  .page-responsible-gambling__tools-section,
  .page-responsible-gambling__tips-section,
  .page-responsible-gambling__help-section,
  .page-responsible-gambling__policy-section,
  .page-responsible-gambling__faq-section,
  .page-responsible-gambling__cta-bottom-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling__hero-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 0.9em;
  }
  .page-responsible-gambling__hero-cta {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.5em;
  }
  .page-responsible-gambling__paragraph,
  .page-responsible-gambling__checklist li,
  .page-responsible-gambling__tips-list li,
  .page-responsible-gambling__policy-list li,
  .page-responsible-gambling__card-description,
  .page-responsible-gambling__resource-list li {
    font-size: 0.95em;
  }
  .page-responsible-gambling__faq-question h3 {
    font-size: 0.95em;
  }
  .page-responsible-gambling__faq-question {
    padding: 15px;
  }
  .page-responsible-gambling__faq-answer {
    padding: 15px;
  }
}