/* style/fishing-games.css */
:root {
  --bj39-primary-color: #11A84E;
  --bj39-secondary-color: #22C768;
  --bj39-bg-color: #08160F;
  --bj39-card-bg-color: #11271B;
  --bj39-text-main-color: #F2FFF6;
  --bj39-text-secondary-color: #A7D9B8;
  --bj39-border-color: #2E7A4E;
  --bj39-glow-color: #57E38D;
  --bj39-gold-color: #F2C14E;
  --bj39-divider-color: #1E3A2A;
  --bj39-deep-green-color: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* body đã padding-top: var(--header-offset) từ shared.css, không cần lặp lại ở đây */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--bj39-text-main-color); /* Mặc định chữ sáng trên nền tối */
  background-color: var(--bj39-bg-color); /* Nền tổng thể tối */
}

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  color: var(--bj39-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-fishing-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--bj39-text-secondary-color);
  text-align: center;
}

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

.page-fishing-games__card {
  background-color: var(--bj39-card-bg-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--bj39-border-color);
  color: var(--bj39-text-main-color);
}

.page-fishing-games__card-image {
  width: 100%;
  height: 250px; /* Chiều cao cố định cho ảnh thẻ */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-fishing-games__card-text {
  font-size: 1em;
  color: var(--bj39-text-secondary-color);
  line-height: 1.6;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo nút không tràn */
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  margin-right: 20px;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-fishing-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-fishing-games__btn-secondary {
  background: transparent;
  color: var(--bj39-primary-color);
  border: 2px solid var(--bj39-primary-color);
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.2);
}

.page-fishing-games__btn-secondary:hover {
  background: var(--bj39-primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.4);
}

/* 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ỏ, dựa vào body padding-top */
  overflow: hidden;
  text-align: center;
  background-color: var(--bj39-deep-green-color); /* Nền cho hero section */
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Làm mờ ảnh để chữ dễ đọc hơn */
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
}

.page-fishing-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* H1 font size */
  color: var(--bj39-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  letter-spacing: 1px;
}

.page-fishing-games__description {
  font-size: 1.2em;
  color: var(--bj39-text-main-color);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên di động */
}

/* Intro Section */
.page-fishing-games__intro-section {
  padding: 80px 0;
  background-color: var(--bj39-bg-color);
}

/* Advantages Section */
.page-fishing-games__advantages-section {
  padding: 80px 0;
  background-color: var(--bj39-deep-green-color);
}

/* Popular Games Section */
.page-fishing-games__popular-games-section {
  padding: 80px 0;
  background-color: var(--bj39-bg-color);
}

.page-fishing-games__game-list .page-fishing-games__card-image {
  height: 200px; /* Chiều cao ảnh game card */
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
  padding: 80px 0;
  background-color: var(--bj39-deep-green-color);
}

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

.page-fishing-games__step-item {
  background-color: var(--bj39-card-bg-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid var(--bj39-border-color);
  text-align: left;
}

.page-fishing-games__step-title {
  font-size: 1.4em;
  color: var(--bj39-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-fishing-games__step-text {
  font-size: 1em;
  color: var(--bj39-text-secondary-color);
  line-height: 1.6;
}

/* Tips & Tricks Section */
.page-fishing-games__tips-tricks-section {
  padding: 80px 0;
  background-color: var(--bj39-bg-color);
}

.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.page-fishing-games__tip-item {
  background-color: var(--bj39-card-bg-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid var(--bj39-border-color);
  text-align: left;
}

.page-fishing-games__tip-title {
  font-size: 1.4em;
  color: var(--bj39-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-fishing-games__tip-text {
  font-size: 1em;
  color: var(--bj39-text-secondary-color);
  line-height: 1.6;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 80px 0;
  background-color: var(--bj39-deep-green-color);
}

.page-fishing-games__promo-grid .page-fishing-games__card-image {
  height: 200px;
}

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

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

.page-fishing-games__faq-item {
  background-color: var(--bj39-card-bg-color);
  border: 1px solid var(--bj39-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-fishing-games__faq-item details > summary {
  list-style: none; /* Hide default marker */
}

.page-fishing-games__faq-item details > summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--bj39-text-main-color);
  cursor: pointer;
  background-color: var(--bj39-card-bg-color);
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
  background-color: var(--bj39-deep-green-color);
}

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

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--bj39-primary-color);
  transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--bj39-text-secondary-color);
  line-height: 1.6;
}

/* Contact Section */
.page-fishing-games__contact-section {
  padding: 80px 0;
  background-color: var(--bj39-deep-green-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__section-title {
    font-size: 2em;
  }
  .page-fishing-games__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-fishing-games__description {
    font-size: 1.1em;
  }
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    margin-right: 0;
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-fishing-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-fishing-games__description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-fishing-games__hero-section,
  .page-fishing-games__intro-section,
  .page-fishing-games__advantages-section,
  .page-fishing-games__popular-games-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__tips-tricks-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__contact-section {
    padding: 40px 0;
  }
  .page-fishing-games__container {
    padding: 0 15px;
  }
  .page-fishing-games__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-fishing-games__card {
    padding: 20px;
  }
  .page-fishing-games__card-image {
    height: 180px;
  }
  .page-fishing-games__card-title {
    font-size: 1.3em;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;
    font-size: 1em;
    margin-right: 0;
  }
  .page-fishing-games__cta-buttons {
    gap: 10px;
  }
  .page-fishing-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-fishing-games__faq-answer {
    padding: 0 20px 15px 20px;
  }
  /* Mobile image adaptation */
  .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__intro-section,
  .page-fishing-games__advantages-section,
  .page-fishing-games__popular-games-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__tips-tricks-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__contact-section {
    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; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }
  /* Mobile button adaptation */
  .page-fishing-games__cta-button,
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games a[class*="button"],
  .page-fishing-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__cta-buttons,
  .page-fishing-games__button-group,
  .page-fishing-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Thêm để đảm bảo nút xếp dọc trên mobile */
  }
}

@media (max-width: 480px) {
  .page-fishing-games__section-title {
    font-size: 1.5em;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-fishing-games__card-image {
    height: 150px;
  }
}