/* style/fishing-games.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Black */
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --link-color: #007bff; /* A standard blue for links */
  --link-hover-color: #0056b3;
  --border-color: #e0e0e0;
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  color: var(--text-color-light-bg); /* Default text color for light sections */
  background-color: var(--card-bg-light); /* Default background for light sections */
}

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

.page-fishing-games__light-bg {
  background-color: var(--card-bg-light);
  color: var(--text-color-light-bg);
}

.page-fishing-games__keyword {
  color: var(--primary-color);
  font-weight: bold;
}

.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: 40px;
  color: inherit; /* Inherit color from parent section (dark-bg or light-bg) */
}

.page-fishing-games__paragraph {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-fishing-games__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  gap: 40px;
  min-height: 600px;
}

.page-fishing-games__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-fishing-games__main-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color); /* Gold for main title */
}

.page-fishing-games__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-color-dark-bg);
}

.page-fishing-games__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

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

.page-fishing-games__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-fishing-games__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__hero-image-wrapper {
  flex: 1;
  max-width: 600px;
  text-align: right;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Intro Section */
.page-fishing-games__intro-section {
  padding: 60px 0;
}

/* Advantages Section */
.page-fishing-games__advantages-section {
  padding: 60px 0;
}

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

.page-fishing-games__advantage-card {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-fishing-games__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color-dark-bg);
  flex-grow: 1;
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
  padding: 60px 0;
}

.page-fishing-games__how-to-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__list-item {
  background: var(--card-bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-fishing-games__list-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__list-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-fishing-games__list-item p {
  font-size: 17px;
  margin-bottom: 15px;
  color: var(--text-color-light-bg);
}

.page-fishing-games__btn-text-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-fishing-games__btn-text-link:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

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

.page-fishing-games__btn-primary--large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Game Showcase Section */
.page-fishing-games__game-showcase-section {
  padding: 60px 0;
}

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

.page-fishing-games__game-card {
  background: var(--card-bg-dark);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-fishing-games__game-card .page-fishing-games__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-fishing-games__game-card .page-fishing-games__card-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.page-fishing-games__game-card .page-fishing-games__card-description {
  font-size: 16px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-fishing-games__btn-play-game {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-fishing-games__btn-play-game:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* Security Section */
.page-fishing-games__security-section {
  padding: 60px 0;
}

.page-fishing-games__security-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-fishing-games__security-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 60px 0;
}

.page-fishing-games__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__promo-item {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-fishing-games__promo-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-fishing-games__promo-item p {
  font-size: 17px;
  color: var(--text-color-dark-bg);
}

/* Mobile Section */
.page-fishing-games__mobile-section {
  padding: 60px 0;
}

.page-fishing-games__mobile-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-fishing-games__mobile-text {
  flex: 1;
  min-width: 300px;
}

.page-fishing-games__mobile-features {
  list-style: disc;
  padding-left: 20px;
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-color-light-bg);
}

.page-fishing-games__list-highlight {
  color: var(--primary-color);
}

.page-fishing-games__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-fishing-games__mobile-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__cta-buttons--mobile {
  margin-top: 30px;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 60px 0;
}

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

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

/* 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;
  font-size: 17px;
}

/* 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 open 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: var(--card-bg-dark);
  border: 1px solid 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.1);
  border-color: var(--primary-color);
}

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

/* 问题标题样式 */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--text-color-dark-bg);
}

/* 切换图标 */
.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; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  transform: rotate(45deg); /* Change to X shape when active */
  color: var(--primary-color);
}

/* Final CTA Section */
.page-fishing-games__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-fishing-games__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .page-fishing-games__hero-content,
  .page-fishing-games__hero-image-wrapper {
    max-width: 100%;
    text-align: center;
  }

  .page-fishing-games__main-title {
    font-size: 40px;
  }

  .page-fishing-games__hero-description {
    font-size: 18px;
  }

  .page-fishing-games__cta-buttons {
    justify-content: center;
  }

  .page-fishing-games__mobile-content {
    flex-direction: column;
  }

  .page-fishing-games__mobile-text,
  .page-fishing-games__mobile-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-fishing-games__paragraph {
    font-size: 16px;
  }

  .page-fishing-games__hero-section {
    padding: 40px 15px;
  }

  .page-fishing-games__main-title {
    font-size: 32px;
  }

  .page-fishing-games__hero-description {
    font-size: 16px;
  }

  .page-fishing-games__cta-button {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__grid-layout, .page-fishing-games__game-grid {
    grid-template-columns: 1fr;
  }

  .page-fishing-games__advantage-card,
  .page-fishing-games__game-card {
    padding: 20px;
  }

  .page-fishing-games__card-title {
    font-size: 20px;
  }

  .page-fishing-games__card-description {
    font-size: 15px;
  }

  .page-fishing-games__how-to-list,
  .page-fishing-games__promo-list {
    margin-top: 20px;
  }

  .page-fishing-games__list-item,
  .page-fishing-games__promo-item {
    padding: 20px;
  }

  .page-fishing-games__list-title,
  .page-fishing-games__promo-title {
    font-size: 18px;
  }

  .page-fishing-games__list-item p,
  .page-fishing-games__promo-item p {
    font-size: 15px;
  }

  .page-fishing-games__security-badges {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .page-fishing-games__security-icon {
    width: 120px;
    height: 120px;
  }

  .page-fishing-games__mobile-features {
    font-size: 15px;
  }

  /* FAQ Mobile */
  .page-fishing-games__faq-question {
    padding: 15px;
  }
  
  .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 15px;
  }
  
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px !important;
  }

  .page-fishing-games__btn-primary--large {
    font-size: 18px;
    padding: 15px 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image and Video Responsive */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__mobile-image-wrapper,
  .page-fishing-games__advantage-card .page-fishing-games__card-image,
  .page-fishing-games__game-card .page-fishing-games__card-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-fishing-games__game-card .page-fishing-games__card-image {
    height: auto !important;
  }
}