/* style/responsible-gaming.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

/* Kiểu cơ bản cho nội dung trang, đảm bảo văn bản sáng trên nền tối */
.page-responsible-gaming {
  background-color: #08160F; /* Màu nền được chỉ định từ bảng màu */
  color: #F2FFF6; /* Màu văn bản chính cho nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Đảm bảo khoảng trống phía trên footer */
}

/* Kiểu phần hero */
.page-responsible-gaming__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Đệm trên nhỏ, body xử lý offset header */
  background-color: #0A4B2C; /* Deep Green cho phần hero */
  text-align: center;
  overflow: hidden; /* Đảm bảo hình ảnh không tràn ra ngoài */
}

.page-responsible-gaming__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-responsible-gaming__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Đảm bảo nội dung nằm trên mọi yếu tố nền */
}

.page-responsible-gaming__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Kích thước font phản hồi */
  color: #F2FFF6; /* Văn bản sáng trên nền tối */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-responsible-gaming__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Văn bản phụ sáng */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gaming__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên màn hình nhỏ hơn */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-responsible-gaming__btn-primary,
.page-responsible-gaming__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px; /* Đảm bảo kích thước nút tối thiểu */
  text-align: center;
  box-sizing: border-box;
}

.page-responsible-gaming__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* Văn bản trắng trên gradient xanh lá cây */
  border: 2px solid transparent;
}

.page-responsible-gaming__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6); /* Hiệu ứng phát sáng */
}

.page-responsible-gaming__btn-secondary {
  background: transparent;
  color: #57E38D; /* Màu phát sáng cho văn bản phụ */
  border: 2px solid #2E7A4E; /* Màu viền */
}

.page-responsible-gaming__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1); /* Nền sáng nhẹ khi hover */
  color: #F2FFF6;
  border-color: #57E38D;
}

.page-responsible-gaming__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #08160F; /* Màu nền cho các phần nội dung */
}

.page-responsible-gaming__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #F2FFF6; /* Màu văn bản chính */
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-responsible-gaming__text-block {
  font-size: 1rem;
  color: #A7D9B8; /* Màu văn bản phụ */
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gaming__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Kích thước hình ảnh tối thiểu */
  min-height: 200px; /* Kích thước hình ảnh tối thiểu */
}

.page-responsible-gaming__list {
  list-style: none;
  padding: 0;
  margin: 20px auto 40px auto;
  max-width: 900px;
}

.page-responsible-gaming__list-item {
  font-size: 1rem;
  color: #A7D9B8; /* Màu văn bản phụ */
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-responsible-gaming__list-item::before {
  content: '✓'; /* Biểu tượng dấu tích */
  color: #57E38D; /* Màu phát sáng */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-responsible-gaming__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
}

.page-responsible-gaming__card {
  background-color: #11271B; /* Màu nền thẻ */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #2E7A4E; /* Màu viền */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gaming__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(87, 227, 141, 0.4);
}

.page-responsible-gaming__card-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Màu văn bản chính */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gaming__card-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Màu văn bản phụ */
  margin-bottom: 25px;
  flex-grow: 1; /* Cho phép văn bản chiếm không gian có sẵn */
}

.page-responsible-gaming__call-to-action {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 8px; /* Các góc hơi tròn */
}

.page-responsible-gaming__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-responsible-gaming__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Phần FAQ */
.page-responsible-gaming__faq-list {
  max-width: 900px;
  margin: 40px auto 60px auto;
}

.page-responsible-gaming__faq-item {
  background-color: #11271B; /* Màu nền thẻ */
  border: 1px solid #2E7A4E; /* Màu viền */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-responsible-gaming__faq-item summary {
  list-style: none; /* Xóa dấu mặc định */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: #F2FFF6; /* Màu văn bản chính */
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.page-responsible-gaming__faq-item summary::-webkit-details-marker {
  display: none; /* Xóa dấu mặc định cho webkit */
}

.page-responsible-gaming__faq-item summary:hover {
  background-color: rgba(87, 227, 141, 0.05); /* Hiệu ứng hover nhẹ */
}

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

.page-responsible-gaming__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Màu phát sáng */
}

.page-responsible-gaming__faq-item[open] .page-responsible-gaming__faq-toggle {
  content: '−'; /* Thay đổi thành dấu trừ khi mở */
}

.page-responsible-gaming__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8; /* Màu văn bản phụ */
  font-size: 1rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-responsible-gaming__faq-item[open] .page-responsible-gaming__faq-answer {
  max-height: 500px; /* Điều chỉnh khi cần cho nội dung */
  transition: max-height 0.5s ease-in;
}

/* Kiểu liên kết */
.page-responsible-gaming a {
  color: #57E38D; /* Màu phát sáng cho liên kết */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-responsible-gaming a:hover {
  color: #F2C14E; /* Màu vàng khi hover */
  text-decoration: underline;
}

/* Thiết kế phản hồi */
@media (max-width: 1024px) {
  .page-responsible-gaming__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-responsible-gaming__content-area {
    padding: 30px 15px;
  }
  .page-responsible-gaming__grid-container {
    gap: 20px;
  }
}

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

  /* Điều chỉnh hình ảnh phản hồi */
  .page-responsible-gaming img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Điều chỉnh container phản hồi */
  .page-responsible-gaming__section,
  .page-responsible-gaming__card,
  .page-responsible-gaming__container,
  .page-responsible-gaming__hero-section,
  .page-responsible-gaming__content-area,
  .page-responsible-gaming__call-to-action,
  .page-responsible-gaming__grid-container,
  .page-responsible-gaming__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Điều chỉnh nút phản hồi */
  .page-responsible-gaming__cta-button,
  .page-responsible-gaming__btn-primary,
  .page-responsible-gaming__btn-secondary,
  .page-responsible-gaming a[class*="button"],
  .page-responsible-gaming 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-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Thêm khoảng trống giữa các nút xếp chồng */
  }
  
  .page-responsible-gaming__cta-buttons {
    flex-direction: column !important; /* Xếp chồng các nút theo chiều dọc */
    gap: 10px; /* Điều chỉnh khoảng cách cho các nút xếp chồng */
  }

  .page-responsible-gaming__hero-content {
    padding: 0 10px;
  }

  .page-responsible-gaming__main-title {
    font-size: 2rem;
  }

  .page-responsible-gaming__description {
    font-size: 1rem;
  }

  .page-responsible-gaming__section-title {
    font-size: 1.8rem;
  }

  .page-responsible-gaming__card-title {
    font-size: 1.2rem;
  }

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

  .page-responsible-gaming__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-responsible-gaming__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

/* Đảm bảo hình ảnh nội dung ít nhất 200px */
.page-responsible-gaming img:not(.page-responsible-gaming__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Không có bộ lọc CSS trên hình ảnh */
.page-responsible-gaming img {
  filter: none !important;
}

/* Đảm bảo không có nội dung gây cuộn ngang */
.page-responsible-gaming {
  overflow-x: hidden;
}