.page-responsible-gambling {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f8f8f8; /* Light background for the page content */
}

.page-responsible-gambling__section {
  padding: 60px 20px;
  margin-bottom: 20px;
}

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

.page-responsible-gambling__title {
  font-size: 32px;
  color: #1A2E47;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-responsible-gambling__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-responsible-gambling__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-responsible-gambling__list-item {
  margin-bottom: 10px;
  font-size: 16px;
}

/* Hero Section */
.page-responsible-gambling__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
  background: #1A2E47; /* Dark background for hero section */
  color: #ffffff;
}

.page-responsible-gambling__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-responsible-gambling__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-responsible-gambling__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 30px;
  border-radius: 8px;
  background: rgba(26, 46, 71, 0.85); /* Slightly transparent dark blue */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling__hero-content h1 {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-responsible-gambling__hero-content p {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-responsible-gambling__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700;
  color: #1A2E47;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-responsible-gambling__cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* General Buttons */
.page-responsible-gambling__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: #1A2E47;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-responsible-gambling__btn-primary:hover {
  background: #0d1e33;
  transform: translateY(-2px);
}

.page-responsible-gambling__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: #ffffff;
  color: #1A2E47;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #1A2E47;
  cursor: pointer;
  text-align: center;
}

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

.page-responsible-gambling__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Section Backgrounds */
.page-responsible-gambling__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-responsible-gambling__dark-bg {
  background-color: #1A2E47;
  color: #ffffff;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__title {
  color: #FFD700;
}

.page-responsible-gambling__dark-bg .page-responsible-gambling__list-item {
  color: #f0f0f0;
}

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

.page-responsible-gambling__grid--help {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-responsible-gambling__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-responsible-gambling__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%; /* Ensure card image takes full width */
  min-height: 200px; /* Minimum size requirement */
}

.page-responsible-gambling__card-title {
  font-size: 22px;
  color: #1A2E47;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling__card p {
  font-size: 15px;
  line-height: 1.7;
  text-align: justify;
}

/* FAQ Section */
.page-responsible-gambling__faq-list {
  margin-top: 40px;
}

/* FAQ容器样式 */
.page-responsible-gambling__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #555555;
  font-size: 15px;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #1A2E47;
  border: 1px solid #1A2E47;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-responsible-gambling__faq-question:hover {
  background: #2a4160;
  border-color: #2a4160;
}

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

/* 问题标题样式 */
.page-responsible-gambling__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #ffffff;
}

/* 切换图标 */
.page-responsible-gambling__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: 32px;
  height: 32px;
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-responsible-gambling__hero-content h1 {
    font-size: 40px;
  }
  .page-responsible-gambling__title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .page-responsible-gambling {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-responsible-gambling__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-responsible-gambling__hero-image img {
    border-radius: 4px;
  }
  .page-responsible-gambling__hero-content h1 {
    font-size: 32px;
  }
  .page-responsible-gambling__hero-content p {
    font-size: 16px;
  }
  .page-responsible-gambling__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-responsible-gambling__section {
    padding: 40px 15px;
  }
  .page-responsible-gambling__title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-responsible-gambling__text-block {
    font-size: 15px;
    text-align: left;
  }
  .page-responsible-gambling__list {
    padding-left: 15px;
  }
  .page-responsible-gambling__list-item {
    font-size: 15px;
  }
  .page-responsible-gambling__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-responsible-gambling__card {
    padding: 20px;
  }
  .page-responsible-gambling__card-title {
    font-size: 20px;
  }
  .page-responsible-gambling__card p {
    font-size: 14px;
  }
  .page-responsible-gambling__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-responsible-gambling__btn-primary,
  .page-responsible-gambling__btn-secondary {
    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;
  }
  .page-responsible-gambling__faq-question {
    padding: 15px 20px;
  }
  .page-responsible-gambling__faq-question h3 {
    font-size: 16px;
  }
  .page-responsible-gambling__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-responsible-gambling__faq-answer {
    padding: 0 20px;
  }
  .page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
    padding: 15px 20px !important;
  }
  /* Mobile image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-responsible-gambling__hero-content h1 {
    font-size: 28px;
  }
  .page-responsible-gambling__title {
    font-size: 22px;
  }
}