/* style/responsible-gambling.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-responsible-gambling {
  color: #F2FFF6; /* Main text color for dark background */
  background-color: #08160F; /* Ensure consistency with body background or provide a fallback */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section styling */
.page-responsible-gambling__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-responsible-gambling__section:nth-of-type(even) {
  background-color: #0A4B2C; /* Deep Green for alternating sections */
}

/* Hero Section */
.page-responsible-gambling__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding as per instruction */
  padding-bottom: 60px;
  text-align: center;
  background-color: #08160F; /* Ensure hero background matches body or main section */
  overflow: hidden; /* Prevent content overflow */
}

.page-responsible-gambling__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to maintain aspect ratio and prevent excessive height */
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image to ensure text contrast */
}

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #F2FFF6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Enhance text readability on image */
}

.page-responsible-gambling__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2FFF6;
  line-height: 1.2;
}

.page-responsible-gambling__description {
  font-size: clamp(1em, 2vw, 1.2em);
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color */
}

.page-responsible-gambling__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* General Titles */
.page-responsible-gambling__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  color: #F2FFF6; /* Main text color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-responsible-gambling__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-responsible-gambling__content-wrapper p {
  margin-bottom: 20px;
  color: #A7D9B8; /* Secondary text color for paragraphs */
}

.page-responsible-gambling__content-wrapper p strong {
  color: #F2FFF6; /* Highlight strong text */
}

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

.page-responsible-gambling__card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
  color: #F2FFF6; /* Main text color for card */
}

.page-responsible-gambling__card-title {
  font-size: 1.5em;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling__card p {
  color: #A7D9B8; /* Secondary text color for card content */
}

/* Feature Grid for Tools */
.page-responsible-gambling__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-responsible-gambling__feature-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
  text-align: center;
  color: #F2FFF6;
}

.page-responsible-gambling__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image behaves as a block */
}

.page-responsible-gambling__feature-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-responsible-gambling__feature-card p {
  color: #A7D9B8;
}

/* List for Signs */
.page-responsible-gambling__list {
  list-style: none; /* Remove default list style */
  padding: 0;
  margin-top: 30px;
}

.page-responsible-gambling__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: #A7D9B8;
  font-size: 1.1em;
}

.page-responsible-gambling__list-item::before {
  content: '•'; /* Custom bullet point */
  color: #2AD16F; /* Highlight color */
  position: absolute;
  left: 0;
  font-size: 1.5em;
  line-height: 1;
  top: -2px;
}

/* Support Resources Grid */
.page-responsible-gambling__support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-responsible-gambling__support-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
  color: #F2FFF6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-responsible-gambling__support-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling__support-card p {
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-responsible-gambling__support-link {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* FAQ Section */
.page-responsible-gambling__faq {
  background-color: #0A4B2C; /* Deep Green for FAQ section */
}

.page-responsible-gambling__faq-list {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
}

.page-responsible-gambling__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #11271B;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-responsible-gambling__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

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

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

.page-responsible-gambling__faq-item[open] .page-responsible-gambling__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' */
}

.page-responsible-gambling__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #A7D9B8;
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-responsible-gambling__faq-answer p {
  margin-top: 15px;
  margin-bottom: 0;
}

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

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

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

  .page-responsible-gambling__hero-section {
    padding-bottom: 40px;
  }

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

  .page-responsible-gambling__description {
    font-size: 1em;
  }

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

  .page-responsible-gambling__card-grid,
  .page-responsible-gambling__feature-grid,
  .page-responsible-gambling__support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Force responsive images */
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Force responsive containers for images/videos */
  .page-responsible-gambling__section,
  .page-responsible-gambling__card,
  .page-responsible-gambling__container,
  .page-responsible-gambling__hero-image-wrapper,
  .page-responsible-gambling__feature-card,
  .page-responsible-gambling__support-card,
  .page-responsible-gambling__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Buttons responsive */
  .page-responsible-gambling__cta-button,
  .page-responsible-gambling__support-link {
    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;
  }

  /* For button groups, if any */
  .page-responsible-gambling__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

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

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

  .page-responsible-gambling__faq-question {
    font-size: 1.1em;
  }

  .page-responsible-gambling__faq-answer {
    font-size: 1em;
  }
}