/* style/resources-responsible-gambling.css */

/* Base styles and container */
.page-resources-responsible-gambling {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assuming dark */
}

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

/* Section spacing and background */
.page-resources-responsible-gambling__section {
  padding: 60px 0;
}

.page-resources-responsible-gambling__dark-bg {
  background-color: #017439; /* Main brand color for dark sections */
  color: #ffffff;
}

.page-resources-responsible-gambling__light-bg {
  background-color: #ffffff; /* Auxiliary color for light sections */
  color: #333333;
}

/* Hero Section */
.page-resources-responsible-gambling__hero-section {
  padding: calc(var(--header-offset, 120px) + 60px) 0 60px;
  text-align: center;
  background-image: url('[GALLERY:hero:1920x1080:responsible_gambling_hero,q88_win_safety,player_focus]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-resources-responsible-gambling__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-resources-responsible-gambling__hero-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resources-responsible-gambling__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Titles and descriptions */
.page-resources-responsible-gambling__section-title {
  font-size: 2.5em;
  color: inherit; /* Inherit from section background */
  text-align: center;
  margin-bottom: 20px;
}

.page-resources-responsible-gambling__section-description {
  font-size: 1.1em;
  color: inherit; /* Inherit from section background */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Buttons */
.page-resources-responsible-gambling__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-resources-responsible-gambling__btn-primary,
.page-resources-responsible-gambling__btn-secondary {
  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, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-resources-responsible-gambling__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-resources-responsible-gambling__btn-secondary {
  background-color: transparent;
  color: #ffffff; /* For dark sections */
  border: 2px solid #ffffff;
}

.page-resources-responsible-gambling__light-bg .page-resources-responsible-gambling__btn-secondary {
  color: #017439;
  border: 2px solid #017439;
}

.page-resources-responsible-gambling__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  border-color: #017439;
}

.page-resources-responsible-gambling__dark-bg .page-resources-responsible-gambling__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

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

/* Content wrapper with image */
.page-resources-responsible-gambling__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-resources-responsible-gambling__image-wrapper {
  flex: 1;
  min-width: 400px; /* Ensure image is not too small */
}

.page-resources-responsible-gambling__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-resources-responsible-gambling__text-block {
  flex: 1.5;
  font-size: 1.1em;
}

.page-resources-responsible-gambling__text-block p {
  margin-bottom: 15px;
}

/* Grid for cards */
.page-resources-responsible-gambling__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.page-resources-responsible-gambling__light-bg .page-resources-responsible-gambling__card {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

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

/* Features grid */
.page-resources-responsible-gambling__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.page-resources-responsible-gambling__feature-icon {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

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

/* List styles */
.page-resources-responsible-gambling__list {
  list-style: disc inside;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 20px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-resources-responsible-gambling__list li {
  margin-bottom: 15px;
}

.page-resources-responsible-gambling__list strong {
  color: #FFFF00;
}

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

.page-resources-responsible-gambling__support-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 250px;
}

.page-resources-responsible-gambling__support-card .page-resources-responsible-gambling__btn-secondary {
  margin-top: 20px;
}

.page-resources-responsible-gambling__note {
  text-align: center;
  font-style: italic;
  margin-top: 30px;
  color: #555555;
}

/* FAQ Section */
.page-resources-responsible-gambling__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

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

.page-resources-responsible-gambling__faq-question:hover {
  background-color: #005f2e;
}

.page-resources-responsible-gambling__faq-question h3 {
  margin: 0;
  color: inherit;
}

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

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

.page-resources-responsible-gambling__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.3);
}

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

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

/* Call to Action Section */
.page-resources-responsible-gambling__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

.page-resources-responsible-gambling__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources-responsible-gambling__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources-responsible-gambling__hero-title {
    font-size: 2.8em;
  }

  .page-resources-responsible-gambling__section-title {
    font-size: 2em;
  }

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

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

  .page-resources-responsible-gambling__hero-section {
    padding: calc(var(--header-offset, 120px) + 40px) 0 40px;
  }

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

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

  .page-resources-responsible-gambling__section {
    padding: 40px 0;
  }

  .page-resources-responsible-gambling__section-title {
    font-size: 1.8em;
  }

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

  .page-resources-responsible-gambling__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-resources-responsible-gambling__image-wrapper {
    min-width: unset;
  }

  .page-resources-responsible-gambling__grid,
  .page-resources-responsible-gambling__features-grid,
  .page-resources-responsible-gambling__support-grid {
    grid-template-columns: 1fr;
  }

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

  .page-resources-responsible-gambling__btn-primary,
  .page-resources-responsible-gambling__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-responsible-gambling__card,
  .page-resources-responsible-gambling__feature-card,
  .page-resources-responsible-gambling__support-card {
    padding: 20px;
    min-height: unset;
  }

  .page-resources-responsible-gambling__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources-responsible-gambling__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources-responsible-gambling__list {
    padding-left: 15px;
  }

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

  .page-resources-responsible-gambling__faq-answer {
    padding: 0 20px;
  }

  .page-resources-responsible-gambling__faq-item.active .page-resources-responsible-gambling__faq-answer {
    padding: 15px 20px;
  }

  .page-resources-responsible-gambling__cta-title {
    font-size: 1.8em;
  }

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

  /* Ensure content containers also adapt */
  .page-resources-responsible-gambling__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-responsible-gambling__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}