/* style/fishing-games.css */

:root {
  --pg99-primary-color: #017439;
  --pg99-secondary-color: #FFFFFF;
  --pg99-text-dark: #333333;
  --pg99-text-light: #FFFFFF;
  --pg99-accent-red: #C30808;
  --pg99-accent-yellow: #FFFF00;
}

.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--pg99-text-dark); /* Default text color for light backgrounds */
  background-color: var(--pg99-secondary-color); /* Default body background is white */
}

/* Color Contrast System */
.page-fishing-games__dark-bg {
  background-color: var(--pg99-primary-color);
  color: var(--pg99-text-light);
}

.page-fishing-games__light-bg {
  background-color: var(--pg99-secondary-color);
  color: var(--pg99-text-dark);
}

/* Hero Section */
.page-fishing-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

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

.page-fishing-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--pg99-text-light);
}

.page-fishing-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--pg99-text-light);
}

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

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

.page-fishing-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text contrast */
}

/* General Section Styling */
.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--pg99-primary-color);
  font-weight: bold;
}

.page-fishing-games__dark-bg .page-fishing-games__section-title {
  color: var(--pg99-text-light);
}

/* Buttons */
.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-fishing-games__btn-primary {
  background-color: var(--pg99-accent-red);
  color: var(--pg99-accent-yellow);
  border: 2px solid var(--pg99-accent-red);
}

.page-fishing-games__btn-primary:hover {
  background-color: #e00;
  border-color: #e00;
  color: var(--pg99-text-light);
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: var(--pg99-accent-yellow);
  border: 2px solid var(--pg99-accent-yellow);
}

.page-fishing-games__btn-secondary:hover {
  background-color: var(--pg99-accent-yellow);
  color: var(--pg99-accent-red);
}

.page-fishing-games__btn-inline {
  margin-top: 20px;
}

.page-fishing-games__btn-large {
  padding: 18px 35px;
  font-size: 1.3em;
}

/* Introduction Section */
.page-fishing-games__introduction-section {
  padding: 80px 0;
}

.page-fishing-games__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-fishing-games__text-block {
  flex: 1;
}

.page-fishing-games__text-block p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--pg99-text-dark);
}

.page-fishing-games__image-wrapper {
  flex: 1;
  min-width: 200px; /* Min size for image */
}

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

/* Features Section */
.page-fishing-games__features-section {
  padding: 80px 0;
}

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

.page-fishing-games__feature-card {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.page-fishing-games__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--pg99-primary-color);
}

.page-fishing-games__feature-card p {
  font-size: 1em;
  color: var(--pg99-text-dark);
}

/* How To Play Section */
.page-fishing-games__how-to-play-section {
  padding: 80px 0;
}

.page-fishing-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  counter-reset: step-counter;
}

.page-fishing-games__step-card {
  background-color: var(--pg99-primary-color);
  color: var(--pg99-text-light);
  padding: 30px;
  border-radius: 10px;
  position: relative;
  padding-left: 70px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__step-card::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 30px;
  background-color: var(--pg99-accent-yellow);
  color: var(--pg99-primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-fishing-games__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--pg99-accent-yellow);
}

.page-fishing-games__step-card p {
  font-size: 1em;
  color: var(--pg99-text-light);
}

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

/* Tips Section */
.page-fishing-games__tips-section {
  padding: 80px 0;
}

.page-fishing-games__tips-list ul {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-fishing-games__tips-list li {
  background-color: var(--pg99-text-light);
  color: var(--pg99-text-dark);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-fishing-games__tips-list li strong {
  color: var(--pg99-primary-color);
}

/* Promotion Section */
.page-fishing-games__promotion-section {
  padding: 80px 0;
}

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

.page-fishing-games__promotion-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 30px;
}

.page-fishing-games__promotion-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px;
}

.page-fishing-games__promotion-title {
  font-size: 1.5em;
  margin: 25px 20px 15px;
  color: var(--pg99-accent-yellow);
}

.page-fishing-games__promotion-card p {
  font-size: 1em;
  margin: 0 20px 25px;
  color: var(--pg99-text-light);
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 80px 0;
}

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

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

.page-fishing-games__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--pg99-primary-color);
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none;
}

.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;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-fishing-games__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  color: var(--pg99-text-dark);
  border-top: 1px solid #eee;
  background-color: var(--pg99-secondary-color);
}

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

/* CTA Section */
.page-fishing-games__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-fishing-games__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-fishing-games__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--pg99-text-light);
}

.page-fishing-games__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--pg99-text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 3em;
  }
  .page-fishing-games__section-title {
    font-size: 2em;
  }
  .page-fishing-games__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    min-height: 500px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-fishing-games__hero-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__button-group,
  .page-fishing-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-fishing-games__cta-buttons {
    display: flex;
    flex-direction: column;
  }

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

  .page-fishing-games__introduction-section,
  .page-fishing-games__features-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__promotion-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    padding: 50px 0;
  }

  .page-fishing-games__content-grid {
    flex-direction: column;
  }

  .page-fishing-games__text-block p {
    font-size: 1em;
  }

  .page-fishing-games__features-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__promotion-grid {
    grid-template-columns: 1fr;
  }

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

  .page-fishing-games__step-card::before {
    top: 25px;
  }

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

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

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

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

  /* Image responsive rules */
  .page-fishing-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__image-wrapper,
  .page-fishing-games__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-fishing-games__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-fishing-games__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__hero-title {
    font-size: 2em;
  }
  .page-fishing-games__section-title {
    font-size: 1.5em;
  }
  .page-fishing-games__cta-title {
    font-size: 1.8em;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    font-size: 1em;
    padding: 12px 25px;
  }
}