/* style/fishing-games.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f8f9fa;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.08);
  --card-border-dark-mode: rgba(255, 255, 255, 0.15);
}

.page-fishing-games {
  color: var(--text-light); /* Body background is dark (#0a0a0a), so use light text */
  background-color: var(--bg-dark);
  padding-top: 120px; /* Adjust for fixed header */
}

/* 🚨 桌面端视频区域样式（必须严格遵守） */
.page-fishing-games__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* 🚨 必须添加桌面端padding-top，确保内容不被固定导航栏遮挡 */
  padding-top: 10px; /* Desktop: Adjust based on actual navigation bar height */
}

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

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

.page-fishing-games__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio - 🚨 PageSpeed optimization: fixed aspect ratio to avoid layout shifts (CLS) */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click events */
}

/* 🚨 Video click hint overlay style (optional, enhances user experience) */
.page-fishing-games__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;
}

.page-fishing-games__video-link:hover .page-fishing-games__video-overlay {
  opacity: 1;
}

.page-fishing-games__video-click-hint {
  color: #ffffff;
  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;
}

/* 🚨 Play Now button style (must be strictly adhered to, located in the middle below the video) */
.page-fishing-games__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-fishing-games__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark); /* Ensure contrast with gold background */
  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;
}

.page-fishing-games__play-now-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__title-section {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-fishing-games__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-fishing-games__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__title-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
}

.page-fishing-games__cta-button--primary:hover {
  background-color: #e6c200; /* Slightly darker gold */
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-fishing-games__cta-button--secondary {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

.page-fishing-games__cta-button--secondary:hover {
  background-color: #000066; /* Slightly darker dark blue */
  border-color: #000066;
  transform: translateY(-2px);
}

.page-fishing-games__content-section {
  padding: 60px 20px;
}

.page-fishing-games__content-section.page-fishing-games__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__subtitle {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: left;
}

.page-fishing-games p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.page-fishing-games__list,
.page-fishing-games__ordered-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-fishing-games__list li,
.page-fishing-games__ordered-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  color: rgba(255, 255, 255, 0.85);
}

.page-fishing-games__list li::before {
  content: '⚡'; /* Custom bullet point */
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.2em;
  top: 0;
}

.page-fishing-games__ordered-list li::before {
  content: counter(list-item) ". ";
  counter-increment: list-item;
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1em;
  top: 0;
}

.page-fishing-games__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-fishing-games__game-list,
.page-fishing-games__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-fishing-games__game-card,
.page-fishing-games__promo-card {
  background: var(--card-bg-dark-mode);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--card-border-dark-mode);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-fishing-games__card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: grayscale(0%); /* Ensure no color filters are applied */
}

.page-fishing-games__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-fishing-games__card-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-1px);
}

.page-fishing-games__faq-section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-fishing-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

/* FAQ容器样式 */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--card-border-dark-mode);
  background-color: var(--card-bg-dark-mode);
}

/* FAQ默认状态 - 答案隐藏 */
.page-fishing-games__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;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-fishing-games__faq-item.active .page-fishing-games__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: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
  color: rgba(255, 255, 255, 0.85);
}

/* Vấn đề style */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark-mode);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-fishing-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-fishing-games__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

/* Vấn đề tiêu đề style */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện click */
  color: var(--primary-color);
}

/* Chuyển đổi icon */
.page-fishing-games__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; /* Ngăn chặn icon chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.page-fishing-games__brand-section {
  padding: 60px 20px;
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-fishing-games__brand-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-fishing-games__brand-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-fishing-games__brand-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-fishing-games__brand-item h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-fishing-games__brand-item p {
  font-size: 1em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.page-fishing-games__blog-section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-fishing-games__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-fishing-games__blog-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-fishing-games__blog-item {
  background: var(--card-bg-dark-mode);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--card-border-dark-mode);
}

.page-fishing-games__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 20px;
}

.page-fishing-games__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  filter: grayscale(0%); /* Ensure no color filters are applied */
}

.page-fishing-games__blog-item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin: 0 20px 10px;
  line-height: 1.4;
}

.page-fishing-games__blog-item-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 20px 15px;
}

.page-fishing-games__blog-item-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 20px;
  display: block;
}

.page-fishing-games__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid var(--secondary-color);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-secondary:hover {
  background-color: #000066;
  transform: translateY(-1px);
}

/* 🚨 Mobile Responsive Design (must be strictly adhered to) */
@media (max-width: 768px) {
  .page-fishing-games {
    padding-top: 100px; /* Mobile: Adjust based on mobile navigation bar height */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-fishing-games__video-section {
    /* 🚨 Mobile must reset padding-top, overriding desktop style */
    padding-top: 10px !important; /* Mobile: Adjust based on mobile navigation bar height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    /* 🚨 Mobile must ensure no overflow */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-fishing-games__video-container {
    /* 🚨 Mobile must ensure no overflow */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  /* 🚨 Video link mobile adaptation (must be strictly adhered to) */
  .page-fishing-games__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-fishing-games__video-wrapper {
    /* 🚨 Mobile must ensure no overflow */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-fishing-games__video {
    /* 🚨 Mobile must ensure video does not overflow */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* Use contain on mobile to ensure full video display without overflow */
  }

  /* 🚨 Play Now button mobile responsive adaptation (must be strictly adhered to) */
  .page-fishing-games__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-fishing-games__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;
  }
  
  /* 🚨 Video click hint overlay mobile adaptation */
  .page-fishing-games__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-fishing-games__main-title {
    font-size: 2.2em;
  }

  .page-fishing-games__title-description {
    font-size: 1em;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  
  .page-fishing-games__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
  }

  .page-fishing-games__content-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__brand-section,
  .page-fishing-games__blog-section {
    padding: 40px 15px;
  }

  .page-fishing-games__section-title,
  .page-fishing-games__brand-title,
  .page-fishing-games__blog-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-fishing-games__subtitle {
    font-size: 1.5em;
  }

  .page-fishing-games p,
  .page-fishing-games__list li,
  .page-fishing-games__ordered-list li {
    font-size: 1em;
  }

  .page-fishing-games__game-list,
  .page-fishing-games__promo-cards,
  .page-fishing-games__brand-content,
  .page-fishing-games__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__card-image {
    height: 160px;
  }

  .page-fishing-games__card-title {
    font-size: 1.3em;
  }

  .page-fishing-games__card-description {
    font-size: 0.9em;
  }

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

  .page-fishing-games__blog-item-image {
    height: 180px;
  }

  .page-fishing-games__blog-item-title {
    font-size: 1.2em;
  }

  .page-fishing-games__blog-item-excerpt {
    font-size: 0.9em;
  }

  .page-fishing-games__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* All images responsive styles */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__image-wrapper,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card,
  .page-fishing-games__brand-item,
  .page-fishing-games__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
    overflow: hidden !important;
  }
  
  /* All video responsive styles */
  .page-fishing-games video,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video container mobile adaptation */
  .page-fishing-games__video-section,
  .page-fishing-games__video-container,
  .page-fishing-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Button container mobile adaptation */
  .page-fishing-games__cta-buttons,
  .page-fishing-games__button-group,
  .page-fishing-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}