/* style/fishing-games.css */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: var(--bg-dark); /* Ensure it matches body background */
}

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

.page-fishing-games__section-title {
  font-size: 2.5rem;
  color: #ffc107; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  color: #ffffff;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  overflow: hidden;
}

.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.5); /* Darken image for text readability */
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-fishing-games__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #ffc107;
  line-height: 1.2;
}

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

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

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background-color: #ffc107;
  color: #000000; /* Ensure high contrast */
  border: 2px solid #ffc107;
}

.page-fishing-games__btn-primary:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

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

.page-fishing-games__btn-secondary:hover {
  background-color: #ffc107;
  color: #000000; /* Ensure high contrast */
  transform: translateY(-3px);
}

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

/* General Sections */
.page-fishing-games__introduction-section,
.page-fishing-games__game-types-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__features-section,
.page-fishing-games__promotions-section,
.page-fishing-games__why-choose-section,
.page-fishing-games__video-section,
.page-fishing-games__faq-section {
  padding: 80px 0;
}

.page-fishing-games__dark-section {
  background-color: #007bff; /* Main brand color for dark sections */
  color: #ffffff;
}

.page-fishing-games__dark-section .page-fishing-games__section-description {
  color: #f0f0f0;
}

.page-fishing-games__dark-section .page-fishing-games__section-title {
  color: #ffc107;
}

/* Game Grid */
.page-fishing-games__game-grid,
.page-fishing-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-fishing-games__card,
.page-fishing-games__promo-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for dark theme */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__card:hover,
.page-fishing-games__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__card-image,
.page-fishing-games__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-fishing-games__card-title,
.page-fishing-games__promo-title {
  font-size: 1.6rem;
  color: #ffc107;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__card-text,
.page-fishing-games__promo-text {
  font-size: 1rem;
  color: #f0f0f0;
  flex-grow: 1;
}

/* How-to-play List */
.page-fishing-games__step-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-fishing-games__step-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-fishing-games__step-title {
  font-size: 1.8rem;
  color: #ffc107;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__step-item p {
  font-size: 1.1rem;
  color: #f0f0f0;
}

/* Features List */
.page-fishing-games__feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-fishing-games__feature-item {
  background-color: rgba(0, 123, 255, 0.1); /* Semi-transparent main color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-fishing-games__feature-title {
  font-size: 1.6rem;
  color: #ffc107;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__feature-item p {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-fishing-games__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Why Choose List */
.page-fishing-games__reason-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-fishing-games__reason-list li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #f0f0f0;
}

.page-fishing-games__reason-icon {
  font-size: 1.5rem;
  color: #ffc107;
}

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

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-fishing-games__faq-item {
  background-color: rgba(0, 123, 255, 0.15);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #007bff;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffc107;
}

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

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

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

.page-fishing-games__faq-answer p {
  margin-bottom: 0;
  font-size: 1rem;
}

.page-fishing-games__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

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

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

  .page-fishing-games__hero-description {
    font-size: 1.1rem;
  }

  .page-fishing-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fishing-games__cta-center .page-fishing-games__btn-primary {
    width: auto !important; /* Allow single button to be natural width */
    max-width: 100% !important;
  }

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

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

  .page-fishing-games__introduction-section,
  .page-fishing-games__game-types-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__features-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__why-choose-section,
  .page-fishing-games__video-section,
  .page-fishing-games__faq-section {
    padding: 50px 0;
  }

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

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

  .page-fishing-games__card,
  .page-fishing-games__promo-card,
  .page-fishing-games__step-item,
  .page-fishing-games__feature-item,
  .page-fishing-games__reason-list li {
    padding: 20px;
  }

  .page-fishing-games__card-image,
  .page-fishing-games__promo-image,
  .page-fishing-games__feature-image,
  .page-fishing-games__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce min size */
    min-height: 200px !important; /* Enforce min size */
    display: block !important;
  }

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

  .page-fishing-games__video-wrapper {
    padding-bottom: 56.25% !important;
    width: 100% !important;
    max-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__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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

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

  .page-fishing-games__faq-toggle {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__hero-title {
    font-size: 2rem;
  }
  .page-fishing-games__hero-description {
    font-size: 1rem;
  }
  .page-fishing-games__section-title {
    font-size: 1.6rem;
  }
  .page-fishing-games__card-title,
  .page-fishing-games__promo-title,
  .page-fishing-games__step-title,
  .page-fishing-games__feature-title {
    font-size: 1.4rem;
  }
}