:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-color: #C30808;
  --login-btn-color: #C30808;
  --text-on-register-login-btn: #FFFF00;
  --default-text-color: #333333; /* For light backgrounds */
  --light-text-color: #ffffff; /* For dark backgrounds */
  --border-color: #e0e0e0;
}

.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--default-text-color); /* Body background is light, so dark text */
  background-color: var(--secondary-color); /* Ensure main content background is consistent with body */
}

/* 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); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Brand colors gradient */
}

.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%; /* Ensure container takes full width on mobile */
  box-sizing: border-box;
}

.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: 8px;
  object-fit: cover;
  /* No filter property */
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--light-text-color); /* Text on gradient background */
}

.page-fishing-games__main-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-fishing-games__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--light-text-color);
}

.page-fishing-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* For mobile */
  width: 100%; /* For mobile */
  max-width: 100%; /* For mobile */
  box-sizing: border-box;
  padding: 0 15px; /* For mobile */
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 0; /* Adjusted from 30px to align with flex gap */
  transition: all 0.3s ease;
  max-width: 100%; /* For mobile */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.page-fishing-games__cta-button.page-fishing-games__btn-login {
  background: var(--login-btn-color);
  color: var(--text-on-register-login-btn);
}

.page-fishing-games__cta-button.page-fishing-games__btn-register {
  background: var(--register-btn-color);
  color: var(--text-on-register-login-btn);
}

.page-fishing-games__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%; /* Ensure container takes full width on mobile */
  box-sizing: border-box;
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-fishing-games__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--default-text-color);
}

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

.page-fishing-games__dark-section .page-fishing-games__section-title,
.page-fishing-games__dark-section .page-fishing-games__section-description,
.page-fishing-games__dark-section h3 {
  color: var(--light-text-color);
}

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

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

.page-fishing-games__intro-item {
  background: rgba(255, 255, 255, 0.1); /* Light transparent background on dark section */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--light-text-color);
}

.page-fishing-games__intro-item img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
  /* No filter property */
}

.page-fishing-games__intro-item h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

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

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

.page-fishing-games__game-card {
  background: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-fishing-games__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  /* No filter property */
}

.page-fishing-games__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games__card-content h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-fishing-games__card-content h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-fishing-games__card-content h3 a:hover {
  text-decoration: underline;
}

.page-fishing-games__card-content p {
  font-size: 1em;
  color: var(--default-text-color);
  margin-bottom: 15px;
}

.page-fishing-games__btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%; /* For mobile */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.page-fishing-games__btn-primary:hover {
  background: #005f2c; /* Darker shade */
}

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

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

.page-fishing-games__promo-card {
  background: rgba(255, 255, 255, 0.1); /* Light transparent background on dark section */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--light-text-color);
}

.page-fishing-games__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
  /* No filter property */
}

.page-fishing-games__promo-card h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--light-text-color);
}

.page-fishing-games__promo-card p {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
}

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

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

.page-fishing-games__security-item {
  background: var(--secondary-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--default-text-color);
}

.page-fishing-games__security-item img {
  width: 100%;
  height: 200px; /* Fixed height */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
  /* No filter property */
}

.page-fishing-games__security-item h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%; /* For mobile */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

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

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

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

/* FAQ容器样式 */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* 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展开 trạng thái - 🚨 Sử dụng!important và đủ lớn 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 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--default-text-color);
}

/* Vấn đề phong cách */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* Tiêu đề câu hỏi */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn h3 chặn sự kiện click */
  color: var(--primary-color);
}

/* Biểu tượng chuyển đổi */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
  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(--primary-color);
}

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

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

.page-fishing-games__news-card {
  background: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-fishing-games__news-card img {
  width: 100%;
  height: 220px; /* Fixed height */
  object-fit: cover;
  /* No filter property */
}

.page-fishing-games__news-card .page-fishing-games__card-content {
  padding: 20px;
  flex-grow: 1;
}

.page-fishing-games__news-card h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-fishing-games__news-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-fishing-games__news-card h3 a:hover {
  text-decoration: underline;
}

.page-fishing-games__news-date {
  font-size: 0.85em;
  color: #777;
  margin-top: 10px;
  display: block;
}

/* Utility classes */
.page-fishing-games__text-center {
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 2.8em;
  }
  .page-fishing-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Hero Section Mobile */
  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-fishing-games__hero-image img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-fishing-games__main-title {
    font-size: 2em;
  }
  
  .page-fishing-games__intro-text {
    font-size: 1em;
  }
  
  .page-fishing-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}