/* style/responsible-gambling.css */

/* Base styles for the page content, inheriting from body's dark background */
.page-responsible-gambling {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-responsible-gambling__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-responsible-gambling__dark-bg {
  background-color: #0a0a0a; /* Dark background for sections */
  color: #ffffff;
}

.page-responsible-gambling__light-bg {
  background-color: #f5f5f5; /* Light background for sections */
  color: #333333;
}

.page-responsible-gambling__text-center {
  text-align: center;
}

.page-responsible-gambling__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-align: center;
}

.page-responsible-gambling__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
}

.page-responsible-gambling__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  position: relative;
}

.page-responsible-gambling__hero-content {
  z-index: 2;
  max-width: 800px;
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.page-responsible-gambling__subtitle {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-responsible-gambling__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-responsible-gambling__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

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

.page-responsible-gambling__btn-primary:hover {
  background-color: #1a8ccb;
  border-color: #1a8ccb;
  transform: translateY(-2px);
}

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

.page-responsible-gambling__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-responsible-gambling__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-responsible-gambling__list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-top: 20px;
  margin-bottom: 20px;
}

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

/* Video Section */
.page-responsible-gambling__video-section {
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #0a0a0a; /* Dark background for video section */
}

.page-responsible-gambling__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 30px auto;
  border-radius: 8px;
}

.page-responsible-gambling__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-responsible-gambling__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.page-responsible-gambling__video-caption {
  font-style: italic;
  color: #cccccc;
  margin-top: 10px;
}

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

.page-responsible-gambling__card {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for cards */
  color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-responsible-gambling__card-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Max width for card images */
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-responsible-gambling__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-responsible-gambling__card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #e0e0e0;
}

.page-responsible-gambling__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-responsible-gambling__faq-item {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

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

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

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

.page-responsible-gambling__faq-item[open] .page-responsible-gambling__faq-question {
  border-bottom: 1px solid #d0d0d0;
}

.page-responsible-gambling__faq-item[open] .page-responsible-gambling__faq-toggle {
  content: '−';
}

.page-responsible-gambling__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-responsible-gambling__faq-answer p {
  margin-bottom: 10px;
}

/* Conclusion Section */
.page-responsible-gambling__conclusion .page-responsible-gambling__section-title {
  color: #ffffff;
}

.page-responsible-gambling__conclusion p {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-responsible-gambling__hero-content {
    margin-bottom: 30px;
  }
  .page-responsible-gambling__section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-responsible-gambling__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .page-responsible-gambling__subtitle {
    font-size: 1rem;
  }
  .page-responsible-gambling__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-responsible-gambling__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-responsible-gambling__btn-secondary {
    margin-left: 0;
    margin-top: 15px; /* Add space between buttons if stacked */
  }
  .page-responsible-gambling__button-group {
    flex-direction: column !important;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-responsible-gambling__container,
  .page-responsible-gambling__hero-image-wrapper,
  .page-responsible-gambling__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-responsible-gambling video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-responsible-gambling__video-section {
    padding-top: 10px !important;
  }
  .page-responsible-gambling__card-image {
    max-width: 100% !important;
  }
  .page-responsible-gambling__tool-cards {
    grid-template-columns: 1fr;
  }
  .page-responsible-gambling__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-responsible-gambling__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling__hero-content {
    padding: 0 10px;
  }
  .page-responsible-gambling__section-title {
    font-size: 1.5rem;
  }
  .page-responsible-gambling__cta-button {
    font-size: 0.95rem;
  }
  .page-responsible-gambling__faq-question {
    padding: 12px 15px;
  }
  .page-responsible-gambling__faq-answer {
    padding: 12px 15px;
  }
}