/* style/fishing-games.css */

/* Custom properties for colors */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --background-light: #f9f9f9;
}

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

/* Hero Section */
.page-fishing-games__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); /* Ensures content is not hidden by fixed header */
  background-color: var(--background-light); /* Light background for hero section */
}

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

.page-fishing-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* Redundant if overflow hidden on parent, but good for consistency */
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-fishing-games__main-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-fishing-games__description {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-color); /* Using login color for CTA for prominence */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__cta-button:hover {
  background: #c76a06; /* Darken on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-fishing-games__section {
  padding: 80px 20px;
  background-color: var(--secondary-color);
}

.page-fishing-games__section:nth-of-type(even) {
  background-color: var(--background-light);
}

.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-fishing-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--login-color);
  border-radius: 2px;
}

.page-fishing-games__paragraph {
  font-size: 17px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature Grid */
.page-fishing-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__feature-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-fishing-games__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__feature-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

.page-fishing-games__feature-description {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
  text-align: left;
}

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

.page-fishing-games__game-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-fishing-games__game-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-fishing-games__card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-fishing-games__card-description {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 15px 20px;
  line-height: 1.5;
}

.page-fishing-games__card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--login-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.page-fishing-games__card-button:hover {
  background: #c76a06;
  transform: translateY(-2px);
}

/* Strategy Guide */
.page-fishing-games__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__strategy-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  border-left: 5px solid var(--primary-color);
  transition: all 0.3s ease;
}

.page-fishing-games__strategy-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-left-color: var(--login-color);
}

.page-fishing-games__strategy-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-fishing-games__strategy-description {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Promotions */
.page-fishing-games__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__promo-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-fishing-games__promo-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

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

.page-fishing-games__promo-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.page-fishing-games__promo-link:hover {
  color: var(--login-color);
  border-bottom-color: var(--login-color);
}

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

/* Download App Section */
.page-fishing-games__download-app .page-fishing-games__container {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 40px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden; /* For image positioning */
}

.page-fishing-games__dark-section {
  background-color: var(--primary-color); /* Ensure dark background for this section */
  color: var(--text-light); /* Light text on dark background */
}

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

.page-fishing-games__download-app .page-fishing-games__section-title {
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-fishing-games__download-app .page-fishing-games__section-title::after {
  background-color: var(--text-light);
}

.page-fishing-games__download-app .page-fishing-games__paragraph {
  color: var(--text-light);
  margin-bottom: 40px;
}

.page-fishing-games__download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure buttons fit */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background: var(--login-color);
  color: var(--text-light);
  border: 2px solid var(--login-color);
}

.page-fishing-games__btn-primary:hover {
  background: #c76a06;
  border-color: #c76a06;
  transform: translateY(-2px);
}

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

.page-fishing-games__btn-secondary:hover {
  background: var(--background-light);
  border-color: var(--background-light);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.page-fishing-games__app-image {
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}


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

/* FAQ容器样式 */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 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 15px;
  opacity: 0;
}

/* 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 15px !important;
  opacity: 1;
  background: var(--secondary-color);
  border-radius: 0 0 5px 5px;
  border-top: 1px solid var(--border-color);
}

/* Vấn đề kiểu dáng */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  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: var(--background-light);
  border-color: #d6d6d6;
}

.page-fishing-games__faq-question:active {
  background: #e6e6e6;
}

/* Kiểu tiêu đề câu hỏi */
.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);
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
}

/* Biểu tượng chuyển đổi */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  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 biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--login-color);
  transform: rotate(45deg); /* Thay đổi từ + sang X hoặc - */
}

/* Thiết kế đáp ứng di động */
@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-fishing-games__cta-button {
    padding: 12px 30px;
    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__section {
    padding: 40px 15px;
  }

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

  .page-fishing-games__paragraph {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-fishing-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-fishing-games__feature-item,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-item {
    padding: 20px;
  }

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

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

  .page-fishing-games__game-card img {
     /* Điều chỉnh chiều cao hình ảnh thẻ cho di động */
  }

  .page-fishing-games__download-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Thích ứng di động cho container nút */
  .page-fishing-games__download-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

/* Đảm bảo không sử dụng bộ lọc cho hình ảnh */
.page-fishing-games img {
  filter: none !important;
}