/* style/fishing-games.css */

:root {
  --page-fishing-games-primary-color: #017439;
  --page-fishing-games-secondary-color: #FFFFFF;
  --page-fishing-games-text-dark: #333333;
  --page-fishing-games-text-light: #ffffff;
  --page-fishing-games-bg-dark: #1a1a2e;
  --page-fishing-games-btn-register: #C30808;
  --page-fishing-games-btn-login: #C30808;
  --page-fishing-games-font-register-login: #FFFF00;
}

.page-fishing-games {
  color: var(--page-fishing-games-text-light); /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-fishing-games__dark-bg {
  background-color: var(--page-fishing-games-bg-dark);
  color: var(--page-fishing-games-text-light);
}

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

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: inherit;
  font-weight: bold;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  background-color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7;
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: var(--page-fishing-games-text-light);
}

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

.page-fishing-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--page-fishing-games-text-light);
}

.page-fishing-games__hero-cta-buttons,
.page-fishing-games__final-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: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background-color: var(--page-fishing-games-primary-color);
  color: var(--page-fishing-games-text-light);
  border-color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__btn-primary:hover {
  background-color: darken(var(--page-fishing-games-primary-color), 10%);
  border-color: darken(var(--page-fishing-games-primary-color), 10%);
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: var(--page-fishing-games-text-light);
  border-color: var(--page-fishing-games-text-light);
}

.page-fishing-games__btn-secondary:hover {
  background-color: var(--page-fishing-games-text-light);
  color: var(--page-fishing-games-primary-color);
}

/* Intro Section */
.page-fishing-games__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-fishing-games__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__feature-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Popular Games Section */
.page-fishing-games__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__game-card {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-text-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-fishing-games__game-card:hover {
  transform: translateY(-5px);
}

.page-fishing-games__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__game-card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px 15px;
  color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__game-card-description {
  font-size: 0.95em;
  padding: 0 15px 20px 15px;
  color: var(--page-fishing-games-text-dark);
}

/* How To Play Section */
.page-fishing-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

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

.page-fishing-games__how-to-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  counter-reset: how-to-step;
}

.page-fishing-games__how-to-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  position: relative;
  padding-left: 70px;
}

.page-fishing-games__how-to-item::before {
  counter-increment: how-to-step;
  content: counter(how-to-step);
  position: absolute;
  left: 20px;
  top: 25px;
  background-color: var(--page-fishing-games-primary-color);
  color: var(--page-fishing-games-text-light);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-fishing-games__how-to-step-title {
  font-size: 1.4em;
  color: var(--page-fishing-games-text-light);
  margin-bottom: 10px;
}

.page-fishing-games__how-to-step-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Tips Section */
.page-fishing-games__tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.page-fishing-games__tips-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
}

.page-fishing-games__tips-item {
  margin-bottom: 25px;
}

.page-fishing-games__tips-item-title {
  font-size: 1.4em;
  color: var(--page-fishing-games-primary-color);
  margin-bottom: 8px;
}

.page-fishing-games__tips-item-description {
  font-size: 1em;
  color: var(--page-fishing-games-text-dark);
}

/* Promotions Section */
.page-fishing-games__promotions-section .page-fishing-games__btn-primary {
  margin-top: 30px;
}

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

.page-fishing-games__faq-item {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-text-dark);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-primary-color);
  transition: background-color 0.3s ease;
}

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

.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-out, padding 0.3s ease-out;
}

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

.page-fishing-games__faq-answer p {
  margin: 0;
  color: var(--page-fishing-games-text-dark);
}

/* Final CTA Section */
.page-fishing-games__cta-final-section {
  padding-bottom: 80px;
}

/* Image global styles */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 2.8em;
  }
  .page-fishing-games__hero-description {
    font-size: 1.1em;
  }
  .page-fishing-games__section-title {
    font-size: 2em;
  }
  .page-fishing-games__tips-grid {
    grid-template-columns: 1fr;
  }
  .page-fishing-games__tips-image {
    order: -1; /* Move image to top on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-fishing-games__hero-section {
    min-height: 450px;
    padding: 40px 15px;
  }

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

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

  .page-fishing-games__hero-cta-buttons,
  .page-fishing-games__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-fishing-games__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

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

  .page-fishing-games__game-card-image {
    height: 200px;
  }

  .page-fishing-games__video-wrapper {
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }

  .page-fishing-games__how-to-item {
    padding-left: 60px;
    padding: 20px 20px 20px 60px;
  }

  .page-fishing-games__how-to-item::before {
    width: 30px;
    height: 30px;
    font-size: 1em;
    left: 15px;
    top: 20px;
  }

  .page-fishing-games__how-to-step-title {
    font-size: 1.2em;
  }

  .page-fishing-games__tips-grid {
    gap: 20px;
  }

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

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

  .page-fishing-games__faq-toggle {
    font-size: 1.3em;
  }

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

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

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