/* style/fishing-games.css */

/* Base styles for the page content */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--black-color); /* Inherit from shared.css, assumed dark */
  padding-top: 0; /* Handled by shared body padding-top or hero section */
}

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

/* Section common styles */
.page-fishing-games__hero-section,
.page-fishing-games__video-section,
.page-fishing-games__why-choose-section,
.page-fishing-games__featured-games-section,
.page-fishing-games__download-register-section,
.page-fishing-games__promotions-section,
.page-fishing-games__security-support-section,
.page-fishing-games__faq-section,
.page-fishing-games__conclusion-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

/* Specific background colors for sections */
.page-fishing-games__dark-section {
  background-color: #1a1a1a; /* A slightly lighter dark for contrast */
  color: #ffffff;
}

.page-fishing-games__hero-section {
  background: linear-gradient(135deg, #26A9E0, #1a1a1a); /* Brand color gradient */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.page-fishing-games__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
}

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

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

.page-fishing-games__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-fishing-games__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block; /* Important for responsiveness */
  margin: 0 auto;
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand primary color for titles */
}

.page-fishing-games__dark-section .page-fishing-games__section-title {
  color: #ffffff; /* White title on dark sections */
}

.page-fishing-games__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* 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, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-fishing-games__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-fishing-games__btn-primary:hover {
  background-color: #1f8ec7;
  border-color: #1f8ec7;
}

.page-fishing-games__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-fishing-games__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1f8ec7;
  border-color: #1f8ec7;
}

.page-fishing-games__btn-tertiary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 1em;
}

.page-fishing-games__btn-tertiary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-fishing-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Video Section */
.page-fishing-games__video-section {
  background-color: #0d0d0d; /* Dark background for video */
  color: #ffffff;
}

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

.page-fishing-games__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  text-decoration: none; /* Remove underline for the link */
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

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

.page-fishing-games__feature-card,
.page-fishing-games__game-card,
.page-fishing-games__step-card,
.page-fishing-games__promo-card,
.page-fishing-games__info-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  color: #f0f0f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-fishing-games__feature-card:hover,
.page-fishing-games__game-card:hover,
.page-fishing-games__step-card:hover,
.page-fishing-games__promo-card:hover,
.page-fishing-games__info-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.08);
}

.page-fishing-games__feature-icon,
.page-fishing-games__game-image,
.page-fishing-games__step-icon,
.page-fishing-games__promo-image,
.page-fishing-games__info-icon {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__feature-title,
.page-fishing-games__game-title,
.page-fishing-games__step-title,
.page-fishing-games__promo-title,
.page-fishing-games__info-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-fishing-games__game-title a,
.page-fishing-games__game-title a:visited {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-fishing-games__feature-text,
.page-fishing-games__game-description,
.page-fishing-games__step-text,
.page-fishing-games__promo-text,
.page-fishing-games__info-text {
  font-size: 1em;
  color: #cccccc;
}

.page-fishing-games__download-register-section .page-fishing-games__step-card {
  background-color: #2a2a2a; /* Slightly darker card on dark section */
  color: #ffffff;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-fishing-games__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-fishing-games__faq-item details > summary {
  list-style: none; /* Remove default marker */
}
.page-fishing-games__faq-item details > summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px; /* Sufficiently large for content */
  padding-top: 10px;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
  max-height: 2000px; /* For <details> native behavior */
  padding-top: 10px;
}

/* Conclusion Section */
.page-fishing-games__conclusion-section {
  background-color: #26A9E0; /* Brand primary color for conclusion */
  color: #ffffff;
  padding: 100px 0;
}

.page-fishing-games__conclusion-section .page-fishing-games__section-title {
  color: #ffffff;
}

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

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

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    min-height: auto;
    padding-bottom: 60px;
  }
  .page-fishing-games__hero-title {
    font-size: 2.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-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-fishing-games__section-title {
    font-size: 1.8em;
  }
  .page-fishing-games__section-description {
    font-size: 0.95em;
  }
  .page-fishing-games__features-grid,
  .page-fishing-games__games-grid,
  .page-fishing-games__steps-grid,
.page-fishing-games__promo-grid,
  .page-fishing-games__info-grid {
    grid-template-columns: 1fr;
    padding: 0 15px; /* Add padding to prevent overflow */
  }
  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__step-card,
  .page-fishing-games__promo-card,
  .page-fishing-games__info-card {
    padding: 20px;
  }
  .page-fishing-games__feature-title,
  .page-fishing-games__game-title,
  .page-fishing-games__step-title,
  .page-fishing-games__promo-title,
  .page-fishing-games__info-title {
    font-size: 1.3em;
  }
  .page-fishing-games__feature-text,
  .page-fishing-games__game-description,
  .page-fishing-games__step-text,
  .page-fishing-games__promo-text,
  .page-fishing-games__info-text {
    font-size: 0.9em;
  }

  /* Mobile image and video responsiveness - CRITICAL */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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__container,
  .page-fishing-games__video-section,
  .page-fishing-games__video-container,
  .page-fishing-games__video-wrapper,
  .page-fishing-games__section,
  .page-fishing-games__card {
    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__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }
}

/* Ensure no CSS filter is applied to images */
.page-fishing-games img {
  filter: none !important;
}

/* Content area images minimum size enforcement */
.page-fishing-games__hero-image,
.page-fishing-games__feature-icon,
.page-fishing-games__game-image,
.page-fishing-games__step-icon,
.page-fishing-games__promo-image,
.page-fishing-games__info-icon {
  min-width: 200px;
  min-height: 200px;
  /* Specific sizes are handled by HTML width/height and max-width: 100% */
}