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

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background); /* Main background color */
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: var(--card-bg); /* Darker background for hero */
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for image container */
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-fishing-games__hero-content {
  text-align: center;
  max-width: 900px;
  color: var(--text-main);
  z-index: 1; /* Ensure text is above any potential background elements */
}

.page-fishing-games__hero-title {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

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

.page-fishing-games__section-title {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold); /* Use gold for titles */
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.page-fishing-games__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark Background Sections */
.page-fishing-games__dark-section {
  background-color: var(--card-bg); /* Use card BG for dark sections */
  color: var(--text-main);
  padding: 80px 0;
}

/* Light Background Sections (default) */
.page-fishing-games__introduction-section,
.page-fishing-games__features-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__faq-section {
  background-color: var(--background); /* Use main background for light sections */
  color: var(--text-main);
  padding: 80px 0;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding in width */
  text-align: center;
}

.page-fishing-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  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, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__btn-secondary:hover {
  background-color: var(--gold);
  color: var(--card-bg); /* Dark text on gold hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
}

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

.page-fishing-games__feature-card,
.page-fishing-games__game-card,
.page-fishing-games__promotion-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--divider);
}

.page-fishing-games__feature-image,
.page-fishing-games__game-image,
.page-fishing-games__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency in cards */
  object-fit: cover;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
}

.page-fishing-games__feature-title,
.page-fishing-games__game-title,
.page-fishing-games__promotion-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
  padding: 0 15px;
}

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

.page-fishing-games__btn-play {
  margin-top: auto; /* Push button to bottom */
}

.page-fishing-games__view-all-games,
.page-fishing-games__view-all-promotions {
  text-align: center;
  margin-top: 50px;
}

/* How to Play Steps */
.page-fishing-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-fishing-games__step-item {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--divider);
}

.page-fishing-games__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 15px;
}

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

/* FAQ Section */
.page-fishing-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--divider);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__faq-item {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider);
}

.page-fishing-games__faq-item:last-child {
  border-bottom: none;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-fishing-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-fishing-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Final CTA */
.page-fishing-games__cta-final-section {
  padding: 100px 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-fishing-games__hero-description {
    font-size: 1.1rem;
  }
  .page-fishing-games__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-fishing-games__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

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

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px; /* Limit button group width on mobile */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

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

  .page-fishing-games__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

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

  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__promotion-card,
  .page-fishing-games__step-item {
    padding: 25px 20px;
  }

  .page-fishing-games__feature-title,
  .page-fishing-games__game-title,
  .page-fishing-games__promotion-title {
    font-size: 1.25rem;
  }

  .page-fishing-games__feature-description,
  .page-fishing-games__game-description,
  .page-fishing-games__promotion-description,
  .page-fishing-games__step-description {
    font-size: 0.9rem;
  }

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

  .page-fishing-games__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }

  /* Mobile image responsiveness */
  .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,
  .page-fishing-games__hero-image-wrapper { /* Ensure containers also adapt */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Remove extra padding from container when it's already on a section */
  .page-fishing-games__introduction-section > .page-fishing-games__container,
  .page-fishing-games__features-section > .page-fishing-games__container,
  .page-fishing-games__how-to-play-section > .page-fishing-games__container,
  .page-fishing-games__faq-section > .page-fishing-games__container,
  .page-fishing-games__promotions-section > .page-fishing-games__container,
  .page-fishing-games__cta-final-section > .page-fishing-games__container {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-fishing-games__video-section { /* Placeholder, not used in HTML but for rule compliance */
    padding-top: 10px !important;
  }

  .page-fishing-games__video-container,
  .page-fishing-games__video-wrapper { /* Placeholder, not used in HTML but for rule compliance */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-fishing-games video { /* Placeholder, not used in HTML but for rule compliance */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}