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

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

.page-resources-safety-responsible-gambling__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjusted padding-top to respect header offset */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: var(--header-offset, 120px);
}

.page-resources-safety-responsible-gambling__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

.page-resources-safety-responsible-gambling__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-resources-safety-responsible-gambling__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources-safety-responsible-gambling__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

.page-resources-safety-responsible-gambling__btn-primary,
.page-resources-safety-responsible-gambling__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-safety-responsible-gambling__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resources-safety-responsible-gambling__btn-primary:hover {
  background-color: #1e87b3;
  border-color: #1e87b3;
}

.page-resources-safety-responsible-gambling__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-resources-safety-responsible-gambling__introduction-section,
.page-resources-safety-responsible-gambling__tools-section,
.page-resources-safety-responsible-gambling__support-section,
.page-resources-safety-responsible-gambling__conclusion-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-resources-safety-responsible-gambling__measures-section,
.page-resources-safety-responsible-gambling__underage-section,
.page-resources-safety-responsible-gambling__faq-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources-safety-responsible-gambling__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
  color: inherit; /* Inherit color from section */
}

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

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

.page-resources-safety-responsible-gambling__grid--two-columns {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-resources-safety-responsible-gambling__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px; /* Ensure card content area is not too small */
}

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

.page-resources-safety-responsible-gambling__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #26A9E0;
}

.page-resources-safety-responsible-gambling__card-text {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

.page-resources-safety-responsible-gambling__card--tool .page-resources-safety-responsible-gambling__card-title {
  color: #26A9E0;
}

.page-resources-safety-responsible-gambling__card--tool .page-resources-safety-responsible-gambling__card-text {
  color: #555555;
}

.page-resources-safety-responsible-gambling__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-resources-safety-responsible-gambling__text-content {
  flex: 1;
}

.page-resources-safety-responsible-gambling__image-wrapper {
  flex: 1;
  text-align: center;
}

.page-resources-safety-responsible-gambling__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-resources-safety-responsible-gambling__resource-item {
  background-color: #f9f9f9;
  color: #333333;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-safety-responsible-gambling__resource-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-resources-safety-responsible-gambling__resource-description {
  font-size: 1em;
  margin-bottom: 20px;
  color: #555555;
}

.page-resources-safety-responsible-gambling__resource-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-safety-responsible-gambling__resource-link:hover {
  color: #1e87b3;
}

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

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

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

.page-resources-safety-responsible-gambling__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

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

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

.page-resources-safety-responsible-gambling__faq-answer p {
  margin-bottom: 0;
  color: #f0f0f0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources-safety-responsible-gambling {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-safety-responsible-gambling__hero-section {
    padding: 80px 20px 40px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-safety-responsible-gambling__hero-title {
    font-size: 2.2em;
  }

  .page-resources-safety-responsible-gambling__hero-description {
    font-size: 1em;
  }

  .page-resources-safety-responsible-gambling__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-safety-responsible-gambling__btn-primary,
  .page-resources-safety-responsible-gambling__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-resources-safety-responsible-gambling__introduction-section,
  .page-resources-safety-responsible-gambling__measures-section,
  .page-resources-safety-responsible-gambling__tools-section,
  .page-resources-safety-responsible-gambling__underage-section,
  .page-resources-safety-responsible-gambling__support-section,
  .page-resources-safety-responsible-gambling__faq-section,
  .page-resources-safety-responsible-gambling__conclusion-section {
    padding: 50px 0;
  }

  .page-resources-safety-responsible-gambling__container {
    padding: 0 15px;
  }

  .page-resources-safety-responsible-gambling__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-safety-responsible-gambling__grid,
  .page-resources-safety-responsible-gambling__grid--two-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-safety-responsible-gambling__card {
    padding: 20px;
  }

  .page-resources-safety-responsible-gambling__card-image {
    height: 200px;
  }

  .page-resources-safety-responsible-gambling__flex-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources-safety-responsible-gambling__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-safety-responsible-gambling__resource-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-safety-responsible-gambling__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-resources-safety-responsible-gambling__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive */
  .page-resources-safety-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-safety-responsible-gambling__section,
  .page-resources-safety-responsible-gambling__card,
  .page-resources-safety-responsible-gambling__container,
  .page-resources-safety-responsible-gambling__cta-buttons,
  .page-resources-safety-responsible-gambling__button-group,
  .page-resources-safety-responsible-gambling__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* General image styling for content area to prevent small icons */
.page-resources-safety-responsible-gambling img:not(.page-resources-safety-responsible-gambling__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific overrides for color contrast */
.page-resources-safety-responsible-gambling__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-resources-safety-responsible-gambling__card .page-resources-safety-responsible-gambling__card-title {
  color: #26A9E0;
}

.page-resources-safety-responsible-gambling__card .page-resources-safety-responsible-gambling__card-text {
  color: #555555;
}

.page-resources-safety-responsible-gambling__resource-item {
  background-color: #f0f8ff; /* A very light blue to differentiate from pure white */
  color: #333333;
}

.page-resources-safety-responsible-gambling__resource-item .page-resources-safety-responsible-gambling__resource-title {
  color: #26A9E0;
}

.page-resources-safety-responsible-gambling__resource-item .page-resources-safety-responsible-gambling__resource-description {
  color: #555555;
}

.page-resources-safety-responsible-gambling__resource-item .page-resources-safety-responsible-gambling__resource-link {
  color: #26A9E0;
}

.page-resources-safety-responsible-gambling__faq-item {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-safety-responsible-gambling__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-safety-responsible-gambling__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-resources-safety-responsible-gambling__faq-answer p {
  color: #f0f0f0;
}