/* style/fishing-games.css */

/* Cấu trúc chung */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Mặc định chữ trắng cho nền tối */
  background-color: var(--dark-bg-1); /* Sử dụng biến nền tối từ shared.css */
}

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

.page-fishing-games__section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
  line-height: 1.2;
}

.page-fishing-games p {
  margin-bottom: 1em;
  font-size: 16px;
}

.page-fishing-games__dark-section {
  background-color: #26A9E0; /* Màu chủ đạo làm nền */
  color: #ffffff;
  padding: 60px 0;
}

.page-fishing-games__light-bg {
  background-color: #ffffff;
  color: #333333; /* Chữ tối trên nền sáng */
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Padding-top nhỏ, body đã xử lý --header-offset */
  text-align: center;
  overflow: hidden;
  background-color: #0d0d0d;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao của ảnh hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-fishing-games__hero-content {
  position: relative; /* Đảm bảo nội dung không bị overlay */
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px;
  z-index: 1;
}

.page-fishing-games__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-fishing-games__description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-fishing-games__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-fishing-games__btn-primary:hover {
  background-color: #1a8ac7;
  border-color: #1a8ac7;
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-fishing-games__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Intro Section */
.page-fishing-games__intro-section p {
  font-size: 17px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Features Section */
.page-fishing-games__features-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Nền tối hơn */
  color: #ffffff;
}

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

.page-fishing-games__feature-card {
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-fishing-games__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-fishing-games__feature-card p {
  font-size: 15px;
  color: #555555;
}

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

.page-fishing-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  counter-reset: step-counter;
}

.page-fishing-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 280px; /* Đảm bảo chiều cao tối thiểu */
}

.page-fishing-games__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.page-fishing-games__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-fishing-games__step-item p {
  font-size: 16px;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-fishing-games__btn-link {
  display: inline-block;
  margin-top: 20px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-fishing-games__btn-link:hover {
  color: #ffffff;
}

/* Game Types Section */
.page-fishing-games__game-types-section {
  padding: 60px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-fishing-games__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-fishing-games__game-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-fishing-games__game-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-fishing-games__game-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-fishing-games__game-name {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-fishing-games__game-item p {
  font-size: 15px;
  color: #f0f0f0;
}

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

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

.page-fishing-games__promo-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-fishing-games__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-fishing-games__promo-item p {
  font-size: 16px;
  color: #f0f0f0;
  flex-grow: 1;
}

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

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

/* Tips Section */
.page-fishing-games__tips-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-fishing-games__tip-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  padding: 25px;
}

.page-fishing-games__tip-title {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-fishing-games__tip-item p {
  font-size: 16px;
  color: #f0f0f0;
}

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

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

.page-fishing-games__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  outline: none;
  user-select: none;
}

.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-fishing-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-fishing-games__faq-qtext {
  flex-grow: 1;
}

.page-fishing-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  content: '−';
}

.page-fishing-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-fishing-games__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-fishing-games__cta-final-section p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 0 15px;
  }

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

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

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

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    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__intro-section,
  .page-fishing-games__features-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__game-types-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-final-section {
    padding: 40px 0;
  }

  .page-fishing-games__hero-image {
    max-height: 400px;
  }

  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-section,
  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__hero-content,
  .page-fishing-games__cta-buttons,
  .page-fishing-games__features-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__game-list,
  .page-fishing-games__promo-list,
  .page-fishing-games__tips-list,
  .page-fishing-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__hero-section {
    padding-top: 10px !important; 
  }

  .page-fishing-games__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-fishing-games__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 15px;
  }
}

/* CSS for color contrast on light backgrounds */
.page-fishing-games__feature-card.page-fishing-games__light-bg {
  background-color: #ffffff;
  color: #333333; 
}

.page-fishing-games__feature-card.page-fishing-games__light-bg .page-fishing-games__card-title {
  color: #26A9E0;
}

.page-fishing-games__feature-card.page-fishing-games__light-bg p {
  color: #555555;
}