/* General Styles for Responsible Gaming Page */
.page-responsible-gaming {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #F4F7FB; /* Page background color */
}

.page-responsible-gaming__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.page-responsible-gaming__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-responsible-gaming__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-responsible-gaming__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 800px;
  width: 90%;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-responsible-gaming__main-title {
  font-size: clamp(2em, 3.5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-responsible-gaming__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-responsible-gaming__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-responsible-gaming__btn-primary,
.page-responsible-gaming__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

.page-responsible-gaming__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-responsible-gaming__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-responsible-gaming__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-responsible-gaming__btn-secondary:hover {
  background: #F4F7FB;
  transform: translateY(-2px);
}

.page-responsible-gaming__section {
  padding: 60px 0;
  position: relative;
}

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

.page-responsible-gaming__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-responsible-gaming__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-responsible-gaming__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-responsible-gaming__ordered-list {
  list-style: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-responsible-gaming__list-item {
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.page-responsible-gaming__dark-bg {
  background-color: #2F6BFF; /* Main color as background */
  color: #ffffff; /* White text for dark background */
}

.page-responsible-gaming__dark-bg .page-responsible-gaming__section-title,
.page-responsible-gaming__dark-bg .page-responsible-gaming__text-block,
.page-responsible-gaming__dark-bg .page-responsible-gaming__list-item {
  color: #ffffff;
}

.page-responsible-gaming__light-bg {
  background-color: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
}

.page-responsible-gaming__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-responsible-gaming__image-content--bottom {
  margin-bottom: 0;
}

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

.page-responsible-gaming__tool-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
  transition: transform 0.3s ease;
}

.page-responsible-gaming__tool-card:hover {
  transform: translateY(-5px);
}

.page-responsible-gaming__tool-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-responsible-gaming__tool-description {
  font-size: 1em;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-responsible-gaming__resource-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.page-responsible-gaming__resource-list .page-responsible-gaming__list-item {
  position: relative;
  padding-left: 30px;
}

.page-responsible-gaming__resource-list .page-responsible-gaming__list-item::before {
  content: '👉';
  position: absolute;
  left: 0;
  top: 0;
}

.page-responsible-gaming__faq-list {
  margin-top: 40px;
}

.page-responsible-gaming__faq-item {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-responsible-gaming__faq-item[open] {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-responsible-gaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #1F2D3D;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  position: relative;
}

.page-responsible-gaming__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-responsible-gaming__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-responsible-gaming__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #1F2D3D;
}

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

.page-responsible-gaming__cta-final {
  padding: 80px 0;
}

.page-responsible-gaming__cta-content {
  text-align: center;
}

.page-responsible-gaming__cta-content .page-responsible-gaming__section-title {
  color: #ffffff;
}

.page-responsible-gaming__cta-content .page-responsible-gaming__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Placeholder for shared components CSS, not generated here */
/* .shared-header, .shared-footer { ... } */

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-responsible-gaming__hero-content {
    padding: 15px;
  }

  .page-responsible-gaming__main-title {
    font-size: clamp(1.8em, 4vw, 3em);
  }

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

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

  .page-responsible-gaming__tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-responsible-gaming__tool-card {
    padding: 25px;
  }

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

@media (max-width: 768px) {
  .page-responsible-gaming {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-responsible-gaming__hero-section {
    padding-top: 10px !important;
  }

  .page-responsible-gaming__hero-image-wrapper {
    max-height: 300px;
  }

  .page-responsible-gaming__hero-content {
    width: 95% !important;
    padding: 15px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .page-responsible-gaming__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em) !important;
    margin-bottom: 10px !important;
  }

  .page-responsible-gaming__hero-description {
    font-size: 0.95em !important;
    margin-bottom: 20px !important;
  }

  /* 按钮与按钮容器 */
  .page-responsible-gaming__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-responsible-gaming__btn-primary,
  .page-responsible-gaming__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .page-responsible-gaming__section {
    padding: 40px 0 !important;
  }

  .page-responsible-gaming__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-responsible-gaming__text-block,
  .page-responsible-gaming__list-item {
    font-size: 1em !important;
  }

  .page-responsible-gaming__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto !important;
  }

  /* 长文金框区 (not applicable to this page, but as a placeholder for completeness) */
  /* .page-responsible-gaming__home-content { ... } */

  /* 游戏轮播 (not applicable to this page, but as a placeholder for completeness) */
  /* .page-responsible-gaming__slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; } */
  /* .page-responsible-gaming__game-slide { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); } */

  /* 合作品牌六宫格 (not applicable to this page, but as a placeholder for completeness) */
  /* .page-responsible-gaming__banners-top-wrapper { grid-template-columns: repeat(3, 1fr) !important; } */

  /* 博客卡片区 (not applicable to this page, but as a placeholder for completeness) */
  /* .page-responsible-gaming__blog-masonry { grid-template-columns: 1fr !important; } */
  /* .page-responsible-gaming__blog-slide { flex: 0 0 100% !important; max-width: 100% !important; } */

  .page-responsible-gaming__tools-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-responsible-gaming__tool-card {
    padding: 20px !important;
  }

  .page-responsible-gaming__tool-title {
    font-size: 1.3em !important;
  }

  .page-responsible-gaming__faq-question {
    padding: 15px 20px !important;
    font-size: 1.1em !important;
  }

  .page-responsible-gaming__faq-answer {
    padding: 0 20px 15px !important;
  }

  .page-responsible-gaming__cta-final {
    padding: 50px 0 !important;
  }
}

/* Placeholder styles for home-content, slider, banners-top, blog-masonry, blog-slider-track for completeness as per requirement, even if not directly used on this page */
/* The following are required as per '移动端 @media (max-width: 768px) 必写清单' */
.page-responsible-gaming__home-content { /* Placeholder for desktop */ }
.page-responsible-gaming__row-games, .page-responsible-gaming__row-sport, .page-responsible-gaming__row-coop { /* Placeholder for desktop */ }
.page-responsible-gaming__games-title, .page-responsible-gaming__sport-title, .page-responsible-gaming__coop-title { /* Placeholder for desktop */ }
.page-responsible-gaming__slider-wrapper { /* Placeholder for desktop */ }
.page-responsible-gaming__slider-track { display: flex; flex-wrap: nowrap; gap: 16px; /* Placeholder for desktop */ }
.page-responsible-gaming__game-slide { flex: 0 0 200px; max-width: 200px; /* Placeholder for desktop */ }
.page-responsible-gaming__banners-top-wrapper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 0 auto; /* Placeholder for desktop */ }
.page-responsible-gaming__banner-item img {   object-fit: contain; margin: 0 auto; display: block; /* Placeholder for desktop */ }
.page-responsible-gaming__blog-masonry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; /* Placeholder for desktop */ }
.page-responsible-gaming__blog-card-link { display: flex; flex-direction: column; height: 100%; /* Placeholder for desktop */ }
.page-responsible-gaming__btn-outline { margin-top: auto; /* Placeholder for desktop */ }
.page-responsible-gaming__blog-slider-track { display: flex; flex-wrap: nowrap; gap: 20px; /* Placeholder for desktop */ }
.page-responsible-gaming__blog-slide { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); /* Placeholder for desktop */ }

@media (max-width: 768px) {
  /* Long text area (if present) */
  .page-responsible-gaming__home-content {
    height: auto !important;
    overflow-y: visible !important;
    padding: 20px !important;
    font-size: 1em !important;
  }
  .page-responsible-gaming__home-content h2 {
    font-size: 1.5em !important;
  }

  /* Game Carousel (if present) */
  .page-responsible-gaming__slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start; /* Align items to start */
  }
  .page-responsible-gaming__game-slide {
    flex: 0 0 calc(50% - 10px) !important; /* Two slides per view */
    max-width: calc(50% - 10px) !important;
    scroll-snap-align: start;
  }

  /* Partner Banners (if present) */
  .page-responsible-gaming__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .page-responsible-gaming__banner-item img {
    
    
  }

  /* Blog Cards Section (if present) */
  .page-responsible-gaming__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    align-items: stretch !important;
  }
  .page-responsible-gaming__blog-card-link {
    height: auto !important;
  }
  .page-responsible-gaming__blog-slider-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-responsible-gaming__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    scroll-snap-align: start;
  }
}