/* style/responsible-gaming.css */

/* Base styles for the responsible gaming page */
.page-responsible-gaming {
  background-color: var(--dark-bg-1, #1a1a1a); /* Fallback to a dark color if shared var is not defined */
  color: #ffffff; /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

.page-responsible-gaming__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-responsible-gaming__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-responsible-gaming__list li::before {
  content: '✔'; /* Checkmark icon */
  color: #26A9E0; /* Brand primary color */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Hero Section */
.page-responsible-gaming__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #1a1a1a;
  color: #ffffff;
  overflow: hidden;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

.page-responsible-gaming__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)); /* Dark overlay for text readability */
  z-index: 1;
}

.page-responsible-gaming__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-responsible-gaming__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

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

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

.page-responsible-gaming__button {
  display: inline-block;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-responsible-gaming__button:hover {
  background-color: #1e87b8;
  transform: translateY(-2px);
}

.page-responsible-gaming__login-button {
  background-color: #EA7C07; /* Custom login color */
  color: #ffffff;
}

.page-responsible-gaming__login-button:hover {
  background-color: #c46406;
}

/* General Section Styling */
.page-responsible-gaming__section {
  padding: 60px 20px;
  background-color: var(--dark-bg-2, #2a2a2a); /* Slightly lighter dark background */
  color: #ffffff;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-responsible-gaming__section--alt {
  background-color: var(--dark-bg-1, #1a1a1a); /* Alternating dark background */
}

.page-responsible-gaming__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-responsible-gaming__section-subtitle {
  font-size: 1.8em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

.page-responsible-gaming__card {
  background-color: var(--dark-bg-3, #3a3a3a); /* Dark card background */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-responsible-gaming__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-responsible-gaming__card-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-responsible-gaming__image-wrapper {
  text-align: center;
  margin: 30px 0;
}

.page-responsible-gaming__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto;
  object-fit: cover;
}

/* Links */
.page-responsible-gaming__link {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-responsible-gaming__link:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* FAQ Section */
.page-responsible-gaming__faq-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-1, #1a1a1a);
  color: #ffffff;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-responsible-gaming__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.page-responsible-gaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0;
  transition: color 0.3s ease;
}

.page-responsible-gaming__faq-question:hover {
  color: #ffffff;
}

.page-responsible-gaming__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px;
}

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

.page-responsible-gaming__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-responsible-gaming__faq-answer p {
  margin: 0;
  padding-bottom: 15px; /* Add some padding to the bottom of the content */
}

/* Call to Action */
.page-responsible-gaming__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border-radius: 8px;
}

.page-responsible-gaming__cta-title {
  font-size: 2em;
  margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-responsible-gaming {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-responsible-gaming__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    min-height: 400px;
  }

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

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

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

  .page-responsible-gaming__section-subtitle {
    font-size: 1.4em;
  }

  .page-responsible-gaming__content-grid {
    grid-template-columns: 1fr;
  }

  .page-responsible-gaming img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-responsible-gaming video, 
  .page-responsible-gaming__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-responsible-gaming__section,
  .page-responsible-gaming__card,
  .page-responsible-gaming__container,
  .page-responsible-gaming__hero-section,
  .page-responsible-gaming__faq-section,
  .page-responsible-gaming__cta-section,
  .page-responsible-gaming__video-section,
  .page-responsible-gaming__video-container,
  .page-responsible-gaming__video-wrapper,
  .page-responsible-gaming__cta-buttons,
  .page-responsible-gaming__button-group,
  .page-responsible-gaming__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-responsible-gaming__cta-button,
  .page-responsible-gaming__btn-primary,
  .page-responsible-gaming__btn-secondary,
  .page-responsible-gaming a[class*="button"],
  .page-responsible-gaming a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* Stack buttons */
  }
  
  .page-responsible-gaming__button-group {
    flex-direction: column;
  }

  .page-responsible-gaming__faq-question {
    font-size: 1.1em;
  }
}

/* Ensure text on brand primary color is white for contrast */
.page-responsible-gaming__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
}
.page-responsible-gaming__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid transparent;
}
.page-responsible-gaming__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

/* Specific contrast fixes if needed */
.page-responsible-gaming__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-responsible-gaming__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}