/* style/responsible-gaming.css */

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

.page-responsible-gaming {
  background-color: var(--op88-bg); /* Body background is dark, so page content will have light text */
  color: var(--op88-text-main); /* Default text color for the page */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-responsible-gaming__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-responsible-gaming__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and text */
}

.page-responsible-gaming__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-responsible-gaming__hero-content {
  max-width: 900px;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
  position: relative; /* Ensure content is in normal flow */
  z-index: 1; /* Ensure text is above any potential background elements, but not image */
}

.page-responsible-gaming__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Use clamp for H1 font-size */
  color: var(--op88-text-main);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-responsible-gaming__hero-description {
  font-size: 1.25rem;
  color: var(--op88-text-secondary);
  margin-bottom: 30px;
}

.page-responsible-gaming__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 500px; /* Limit max width for button group */
  margin: 0 auto;
}

.page-responsible-gaming__btn-primary,
.page-responsible-gaming__btn-secondary,
.page-responsible-gaming__btn-tertiary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-responsible-gaming__btn-primary {
  background: var(--op88-btn-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-responsible-gaming__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.page-responsible-gaming__btn-secondary {
  background: none;
  color: var(--op88-text-main);
  border: 2px solid var(--op88-border);
}

.page-responsible-gaming__btn-secondary:hover {
  background: rgba(var(--op88-primary), 0.1);
  border-color: var(--op88-primary);
  transform: translateY(-2px);
}

.page-responsible-gaming__btn-tertiary {
  background: var(--op88-deep-green);
  color: var(--op88-text-main);
  border: 1px solid var(--op88-border);
  font-size: 0.95rem;
  padding: 10px 20px;
}

.page-responsible-gaming__btn-tertiary:hover {
  background: var(--op88-primary);
  border-color: var(--op88-primary);
}


/* General Section Styles */
.page-responsible-gaming__section {
  padding: 60px 20px;
  background-color: var(--op88-bg); /* Default background */
  color: var(--op88-text-main); /* Default text color */
}

.page-responsible-gaming__dark-section {
  background-color: var(--op88-card-bg); /* Use a slightly different dark background for contrast */
  color: var(--op88-text-main);
}

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

.page-responsible-gaming__section-title {
  font-size: 2.5rem;
  color: var(--op88-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-responsible-gaming__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--op88-text-secondary); /* Secondary text color for paragraphs */
}

.page-responsible-gaming__highlight {
  color: var(--op88-gold); /* Use gold for highlights */
  font-weight: bold;
}

.page-responsible-gaming__content-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Tool Cards Section */
.page-responsible-gaming__tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-responsible-gaming__card {
  background-color: var(--op88-deep-green); /* Card background color */
  border: 1px solid var(--op88-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push button to bottom */
  color: var(--op88-text-main);
}

.page-responsible-gaming__card-title {
  font-size: 1.6rem;
  color: var(--op88-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gaming__card-text {
  font-size: 1rem;
  color: var(--op88-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow and push button down */
}

/* Sign List & Resource List */
.page-responsible-gaming__sign-list,
.page-responsible-gaming__resource-list,
.page-responsible-gaming__advice-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-responsible-gaming__list-item {
  background-color: var(--op88-deep-green);
  border: 1px solid var(--op88-border);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--op88-text-main);
  display: flex;
  align-items: flex-start;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-responsible-gaming__list-item::before {
  content: "✅"; /* Use an emoji for list item bullet */
  margin-right: 10px;
  font-size: 1.2em;
  line-height: 1;
  color: var(--op88-primary);
}

.page-responsible-gaming__resource-list a {
  color: var(--op88-gold);
  text-decoration: underline;
}

.page-responsible-gaming__resource-list a:hover {
  color: var(--op88-glow);
}

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

.page-responsible-gaming__faq-item {
  background-color: var(--op88-deep-green);
  border: 1px solid var(--op88-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden; /* For smooth transition of details */
  color: var(--op88-text-main);
}

.page-responsible-gaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--op88-text-main);
  list-style: none; /* Hide default marker for summary */
}

.page-responsible-gaming__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-responsible-gaming__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--op88-gold);
  transition: transform 0.3s ease;
}

.page-responsible-gaming__faq-item[open] .page-responsible-gaming__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or 'minus' effect */
}

.page-responsible-gaming__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--op88-text-secondary);
}

.page-responsible-gaming__faq-answer p {
  margin: 0;
  color: var(--op88-text-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-responsible-gaming {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-responsible-gaming__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

  .page-responsible-gaming__hero-title {
    font-size: 2rem; /* Adjust H1 for mobile */
  }

  .page-responsible-gaming__hero-description {
    font-size: 1rem;
  }

  .page-responsible-gaming__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-responsible-gaming__btn-primary,
  .page-responsible-gaming__btn-secondary,
  .page-responsible-gaming__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-responsible-gaming__section {
    padding: 40px 15px;
  }

  .page-responsible-gaming__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-responsible-gaming__text-block {
    font-size: 1rem;
  }

  .page-responsible-gaming__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-responsible-gaming__card {
    padding: 20px;
  }

  .page-responsible-gaming__card-title {
    font-size: 1.4rem;
  }

  .page-responsible-gaming__card-text {
    font-size: 0.95rem;
  }

  .page-responsible-gaming__list-item {
    font-size: 0.95rem;
    padding: 10px 15px;
  }

  .page-responsible-gaming__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-responsible-gaming__faq-answer {
    padding: 0 15px 15px;
  }

  /* Ensure all images are responsive */
  .page-responsible-gaming img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}