/* style/resources-safe-gambling-practices.css */
.page-resources-safe-gambling-practices {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #1a1a1a, so text must be light */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-resources-safe-gambling-practices__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #26A9E0; /* Brand primary color for hero */
  color: #ffffff;
  overflow: hidden;
}

.page-resources-safe-gambling-practices__hero-content {
  max-width: 900px;
  z-index: 1;
  margin-bottom: 40px;
}

.page-resources-safe-gambling-practices__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-resources-safe-gambling-practices__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-resources-safe-gambling-practices__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  overflow: hidden;
}

.page-resources-safe-gambling-practices__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-gambling-practices__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #ffffff; /* Default text color for dark body background */
}

.page-resources-safe-gambling-practices__light-bg {
  background-color: #1a1a1a; /* Using body background for consistency */
  color: #ffffff;
}

.page-resources-safe-gambling-practices__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-resources-safe-gambling-practices__section-title {
  font-size: 2.2em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources-safe-gambling-practices__sub-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources-safe-gambling-practices__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #ffffff;
  text-align: justify;
}

.page-resources-safe-gambling-practices__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-resources-safe-gambling-practices__btn-primary,
.page-resources-safe-gambling-practices__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-safe-gambling-practices__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-resources-safe-gambling-practices__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-resources-safe-gambling-practices__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources-safe-gambling-practices__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

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

.page-resources-safe-gambling-practices__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-resources-safe-gambling-practices__card-image {
  width: 100%;
  max-width: 400px; /* Adjust max-width to fit card better */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-resources-safe-gambling-practices__card-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-safe-gambling-practices__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-resources-safe-gambling-practices__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
}

.page-resources-safe-gambling-practices__list li {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23EA7C07' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-resources-safe-gambling-practices__list-icons {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-resources-safe-gambling-practices__list-item-icon {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  padding: 20px;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-gambling-practices__icon-small {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  flex-shrink: 0;
  object-fit: contain;
}

.page-resources-safe-gambling-practices__list-item-icon p {
  margin: 0;
  font-size: 1.05em;
}

.page-resources-safe-gambling-practices__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-resources-safe-gambling-practices__advice-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-resources-safe-gambling-practices__advice-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources-safe-gambling-practices__advice-number {
  font-size: 1.5em;
  font-weight: bold;
  color: #EA7C07; /* Login color for numbers */
  margin-right: 15px;
  flex-shrink: 0;
  line-height: 1;
}

.page-resources-safe-gambling-practices__advice-text {
  font-size: 1.1em;
  color: #ffffff;
  text-align: justify;
}

.page-resources-safe-gambling-practices__faq-list {
  margin-top: 40px;
}

.page-resources-safe-gambling-practices__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources-safe-gambling-practices__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.page-resources-safe-gambling-practices__faq-question::-webkit-details-marker {
  display: none;
}

.page-resources-safe-gambling-practices__faq-question .page-resources-safe-gambling-practices__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #EA7C07; /* Login color for toggle */
}

.page-resources-safe-gambling-practices__faq-item[open] .page-resources-safe-gambling-practices__faq-question .page-resources-safe-gambling-practices__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-safe-gambling-practices__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: #f0f0f0;
  text-align: justify;
}

.page-resources-safe-gambling-practices__faq-answer p {
  margin: 0;
}

.page-resources-safe-gambling-practices__final-cta {
  text-align: center;
  background-color: #1a1a1a; /* Using body background for consistency */
  color: #ffffff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources-safe-gambling-practices__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-safe-gambling-practices__hero-title {
    font-size: 2em;
  }

  .page-resources-safe-gambling-practices__hero-description {
    font-size: 1em;
  }

  .page-resources-safe-gambling-practices__content-area {
    padding: 40px 15px;
  }

  .page-resources-safe-gambling-practices__section-title {
    font-size: 1.8em;
  }

  .page-resources-safe-gambling-practices__sub-title {
    font-size: 1.5em;
  }

  .page-resources-safe-gambling-practices__text-block {
    font-size: 1em;
  }

  .page-resources-safe-gambling-practices__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-safe-gambling-practices__btn-primary,
  .page-resources-safe-gambling-practices__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
  }

  .page-resources-safe-gambling-practices__card-grid,
  .page-resources-safe-gambling-practices__support-cards {
    grid-template-columns: 1fr;
  }

  .page-resources-safe-gambling-practices__list-icons {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-resources-safe-gambling-practices__list-item-icon {
    padding: 15px;
  }

  .page-resources-safe-gambling-practices__icon-small {
    width: 30px;
    height: 30px;
    margin-right: 10px;
  }

  .page-resources-safe-gambling-practices__advice-number {
    font-size: 1.2em;
  }

  .page-resources-safe-gambling-practices__advice-text {
    font-size: 0.95em;
  }

  .page-resources-safe-gambling-practices__faq-question {
    font-size: 1.05em;
    padding: 15px 20px;
  }

  .page-resources-safe-gambling-practices__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  /* Image responsiveness */
  .page-resources-safe-gambling-practices img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-safe-gambling-practices__hero-image-wrapper,
  .page-resources-safe-gambling-practices__card,
  .page-resources-safe-gambling-practices__list-item-icon,
  .page-resources-safe-gambling-practices__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources-safe-gambling-practices__content-area {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}