/* style/responsible-gambling.css */
.page-responsible-gambling {
  color: #ffffff; /* Light text on dark body background */
  padding-top: var(--header-offset, 120px);
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
  background-color: #111; /* Ensure consistency with body background */
}

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

.page-responsible-gambling__hero-section {
  background-color: #1A202C;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

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

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

.page-responsible-gambling__cta-button {
  display: inline-block;
  background-color: #D4AF37;
  color: #1A202C;
  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;
  margin: 10px;
}

.page-responsible-gambling__cta-button:hover {
  background-color: #e1c773;
  transform: translateY(-3px);
}

.page-responsible-gambling__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #D4AF37;
  color: #D4AF37;
}

.page-responsible-gambling__cta-button--secondary:hover {
  background-color: #D4AF37;
  color: #1A202C;
}

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  color: #D4AF37;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 60px;
  font-weight: 600;
}

.page-responsible-gambling__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #e0e0e0;
}

.page-responsible-gambling__principles-section,
.page-responsible-gambling__tools-section,
.page-responsible-gambling__problem-gambling-section,
.page-responsible-gambling__support-section,
.page-responsible-gambling__prevention-section,
.page-responsible-gambling__faq-section,
.page-responsible-gambling__final-cta-section {
  padding: 60px 0;
  background-color: #1A202C; /* Dark background for sections */
  margin-bottom: 20px;
  border-radius: 10px;
}

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

.page-responsible-gambling__principle-card,
.page-responsible-gambling__tool-item,
.page-responsible-gambling__support-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.page-responsible-gambling__principle-card:hover,
.page-responsible-gambling__tool-item:hover,
.page-responsible-gambling__support-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-responsible-gambling__card-title,
.page-responsible-gambling__tool-title,
.page-responsible-gambling__support-card .page-responsible-gambling__card-title {
  font-size: 1.6em;
  color: #D4AF37;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-responsible-gambling__card-text,
.page-responsible-gambling__tool-description {
  font-size: 1em;
  color: #c0c0c0;
}

.page-responsible-gambling__tool-image,
.page-responsible-gambling__support-image,
.page-responsible-gambling__prevention-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensures images are not too wide in cards */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-responsible-gambling__support-link {
  display: inline-block;
  color: #D4AF37;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-responsible-gambling__support-link:hover {
  color: #e1c773;
  text-decoration: underline;
}

.page-responsible-gambling__checklist {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-responsible-gambling__checklist li {
  background-color: rgba(212, 175, 55, 0.1);
  border-left: 5px solid #D4AF37;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #e0e0e0;
}

.page-responsible-gambling__action-text {
  text-align: center;
  font-size: 1.2em;
  color: #D4AF37;
  margin-top: 40px;
  font-weight: bold;
}

.page-responsible-gambling__prevention-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-responsible-gambling__prevention-image {
  flex: 1 1 40%;
  min-width: 300px;
  max-width: 600px;
  height: auto;
}

.page-responsible-gambling__prevention-text {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-responsible-gambling__sub-title {
  font-size: 1.8em;
  color: #D4AF37;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-responsible-gambling__paragraph {
  margin-bottom: 20px;
  color: #c0c0c0;
}

.page-responsible-gambling__list {
  list-style: disc inside;
  color: #c0c0c0;
  margin-left: 20px;
  margin-bottom: 20px;
}

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

.page-responsible-gambling__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.page-responsible-gambling__faq-question {
  font-size: 1.4em;
  color: #D4AF37;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-responsible-gambling__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.page-responsible-gambling__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-responsible-gambling__faq-answer {
  font-size: 1em;
  color: #c0c0c0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-responsible-gambling__faq-answer.open {
  max-height: 200px; /* Adjust as needed for content length */
}

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

.page-responsible-gambling__final-cta-section {
    padding-bottom: 80px;
}

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

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

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

  .page-responsible-gambling__section-intro {
    font-size: 0.95em;
  }

  .page-responsible-gambling__principles-grid,
  .page-responsible-gambling__tools-grid,
  .page-responsible-gambling__support-grid {
    grid-template-columns: 1fr;
  }

  .page-responsible-gambling__prevention-content {
    flex-direction: column;
  }

  .page-responsible-gambling__prevention-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  .page-responsible-gambling__hero-image,
  .page-responsible-gambling__tool-image,
  .page-responsible-gambling__support-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
  
  /* Ensure content images are not too small on mobile */
  .page-responsible-gambling img {
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
    max-width: 100%; /* Important for responsiveness */
    height: auto; /* Maintain aspect ratio */
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling__hero-section {
    padding: 60px 15px;
  }

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

  .page-responsible-gambling__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }
}