.page-responsible-gambling {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: #0a0a0a; /* Body background from shared.css */
}

.page-responsible-gambling__hero-banner {
  padding-top: 120px; /* For fixed header */
  padding-bottom: 80px;
  background: linear-gradient(135deg, #0A192F, #000000);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-responsible-gambling__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-responsible-gambling__main-heading {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-responsible-gambling__sub-heading {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-responsible-gambling__btn-primary {
  display: inline-block;
  background: #FFD700;
  color: #000000; /* Ensure high contrast with gold */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-responsible-gambling__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-responsible-gambling__btn-secondary {
  display: inline-block;
  background: #0A192F;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  border: 2px solid #FFD700;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

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

.page-responsible-gambling__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
  line-height: 1.2;
}

.page-responsible-gambling__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #cccccc;
}

.page-responsible-gambling__introduction-section,
.page-responsible-gambling__tools-section,
.page-responsible-gambling__help-section,
.page-responsible-gambling__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-responsible-gambling__risks-section,
.page-responsible-gambling__self-assessment-section,
.page-responsible-gambling__protect-minors-section,
.page-responsible-gambling__latest-blog-section {
  padding: 80px 0;
  background-color: #0A192F;
  color: #ffffff;
}

.page-responsible-gambling__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-responsible-gambling__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-responsible-gambling__text-block {
  flex: 1;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-responsible-gambling__text-block p {
  margin-bottom: 15px;
}

.page-responsible-gambling__text-block strong {
  color: #FFD700;
}

.page-responsible-gambling__image-block {
  flex: 1;
  min-width: 300px;
}

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

.page-responsible-gambling__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.page-responsible-gambling__grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.page-responsible-gambling__card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-responsible-gambling__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-responsible-gambling__card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-responsible-gambling__list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  color: #f0f0f0;
}

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

.page-responsible-gambling__call-to-action {
  text-align: center;
  font-size: 1.2em;
  margin-top: 50px;
  color: #FFD700;
  font-weight: bold;
}

.page-responsible-gambling__tool-card {
  background: #ffffff; /* Light background for tools */
  color: #333333; /* Dark text for light background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-responsible-gambling__tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling__tool-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gambling__assessment-questions {
  background: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-responsible-gambling__question-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.page-responsible-gambling__question-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-responsible-gambling__question-item p {
  font-size: 1.1em;
  color: #f0f0f0;
  margin: 0;
}

.page-responsible-gambling__advice-text {
  text-align: center;
  font-size: 1.2em;
  margin-top: 50px;
  color: #FFD700;
  font-weight: bold;
}

.page-responsible-gambling__help-card {
  background: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-responsible-gambling__help-card .page-responsible-gambling__list li {
  color: #333333;
}

.page-responsible-gambling__help-card .page-responsible-gambling__btn-secondary {
  margin-top: 20px;
  display: inline-block;
}

/* FAQ Section */
.page-responsible-gambling__faq-section .page-responsible-gambling__section-title {
  color: #FFD700;
}

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

.page-responsible-gambling__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-responsible-gambling__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #333333; /* Dark text for light background */
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-responsible-gambling__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-responsible-gambling__faq-question:active {
  background: #eeeeee;
}

.page-responsible-gambling__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333; /* Dark text for light background */
}

.page-responsible-gambling__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

/* Latest Blog Section */
.page-responsible-gambling__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.page-responsible-gambling__blog-card {
  background: #0A192F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-responsible-gambling__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-responsible-gambling__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-responsible-gambling__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-responsible-gambling__blog-content {
  padding: 20px;
}

.page-responsible-gambling__blog-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-responsible-gambling__blog-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-responsible-gambling__blog-date {
  font-size: 0.85em;
  color: #999999;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gambling__main-heading {
    font-size: 2.8em;
  }

  .page-responsible-gambling__sub-heading {
    font-size: 1.1em;
  }

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

  .page-responsible-gambling__content-wrapper {
    flex-direction: column;
  }

  .page-responsible-gambling__grid,
  .page-responsible-gambling__grid--3-cols,
  .page-responsible-gambling__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling__hero-banner {
    padding-top: 100px !important;
    padding-bottom: 60px;
  }

  .page-responsible-gambling__main-heading {
    font-size: 2em;
  }

  .page-responsible-gambling__sub-heading {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-responsible-gambling__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-responsible-gambling__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-responsible-gambling__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-responsible-gambling__introduction-section,
  .page-responsible-gambling__risks-section,
  .page-responsible-gambling__tools-section,
  .page-responsible-gambling__self-assessment-section,
  .page-responsible-gambling__help-section,
  .page-responsible-gambling__protect-minors-section,
  .page-responsible-gambling__faq-section,
  .page-responsible-gambling__latest-blog-section {
    padding: 60px 0;
  }

  .page-responsible-gambling__text-block,
  .page-responsible-gambling__text-block p,
  .page-responsible-gambling__list li,
  .page-responsible-gambling__question-item p,
  .page-responsible-gambling__blog-excerpt {
    font-size: 0.9em;
  }

  .page-responsible-gambling__grid,
  .page-responsible-gambling__grid--3-cols,
  .page-responsible-gambling__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-responsible-gambling__card,
  .page-responsible-gambling__tool-card,
  .page-responsible-gambling__help-card,
  .page-responsible-gambling__assessment-questions {
    padding: 25px;
  }

  .page-responsible-gambling__card-title {
    font-size: 1.4em;
  }

  .page-responsible-gambling__tool-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .page-responsible-gambling__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-responsible-gambling__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-responsible-gambling__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-responsible-gambling__faq-answer {
    padding: 0 15px;
  }
  
  .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    padding: 15px !important;
  }

  .page-responsible-gambling__blog-image {
    height: 180px;
  }

  .page-responsible-gambling__blog-title {
    font-size: 1.2em;
  }
  
  /* Mobile image adaptation */
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-responsible-gambling__hero-banner,
  .page-responsible-gambling__introduction-section .page-responsible-gambling__container,
  .page-responsible-gambling__risks-section .page-responsible-gambling__container,
  .page-responsible-gambling__tools-section .page-responsible-gambling__container,
  .page-responsible-gambling__self-assessment-section .page-responsible-gambling__container,
  .page-responsible-gambling__help-section .page-responsible-gambling__container,
  .page-responsible-gambling__protect-minors-section .page-responsible-gambling__container,
  .page-responsible-gambling__faq-section .page-responsible-gambling__container,
  .page-responsible-gambling__latest-blog-section .page-responsible-gambling__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}