/* style/fishing-games.css */

/* Variables for consistent styling */
:root {
  --page-fishing-games-primary-color: #003366;
  --page-fishing-games-secondary-color: #FFD700;
  --page-fishing-games-text-light: #ffffff;
  --page-fishing-games-text-dark: #333333;
  --page-fishing-games-bg-dark: #0d1117; /* Matches body background */
  --page-fishing-games-bg-light: #f8f9fa;
}

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

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

/* 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-top: var(--header-offset, 120px); /* Ensure content is below header */
  background-color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
}

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

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px;
  background-color: rgba(0, 51, 102, 0.7); /* Semi-transparent background for content */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

/* Section Titles and Subtitles */
.page-fishing-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-fishing-games-secondary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-fishing-games-text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--page-fishing-games-primary-color);
}

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

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-tertiary {
  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, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-fishing-games__btn-primary {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-primary-color);
  border: 2px solid var(--page-fishing-games-secondary-color);
}

.page-fishing-games__btn-primary:hover {
  background-color: darken(var(--page-fishing-games-secondary-color), 10%);
  transform: translateY(-2px);
}

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

.page-fishing-games__btn-secondary:hover {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-primary-color);
  transform: translateY(-2px);
}

.page-fishing-games__btn-tertiary {
  background-color: var(--page-fishing-games-primary-color);
  color: var(--page-fishing-games-secondary-color);
  border: 1px solid var(--page-fishing-games-secondary-color);
  padding: 10px 20px;
  font-size: 1em;
}

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

/* General Section Styling */
.page-fishing-games__overview-section,
.page-fishing-games__guide-section,
.page-fishing-games__strategy-section,
.page-fishing-games__advantages-section,
.page-fishing-games__faq-section {
  padding: 80px 0;
  color: var(--page-fishing-games-text-dark); /* Light background, dark text */
}

.page-fishing-games__featured-games-section,
.page-fishing-games__video-section,
.page-fishing-games__promotions-section,
.page-fishing-games__download-section,
.page-fishing-games__cta-section {
  padding: 80px 0;
  color: var(--page-fishing-games-text-light); /* Dark background, light text */
}

/* Background color specific rules for text contrast */
.page-fishing-games__dark-bg {
  background-color: var(--page-fishing-games-primary-color);
  color: var(--page-fishing-games-text-light);
}

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

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

.page-fishing-games__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-fishing-games__game-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__game-title a {
  color: var(--page-fishing-games-secondary-color);
  text-decoration: none;
}

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

.page-fishing-games__game-description {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Guide and Strategy Sections */
.page-fishing-games__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--page-fishing-games-text-dark);
}

.page-fishing-games__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-fishing-games__list strong {
  color: var(--page-fishing-games-primary-color);
}

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

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

.page-fishing-games__video-caption {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  color: #cccccc;
}

/* Promotions Section */
.page-fishing-games__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px;
}

.page-fishing-games__promotion-image {
  width: 40%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__promotion-content {
  width: 60%;
}

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

.page-fishing-games__promotion-title a {
  color: var(--page-fishing-games-secondary-color);
  text-decoration: none;
}

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

.page-fishing-games__promotion-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 20px;
}

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

.page-fishing-games__advantage-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--page-fishing-games-text-dark);
}

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

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

/* Download Section */
.page-fishing-games__download-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__download-image {
  width: 300px;
  height: auto;
  object-fit: contain;
  display: block;
}

.page-fishing-games__download-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 300px;
}

/* FAQ Section */
.page-fishing-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  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: var(--page-fishing-games-text-dark);
}

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

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

.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 25px;
  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 contain content */
  padding: 15px 25px;
}

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

/* CTA Section */
.page-fishing-games__cta-section {
  text-align: center;
  padding: 100px 0;
  background-color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__cta-section .page-fishing-games__section-title {
  color: var(--page-fishing-games-secondary-color);
}

.page-fishing-games__cta-section .page-fishing-games__section-subtitle {
  color: var(--page-fishing-games-text-light);
  margin-bottom: 50px;
}

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

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

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

  .page-fishing-games__promotion-card {
    flex-direction: column;
    text-align: center;
  }

  .page-fishing-games__promotion-image,
  .page-fishing-games__promotion-content {
    width: 100%;
  }
}

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

  .page-fishing-games__hero-content {
    padding: 20px;
  }

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

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

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

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

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

  .page-fishing-games__section-subtitle,
  .page-fishing-games__text-block,
  .page-fishing-games__list li,
  .page-fishing-games__advantage-description,
  .page-fishing-games__promotion-description,
  .page-fishing-games__faq-question span,
  .page-fishing-games__faq-answer p {
    font-size: 1em;
  }

  .page-fishing-games__overview-section,
  .page-fishing-games__featured-games-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__video-section,
  .page-fishing-games__strategy-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__advantages-section,
  .page-fishing-games__download-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    padding: 40px 0;
  }

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

  /* Images and Video Responsive Rules */
  .page-fishing-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important;
  }

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

  .page-fishing-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-fishing-games__game-card,
  .page-fishing-games__promotion-card,
  .page-fishing-games__advantage-item,
  .page-fishing-games__download-content,
  .page-fishing-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Content area image size enforcement (min 200px) */
  .page-fishing-games__game-image,
  .page-fishing-games__promotion-image,
  .page-fishing-games__download-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__hero-title {
    font-size: 1.8em;
  }

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

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

  .page-fishing-games__promotion-card {
    padding: 15px;
  }

  .page-fishing-games__promotion-image {
    width: 100%;
    height: auto;
  }
}