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

.page-fishing-games {
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background); /* Default background color for the page body */
}

/* Ensure body text contrast */
.page-fishing-games p,
.page-fishing-games li,
.page-fishing-games span,
.page-fishing-games div {
  color: var(--text-secondary); /* Default for general text */
}

.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: var(--text-main); /* Default for headings */
}

/* Override specific heading colors if needed */
.page-fishing-games__main-title {
  color: var(--gold);
}
.page-fishing-games__section-title {
  color: var(--gold);
}
.page-fishing-games__step-title {
  color: var(--gold);
}
.page-fishing-games__faq-question {
  color: var(--text-main);
}
.page-fishing-games__faq-item[open] > .page-fishing-games__faq-question {
  color: var(--gold);
}

/* Ensuring contrast for links within text */
.page-fishing-games a:not([class*="btn"]):not([class*="button"]) {
  color: var(--gold); /* Use gold for in-text links */
  text-decoration: underline;
}
.page-fishing-games a:not([class*="btn"]):not([class*="button"]):hover {
  color: var(--glow-color);
  text-decoration: none;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 60px; /* Space below hero content */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--deep-green); /* Fallback background */
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure image is not too small */
  min-width: 200px;
}

.page-fishing-games__hero-content {
  position: relative; /* Not absolute, for "image above, text below" */
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin: 20px auto;
  color: var(--text-main); /* Light text on potentially dark hero image */
  z-index: 2;
}

.page-fishing-games__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

.page-fishing-games__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-play,
.page-fishing-games__btn-claim,
.page-fishing-games__btn-text {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-fishing-games__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* Slightly different gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-secondary {
  background: var(--card-bg); /* Darker background for secondary */
  color: var(--gold);
  border: 2px solid var(--gold);
}

.page-fishing-games__btn-secondary:hover {
  background: var(--gold);
  color: var(--card-bg);
  transform: translateY(-2px);
}

.page-fishing-games__btn-play,
.page-fishing-games__btn-claim {
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
  font-size: 0.95rem;
  padding: 12px 25px;
  border-radius: 6px;
}

.page-fishing-games__btn-play:hover,
.page-fishing-games__btn-claim:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateY(-1px);
}

.page-fishing-games__btn-text {
  background: none;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 15px;
  font-size: 0.9rem;
  border-radius: 5px;
}

.page-fishing-games__btn-text:hover {
  background: var(--gold);
  color: var(--background);
}


/* General Section Styles */
.page-fishing-games__advantages-section,
.page-fishing-games__popular-games-section,
.page-fishing-games__guide-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-final-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: var(--card-bg); /* Use card background for sections */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-fishing-games__section-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

/* Card Grid */
.page-fishing-games__card-grid,
.page-fishing-games__game-list,
.page-fishing-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-fishing-games__card,
.page-fishing-games__game-card,
.page-fishing-games__promo-card {
  background-color: var(--background); /* Use a slightly different background for cards */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 300px; /* Ensure cards have a minimum height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--divider);
}

.page-fishing-games__card:hover,
.page-fishing-games__game-card:hover,
.page-fishing-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__card-image,
.page-fishing-games__game-image,
.page-fishing-games__promo-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block; /* Ensure no extra space below image */
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  filter: none !important; /* Ensure no filter is applied */
}

.page-fishing-games__card-title,
.page-fishing-games__game-title,
.page-fishing-games__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-fishing-games__card-text,
.page-fishing-games__game-description,
.page-fishing-games__promo-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1; /* Allow text to take available space */
  margin-bottom: 15px;
}

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

.page-fishing-games__step-item {
  background-color: var(--background);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--divider);
}

.page-fishing-games__step-number {
  width: 60px;
  height: 60px;
  background: var(--button-gradient);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-fishing-games__step-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

.page-fishing-games__faq-item {
  background-color: var(--background);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--divider);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for <details> */
}
.page-fishing-games__faq-item[open] > .page-fishing-games__faq-question {
    background-color: var(--deep-green); /* Highlight when open */
    color: var(--gold);
}

.page-fishing-games__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

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

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

.page-fishing-games__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  color: var(--gold);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  color: var(--text-main); /* Toggle color when open */
}

.page-fishing-games__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--background);
}
.page-fishing-games__faq-answer p {
  margin-bottom: 0;
  color: var(--text-secondary); /* Ensure paragraph text color */
}


/* Final CTA Section */
.page-fishing-games__cta-final-section {
  text-align: center;
  background-color: var(--deep-green); /* Use a strong background for final CTA */
  color: var(--text-main);
  padding: 60px 20px;
}

.page-fishing-games__cta-final-section .page-fishing-games__section-title {
  color: var(--gold);
}

.page-fishing-games__cta-final-section .page-fishing-games__section-intro {
  color: var(--text-main);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content {
    padding: 15px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }
  .page-fishing-games__description {
    font-size: 1rem;
  }
  .page-fishing-games__section-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  /* Images */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Containers for images, videos, and buttons */
  .page-fishing-games__hero-section,
  .page-fishing-games__advantages-section,
  .page-fishing-games__popular-games-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-final-section,
  .page-fishing-games__card,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card,
  .page-fishing-games__step-item,
  .page-fishing-games__faq-item,
  .page-fishing-games__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Specific padding for hero section top (body handles header offset) */
  .page-fishing-games__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px !important;
  }

  /* Buttons */
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-play,
  .page-fishing-games__btn-claim,
  .page-fishing-games__btn-text {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  .page-fishing-games__card-grid,
  .page-fishing-games__game-list,
  .page-fishing-games__promo-grid,
  .page-fishing-games__steps-list {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-fishing-games__card,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card {
    padding: 20px;
  }

  .page-fishing-games__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-fishing-games__faq-answer {
    padding: 10px 20px 15px;
  }
}