:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a; /* Body background from shared.css */
  --card-bg-dark-theme: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  --border-color-light: #e0e0e0;
}

.page-fishing-games {
  color: var(--text-light); /* Light text for readability on dark body background */
  background-color: var(--bg-dark); /* Fallback, though body handles it */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color); /* Gold titles */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-fishing-games__description {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-fishing-games__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color); /* Dark blue text on gold button for contrast */
  border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-primary:hover {
  background: #e6c200; /* Gold slightly darker */
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
  margin-left: 20px; /* Spacing between buttons */
}

.page-fishing-games__btn-secondary:hover {
  background: #0000a0; /* Dark blue slightly lighter */
  border-color: #0000a0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color); /* Gold titles for cards */
  margin-bottom: 15px;
  text-align: center;
}

.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* HERO Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
  min-height: 600px;
}

.page-fishing-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  filter: brightness(0.4); /* Darken background image for text readability */
  border-radius: 0; /* Hero image usually full width */
  box-shadow: none;
}

.page-fishing-games__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-fishing-games__main-title {
  font-size: 52px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

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

/* About Section */
.page-fishing-games__about-section {
  padding: 80px 0;
  background-color: var(--bg-dark); /* Ensure section background is dark */
  color: var(--text-light);
}

.page-fishing-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-fishing-games__text-block {
  flex: 1;
}

.page-fishing-games__text-block p {
  font-size: 17px;
  margin-bottom: 20px;
}

.page-fishing-games__text-block ul {
  list-style: none;
  padding-left: 0;
}

.page-fishing-games__text-block li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-fishing-games__text-block li::before {
  content: '★'; /* Star icon */
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
}

.page-fishing-games__sub-title {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: left;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__image-content {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
}

.page-fishing-games__mt-40 {
  margin-top: 40px;
}

/* Features Section */
.page-fishing-games__features-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Dark blue background for contrast */
  color: var(--text-light);
}

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

.page-fishing-games__feature-card {
  background: var(--card-bg-dark-theme); /* Semi-transparent white card on dark blue */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__feature-icon {
  width: 100%; /* Ensure images fill card width */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-fishing-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.page-fishing-games__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background: var(--card-bg-dark-theme);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-fishing-games__step-icon {
  counter-increment: step-counter;
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-right: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__step-content h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-fishing-games__step-content p {
  font-size: 16px;
  color: var(--text-light);
}

.page-fishing-games__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.page-fishing-games__promo-card {
  background: var(--card-bg-dark-theme);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for promo images */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-fishing-games__promo-card .page-fishing-games__card-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-fishing-games__promo-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-fishing-games__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-fishing-games__read-more:hover {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

/* FAQ容器样式 */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card-bg-dark-theme);
}

/* 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;
  color: var(--text-light);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.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); /* Slightly lighter background for answer */
  border-radius: 0 0 10px 10px;
}

/* 问题样式 */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  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.15);
}

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

/* 问题标题样式 */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color); /* Gold for FAQ questions */
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện click */
}

/* 切换图标 */
.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(--text-light);
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* Call to Action Section */
.page-fishing-games__join-us-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-fishing-games__text-center {
  text-align: center;
}

.page-fishing-games__large-button {
  padding: 18px 45px;
  font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-container {
    max-width: 768px;
  }
  .page-fishing-games__main-title {
    font-size: 44px;
  }
  .page-fishing-games__hero-description {
    font-size: 20px;
  }
  .page-fishing-games__section-title {
    font-size: 32px;
  }
  .page-fishing-games__content-wrapper {
    flex-direction: column;
  }
  .page-fishing-games__image-content {
    max-width: 100%;
    margin-top: 30px;
  }
  .page-fishing-games__feature-card {
    padding: 25px;
  }
  .page-fishing-games__promo-card {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-fishing-games__container {
    padding: 30px 15px;
  }

  /* Fixed header spacing for mobile */
  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
  .page-fishing-games__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-fishing-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 12px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fishing-games__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-fishing-games__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-fishing-games__text-block p {
    font-size: 15px;
  }

  .page-fishing-games__image-content {
    border-radius: 8px;
  }

  .page-fishing-games__features-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__join-us-section {
    padding: 60px 0;
  }

  .page-fishing-games__feature-card,
  .page-fishing-games__promo-card {
    padding: 20px;
    border-radius: 8px;
  }
  .page-fishing-games__feature-icon,
  .page-fishing-games__promo-image {
    height: 180px;
    border-radius: 6px;
  }
  .page-fishing-games__card-title {
    font-size: 20px;
  }

  .page-fishing-games__step-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .page-fishing-games__step-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-fishing-games__step-content h3 {
    font-size: 20px;
  }
  .page-fishing-games__step-content p {
    font-size: 15px;
  }

  /* FAQ Mobile */
  .page-fishing-games__faq-question {
    padding: 15px 20px;
  }
  .page-fishing-games__faq-question h3 {
    font-size: 16px;
  }
  .page-fishing-games__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-fishing-games__faq-answer {
    padding: 0 20px;
  }
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px 20px !important;
  }

  /* General image, video, button overflow prevention */
  .page-fishing-games img,
  .page-fishing-games video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-fishing-games__container,
  .page-fishing-games__content-wrapper,
  .page-fishing-games__features-grid,
  .page-fishing-games__promotions-grid,
  .page-fishing-games__faq-list,
  .page-fishing-games__cta-buttons,
  .page-fishing-games__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-fishing-games__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}