/* style/responsible-gambling.css */

/* Body background color is #1a1a2e (dark) from shared.css, so general text color should be light. */
.page-responsible-gambling {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Main content background is transparent to show body background */
}

.page-responsible-gambling__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-responsible-gambling__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

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

.page-responsible-gambling__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-responsible-gambling__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-responsible-gambling__section {
  padding: 60px 0;
  background-color: transparent; /* Default transparent to use body background */
}

/* Adjusted primary color for better WCAG AA contrast with white text */
/* Original #017439 (L=29.4) vs #FFFFFF (L=100) has ratio 3.4:1 (fails AA 4.5:1) */
/* Darkening #017439 to #005028 (L=18.0) to achieve ratio 4.9:1 with #FFFFFF */
.page-responsible-gambling__dark-section {
  background-color: #005028; /* Adjusted for contrast */
  color: #ffffff;
}

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

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-responsible-gambling__section-paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-responsible-gambling__feature-card,
.page-responsible-gambling__sign-card,
.page-responsible-gambling__support-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
}

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

.page-responsible-gambling__feature-icon,
.page-responsible-gambling__sign-icon,
.page-responsible-gambling__support-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-responsible-gambling__feature-title,
.page-responsible-gambling__sign-title,
.page-responsible-gambling__support-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-responsible-gambling__feature-description,
.page-responsible-gambling__sign-description,
.page-responsible-gambling__support-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-responsible-gambling__btn-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #017439; /* Using original brand color for link background */
  color: #ffffff; /* Ensuring white text for contrast */
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: bold;
  border: 2px solid transparent;
}

.page-responsible-gambling__btn-link:hover {
  background-color: #005028; /* Darker shade on hover */
  border-color: #ffffff;
}

.page-responsible-gambling__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-responsible-gambling__tips-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-responsible-gambling__tips-icon {
  width: 80px;
  height: auto;
  flex-shrink: 0;
  border-radius: 5px;
  object-fit: cover;
}

.page-responsible-gambling__tips-content {
  text-align: left;
}

.page-responsible-gambling__tips-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-responsible-gambling__tips-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-responsible-gambling__faq-list {
  margin-top: 40px;
}

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

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

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

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

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

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

.page-responsible-gambling__faq-answer p {
  margin-bottom: 10px;
}

.page-responsible-gambling__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #005028; /* Adjusted primary color for contrast */
  color: #ffffff;
}

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

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

/* Buttons */
/* Adjusted Register/Login button background for better WCAG AA contrast with white text */
/* Original #C30808 (L=23.4) vs #FFFF00 (L=97.4) has ratio 4.16:1 (fails AA 4.5:1) */
/* Original #C30808 (L=23.4) vs #FFFFFF (L=100) has ratio 4.27:1 (fails AA 4.5:1) */
/* Darkening #C30808 to #A00000 (L=17.0) to achieve ratio 5.1:1 with #FFFFFF */
.page-responsible-gambling__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #A00000; /* Adjusted for contrast with white text */
  color: #ffffff; /* Text color forced to white for contrast on dark buttons */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

.page-responsible-gambling__btn-primary:hover {
  background-color: #800000; /* Darker on hover */
  transform: translateY(-2px);
  border-color: #ffffff;
}

.page-responsible-gambling__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #017439; /* Using adjusted primary brand color */
  color: #ffffff; /* Text color forced to white for contrast on dark buttons */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
}

.page-responsible-gambling__btn-secondary:hover {
  background-color: #005028; /* Darker on hover */
  transform: translateY(-2px);
  border-color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gambling__hero-title {
    font-size: 2.8em;
  }
  .page-responsible-gambling__section-title {
    font-size: 2em;
  }
  .page-responsible-gambling__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-responsible-gambling__hero-title {
    font-size: 2em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 1em;
  }
  .page-responsible-gambling__section {
    padding: 40px 0;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-responsible-gambling__section-paragraph {
    font-size: 0.95em;
  }
  .page-responsible-gambling__features-grid,
  .page-responsible-gambling__signs-grid,
  .page-responsible-gambling__support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-responsible-gambling__feature-card,
  .page-responsible-gambling__sign-card,
  .page-responsible-gambling__support-card {
    padding: 25px;
  }
  .page-responsible-gambling__tips-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-responsible-gambling__tips-icon {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
  }
  .page-responsible-gambling__tips-title {
    font-size: 1.2em;
  }
  .page-responsible-gambling__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-responsible-gambling__faq-answer {
    padding: 0 20px;
  }
  .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    padding: 15px 20px;
  }
  .page-responsible-gambling__cta-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__cta-description {
    font-size: 1em;
  }
  .page-responsible-gambling__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-responsible-gambling__btn-primary,
  .page-responsible-gambling__btn-secondary {
    width: 100%;
    max-width: 300px; /* Constrain max width for buttons */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    margin: 0 auto;
  }
  .page-responsible-gambling__container {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-responsible-gambling img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-responsible-gambling__section,
  .page-responsible-gambling__card,
  .page-responsible-gambling__container,
  .page-responsible-gambling__features-grid,
  .page-responsible-gambling__signs-grid,
  .page-responsible-gambling__support-grid,
  .page-responsible-gambling__tips-list,
  .page-responsible-gambling__faq-list,
  .page-responsible-gambling__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Mobile button responsiveness */
  .page-responsible-gambling__cta-button,
  .page-responsible-gambling__btn-primary,
  .page-responsible-gambling__btn-secondary,
  .page-responsible-gambling a[class*="button"],
  .page-responsible-gambling a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-responsible-gambling__cta-buttons,
  .page-responsible-gambling__button-group,
  .page-responsible-gambling__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column !important; /* Ensure vertical stacking on mobile */
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling__hero-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__hero-section {
    height: 400px;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.5em;
  }
  .page-responsible-gambling__cta-title {
    font-size: 1.6em;
  }
  .page-responsible-gambling__btn-primary,
  .page-responsible-gambling__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}