/* General styles for the fishing-games page */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Main text color for dark background */
  background-color: #0D0E12; /* Page background color */
}

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

.page-fishing-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFB04D; /* Glow color for titles */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-fishing-games__section-description {
  font-size: 18px;
  color: #FFF3E6;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-fishing-games__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #0D0E12;
  color: #FFF3E6;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-fishing-games__hero-content {
  padding: 40px 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-fishing-games__hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #FFB04D;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-fishing-games__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
}

.page-fishing-games__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 0 15px rgba(255, 165, 58, 0.6);
}

.page-fishing-games__btn-secondary {
  background: #17191F;
  color: #FFA53A;
  border: 2px solid #A84F0C;
}

.page-fishing-games__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  border-color: #FFA53A;
}

/* Feature Cards */
.page-fishing-games__why-choose {
  background-color: #0D0E12;
}

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

.page-fishing-games__feature-card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid #A84F0C; /* Border */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.page-fishing-games__feature-icon {
  min-width: 200px;
  min-height: 200px;
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-fishing-games__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFB04D;
  margin-bottom: 15px;
}

.page-fishing-games__feature-text {
  font-size: 16px;
  color: #FFF3E6;
}

/* Popular Games */
.page-fishing-games__popular-games {
  background-color: #0D0E12;
}

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

.page-fishing-games__game-card {
  background-color: #17191F;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  border: 1px solid #A84F0C;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-fishing-games__game-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-fishing-games__game-name {
  font-size: 20px;
  font-weight: 600;
  color: #FFB04D;
  margin: 20px 15px 10px;
}

.page-fishing-games__game-name a {
  color: #FFB04D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-fishing-games__game-name a:hover {
  color: #FFA53A;
}

.page-fishing-games__game-description {
  font-size: 15px;
  color: #FFF3E6;
  padding: 0 15px 15px;
  flex-grow: 1; /* Push button to bottom */
}

.page-fishing-games__game-play-btn {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* How to Play */
.page-fishing-games__how-to-play {
  background-color: #0D0E12;
}

.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-color: #17191F;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid #A84F0C;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-fishing-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-fishing-games__step-title {
  font-size: 20px;
  font-weight: 600;
  color: #FFB04D;
  margin-bottom: 10px;
}

.page-fishing-games__step-text {
  font-size: 16px;
  color: #FFF3E6;
}

.page-fishing-games__cta-bottom {
    margin-top: 50px;
}

/* Promotions */
.page-fishing-games__promotions {
  background-color: #0D0E12;
}

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

.page-fishing-games__promo-card {
  background-color: #17191F;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  border: 1px solid #A84F0C;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-fishing-games__promo-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-fishing-games__promo-title {
  font-size: 20px;
  font-weight: 600;
  color: #FFB04D;
  margin: 20px 15px 10px;
}

.page-fishing-games__promo-title a {
  color: #FFB04D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-fishing-games__promo-title a:hover {
  color: #FFA53A;
}

.page-fishing-games__promo-text {
  font-size: 15px;
  color: #FFF3E6;
  padding: 0 15px 15px;
  flex-grow: 1;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  background-color: #0D0E12;
  padding-bottom: 80px;
}

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

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px; /* Slightly larger border-radius for cards */
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
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;
  color: #FFB04D; /* FAQ question color */
}
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: rgba(255, 165, 58, 0.1); /* Lighter hover background */
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-fishing-games__faq-toggle {
  font-size: 28px; /* Larger toggle for better visibility */
  font-weight: bold;
  color: #FFA53A; /* Toggle icon color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Larger hit area */
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
details.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  transform: rotate(45deg); /* Rotate to form 'X' or 'diagonal' */
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  background: #17191F; /* Card BG for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6; /* Answer text color */
  font-size: 16px;
}
.page-fishing-games__faq-answer p {
    margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 42px;
  }
  .page-fishing-games__section-title {
    font-size: 32px;
  }
  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__step-card,
  .page-fishing-games__promo-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__section {
    padding: 40px 0;
  }
  .page-fishing-games__hero-section {
    min-height: auto;
    padding-top: 10px;
  }
  .page-fishing-games__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-fishing-games__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-fishing-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-fishing-games__hero-cta-buttons,
  .page-fishing-games__cta-bottom {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
  }

  .page-fishing-games__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-fishing-games__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-fishing-games__features-grid,
  .page-fishing-games__game-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
  }
  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__step-card,
  .page-fishing-games__promo-card {
    padding: 20px;
  }
  .page-fishing-games__feature-icon {
    width: 150px; /* Adjust display size for mobile */
    height: 150px;
    min-width: 150px;
    min-height: 150px;
    margin-bottom: 15px;
  }
  .page-fishing-games__feature-title,
  .page-fishing-games__game-name,
  .page-fishing-games__step-title,
  .page-fishing-games__promo-title {
    font-size: 18px;
  }
  .page-fishing-games__feature-text,
  .page-fishing-games__game-description,
  .page-fishing-games__step-text,
  .page-fishing-games__promo-text {
    font-size: 14px;
  }
  .page-fishing-games__game-image,
  .page-fishing-games__promo-image {
    height: 180px; /* Adjust image height for mobile cards */
  }

  /* Mobile image adaptation */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-section,
  .page-fishing-games__why-choose,
  .page-fishing-games__popular-games,
  .page-fishing-games__how-to-play,
  .page-fishing-games__promotions,
  .page-fishing-games__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

/* Ensure color contrast for all text elements */
.page-fishing-games h1, .page-fishing-games h2, .page-fishing-games h3, .page-fishing-games h4, .page-fishing-games h5, .page-fishing-games h6 {
    color: #FFB04D; /* Titles use Glow color */
}
.page-fishing-games p, .page-fishing-games li, .page-fishing-games__feature-text, .page-fishing-games__game-description, .page-fishing-games__step-text, .page-fishing-games__promo-text, .page-fishing-games__faq-answer {
    color: #FFF3E6; /* Main text uses Text Main color */
}
.page-fishing-games__dark-bg {
  background: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
}
.page-fishing-games__btn-primary {
  color: #FFF3E6; /* Text Main */
}
.page-fishing-games__btn-secondary {
  color: #FFA53A; /* Auxiliary color */
}

/* Specific button styles for mobile to ensure proper wrapping and spacing */
@media (max-width: 768px) {
    .page-fishing-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100%;
        margin: 0;
    }
}
.page-fishing-games__cta-bottom .page-fishing-games__btn-primary {
    width: auto; /* Reset for desktop */
    margin: 0;
}
@media (max-width: 768px) {
    .page-fishing-games__cta-bottom .page-fishing-games__btn-primary {
        width: 100%;
        max-width: 100%;
    }
}