/* style/fishing-games.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f8f9fa; /* Default light text color for dark body background */
  background-color: transparent; /* Main content background is transparent, letting body background show */
}

/* Ensure the main content area has padding-top to avoid being covered by fixed header */
.page-fishing-games__hero-section {
  padding-top: var(--header-offset, 120px);
}

/* General section styling */
.page-fishing-games__section {
  padding: 60px 20px;
  text-align: center;
}

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

/* Color contrast classes */
.page-fishing-games__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF; /* White text for dark background */
}

.page-fishing-games__light-bg {
  background-color: #FFFFFF; /* White background */
  color: #333333; /* Dark text for light background */
}

/* Headings */
.page-fishing-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
  color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-fishing-games__section-subtitle {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

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

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

.page-fishing-games__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-fishing-games__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-fishing-games__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

.page-fishing-games__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.page-fishing-games__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-fishing-games__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.page-fishing-games__final-cta {
  padding-bottom: 80px;
}

.page-fishing-games__cta-content {
  padding: 40px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent overlay */
}

/* Image styling */
.page-fishing-games__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  object-fit: cover;
  min-width: 200px; /* Min size constraint */
  min-height: 200px; /* Min size constraint */
}

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

.page-fishing-games__game-card,
.page-fishing-games__advantage-item,
.page-fishing-games__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for light background cards */
}

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

.page-fishing-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__advantage-icon {
  width: 100%; /* Ensure it's not a tiny icon */
  max-width: 200px; /* Limit max width for icons if they are decorative */
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__card-title,
.page-fishing-games__advantage-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for titles */
}

.page-fishing-games__card-description,
.page-fishing-games__advantage-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

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

.page-fishing-games__guide-card {
  background-color: #F8F9FA; /* Light background for guide cards */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: left;
  color: #333333;
}

.page-fishing-games__guide-card .page-fishing-games__card-title {
  color: #26A9E0;
}

.page-fishing-games__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-fishing-games__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1.05em;
  color: #444444;
}

.page-fishing-games__list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #26A9E0;
}

/* FAQ Section */
.page-fishing-games__faq-list {
  margin-top: 40px;
  text-align: left;
}

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

.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: #F8F9FA;
  border-bottom: 1px solid #e0e0e0;
  color: #26A9E0;
  list-style: none; /* For details/summary */
}

.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

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

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

.page-fishing-games__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-fishing-games__faq-answer p {
  margin-bottom: 15px;
}

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

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    min-height: 60vh;
    padding-bottom: 40px;
  }

  .page-fishing-games__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-fishing-games__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-fishing-games__section {
    padding: 40px 15px;
  }

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

  .page-fishing-games__text-block {
    font-size: 0.95em;
  }

  /* Image responsive rules */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive rules */
  .page-fishing-games video,
  .page-fishing-games__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games__hero-video-wrapper {
    position: relative; /* Adjust for mobile if video is background */
    height: auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-top: 20px;
  }

  .page-fishing-games__hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    transform: none;
  }

  /* Button responsive rules */
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games a[class*="button"],
  .page-fishing-games a[class*="btn"] {
    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__hero-cta-buttons,
  .page-fishing-games__cta-buttons,
  .page-fishing-games__button-group,
  .page-fishing-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* For multiple buttons, stack them */
  }

  .page-fishing-games__game-grid,
  .page-fishing-games__advantages-grid,
  .page-fishing-games__promotions-grid,
  .page-fishing-games__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__card-image {
    height: auto; /* Allow height to adjust on mobile */
  }

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

  .page-fishing-games__faq-answer {
    padding: 15px 20px;
  }
  
  /* Container padding for mobile */
  .page-fishing-games__section,
  .page-fishing-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure video section padding top is set for mobile */
  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

/* Specific styles for card text color on light background */
.page-fishing-games__game-card,
.page-fishing-games__advantage-item,
.page-fishing-games__promo-card,
.page-fishing-games__guide-card,
.page-fishing-games__faq-item {
  color: #333333; /* Dark text for these light background cards */
}

.page-fishing-games__game-card .page-fishing-games__card-title,
.page-fishing-games__advantage-item .page-fishing-games__advantage-title,
.page-fishing-games__promo-card .page-fishing-games__card-title,
.page-fishing-games__guide-card .page-fishing-games__card-title,
.page-fishing-games__faq-item .page-fishing-games__faq-question {
  color: #26A9E0; /* Brand color for titles */
}

/* Ensure any other text in light bg sections has dark text */
.page-fishing-games__light-bg p,
.page-fishing-games__light-bg li {
  color: #333333;
}

/* Ensure any other text in dark bg sections has light text */
.page-fishing-games__dark-bg p,
.page-fishing-games__dark-bg li {
  color: #FFFFFF;
}

/* Fix for FAQ toggle not showing on details elements */
summary.page-fishing-games__faq-question {
  list-style: none; /* Removes default marker */
}
summary.page-fishing-games__faq-question::-webkit-details-marker {
  display: none; /* Removes default marker for WebKit */
}

/* Contrast fix if needed (though already handled by dark/light bg classes) */
.page-fishing-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-fishing-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}