/* style/responsible-gambling.css */
.page-responsible-gambling {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-responsible-gambling__dark-bg {
  background-color: #000080; /* Auxiliary color for dark sections */
  color: #ffffff;
}

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

/* Hero Section */
.page-responsible-gambling__hero-section {
  padding: 120px 0 80px; /* Adjusted padding-top for header offset */
  text-align: center;
  background-image: url('[GALLERY:hero:1920x1080:responsible gambling,8sbet,safety,player protection]');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
}

.page-responsible-gambling__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 128, 0.7); /* Dark blue overlay */
  z-index: 1;
}

.page-responsible-gambling__hero-section .page-responsible-gambling__container {
  position: relative;
  z-index: 2;
}

.page-responsible-gambling__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Primary color for titles */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-responsible-gambling__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gambling__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General Section Styling */
.page-responsible-gambling__content-section,
.page-responsible-gambling__features-section,
.page-responsible-gambling__support-section,
.page-responsible-gambling__problem-gambling-section,
.page-responsible-gambling__faq-section,
.page-responsible-gambling__cta-section {
  padding: 80px 0;
}

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Primary color for titles */
}

.page-responsible-gambling__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-responsible-gambling__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gambling__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light text for dark backgrounds */
}

/* Images */
.page-responsible-gambling__image-wrapper {
  margin: 40px auto;
  text-align: center;
}

.page-responsible-gambling__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element for max-width/height auto */
  margin: 0 auto;
}

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

.page-responsible-gambling__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%; /* Ensure cards in a row have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-responsible-gambling__card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-responsible-gambling__card-text {
  color: #f0f0f0;
  font-size: 1em;
}

/* Checklist */
.page-responsible-gambling__checklist {
  list-style-type: none;
  padding: 0;
  margin-left: 20px;
  margin-top: 20px;
}

.page-responsible-gambling__checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-responsible-gambling__checklist li::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Organization List */
.page-responsible-gambling__organization-list ul {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
}

.page-responsible-gambling__organization-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-responsible-gambling__organization-list li a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-responsible-gambling__organization-list li a:hover {
  color: #ffd200;
  text-decoration: underline;
}

/* Buttons */
.page-responsible-gambling__btn-primary,
.page-responsible-gambling__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  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;
  white-space: normal;
  word-wrap: break-word;
}

.page-responsible-gambling__btn-primary {
  background-color: #FFD700;
  color: #000080;
  border: 2px solid #FFD700;
}

.page-responsible-gambling__btn-primary:hover {
  background-color: #ffd200;
  color: #000050;
  border-color: #ffd200;
}

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

.page-responsible-gambling__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

/* FAQ Section */
.page-responsible-gambling__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gambling__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible background for items */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #FFD700;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-responsible-gambling__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-responsible-gambling__faq-title {
  margin: 0;
  color: #FFD700;
}

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

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

.page-responsible-gambling__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px;
}

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

/* Links */
.page-responsible-gambling__link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-responsible-gambling__link:hover {
  color: #ffd200;
  text-decoration: underline;
}

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

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

@media (max-width: 768px) {
  .page-responsible-gambling__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    min-height: 450px;
  }

  .page-responsible-gambling__hero-title {
    font-size: 2.5em;
  }

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

  .page-responsible-gambling__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-responsible-gambling__btn-primary,
  .page-responsible-gambling__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-responsible-gambling__container {
    padding: 0 15px;
  }

  .page-responsible-gambling__content-section,
  .page-responsible-gambling__features-section,
  .page-responsible-gambling__support-section,
  .page-responsible-gambling__problem-gambling-section,
  .page-responsible-gambling__faq-section,
  .page-responsible-gambling__cta-section {
    padding: 60px 0;
  }

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

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

  .page-responsible-gambling__text-block,
  .page-responsible-gambling__checklist li,
  .page-responsible-gambling__organization-list li,
  .page-responsible-gambling__faq-text {
    font-size: 0.95em;
  }

  .page-responsible-gambling__card {
    padding: 25px;
  }

  /* Mobile image responsiveness */
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-responsible-gambling__image-wrapper,
  .page-responsible-gambling__hero-cta-buttons,
  .page-responsible-gambling__feature-grid,
  .page-responsible-gambling__faq-list,
  .page-responsible-gambling__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  .page-responsible-gambling__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
}

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

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

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