/* style/fishing-games.css */

/* BEM Naming: .page-fishing-games__element-name */

/* Base styles for the fishing games page */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--background, #08160F); /* Default background color from custom palette */
}

/* Sections */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: var(--deep-green, #0A4B2C); /* Use a darker green for hero */
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-fishing-games__hero-content {
  position: relative; /* Ensure content is above image if any overlap */
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

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

.page-fishing-games__intro-section, 
.page-fishing-games__games-list-section, 
.page-fishing-games__promotions-section, 
.page-fishing-games__faq-section {
  background-color: var(--background, #08160F);
  padding: 60px 20px;
  color: var(--text-main, #F2FFF6);
}

.page-fishing-games__features-section, 
.page-fishing-games__guide-section, 
.page-fishing-games__why-choose-us-section, 
.page-fishing-games__cta-section {
  background-color: var(--card-bg, #11271B); /* Darker background for contrast */
  padding: 60px 20px;
  color: var(--text-main, #F2FFF6);
}

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

.page-fishing-games__section-title {
  text-align: center;
  font-weight: 700;
  color: var(--gold, #F2C14E); /* Gold for section titles */
  margin-bottom: 40px;
  font-size: 2.2em;
}

.page-fishing-games__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-secondary, #A7D9B8);
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-fishing-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--glow, #57E38D);
}

.page-fishing-games__btn-secondary:hover {
  background-color: var(--glow, #57E38D);
  color: var(--card-bg, #11271B);
}

.page-fishing-games__large-button {
  padding: 16px 35px;
  min-width: 200px;
}

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

.page-fishing-games__feature-card {
  background-color: var(--background, #08160F);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border, #2E7A4E);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__feature-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-fishing-games__feature-title {
  font-size: 1.4em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-fishing-games__feature-description {
  color: var(--text-secondary, #A7D9B8);
}

/* Games List Grid */
.page-fishing-games__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-fishing-games__game-card {
  background-color: var(--card-bg, #11271B);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border, #2E7A4E);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-fishing-games__game-title {
  font-size: 1.5em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-fishing-games__game-description {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-fishing-games__guide-step {
  background-color: var(--background, #08160F);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid var(--divider, #1E3A2A);
}

.page-fishing-games__guide-title {
  font-size: 1.6em;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
}

.page-fishing-games__guide-button {
  margin-top: 15px;
}

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

.page-fishing-games__promo-card {
  background-color: var(--card-bg, #11271B);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border, #2E7A4E);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-fishing-games__promo-title {
  font-size: 1.5em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-fishing-games__promo-description {
  color: var(--text-secondary, #A7D9B8);
}

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

/* Why Choose Us Section */
.page-fishing-games__why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-fishing-games__why-item {
  background-color: var(--background, #08160F);
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid var(--glow, #57E38D);
  font-size: 1.1em;
  color: var(--text-main, #F2FFF6);
}

.page-fishing-games__why-item strong {
  color: var(--gold, #F2C14E);
}

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

.page-fishing-games__faq-item {
  background-color: var(--card-bg, #11271B);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border, #2E7A4E);
  overflow: hidden;
}

.page-fishing-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C); /* Darker green for summary */
  color: var(--text-main, #F2FFF6);
  font-weight: bold;
  font-size: 1.1em;
}

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

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

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

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

.page-fishing-games__faq-answer {
  padding: 20px;
  background-color: var(--background, #08160F);
  color: var(--text-secondary, #A7D9B8);
  font-size: 1em;
  line-height: 1.7;
  border-top: 1px solid var(--divider, #1E3A2A);
}

/* Final CTA Section */
.page-fishing-games__cta-content {
  text-align: center;
  padding: 40px 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content {
    padding: 15px;
  }

  .page-fishing-games__main-title {
    font-size: 2.5em;
  }

  .page-fishing-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

  .page-fishing-games__hero-content {
    padding: 10px;
  }

  .page-fishing-games__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

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

  .page-fishing-games__hero-cta-buttons {
    flex-direction: column;
    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;
    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__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking on mobile */
  }

  .page-fishing-games__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  /* Image responsive for mobile */
  .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 {
    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 already handles --header-offset */
  }

  /* Ensure content area images are not too small */
  .page-fishing-games__feature-icon,
  .page-fishing-games__game-image,
  .page-fishing-games__promo-image {
    min-width: 200px;
    min-height: 150px; /* Adjusted min height for better card image display */
    object-fit: cover;
  }

  .page-fishing-games__faq-item summary {
    padding: 15px;
    font-size: 1em;
  }

  .page-fishing-games__faq-answer {
    padding: 15px;
  }

  .page-fishing-games__guide-step {
    padding: 20px;
  }

  .page-fishing-games__guide-title {
    font-size: 1.4em;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__main-title {
    font-size: 1.8em;
  }

  .page-fishing-games__section-title {
    font-size: 1.6em;
  }

  .page-fishing-games__hero-section,
  .page-fishing-games__intro-section,
  .page-fishing-games__features-section,
  .page-fishing-games__games-list-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__why-choose-us-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    padding: 40px 15px;
  }
}

/* Color Contrast Fixes (if needed, based on body background) */
/* Assuming body background is dark (from #08160F), text is light #F2FFF6 */
/* If a section has a light background, its text should be dark */
.page-fishing-games__light-bg {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-fishing-games__dark-bg {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

/* Specific overrides for text on contrasting backgrounds */
.page-fishing-games__intro-section strong, 
.page-fishing-games__games-list-section strong, 
.page-fishing-games__promotions-section strong {
  color: var(--gold, #F2C14E);
}