.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--background-color, #08160F); /* Fallback to default if var not set */
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
}

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

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to maintain aspect ratio */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-fishing-games__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-fishing-games__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-fishing-games__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-fishing-games__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-fishing-games__btn-secondary:hover {
  background-color: var(--border, #2E7A4E);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 122, 78, 0.4);
}

.page-fishing-games__introduction-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
  padding: 60px 20px;
}

.page-fishing-games__game-showcase-section,
.page-fishing-games__features-section,
.page-fishing-games__video-section,
.page-fishing-games__call-to-action-section {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
  padding: 60px 20px;
}

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

.page-fishing-games__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-fishing-games__section-subtitle {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__text-block {
  font-size: 1em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  text-align: justify;
}

.page-fishing-games__text-block strong {
  color: var(--glow, #57E38D);
}

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

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

.page-fishing-games__game-card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px;
}

.page-fishing-games__game-card-title,
.page-fishing-games__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
}

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

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

.page-fishing-games__numbered-list,
.page-fishing-games__bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-fishing-games__list-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid var(--divider, #1E3A2A);
  color: var(--text-main, #F2FFF6);
}

.page-fishing-games__list-item:last-child {
  margin-bottom: 0;
}

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

.page-fishing-games__list-description {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-fishing-games__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-fishing-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  margin-top: 30px;
  width: 100%; /* Desktop width */
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

.page-fishing-games__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
  cursor: pointer;
}

.page-fishing-games__faq-list {
  margin-top: 30px;
}

.page-fishing-games__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  background-color: var(--deep-green, #0A4B2C);
  border-radius: 10px;
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

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

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

.page-fishing-games__faq-question:hover {
  background-color: var(--border, #2E7A4E);
}

.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-question .page-fishing-games__faq-toggle {
  content: '−';
}

.page-fishing-games__faq-answer {
  padding: 15px 20px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

/* Text color overrides based on custom palette */
.page-fishing-games__text-main {
  color: var(--text-main, #F2FFF6);
}

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

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

.page-fishing-games__light-bg {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

/* Mobile responsiveness */
@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__main-title {
    font-size: 2.2em;
  }

  .page-fishing-games__hero-description {
    font-size: 1em;
  }

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__introduction-section,
  .page-fishing-games__game-showcase-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__features-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__video-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__call-to-action-section {
    padding: 40px 15px;
  }

  .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: 2em;
  }

  .page-fishing-games__section-subtitle {
    font-size: 0.95em;
  }

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

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

  .page-fishing-games__game-card-image {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-fishing-games__list-item {
    padding: 15px;
  }

  .page-fishing-games__video-wrapper {
    padding-bottom: 56.25%; /* Maintain aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-fishing-games__video,
  .page-fishing-games__hero-image,
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

  .page-fishing-games__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__game-card,
  .page-fishing-games__feature-card,
  .page-fishing-games__list-item,
  .page-fishing-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* CSS for details tag to ensure toggle icon works without JS */
.page-fishing-games__faq-item summary {
  list-style: none;
}

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

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

.page-fishing-games__faq-item:not([open]) .page-fishing-games__faq-question .page-fishing-games__faq-toggle {
  content: '+';
}