:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0d0d0d; /* Body background */
  --background-light: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-resources-mobile-betting-advantages {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark);
}

/* 🚨 桌面端视频区域样式（必须严格遵守） */
.page-resources-mobile-betting-advantages__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* 桌面端：根据导航栏实际高度调整 */
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* 🚨 视频点击链接样式（必须严格遵守） */
.page-resources-mobile-betting-advantages__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-mobile-betting-advantages__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 宽高比 - 🚨 PageSpeed优化：固定宽高比避免布局偏移（CLS） */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* 防止视频控件阻止点击事件 */
  box-sizing: border-box;
}

/* 🚨 视频点击提示遮罩层样式（可选，增强用户体验） */
.page-resources-mobile-betting-advantages__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__video-link:hover .page-resources-mobile-betting-advantages__video-overlay {
  opacity: 1;
}

.page-resources-mobile-betting-advantages__video-click-hint {
  color: var(--text-light);
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 5px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* 🚨 Play Now按钮样式（必须严格遵守，位于视频下方中间位置） */
.page-resources-mobile-betting-advantages__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__play-now-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-mobile-betting-advantages__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* General Section Styling */
.page-resources-mobile-betting-advantages__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-resources-mobile-betting-advantages__sub-title {
  font-size: 28px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-resources-mobile-betting-advantages__text-block {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-resources-mobile-betting-advantages__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Title Section (H1 + CTA) */
.page-resources-mobile-betting-advantages__title-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color), #4a0000);
  color: var(--text-light);
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__title-container {
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-mobile-betting-advantages__title-description {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
  color: var(--text-light);
}

.page-resources-mobile-betting-advantages__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-mobile-betting-advantages__btn-primary {
  background: var(--primary-color);
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
}

.page-resources-mobile-betting-advantages__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-mobile-betting-advantages__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-mobile-betting-advantages__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-resources-mobile-betting-advantages__faq-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-light);
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__faq-list {
  margin-top: 30px;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #222222; /* Darker background for question */
  border: 1px solid #333333;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--primary-color);
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__faq-question:hover {
  background: #333333;
  border-color: var(--primary-color);
}

.page-resources-mobile-betting-advantages__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: inherit;
}

.page-resources-mobile-betting-advantages__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources-mobile-betting-advantages__faq-item.active .page-resources-mobile-betting-advantages__faq-toggle {
  transform: rotate(45deg);
  color: var(--text-light);
}

.page-resources-mobile-betting-advantages__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;
  background: #1a1a1a; /* Slightly lighter than section background */
  color: var(--text-light);
  border-radius: 0 0 8px 8px;
  box-sizing: border-box;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-resources-mobile-betting-advantages__faq-item.active .page-resources-mobile-betting-advantages__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;
  border-top: 1px solid #333333;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__faq-answer p {
  margin: 0;
  color: var(--text-light);
}

/* Brand Section */
.page-resources-mobile-betting-advantages__brand-section {
  padding: 60px 20px;
  background-color: var(--background-light);
  color: var(--text-dark);
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__brand-section .page-resources-mobile-betting-advantages__section-title {
  color: var(--secondary-color);
  text-shadow: none;
}

.page-resources-mobile-betting-advantages__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__brand-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-mobile-betting-advantages__brand-item h3 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-resources-mobile-betting-advantages__brand-item p {
  font-size: 16px;
  color: var(--text-dark);
}

.page-resources-mobile-betting-advantages__brand-logo {
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

/* Blog Section */
.page-resources-mobile-betting-advantages__blog-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-light);
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__blog-item {
  background: #1a1a1a;
  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;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-mobile-betting-advantages__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  box-sizing: border-box;
}

.page-resources-mobile-betting-advantages__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources-mobile-betting-advantages__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-resources-mobile-betting-advantages__blog-item-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-resources-mobile-betting-advantages__blog-item-date {
  font-size: 14px;
  color: #999999;
  display: block;
}

/* 🚨 移动端响应式设计（必须严格遵守） */
@media (max-width: 768px) {
  .page-resources-mobile-betting-advantages {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 🚨 视频区域移动端适配 */
  .page-resources-mobile-betting-advantages__video-section {
    padding-top: 10px !important; /* 移动端：根据移动端导航栏实际高度调整 */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-resources-mobile-betting-advantages__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-resources-mobile-betting-advantages__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-resources-mobile-betting-advantages__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-resources-mobile-betting-advantages__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* 移动端使用contain确保视频完整显示且不超出 */
  }
  
  .page-resources-mobile-betting-advantages__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-resources-mobile-betting-advantages__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-resources-mobile-betting-advantages__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-resources-mobile-betting-advantages__container {
    padding: 20px 15px;
  }

  .page-resources-mobile-betting-advantages__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-resources-mobile-betting-advantages__main-title {
    font-size: 36px;
  }

  .page-resources-mobile-betting-advantages__title-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-resources-mobile-betting-advantages__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-mobile-betting-advantages__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
  }

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

  /* Brand */
  .page-resources-mobile-betting-advantages__brand-item {
    padding: 20px;
  }

  .page-resources-mobile-betting-advantages__brand-item h3 {
    font-size: 20px;
  }

  /* Blog */
  .page-resources-mobile-betting-advantages__blog-image {
    height: 180px;
  }

  .page-resources-mobile-betting-advantages__blog-item-title {
    font-size: 18px;
  }

  .page-resources-mobile-betting-advantages__blog-item-excerpt {
    font-size: 15px;
  }

  /* Image responsiveness */
  .page-resources-mobile-betting-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-mobile-betting-advantages__section,
  .page-resources-mobile-betting-advantages__card,
  .page-resources-mobile-betting-advantages__container,
  .page-resources-mobile-betting-advantages__title-section,
  .page-resources-mobile-betting-advantages__faq-section,
  .page-resources-mobile-betting-advantages__brand-section,
  .page-resources-mobile-betting-advantages__blog-section,
  .page-resources-mobile-betting-advantages__brand-content,
  .page-resources-mobile-betting-advantages__blog-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure text blocks are also responsive */
  .page-resources-mobile-betting-advantages__text-block {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}