/* Base styles for the fishing games page */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background is white */
}

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

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

.page-fishing-games__description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #555;
}

.page-fishing-games__text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: 600;
}

/* HERO Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  background-color: #017439; /* Brand color as background */
  color: #FFFFFF;
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, may crop */
  max-height: 600px;
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px 0;
  max-width: 900px;
}

.page-fishing-games__main-title {
  font-size: clamp(36px, 5vw, 52px); /* Use clamp for H1 */
  font-weight: 800;
  color: #FFFF00; /* Custom color for H1 */
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-fishing-games__hero-section .page-fishing-games__description {
  color: #FFFFFF;
  margin-bottom: 30px;
}

.page-fishing-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  max-width: 100%; /* Ensure buttons adapt */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background: #C30808; /* Custom color for primary button */
  color: #FFFF00; /* Custom color for primary button text */
}

.page-fishing-games__btn-primary:hover {
  background: #a50707;
  transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
  background: #FFFFFF;
  color: #017439;
  border-color: #017439;
}

.page-fishing-games__btn-secondary:hover {
  background: #f0f0f0;
  color: #005f2b;
  transform: translateY(-2px);
}

.page-fishing-games__cta-buttons--centered {
  margin-top: 40px;
  margin-bottom: 20px;
}

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

.page-fishing-games__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}

.page-fishing-games__article-body p {
  margin-bottom: 20px;
}

.page-fishing-games__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-width: 100%;
  min-width: 200px;
}

/* Why Choose Section */
.page-fishing-games__why-choose-section {
  padding: 60px 0;
  background: #017439; /* Dark background */
  color: #FFFFFF; /* Light text */
}

.page-fishing-games__why-choose-section .page-fishing-games__section-title {
  color: #FFFF00; /* Yellow title for contrast */
}

.page-fishing-games__why-choose-section .page-fishing-games__description {
  color: #f0f0f0;
}

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

.page-fishing-games__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.page-fishing-games__feature-card:hover {
  transform: translateY(-5px);
}

.page-fishing-games__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-fishing-games__feature-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Popular Games Section */
.page-fishing-games__popular-games-section {
  padding: 60px 0;
  background: #f9f9f9;
}

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

.page-fishing-games__game-card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-fishing-games__game-card:hover {
  transform: translateY(-5px);
}

.page-fishing-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__game-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__game-link {
  color: #017439;
  text-decoration: none;
}

.page-fishing-games__game-link:hover {
  text-decoration: underline;
}

.page-fishing-games__game-description {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-fishing-games__btn-play {
  display: inline-block;
  background: #C30808;
  color: #FFFF00;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-play:hover {
  background: #a50707;
}

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

.page-fishing-games__how-to-play-section .page-fishing-games__section-title {
  color: #FFFF00;
}

.page-fishing-games__how-to-play-section .page-fishing-games__description {
  color: #f0f0f0;
}

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

.page-fishing-games__step-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-fishing-games__step-number {
  font-size: 48px;
  font-weight: 800;
  color: #FFFF00;
  margin-bottom: 15px;
}

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

.page-fishing-games__step-description {
  font-size: 16px;
  color: #f0f0f0;
}

.page-fishing-games__content-image--large {
  max-width: 1000px;
  margin: 50px auto;
}

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

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

.page-fishing-games__promotion-card {
  background: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.page-fishing-games__promotion-card:hover {
  transform: translateY(-5px);
}

.page-fishing-games__promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__promotion-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  padding: 20px 20px 10px;
}

.page-fishing-games__promotion-description {
  font-size: 16px;
  color: #666;
  padding: 0 20px 20px;
}

.page-fishing-games__btn-details {
  display: inline-block;
  background: #017439;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-details:hover {
  background: #005f2b;
}

/* FAQ Section */
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Conclusion Section */
.page-fishing-games__conclusion-section {
  padding: 60px 0;
  background: #017439;
  color: #FFFFFF;
  text-align: center;
}

.page-fishing-games__conclusion-section .page-fishing-games__section-title {
  color: #FFFF00;
}

.page-fishing-games__conclusion-section .page-fishing-games__description {
  color: #f0f0f0;
}

/* Image responsiveness for all images */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Button and button container responsiveness */
.page-fishing-games__cta-buttons,
.page-fishing-games__button-group,
.page-fishing-games__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 15px;
  }

  .page-fishing-games__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .page-fishing-games__description {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
  }

  /* HERO Section Mobile */
  .page-fishing-games__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

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

  .page-fishing-games__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Remove aspect ratio constraint */
    max-height: 300px !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-fishing-games__hero-content {
    padding: 20px 15px 0;
  }

  .page-fishing-games__main-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .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;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Image & Container Responsiveness */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
  }
  
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__step-card,
  .page-fishing-games__promotion-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-fishing-games__article-body {
    font-size: 16px;
    text-align: left;
    padding: 0;
  }

  /* Why Choose Section Mobile */
  .page-fishing-games__why-choose-section {
    padding: 40px 0;
  }

  .page-fishing-games__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__feature-icon {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    min-width: unset;
    min-height: unset;
  }

  .page-fishing-games__feature-title {
    font-size: 20px;
  }

  /* Popular Games Section Mobile */
  .page-fishing-games__popular-games-section {
    padding: 40px 0;
  }

  .page-fishing-games__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__game-image {
    height: 180px;
    min-width: unset;
    min-height: unset;
  }

  .page-fishing-games__game-title {
    font-size: 20px;
  }

  .page-fishing-games__btn-play {
    padding: 10px 20px;
    font-size: 15px;
  }

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

  .page-fishing-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__step-number {
    font-size: 40px;
  }

  .page-fishing-games__step-title {
    font-size: 20px;
  }

  .page-fishing-games__content-image--large {
    margin: 30px auto;
  }

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

  .page-fishing-games__promotions-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__promotion-image {
    height: 180px;
    min-width: unset;
    min-height: unset;
  }

  .page-fishing-games__promotion-title {
    font-size: 20px;
  }

  .page-fishing-games__btn-details {
    padding: 10px 20px;
    font-size: 15px;
  }

  /* FAQ Section Mobile */
  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px;
  }
  .page-fishing-games__faq-qtext {
    font-size: 15px;
  }
  .page-fishing-games__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 15px 15px;
  }

  /* Conclusion Section Mobile */
  .page-fishing-games__conclusion-section {
    padding: 40px 0;
  }

  .page-fishing-games__cta-buttons--centered {
    margin-top: 30px;
  }
}

/* Media Queries for Tablet (max-width: 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-fishing-games__container {
    padding: 25px;
  }

  .page-fishing-games__section-title {
    font-size: 32px;
  }

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

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

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

  .page-fishing-games__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }

  .page-fishing-games__cta-buttons {
    gap: 15px;
  }

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

  .page-fishing-games__features-grid,
  .page-fishing-games__games-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__promotions-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-fishing-games__feature-icon {
    width: 90px;
  }

  .page-fishing-games__feature-title,
  .page-fishing-games__game-title,
  .page-fishing-games__promotion-title,
  .page-fishing-games__step-title {
    font-size: 20px;
  }

  .page-fishing-games__game-image,
  .page-fishing-games__promotion-image {
    height: 200px;
  }

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

  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 16px 18px;
  }
  .page-fishing-games__faq-qtext {
    font-size: 16px;
  }
  .page-fishing-games__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }
  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 18px 18px;
  }
}