/* Base styles */
.page-responsible-gambling {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #FFF5E1); /* Default text color for the page */
  background: var(--background, #B71C1C); /* Page background */
  line-height: 1.6;
}

.page-responsible-gambling__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-responsible-gambling__section--light {
  background: #ffffff;
  color: #333333;
}

.page-responsible-gambling__section--dark {
  background: var(--background, #B71C1C);
  color: var(--text-main, #FFF5E1);
}

.page-responsible-gambling__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #FFF5E1); /* Main text color for titles */
}

.page-responsible-gambling__section--light .page-responsible-gambling__section-title {
  color: #C91F17; /* Brand color for titles on light background */
}

.page-responsible-gambling__main-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 title size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-responsible-gambling__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* As per fixed header rule */
  padding-bottom: 60px;
  min-height: 500px;
  color: #FFF5E1;
}

.page-responsible-gambling__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-responsible-gambling__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

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

.page-responsible-gambling__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 10px;
  max-width: 100%; /* Base responsive */
  box-sizing: border-box; /* Base responsive */
  white-space: normal; /* Base responsive */
  word-wrap: break-word; /* Base responsive */
}

.page-responsible-gambling__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: none;
}

.page-responsible-gambling__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-responsible-gambling__btn-secondary {
  background: transparent;
  color: #FFF5E1;
  border: 2px solid #F4D34D; /* Gold border */
}

.page-responsible-gambling__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-responsible-gambling__content-area {
  background: #ffffff;
  color: #333333;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.page-responsible-gambling__content-area h2 {
  color: #C91F17;
  font-size: 32px;
  margin-bottom: 25px;
  border-bottom: 2px solid #E53935;
  padding-bottom: 10px;
}

.page-responsible-gambling__content-area h3 {
  color: #E53935;
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-responsible-gambling__content-area p {
  margin-bottom: 15px;
  font-size: 17px;
}

.page-responsible-gambling__content-area ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-responsible-gambling__content-area li {
  margin-bottom: 8px;
  font-size: 17px;
}

.page-responsible-gambling__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-responsible-gambling__feature-card {
  background: var(--card-bg, #D32F2F); /* Card background */
  color: var(--text-main, #FFF5E1); /* Text on card */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gambling__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__feature-card img {
  width: 100%; /* Image in card */
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-responsible-gambling__feature-card h3 {
  color: #FFD86A; /* Gold for card titles */
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-responsible-gambling__feature-card p {
  font-size: 16px;
  line-height: 1.5;
  color: #FFF5E1;
}

.page-responsible-gambling__support-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-responsible-gambling__support-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 17px;
  color: #FFF5E1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-responsible-gambling__support-list li strong {
  color: #FFD86A;
}

.page-responsible-gambling__article-figure {
  text-align: center;
  margin: 30px 0;
}
.page-responsible-gambling__article-figure img {
  max-width: 1000px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.page-responsible-gambling__article-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.page-responsible-gambling__section--light .page-responsible-gambling__article-figure figcaption {
    color: #555555;
}

/* FAQ styles */
.page-responsible-gambling__faq-section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 40px;
  color: #333333;
}

.page-responsible-gambling__faq-section .page-responsible-gambling__section-title {
  color: #C91F17;
}

details.page-responsible-gambling__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-responsible-gambling__faq-item summary.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-responsible-gambling__faq-item summary.page-responsible-gambling__faq-question::-webkit-details-marker {
  display: none;
}
details.page-responsible-gambling__faq-item summary.page-responsible-gambling__faq-question:hover {
  background: #f5f5f5;
}
.page-responsible-gambling__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-responsible-gambling__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-responsible-gambling__faq-item .page-responsible-gambling__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-responsible-gambling__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Base responsive */
  max-width: 100%; /* Base responsive */
  box-sizing: border-box; /* Base responsive */
  overflow: hidden; /* Base responsive */
}

.page-responsible-gambling__final-cta {
  text-align: center;
  padding-bottom: 80px;
}

/* General images and content containers */
.page-responsible-gambling img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-responsible-gambling__content-area,
.page-responsible-gambling__section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  /* HERO Section */
  .page-responsible-gambling__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-responsible-gambling__hero-image img {
    object-fit: contain !important; /* Prevents cropping on mobile */
    aspect-ratio: unset !important; /* Resets aspect ratio for contain */
  }
  .page-responsible-gambling__main-title {
    font-size: clamp(24px, 8vw, 36px);
  }
  .page-responsible-gambling__hero-description {
    font-size: 16px;
  }
  .page-responsible-gambling__hero-content {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* General Sections and Content */
  .page-responsible-gambling__section {
    padding: 30px 15px;
  }
  .page-responsible-gambling__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-responsible-gambling__content-area {
    padding: 20px 15px;
    margin-bottom: 20px;
  }
  .page-responsible-gambling__content-area h2 {
    font-size: 26px;
  }
  .page-responsible-gambling__content-area h3 {
    font-size: 20px;
  }
  .page-responsible-gambling__content-area p,
  .page-responsible-gambling__content-area li {
    font-size: 15px;
  }

  /* Feature Cards Grid (general card layout) */
  .page-responsible-gambling__features-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-responsible-gambling__feature-card {
    padding: 20px;
  }
  .page-responsible-gambling__feature-card img {
    
  }
  .page-responsible-gambling__feature-card h3 {
    font-size: 20px;
  }
  .page-responsible-gambling__feature-card p {
    font-size: 14px;
  }

  /* Universal Image Adaptation (Applies to all images in the content area) */
  .page-responsible-gambling img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-responsible-gambling__section,
  .page-responsible-gambling__card,
  .page-responsible-gambling__container,
  .page-responsible-gambling__content-area,
  .page-responsible-gambling__faq-section,
  .page-responsible-gambling__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons and Button Containers */
  .page-responsible-gambling__cta-button,
  .page-responsible-gambling__btn-primary,
  .page-responsible-gambling__btn-secondary,
  .page-responsible-gambling a[class*="button"],
  .page-responsible-gambling a[class*="btn"] {
    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: 16px;
    margin: 5px 0;
  }
  .page-responsible-gambling__cta-buttons {
    flex-direction: column !important;
    align-items: center;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Styles */
  details.page-responsible-gambling__faq-item summary.page-responsible-gambling__faq-question {
    padding: 15px;
  }
  .page-responsible-gambling__faq-qtext {
    font-size: 15px;
  }
  .page-responsible-gambling__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-responsible-gambling__faq-item .page-responsible-gambling__faq-answer {
    padding: 0 15px 15px;
  }

  /* Decorative title + long text SEO area */
  .page-responsible-gambling__section-title-wrap {
      text-align: center;
      padding: 0 15px;
      box-sizing: border-box;
      margin-bottom: 20px;
  }
  .page-responsible-gambling__section-title-wrap h2 {
      font-size: clamp(24px, 7vw, 30px);
      line-height: 1.3;
  }
  .page-responsible-gambling__article-body {
      padding: 0 15px;
      box-sizing: border-box;
  }
  .page-responsible-gambling__article-figure {
      padding: 0 15px;
      box-sizing: border-box;
      margin: 20px 0;
  }
  .page-responsible-gambling__article-figure img {
      max-width: 100%;
      width: 100%;
      height: auto;
  }
  /* No product display grid on this page, but if there were, it would be here */
  /* Example for a hypothetical product grid (if it existed): */
  /*
  .page-responsible-gambling__products-grid {
      grid-template-columns: repeat(2, 1fr) !important; 
      overflow-x: hidden !important;
      padding: 0 15px !important;
      box-sizing: border-box !important;
  }
  .page-responsible-gambling__products-grid .page-responsible-gambling__product-card:nth-child(n+3) {
      grid-column: span 1 !important;
  }
  */
}