/* style/responsible-gambling.css */

/* Base styles for the page, adapting to dark body background */
.page-responsible-gambling {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

/* Section styling */
.page-responsible-gambling__hero-section,
.page-responsible-gambling__content-area,
.page-responsible-gambling__control-tools,
.page-responsible-gambling__support-section,
.page-responsible-gambling__underage-protection,
.page-responsible-gambling__faq-section,
.page-responsible-gambling__cta-section {
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-responsible-gambling__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(135deg, rgba(38, 169, 224, 0.8), rgba(0, 0, 0, 0.8));
  position: relative;
  overflow: hidden;
}

.page-responsible-gambling__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

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

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-responsible-gambling__main-title {
  font-size: clamp(2em, 3.5vw, 3em);
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-responsible-gambling__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gambling__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #26A9E0;
  margin-bottom: 30px;
  font-weight: 600;
  text-align: center;
}

.page-responsible-gambling__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: #FFFFFF;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 500;
  text-align: center;
}

.page-responsible-gambling__light-bg {
  background-color: #0d0d0d; /* Slightly lighter dark for contrast */
  color: #f0f0f0;
}

.page-responsible-gambling__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

.page-responsible-gambling__content-area,
.page-responsible-gambling__control-tools,
.page-responsible-gambling__support-section,
.page-responsible-gambling__underage-protection,
.page-responsible-gambling__faq-section,
.page-responsible-gambling__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-responsible-gambling__text-block {
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: left;
  padding: 0 15px;
}

.page-responsible-gambling__text-block p {
  margin-bottom: 1em;
  font-size: 1em;
  color: #f0f0f0;
}

.page-responsible-gambling__text-block ul {
  list-style: disc inside;
  margin-bottom: 1em;
  padding-left: 20px;
  text-align: left;
  color: #f0f0f0;
}

.page-responsible-gambling__text-block ul li {
  margin-bottom: 0.5em;
}

.page-responsible-gambling__image-block {
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* Buttons */
.page-responsible-gambling__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  padding: 0 15px;
}

.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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

.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-list {
  width: 100%;
  max-width: 900px;
  margin-top: 30px;
  text-align: left;
}

.page-responsible-gambling__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #FFFFFF;
  background-color: rgba(38, 169, 224, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-responsible-gambling__faq-item summary::marker {
  display: none;
}

.page-responsible-gambling__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-responsible-gambling__faq-item[open] .page-responsible-gambling__faq-toggle {
  transform: rotate(45deg);
}

.page-responsible-gambling__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.02);
}

.page-responsible-gambling__faq-answer p {
  margin-bottom: 0;
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-responsible-gambling__hero-section,
  .page-responsible-gambling__content-area,
  .page-responsible-gambling__control-tools,
  .page-responsible-gambling__support-section,
  .page-responsible-gambling__underage-protection,
  .page-responsible-gambling__faq-section,
  .page-responsible-gambling__cta-section {
    padding: 30px 15px; /* Adjust padding for mobile */
  }

  .page-responsible-gambling__main-title {
    font-size: 2em; /* Smaller H1 on mobile */
  }

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

  .page-responsible-gambling__sub-title {
    font-size: 1.3em;
  }

  .page-responsible-gambling__description,
  .page-responsible-gambling__text-block p,
  .page-responsible-gambling__text-block ul li,
  .page-responsible-gambling__faq-answer p {
    font-size: 0.95em;
  }

  /* Image responsiveness */
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-responsible-gambling__hero-image-wrapper,
  .page-responsible-gambling__image-block,
  .page-responsible-gambling__content-area,
  .page-responsible-gambling__control-tools,
  .page-responsible-gambling__support-section,
  .page-responsible-gambling__underage-protection,
  .page-responsible-gambling__faq-section,
  .page-responsible-gambling__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Button responsiveness */
  .page-responsible-gambling__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    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;
  }

  .page-responsible-gambling__hero-content {
    padding: 15px;
  }
  
  .page-responsible-gambling__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
  }
}