/* style/fishing-games.css */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default background */
}

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

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

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

/* Hero Section */
.page-fishing-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  position: relative;
  overflow: hidden;
}

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

.page-fishing-games__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

.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;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-register {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: none;
}

.page-fishing-games__btn-register:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-fishing-games__btn-login {
  background-color: #C30808; /* Login color */
  color: #FFFF00; /* Login font color */
  border: 2px solid #FFFF00;
}

.page-fishing-games__btn-login:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

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

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

/* Section Titles and Descriptions */
.page-fishing-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section background */
}

.page-fishing-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Video Section */
.page-fishing-games__video-section {
  padding: 80px 20px;
  text-align: center;
}

.page-fishing-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it respects max-width */
}

.page-fishing-games__btn-play-now {
  background-color: #017439;
  color: #ffffff;
  border: none;
  margin-top: 20px;
}

.page-fishing-games__btn-play-now:hover {
  background-color: #005f2f;
  transform: translateY(-2px);
}

/* About Section */
.page-fishing-games__about-section {
  padding: 80px 20px;
}

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

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

.page-fishing-games__text-content p {
  margin-bottom: 20px;
  color: #333333;
}

.page-fishing-games__text-content a {
  color: #017439;
  text-decoration: underline;
}

.page-fishing-games__text-content a:hover {
  color: #005f2f;
}

.page-fishing-games__image-content {
  flex: 1;
  text-align: center;
}

.page-fishing-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it respects max-width */
}

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

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

.page-fishing-games__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-fishing-games__feature-card:hover {
  transform: translateY(-10px);
}

.page-fishing-games__feature-icon {
  width: 100%; /* Ensure large images are used as feature icons */
  max-width: 400px; /* Limit max width for visual balance */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-fishing-games__feature-description {
  font-size: 1em;
  color: #555555;
}

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

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

.page-fishing-games__step-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-fishing-games__step-icon {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-fishing-games__step-description a {
  color: #017439;
  text-decoration: underline;
}

.page-fishing-games__step-description a:hover {
  color: #005f2f;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 80px 20px;
}

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

.page-fishing-games__promotion-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-fishing-games__promotion-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-fishing-games__promotion-description {
  font-size: 1em;
  color: #555555;
}

.page-fishing-games__promotion-description a {
  color: #017439;
  text-decoration: underline;
}

.page-fishing-games__promotion-description a:hover {
  color: #005f2f;
}

/* Why Choose Us Section */
.page-fishing-games__why-choose-us-section {
  padding: 80px 20px;
}

.page-fishing-games__why-choose-us-section .page-fishing-games__content-grid {
  flex-direction: row-reverse; /* Image on left, text on right */
}

.page-fishing-games__why-choose-us-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-fishing-games__why-choose-us-section li {
  background-color: #f0fdf4; /* Light green background for list items */
  border-left: 5px solid #017439;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #333333;
}

.page-fishing-games__why-choose-us-section li strong {
  color: #017439;
}

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

.page-fishing-games__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: #017439;
  background-color: #f0fdf4;
  border-bottom: 1px solid #e0e0e0;
}

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

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

.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 20px;
  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 to show content */
  padding: 20px;
  padding-top: 0;
}

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

.page-fishing-games__btn-final-cta {
  background-color: #C30808;
  color: #FFFF00;
  border: none;
  margin-top: 30px;
  font-size: 1.5em;
  padding: 20px 40px;
}

.page-fishing-games__btn-final-cta:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

/* General link styling */
.page-fishing-games a {
  color: #017439;
  text-decoration: none;
}

.page-fishing-games a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 2.5em;
  }
  .page-fishing-games__section-title {
    font-size: 2em;
  }
  .page-fishing-games__content-grid {
    flex-direction: column;
  }
  .page-fishing-games__why-choose-us-section .page-fishing-games__content-grid {
    flex-direction: column-reverse;
  }
  .page-fishing-games__image-content {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

  .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__btn-register,
  .page-fishing-games__btn-login,
  .page-fishing-games__btn-play-now,
  .page-fishing-games__btn-final-cta {
    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__video-section,
  .page-fishing-games__about-section,
  .page-fishing-games__features-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__why-choose-us-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    padding: 40px 15px;
  }

  .page-fishing-games__container,
  .page-fishing-games__video-wrapper,
  .page-fishing-games__content-grid,
  .page-fishing-games__features-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__promotions-grid,
  .page-fishing-games__cta-buttons,
  .page-fishing-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

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

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

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

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

  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px;
    padding-top: 0;
  }

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

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