/* style/responsible-gaming.css */

/* Custom Color Variables */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-dark: #08160F; /* Background */
  --card-bg: #11271B; /* Card BG */
  --text-main: #F2FFF6; /* Text Main */
  --text-secondary: #A7D9B8; /* Text Secondary */
  --border-color: #2E7A4E; /* Border */
  --glow-color: #57E38D; /* Glow */
  --gold-color: #F2C14E; /* Gold */
  --divider-color: #1E3A2A; /* Divider */
  --deep-green: #0A4B2C; /* Deep Green */
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Page content base styles - assuming dark body background from shared.css */
.page-responsible-gaming {
  background-color: var(--bg-dark);
  color: var(--text-main); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

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

/* Hero Section */
.page-responsible-gaming__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--card-bg); /* Slightly lighter dark background for hero */
}

.page-responsible-gaming__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

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

.page-responsible-gaming__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-responsible-gaming__description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-responsible-gaming__btn-primary,
.page-responsible-gaming__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for button responsiveness */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-responsible-gaming__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* White text on green gradient */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-responsible-gaming__btn-secondary {
  background: var(--card-bg); /* Darker background for secondary */
  color: var(--glow-color); /* Greenish text for secondary */
  border: 2px solid var(--glow-color);
}

.page-responsible-gaming__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--bg-dark); /* Dark text on green background */
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-responsible-gaming__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-responsible-gaming__section:last-of-type {
  border-bottom: none;
}

.page-responsible-gaming__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--glow-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

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

.page-responsible-gaming__text-block {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-responsible-gaming__text-block strong {
  color: var(--text-main);
}

.page-responsible-gaming__image-content {
  width: 100%;
  max-width: 800px; /* Example max-width for content images */
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px; /* Enforce minimum size for content images */
}

/* List Styles */
.page-responsible-gaming__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-responsible-gaming__list-item {
  position: relative;
  font-size: 1.1rem;
  color: var(--text-main);
  padding-left: 30px;
  margin-bottom: 15px;
  text-align: justify;
}

.page-responsible-gaming__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--glow-color);
  font-weight: bold;
  font-size: 1.2rem;
}

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

.page-responsible-gaming__tool-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-responsible-gaming__tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-responsible-gaming__card-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-responsible-gaming__card-text {
  font-size: 1rem;
  color: var(--text-secondary);
}

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

.page-responsible-gaming__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden; /* For details tag */
}

.page-responsible-gaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  background-color: var(--deep-green); /* Darker green for question background */
  transition: background-color 0.3s ease;
}

.page-responsible-gaming__faq-question:hover {
  background-color: var(--primary-color);
}

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

.page-responsible-gaming__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: var(--gold-color);
}

/* Styling for details tag */
.page-responsible-gaming__faq-item[open] .page-responsible-gaming__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-responsible-gaming__faq-item details > summary {
  list-style: none; /* Remove default marker */
}
.page-responsible-gaming__faq-item details > summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-responsible-gaming__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider-color);
  background-color: var(--card-bg);
}

/* Final CTA Section */
.page-responsible-gaming__cta-final {
  text-align: center;
  padding-top: 0; /* No extra top padding, hero has it */
}

.page-responsible-gaming__cta-final .page-responsible-gaming__section-title {
  margin-bottom: 20px;
}

.page-responsible-gaming__cta-final .page-responsible-gaming__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-responsible-gaming__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-responsible-gaming__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

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

  /* Hero Section */
  .page-responsible-gaming__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, small top padding for section */
  }

  .page-responsible-gaming__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .page-responsible-gaming__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-responsible-gaming__btn-primary,
  .page-responsible-gaming__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Section Styles */
  .page-responsible-gaming__section {
    padding: 40px 0;
  }

  .page-responsible-gaming__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-responsible-gaming__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-responsible-gaming__text-block,
  .page-responsible-gaming__list-item,
  .page-responsible-gaming__card-text,
  .page-responsible-gaming__faq-answer p {
    font-size: 0.95rem;
  }

  /* Image Responsiveness */
  .page-responsible-gaming img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-responsible-gaming__image-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0;
    margin-right: 0;
  }

  /* Card Responsiveness */
  .page-responsible-gaming__grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 20px;
  }

  .page-responsible-gaming__tool-card {
    padding: 20px;
  }

  /* FAQ Responsiveness */
  .page-responsible-gaming__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-responsible-gaming__faq-toggle {
    font-size: 1.5rem;
  }

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

/* Ensure content area images are never too small */
.page-responsible-gaming__content-area img,
.page-responsible-gaming__section img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific styling for the hero image to ensure it's not covered by text */
.page-responsible-gaming__hero-section {
  flex-direction: column; /* Image on top, text below */
}

/* Text color contrast for specific elements */
.page-responsible-gaming__text-block,
.page-responsible-gaming__list-item,
.page-responsible-gaming__card-text,
.page-responsible-gaming__faq-answer p {
  color: var(--text-secondary); /* Use secondary text color for main readability */
}

.page-responsible-gaming__main-title,
.page-responsible-gaming__section-title,
.page-responsible-gaming__card-title,
.page-responsible-gaming__faq-qtext {
  color: var(--text-main); /* Use main text color for headings */
}

/* Overriding default for specific cases to ensure contrast */
.page-responsible-gaming__btn-primary {
  color: var(--text-main); /* White text on green gradient */
}
.page-responsible-gaming__btn-secondary {
  color: var(--glow-color); /* Greenish text for secondary */
}
.page-responsible-gaming__btn-secondary:hover {
  color: var(--bg-dark); /* Dark text on green background */
}