/* style/responsible-gaming.css */

/* Base styles for the page content */
.page-responsible-gaming {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Header offset for the first main section if shared.css doesn't apply to body */
/* Assuming shared.css does NOT add padding-top to body, so we add it here */
.page-responsible-gaming__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  background-color: rgba(1, 116, 57, 0.8); /* Semi-transparent brand color for hero overlay */
  overflow: hidden;
  padding-bottom: 60px;
}

.page-responsible-gaming__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-responsible-gaming__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image to ensure text contrast */
}

.page-responsible-gaming__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-responsible-gaming__hero-title {
  font-size: 3.2em;
  color: #FFFFFF; /* White text for contrast on dark background */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* General section styling */
.page-responsible-gaming__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles on light background */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-responsible-gaming__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-responsible-gaming__dark-section .page-responsible-gaming__section-title {
  color: #FFFFFF; /* White text for titles on dark background */
}

.page-responsible-gaming__dark-section .page-responsible-gaming__section-title::after {
  background-color: #FFFFFF;
}

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

.page-responsible-gaming__intro-section {
  background-color: #017439; /* Brand primary color background */
  color: #ffffff;
  padding: 60px 0;
}

.page-responsible-gaming__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #ffffff; /* Default for dark sections */
}

.page-responsible-gaming__intro-section .page-responsible-gaming__text-block {
  color: #ffffff;
}

.page-responsible-gaming__tools-section {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for contrast */
  padding: 60px 0;
}

.page-responsible-gaming__tools-section .page-responsible-gaming__text-block {
  color: #333333;
}

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

.page-responsible-gaming__feature-card {
  background-color: #f8f8f8; /* Light grey background for cards */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333; /* Dark text for cards on light background */
}

.page-responsible-gaming__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  /* Ensure image minimum size */
  min-width: 200px;
  min-height: 200px;
}

.page-responsible-gaming__feature-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for feature titles */
  margin-bottom: 15px;
}

.page-responsible-gaming__feature-description {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

.page-responsible-gaming__problem-gambling-section {
  background-color: #017439; /* Brand primary color background */
  color: #ffffff;
  padding: 60px 0;
}

.page-responsible-gaming__checklist {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-responsible-gaming__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-responsible-gaming__list-item::before {
  content: '✅'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: #FFFF00; /* Highlight color for checkmark */
  font-size: 1.2em;
}

.page-responsible-gaming__help-section {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-responsible-gaming__help-section .page-responsible-gaming__text-block {
  color: #333333;
}

.page-responsible-gaming__resource-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-responsible-gaming__resource-list .page-responsible-gaming__list-item {
  position: relative;
  padding-left: 0;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333333;
}

.page-responsible-gaming__resource-list .page-responsible-gaming__list-item a {
  color: #017439; /* Brand color for links */
  text-decoration: underline;
}

.page-responsible-gaming__resource-list .page-responsible-gaming__list-item a:hover {
  color: #004d2b;
}

/* Buttons */
.page-responsible-gaming__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-responsible-gaming__btn-primary,
.page-responsible-gaming__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

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

.page-responsible-gaming__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #ffffff;
}

.page-responsible-gaming__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand color for secondary button text */
  border: 2px solid #017439;
}

.page-responsible-gaming__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* FAQ Section */
.page-responsible-gaming__faq-section {
  background-color: #017439; /* Brand primary color background */
  color: #ffffff;
  padding: 60px 0;
}

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

.page-responsible-gaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker on hover */
  transition: background-color 0.3s ease;
}

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

.page-responsible-gaming__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-responsible-gaming__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00; /* Highlight color for toggle */
  transition: transform 0.3s ease;
}

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

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 20px;
}

.page-responsible-gaming__faq-item.active .page-responsible-gaming__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes an X */
}

.page-responsible-gaming__faq-answer p {
  color: #f0f0f0;
  margin-bottom: 10px;
  font-size: 1em;
}

.page-responsible-gaming__faq-answer a {
  color: #FFFF00; /* Highlight color for links in FAQ answers */
  text-decoration: underline;
}

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

.page-responsible-gaming__commitment-section {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
  text-align: center;
}

.page-responsible-gaming__commitment-section .page-responsible-gaming__text-block {
  color: #333333;
}

/* Links within content */
.page-responsible-gaming a {
  color: #FFFF00; /* Highlight color for general links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-responsible-gaming a:hover {
  color: #ffffff;
}

.page-responsible-gaming__tools-section a {
  color: #017439; /* Brand color for links on light background */
}

.page-responsible-gaming__tools-section a:hover {
  color: #004d2b;
}

/* Video section styles */
.page-responsible-gaming__video-section {
  background-color: #017439; /* Brand primary color background */
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-responsible-gaming__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px; /* Max width for video */
  margin: 40px auto 0;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-responsible-gaming__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-responsible-gaming__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.page-responsible-gaming__video-wrapper:hover .page-responsible-gaming__video-overlay {
  opacity: 1;
}

.page-responsible-gaming__video-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-responsible-gaming__video-cta:hover {
  background-color: #a00606;
  color: #ffffff;
}

.page-responsible-gaming__video-play-icon {
  font-size: 1.5em;
  line-height: 1;
}

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

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

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

@media (max-width: 768px) {
  /* Ensure content areas respect padding on mobile */
  .page-responsible-gaming__container,
  .page-responsible-gaming__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Adjust hero section padding for mobile */
  .page-responsible-gaming__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    min-height: 500px;
    padding-bottom: 40px;
  }

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

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

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

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

  .page-responsible-gaming__list-item,
  .page-responsible-gaming__text-block,
  .page-responsible-gaming__feature-description,
  .page-responsible-gaming__faq-answer p {
    font-size: 1em;
  }

  .page-responsible-gaming__btn-primary,
  .page-responsible-gaming__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  /* Responsive image rules */
  .page-responsible-gaming img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers that might hold images or other content */
  .page-responsible-gaming__section,
  .page-responsible-gaming__card,
  .page-responsible-gaming__container,
  .page-responsible-gaming__feature-card,
  .page-responsible-gaming__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Add padding if not already present to prevent content touching edges */
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
  }

  /* Specific override for feature-card padding, as it has its own padding */
  .page-responsible-gaming__feature-card {
      padding-left: 20px !important;
      padding-right: 20px !important;
  }

  /* FAQ item specific padding adjustment */
  .page-responsible-gaming__faq-item {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
  .page-responsible-gaming__faq-question {
      padding-left: 20px !important;
      padding-right: 20px !important;
  }
  .page-responsible-gaming__faq-answer {
      padding-left: 20px !important;
      padding-right: 20px !important;
  }

  /* Content area images should not be smaller than 200px, but also responsive */
  .page-responsible-gaming__content-area img,
  .page-responsible-gaming__tools-section img,
  .page-responsible-gaming__problem-gambling-section img,
  .page-responsible-gaming__help-section img,
  .page-responsible-gaming__commitment-section img,
  .page-responsible-gaming__video-section img {
      min-width: 200px;
      min-height: 200px;
      width: 100%;
      height: auto;
  }

  /* Mobile responsive video rules */
  .page-responsible-gaming__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0;
  }

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

  .page-responsible-gaming__video-overlay {
    opacity: 1; /* Make overlay always slightly visible on mobile */
    background-color: rgba(0, 0, 0, 0.3);
  }

  .page-responsible-gaming__video-cta {
    font-size: 1em;
    padding: 10px 20px;
  }
}

/* Ensure no CSS filter is used on images */
.page-responsible-gaming img {
  filter: none;
}

/* Ensure no video CSS filter */
.page-responsible-gaming video {
  filter: none;
}