/* style/resources-responsible-gaming-policy.css */
.page-resources-responsible-gaming-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from shared.css body */
}

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

.page-resources-responsible-gaming-policy__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is pushed down */
  overflow: hidden;
}

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

.page-resources-responsible-gaming-policy__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-resources-responsible-gaming-policy__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
}

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

.page-resources-responsible-gaming-policy__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-resources-responsible-gaming-policy__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand color for titles */
}

.page-resources-responsible-gaming-policy__introduction-section,
.page-resources-responsible-gaming-policy__prevention-section,
.page-resources-responsible-gaming-policy__help-section,
.page-resources-responsible-gaming-policy__cta-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-resources-responsible-gaming-policy__dark-section {
  padding: 60px 0;
  background-color: #017439; /* Primary brand color background */
  color: #ffffff; /* White text for primary brand color background */
}

.page-resources-responsible-gaming-policy__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-resources-responsible-gaming-policy__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-resources-responsible-gaming-policy__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark sections */
  color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-resources-responsible-gaming-policy__introduction-section .page-resources-responsible-gaming-policy__card,
.page-resources-responsible-gaming-policy__prevention-section .page-resources-responsible-gaming-policy__card,
.page-resources-responsible-gaming-policy__help-section .page-resources-responsible-gaming-policy__card {
  background-color: #ffffff; /* White background for light sections */
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-responsible-gaming-policy__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-resources-responsible-gaming-policy__introduction-section .page-resources-responsible-gaming-policy__card-title,
.page-resources-responsible-gaming-policy__prevention-section .page-resources-responsible-gaming-policy__card-title,
.page-resources-responsible-gaming-policy__help-section .page-resources-responsible-gaming-policy__card-title {
  color: #017439;
}

.page-resources-responsible-gaming-policy__card-description {
  font-size: 1em;
}

.page-resources-responsible-gaming-policy__btn-primary {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

.page-resources-responsible-gaming-policy__btn-primary:hover {
  background-color: #005f2e;
}

.page-resources-responsible-gaming-policy__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #017439;
}

.page-resources-responsible-gaming-policy__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
}

/* Custom colors for register/login buttons */
.page-resources-responsible-gaming-policy__register-btn {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}
.page-resources-responsible-gaming-policy__register-btn:hover {
  background-color: #a10606;
  border-color: #a10606;
}

.page-resources-responsible-gaming-policy__login-btn {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}
.page-resources-responsible-gaming-policy__login-btn:hover {
  background-color: #a10606;
  border-color: #a10606;
}

.page-resources-responsible-gaming-policy__content-with-image {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 40px;
}

.page-resources-responsible-gaming-policy__image-left {
  flex: 0 0 40%;
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-responsible-gaming-policy__sub-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

.page-resources-responsible-gaming-policy__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources-responsible-gaming-policy__list li {
  margin-bottom: 10px;
}

.page-resources-responsible-gaming-policy__faq-section {
  padding: 60px 0;
}

.page-resources-responsible-gaming-policy__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark sections */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources-responsible-gaming-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.2); /* Slightly darker for question header */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary native toggle */
}

.page-resources-responsible-gaming-policy__faq-question::-webkit-details-marker {
  display: none;
}

.page-resources-responsible-gaming-policy__faq-qtext {
  flex-grow: 1;
}

.page-resources-responsible-gaming-policy__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-resources-responsible-gaming-policy__faq-answer {
  padding: 20px;
  font-size: 1em;
  line-height: 1.5;
}

.page-resources-responsible-gaming-policy__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-responsible-gaming-policy__hero-title {
    font-size: 3em;
  }
  .page-resources-responsible-gaming-policy__section-title {
    font-size: 2em;
  }
  .page-resources-responsible-gaming-policy__grid,
  .page-resources-responsible-gaming-policy__grid-two-cols {
    grid-template-columns: 1fr;
  }
  .page-resources-responsible-gaming-policy__content-with-image {
    flex-direction: column;
    align-items: center;
  }
  .page-resources-responsible-gaming-policy__image-left {
    max-width: 80%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources-responsible-gaming-policy {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-responsible-gaming-policy__hero-section {
    height: 450px;
  }
  .page-resources-responsible-gaming-policy__hero-title {
    font-size: 2em;
  }
  .page-resources-responsible-gaming-policy__hero-description {
    font-size: 1em;
  }
  .page-resources-responsible-gaming-policy__section-title {
    font-size: 1.8em;
  }
  .page-resources-responsible-gaming-policy__container {
    padding: 15px;
  }

  /* Mobile image adaptation */
  .page-resources-responsible-gaming-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-responsible-gaming-policy__section,
  .page-resources-responsible-gaming-policy__card,
  .page-resources-responsible-gaming-policy__container,
  .page-resources-responsible-gaming-policy__hero-section,
  .page-resources-responsible-gaming-policy__tools-section,
  .page-resources-responsible-gaming-policy__prevention-section,
  .page-resources-responsible-gaming-policy__problem-gambling-section,
  .page-resources-responsible-gaming-policy__help-section,
  .page-resources-responsible-gaming-policy__faq-section,
  .page-resources-responsible-gaming-policy__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources-responsible-gaming-policy__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile if needed */
  }

  /* Mobile button adaptation */
  .page-resources-responsible-gaming-policy__btn-primary,
  .page-resources-responsible-gaming-policy__btn-secondary,
  .page-resources-responsible-gaming-policy a[class*="button"],
  .page-resources-responsible-gaming-policy 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;
    text-align: center;
  }
  .page-resources-responsible-gaming-policy__button-group {
    flex-direction: column !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-resources-responsible-gaming-policy__hero-title {
    font-size: 1.8em;
  }
  .page-resources-responsible-gaming-policy__section-title {
    font-size: 1.5em;
  }
  .page-resources-responsible-gaming-policy__faq-question {
    font-size: 1em;
  }
}