/* style/fishing-games.css */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches body background */
}

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

.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #017439, #004d2a);
  overflow: hidden;
  min-height: 600px;
}

.page-fishing-games__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-fishing-games__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.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 {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-fishing-games__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-fishing-games__btn-primary:hover {
  background-color: #005a20;
  border-color: #005a20;
  transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #ffffff;
}

.page-fishing-games__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-fishing-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #017439; /* Brand color for titles on light background */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__introduction {
  background-color: #ffffff;
  color: #333333;
}

.page-fishing-games__introduction .page-fishing-games__section-title {
  color: #017439;
}

.page-fishing-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: inherit;
}

.page-fishing-games__inline-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-fishing-games__inline-link:hover {
  text-decoration: underline;
}

.page-fishing-games__game-types {
  background-color: #1a1a1a; /* Darker background for contrast */
  color: #ffffff;
}

.page-fishing-games__game-types .page-fishing-games__section-title {
  color: #ffffff;
}

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

.page-fishing-games__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-fishing-games__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-fishing-games__card-link {
  text-decoration: none;
  color: #017439;
}

.page-fishing-games__card-link:hover {
  text-decoration: underline;
}

.page-fishing-games__card-description {
  font-size: 1em;
  line-height: 1.5;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-fishing-games__card-button {
  margin-top: auto;
  align-self: flex-start;
}

.page-fishing-games__how-to-play {
  background-color: #f8f8f8;
  color: #333333;
}

.page-fishing-games__how-to-play .page-fishing-games__section-title {
  color: #017439;
}

.page-fishing-games__numbered-list,
.page-fishing-games__bullet-list {
  text-align: left;
  max-width: 800px;
  margin: 20px auto;
  padding-left: 25px;
  color: #333333;
}

.page-fishing-games__numbered-list li,
.page-fishing-games__bullet-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-fishing-games__image-full-width {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__advantages {
  background-color: #017439;
  color: #ffffff;
}

.page-fishing-games__advantages .page-fishing-games__section-title {
  color: #ffffff;
}

.page-fishing-games__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 30px;
}

.page-fishing-games__feature-card .page-fishing-games__card-title {
  color: #ffffff;
}

.page-fishing-games__feature-card .page-fishing-games__card-description {
  color: #f0f0f0;
}

.page-fishing-games__promotions {
  background-color: #f0f0f0;
  color: #333333;
}

.page-fishing-games__promotions .page-fishing-games__section-title {
  color: #017439;
}

.page-fishing-games__promo-card {
  background-color: #ffffff;
}

.page-fishing-games__guide-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-fishing-games__guide-section .page-fishing-games__section-title {
  color: #ffffff;
}

.page-fishing-games__guide-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}

.page-fishing-games__guide-block {
  flex: 1;
  min-width: 300px;
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__guide-subtitle {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-fishing-games__guide-block .page-fishing-games__numbered-list {
  color: #f0f0f0;
  padding-left: 20px;
}

.page-fishing-games__guide-button {
  margin-top: 20px;
  align-self: flex-start;
}

.page-fishing-games__faq-section {
  background-color: #ffffff;
  color: #333333;
}

.page-fishing-games__faq-section .page-fishing-games__section-title {
  color: #017439;
}

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

.page-fishing-games__faq-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
  color: #017439;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px;
}

.page-fishing-games__faq-answer p {
  margin-bottom: 10px;
}

.page-fishing-games__conclusion {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
}

.page-fishing-games__conclusion .page-fishing-games__section-title {
  color: #ffffff;
}

.page-fishing-games__cta-final {
  margin-top: 40px;
}

/* Custom colors for login/register buttons (overrides default btn-primary/secondary if needed) */
.page-fishing-games__login-btn {
  background-color: #C30808;
  color: #ffffff; /* Adjusted for WCAG AA contrast */
  border: 2px solid #C30808;
}

.page-fishing-games__login-btn:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-fishing-games__register-btn {
  background-color: #C30808;
  color: #ffffff; /* Adjusted for WCAG AA contrast */
  border: 2px solid #C30808;
}

.page-fishing-games__register-btn:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Global image responsiveness */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-fishing-games__hero-title {
    font-size: 2.5em;
  }

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

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

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__login-btn,
  .page-fishing-games__register-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-fishing-games__numbered-list,
  .page-fishing-games__bullet-list {
    padding-left: 15px;
  }

  .page-fishing-games__guide-content {
    flex-direction: column;
  }

  .page-fishing-games__guide-block {
    min-width: unset;
    width: 100%;
  }

  /* Ensure all images are responsive */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Containers for images to prevent overflow */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-section,
  .page-fishing-games__game-grid,
  .page-fishing-games__feature-grid,
  .page-fishing-games__promo-grid,
  .page-fishing-games__guide-content,
  .page-fishing-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-fishing-games__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-fishing-games__section {
    padding: 40px 0;
  }

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

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

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