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

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --dark-bg-color: #1a1a2e;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-register-login-text: #000000; /* Adjusted for WCAG AA contrast on #C30808 background */
}

.page-resources-responsible-gaming {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default text color for dark body background */
  background-color: var(--dark-bg-color); /* From shared.css */
}

/* Sections */
.page-resources-responsible-gaming__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  overflow: hidden;
}

.page-resources-responsible-gaming__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-resources-responsible-gaming__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-resources-responsible-gaming__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-resources-responsible-gaming__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-resources-responsible-gaming__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  /* filter: grayscale(100%);  Example to blend image with background, not changing color */
}

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

.page-resources-responsible-gaming__section {
  padding: 60px 20px;
}

.page-resources-responsible-gaming__dark-bg {
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

.page-resources-responsible-gaming__light-bg {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-resources-responsible-gaming__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section for contrast */
}

.page-resources-responsible-gaming__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section for contrast */
}

.page-resources-responsible-gaming__text-block {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-resources-responsible-gaming__text-block p {
  margin-bottom: 15px;
}

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

.page-resources-responsible-gaming__list li {
  margin-bottom: 10px;
}

.page-resources-responsible-gaming__inline-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-resources-responsible-gaming__inline-link:hover {
  color: darken(var(--primary-color), 10%);
}

/* Buttons */
.page-resources-responsible-gaming__btn-primary,
.page-resources-responsible-gaming__btn-secondary,
.page-resources-responsible-gaming__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-resources-responsible-gaming__btn-primary {
  background-color: var(--button-register-bg); /* #C30808 */
  color: var(--button-register-login-text); /* #000000 for contrast on #C30808 background */
  border-color: var(--button-register-bg);
}

.page-resources-responsible-gaming__btn-primary:hover {
  background-color: darken(var(--button-register-bg), 10%);
  border-color: darken(var(--button-register-bg), 10%);
}

.page-resources-responsible-gaming__btn-secondary {
  background-color: transparent;
  color: var(--button-register-login-text); /* #000000 for contrast on #C30808 background */
  border-color: var(--button-login-bg); /* #C30808 */
}

.page-resources-responsible-gaming__btn-secondary:hover {
  background-color: var(--button-login-bg);
  color: var(--light-text-color); /* White text on hover for better visibility when background becomes #C30808 */
}

.page-resources-responsible-gaming__btn-tertiary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
  margin-top: 20px;
}

.page-resources-responsible-gaming__btn-tertiary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-resources-responsible-gaming__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Cards */
.page-resources-responsible-gaming__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources-responsible-gaming__card {
  background-color: rgba(255, 255, 255, 0.08); /* Light background for dark section */
  color: var(--light-text-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-responsible-gaming__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

/* Image block */
.page-resources-responsible-gaming__image-block {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* FAQ Section */
.page-resources-responsible-gaming__faq-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

.page-resources-responsible-gaming__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-responsible-gaming__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

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

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