/* style/resources-responsible-gaming.css */

/* Base styles for the responsible gaming page */
.page-resources-responsible-gaming {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from body, but ensure consistency */
}

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

/* Hero Section */
.page-resources-responsible-gaming__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  box-sizing: border-box;
}

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

.page-resources-responsible-gaming__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

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

.page-resources-responsible-gaming__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-resources-responsible-gaming__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Section Styles */
.page-resources-responsible-gaming__content-area {
  padding: 60px 0;
}

.page-resources-responsible-gaming__section--dark-bg {
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
}

.page-resources-responsible-gaming__section--light-bg {
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

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

.page-resources-responsible-gaming__section-title--dark-text {
  color: #333333;
}

.page-resources-responsible-gaming__subsection-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #017439; /* Brand color for sub-titles */
}

.page-resources-responsible-gaming__subsection-title--dark-text {
  color: #333333;
}

.page-resources-responsible-gaming__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources-responsible-gaming__paragraph--dark-text {
  color: #333333;
}

.page-resources-responsible-gaming__highlight {
  color: #FFFF00; /* Highlight color for keywords */
  font-weight: bold;
}

.page-resources-responsible-gaming__highlight--dark-text {
  color: #017439; /* Brand color as highlight on light background */
  font-weight: bold;
}

.page-resources-responsible-gaming__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-resources-responsible-gaming__list-item {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-resources-responsible-gaming__list-item--dark-text {
  color: #333333;
}

.page-resources-responsible-gaming__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-resources-responsible-gaming__btn-primary,
.page-resources-responsible-gaming__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
  box-sizing: border-box;
  max-width: 100%;
}

.page-resources-responsible-gaming__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-resources-responsible-gaming__btn-primary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

.page-resources-responsible-gaming__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

/* Custom button styles for Register/Login */
.page-resources-responsible-gaming__btn-primary--red-bg {
  background-color: #C30808;
  color: #FFFF00; /* Yellow text for Register/Login */
  border-color: #C30808;
}

.page-resources-responsible-gaming__btn-primary--red-bg:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-resources-responsible-gaming__actions-center {
  text-align: center;
  margin-top: 40px;
}

/* Grid for features */
.page-resources-responsible-gaming__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-responsible-gaming__card {
  background-color: rgba(255, 255, 255, 0.95); /* Light background for cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333; /* Dark text for light card background */
}

.page-resources-responsible-gaming__card--light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources-responsible-gaming__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

.page-resources-responsible-gaming__card-title--dark-text {
  color: #333333;
}

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

.page-resources-responsible-gaming__card-text--dark-text {
  color: #333333;
}

.page-resources-responsible-gaming__card-image {
  width: 100%;
  height: auto;
  max-height: 250px; /* Limit image height in cards */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

.page-resources-responsible-gaming__link {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-resources-responsible-gaming__link:hover {
  color: #fff;
}

.page-resources-responsible-gaming__link--dark-text {
  color: #017439; /* Brand color for links on light background */
  text-decoration: underline;
}

.page-resources-responsible-gaming__link--dark-text:hover {
  color: #005a2d;
}

/* FAQ Section */
.page-resources-responsible-gaming__faq-list {
  margin-top: 40px;
}

.page-resources-responsible-gaming__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter background for dark section FAQs */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources-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);
  transition: background-color 0.3s ease;
}

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

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

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

.page-resources-responsible-gaming__faq-item.active .page-resources-responsible-gaming__faq-toggle {
  transform: rotate(0deg); /* Reset rotation for '-' */
  color: #FFFF00;
}

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

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

.page-resources-responsible-gaming__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

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

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