/* style/fishing-games.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --button-text-color: #FFFF00;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --border-color: #e0e0e0;
}

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

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

.page-fishing-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-fishing-games__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-fishing-games__link-inline {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

/* --- 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: linear-gradient(135deg, var(--primary-color) 0%, #004d2b 100%); /* Darker green gradient */
  color: var(--light-text-color);
}

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

.page-fishing-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-fishing-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.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: 800;
  margin-bottom: 20px;
  color: var(--light-text-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin: 0 10px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.page-fishing-games__btn-register {
  background: var(--register-button-bg);
  color: var(--button-text-color);
  border: 2px solid var(--register-button-bg);
}

.page-fishing-games__btn-register:hover {
  background: #a80707;
  border-color: #a80707;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-fishing-games__btn-login:hover {
  background: #a80707;
  border-color: #a80707;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-fishing-games__btn-primary:hover {
  background: #005f2e;
  border-color: #005f2e;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- Introduction Section --- */
.page-fishing-games__introduction .page-fishing-games__text-block {
  text-align: justify;
}

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

.page-fishing-games__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Features Section --- */
.page-fishing-games__features {
  background-color: var(--secondary-color); /* Light background */
  color: var(--dark-text-color);
}

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

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

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

.page-fishing-games__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

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

/* --- How to Play Section --- */
.page-fishing-games__how-to-play {
  background: linear-gradient(135deg, var(--primary-color) 0%, #004d2b 100%);
  color: var(--light-text-color);
}

.page-fishing-games__how-to-play .page-fishing-games__section-title {
  color: var(--light-text-color);
}

.page-fishing-games__step-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0;
}

.page-fishing-games__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--button-text-color); /* Yellow for emphasis */
}

.page-fishing-games__step-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Strategies Section --- */
.page-fishing-games__strategies {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

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

.page-fishing-games__strategy-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-fishing-games__strategy-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* --- Promotions Section --- */
.page-fishing-games__promotions {
  background: linear-gradient(135deg, #004d2b 0%, var(--primary-color) 100%);
  color: var(--light-text-color);
}

.page-fishing-games__promotions .page-fishing-games__section-title {
  color: var(--light-text-color);
}

.page-fishing-games__promo-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-fishing-games__promo-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 15px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- Why Choose Section --- */
.page-fishing-games__why-choose {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-fishing-games__advantage-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-fishing-games__advantage-item {
  font-size: 17px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: var(--dark-text-color);
}

.page-fishing-games__advantage-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* --- FAQ Section --- */
.page-fishing-games__faq {
  background: linear-gradient(135deg, var(--primary-color) 0%, #004d2b 100%);
  color: var(--light-text-color);
}

.page-fishing-games__faq .page-fishing-games__section-title {
  color: var(--light-text-color);
}

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

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

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

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo 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 !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
  color: rgba(255, 255, 255, 0.9);
}

/* Vấn đề phong cách */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  border: 1px solid #004d2b;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--light-text-color);
}

.page-fishing-games__faq-question:hover {
  background: #005f2e;
  border-color: #005f2e;
}

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

/* Vấn đề tiêu đề phong cách */
.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; /* Ngăn h3 tag chặn sự kiện click */
}