/* CSS Reset & Base Styles (provided by shared.css) */

/* Page Specific Styles for Bắn Cá (fishing-games) */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text on light background */
  background-color: var(--secondary-color, #FFFFFF);
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #f0f8ff; /* Light blue background */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 550px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 550px; /* Ensure image doesn't get too tall */
}

.page-fishing-games__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect */
  background: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.page-fishing-games__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-fishing-games__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555555;
  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: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-fishing-games__btn-secondary:hover {
  background-color: #e0f2ff;
  color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-fishing-games__section {
  padding: 60px 0;
  background-color: var(--secondary-color, #FFFFFF);
}

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

.page-fishing-games__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.page-fishing-games__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-fishing-games__section-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-fishing-games__content-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-fishing-games__content-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333333;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-fishing-games__content-block p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 15px;
}

.page-fishing-games__list {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-fishing-games__list-item {
  font-size: 1rem;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 8px;
}

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

.page-fishing-games__product-card,
.page-fishing-games__promo-card,
.page-fishing-games__tip-card {
  background-color: #FFFFFF;
  border-radius: 15px;
  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;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Ensure consistent card height */
}

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

.page-fishing-games__product-image,
.page-fishing-games__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__product-title,
.page-fishing-games__promo-title,
.page-fishing-games__tip-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #26A9E0;
  margin: 20px 15px 10px;
}

.page-fishing-games__product-description,
.page-fishing-games__promo-description {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.5;
  padding: 0 20px;
  flex-grow: 1;
}

.page-fishing-games__btn-card,
.page-fishing-games__btn-promo,
.page-fishing-games__btn-link {
  display: inline-block;
  padding: 12px 25px;
  margin: 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  max-width: calc(100% - 40px); /* Account for margin */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-card:hover,
.page-fishing-games__btn-promo:hover,
.page-fishing-games__btn-link:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
}

/* How-To-Play Section */
.page-fishing-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-fishing-games__step-card {
  background-color: #FFFFFF;
  border-radius: 15px;
  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;
}

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

.page-fishing-games__step-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-fishing-games__step-card p {
  font-size: 1rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Safety Section */
.page-fishing-games__safety-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-fishing-games__feature-item {
  background-color: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  padding: 30px;
  text-align: center;
}

.page-fishing-games__feature-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-fishing-games__feature-item p {
  font-size: 1rem;
  color: #666666;
  line-height: 1.6;
}

/* FAQ Section */
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover {
  background: #f5f5f5;
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 25px 25px;
  background: #fdfdfd;
  border-radius: 0 0 10px 10px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
}

/* All images responsive base */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__container {
    padding: 20px 30px;
  }

  .page-fishing-games__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .page-fishing-games__hero-description {
    font-size: 1rem;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  .page-fishing-games__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
  }

  .page-fishing-games__section-description {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .page-fishing-games__content-subtitle {
    font-size: 1.6rem;
  }

  .page-fishing-games__product-card,
  .page-fishing-games__promo-card,
  .page-fishing-games__tip-card {
    min-height: 420px;
  }

  .page-fishing-games__product-title,
  .page-fishing-games__promo-title,
  .page-fishing-games__tip-title {
    font-size: 1.4rem;
  }

  .page-fishing-games__step-title,
  .page-fishing-games__feature-title {
    font-size: 1.4rem;
  }

  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-fishing-games__faq-qtext {
    font-size: 1rem;
  }
  .page-fishing-games__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
  }
  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-fishing-games__hero-section {
    padding-top: 10px; /* Small top padding */
    flex-direction: column;
    text-align: center;
  }

  .page-fishing-games__hero-image-wrapper {
    max-height: 300px; /* Smaller max height for mobile */
  }

  .page-fishing-games__hero-image {
    object-fit: contain !important; /* Prevent cropping */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    max-height: 300px !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-fishing-games__hero-content {
    margin-top: -50px; /* Less overlap */
    padding: 25px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .page-fishing-games__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-fishing-games__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  /* 按钮与按钮容器 */
  .page-fishing-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-card,
  .page-fishing-games__btn-promo,
  .page-fishing-games__btn-link,
  .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;
    margin-left: 0;
    margin-right: 0;
  }

  .page-fishing-games__section {
    padding: 40px 0;
  }

  .page-fishing-games__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 20px;
  }

  .page-fishing-games__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-fishing-games__content-block {
    padding: 0 10px;
  }

  .page-fishing-games__content-subtitle {
    font-size: 1.4rem;
    margin-top: 30px;
  }

  .page-fishing-games__content-block p,
  .page-fishing-games__list-item {
    font-size: 0.95rem;
  }

  /* Sản phẩm/Lưới quảng cáo (Product/Promotion Grid) */
  .page-fishing-games__products-grid,
  .page-fishing-games__promotions-grid,
  .page-fishing-games__tips-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 25px;
    margin-top: 20px;
  }

  .page-fishing-games__products-section,
  .page-fishing-games__promotions-section {
    overflow-x: hidden; /* Prevent horizontal scroll from cards */
  }

  .page-fishing-games__product-card,
  .page-fishing-games__promo-card,
  .page-fishing-games__tip-card {
    min-height: auto; /* Allow height to adjust */
    padding-bottom: 10px;
  }

  .page-fishing-games__product-title,
  .page-fishing-games__promo-title,
  .page-fishing-games__tip-title {
    font-size: 1.3rem;
    margin: 15px 10px 8px;
  }

  .page-fishing-games__product-description,
  .page-fishing-games__promo-description {
    font-size: 0.9rem;
    padding: 0 15px;
  }

  .page-fishing-games__btn-card,
  .page-fishing-games__btn-promo,
  .page-fishing-games__btn-link {
    margin: 15px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Hướng dẫn chơi (How-to-Play Section) */
  .page-fishing-games__steps-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 25px;
  }

  .page-fishing-games__step-title,
  .page-fishing-games__feature-title {
    font-size: 1.3rem;
  }

  .page-fishing-games__step-card p,
  .page-fishing-games__feature-item p {
    font-size: 0.95rem;
  }

  /* FAQ Section */
  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px;
  }
  .page-fishing-games__faq-qtext {
    font-size: 0.95rem;
  }
  .page-fishing-games__faq-toggle {
    font-size: 22px;
    margin-left: 10px;
    width: 25px;
  }
  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.9rem;
  }

  /* General Image & Container Adaptations */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__content-area,
  .page-fishing-games__text-block,
  .page-fishing-games__hero-section,
  .page-fishing-games__games-showcase-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__safety-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !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; /* Ensure buttons wrap */
    gap: 10px;
  }
}