/* style/responsible-gambling.css */

/* Base styles for the page responsible-gambling */
.page-responsible-gambling {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Assuming body background is black from shared.css */
  padding-bottom: 60px; /* Space above footer */
}

/* Hero Section */
.page-responsible-gambling__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000; /* Dark background for the hero section */
  min-height: 500px;
  overflow: hidden; /* Prevent image overflow */
}

.page-responsible-gambling__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
  overflow: hidden;
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the entire area */
  filter: brightness(0.6); /* Darken image to ensure text contrast */
}

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

.page-responsible-gambling__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for title */
  font-weight: bold;
}

.page-responsible-gambling__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* General Section Styles */
.page-responsible-gambling__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for content */
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: -80px; /* Overlap with hero section for visual flow */
  position: relative;
  z-index: 2;
}

.page-responsible-gambling__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(38, 169, 224, 0.3);
}

.page-responsible-gambling p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #e0e0e0;
}

.page-responsible-gambling__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-responsible-gambling__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

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

.page-responsible-gambling__card {
  background-color: #2a2a2a; /* Darker card background */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px; /* Ensure consistent card height */
}

.page-responsible-gambling__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.4);
}

.page-responsible-gambling__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Ensure image fits without cropping */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Ensure no extra space below image */
  margin-left: auto;
  margin-right: auto;
}

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

/* Full width image */
.page-responsible-gambling__image-full-width {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Call to Action Section */
.page-responsible-gambling__cta-section {
  background-color: #000000; /* Dark background for CTA */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  margin-top: 60px;
}

.page-responsible-gambling__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

/* Buttons */
.page-responsible-gambling__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-responsible-gambling__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-responsible-gambling__btn-primary:hover {
  background-color: #1e87b5;
  border-color: #1e87b5;
}

.page-responsible-gambling__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-responsible-gambling__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* FAQ Section */
.page-responsible-gambling__faq-container {
  max-width: 900px;
  margin: 50px auto;
}

.page-responsible-gambling__faq-item {
  background-color: #2a2a2a; /* Darker background for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #e0e0e0;
}

.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: #26A9E0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
  background-color: #3a3a3a;
}

.page-responsible-gambling__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-responsible-gambling__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  line-height: 1.8;
  color: #cccccc;
}

/* Ensure details summary styling for native expand/collapse */
.page-responsible-gambling__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-responsible-gambling__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gambling__hero-title {
    font-size: 2.8em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 1.1em;
  }
  .page-responsible-gambling__section-title {
    font-size: 2em;
  }
}

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

  .page-responsible-gambling__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-responsible-gambling__hero-title {
    font-size: 2.2em;
  }
  .page-responsible-gambling__hero-description {
    font-size: 1em;
  }

  .page-responsible-gambling__content-area {
    padding: 40px 15px;
    margin-top: -60px; /* Adjust overlap for mobile */
  }

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

  /* Images responsive */
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Image containers responsive */
  .page-responsible-gambling__hero-image-wrapper,
  .page-responsible-gambling__card,
  .page-responsible-gambling__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons responsive */
  .page-responsible-gambling__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-responsible-gambling__btn-primary,
  .page-responsible-gambling__btn-secondary {
    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;
  }

  .page-responsible-gambling__cta-section {
    padding: 60px 15px;
  }

  .page-responsible-gambling__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-responsible-gambling__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling__hero-title {
    font-size: 1.8em;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.6em;
  }
  .page-responsible-gambling p,
  .page-responsible-gambling__list li {
    font-size: 1em;
  }
  .page-responsible-gambling__card-title {
    font-size: 1.3em;
  }
  .page-responsible-gambling__btn-primary,
  .page-responsible-gambling__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}