/* style/responsible-gambling.css */

/* Custom Colors */
:root {
  --j8bet-primary-color: #11A84E;
  --j8bet-secondary-color: #22C768;
  --j8bet-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --j8bet-card-bg: #11271B;
  --j8bet-background: #08160F;
  --j8bet-text-main: #F2FFF6;
  --j8bet-text-secondary: #A7D9B8;
  --j8bet-border: #2E7A4E;
  --j8bet-glow: #57E38D;
  --j8bet-gold: #F2C14E;
  --j8bet-divider: #1E3A2A;
  --j8bet-deep-green: #0A4B2C;
}

.page-responsible-gambling {
  color: var(--j8bet-text-main); /* Default text color for the page */
  background-color: var(--j8bet-background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-responsible-gambling__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

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

.page-responsible-gambling__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the background image for text readability */
}

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: var(--j8bet-text-main);
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text block */
  border-radius: 10px;
}

.page-responsible-gambling__main-title {
  color: var(--j8bet-gold);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-responsible-gambling__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--j8bet-text-secondary);
}

.page-responsible-gambling__btn-primary {
  background: var(--j8bet-button-gradient);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-responsible-gambling__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-responsible-gambling__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  box-sizing: border-box;
}

.page-responsible-gambling__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}

.page-responsible-gambling__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-bottom: 20px;
}

.page-responsible-gambling__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  max-width: 100%;
  display: block;
}

.page-responsible-gambling__video-caption {
  color: var(--j8bet-text-secondary);
  font-size: 0.9em;
  margin-top: 10px;
}

.page-responsible-gambling__content-section {
  padding: 40px 20px;
  background-color: var(--j8bet-background);
}

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

.page-responsible-gambling__section-title {
  color: var(--j8bet-primary-color);
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.page-responsible-gambling__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--j8bet-gold);
  border-radius: 5px;
}

.page-responsible-gambling__text-block {
  background-color: var(--j8bet-card-bg);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: var(--j8bet-text-secondary);
  border: 1px solid var(--j8bet-border);
}

.page-responsible-gambling__text-block p {
  margin-bottom: 15px;
  color: var(--j8bet-text-secondary);
}

.page-responsible-gambling__subsection-title {
  color: var(--j8bet-gold);
  font-size: 1.6em;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-responsible-gambling__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--j8bet-text-secondary);
}

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

.page-responsible-gambling__image-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-responsible-gambling__btn-secondary {
  background: transparent;
  color: var(--j8bet-primary-color);
  border: 2px solid var(--j8bet-primary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  margin-top: 15px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-responsible-gambling__btn-secondary:hover {
  background: var(--j8bet-primary-color);
  color: #ffffff;
}

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

.page-responsible-gambling__faq-item {
  background-color: var(--j8bet-card-bg);
  border: 1px solid var(--j8bet-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--j8bet-text-main);
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: var(--j8bet-gold);
  background-color: var(--j8bet-deep-green);
  border-bottom: 1px solid var(--j8bet-divider);
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-responsible-gambling__faq-question::-webkit-details-marker {
  display: none;
}

.page-responsible-gambling__faq-qtext {
  flex-grow: 1;
}

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

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

.page-responsible-gambling__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--j8bet-text-secondary);
  line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-responsible-gambling__hero-content {
    padding: 15px;
  }

  .page-responsible-gambling__main-title {
    font-size: 2.5em;
  }

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

  .page-responsible-gambling__subsection-title {
    font-size: 1.4em;
  }
}

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

  .page-responsible-gambling__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-responsible-gambling__hero-content {
    padding: 15px;
    max-width: 100%;
  }

  .page-responsible-gambling__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .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;
    text-align: center;
  }

  .page-responsible-gambling__video-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

  .page-responsible-gambling__video-container,
  .page-responsible-gambling__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-responsible-gambling__content-section {
    padding: 30px 15px;
  }

  .page-responsible-gambling__container,
  .page-responsible-gambling__text-block {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-responsible-gambling__section-title::after {
    width: 60px;
  }

  .page-responsible-gambling__subsection-title {
    font-size: 1.2em;
  }

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

  .page-responsible-gambling__faq-answer {
    padding: 10px 20px 15px;
  }

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

  .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;
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling__main-title {
    font-size: 1.6em;
  }
}