/* style/fishing-games.css */

/* General styles for the fishing games page */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#000000) */
}

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

.page-fishing-games__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: #FFD700; /* Gold accent for titles */
  line-height: 1.2;
}

.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #0A192F 0%, #000000 100%); /* Dark gradient background */
}

.page-fishing-games__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-fishing-games__main-title {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.1;
}

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

.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 100%; /* Prevent overflow */
  box-sizing: border-box;
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-fishing-games__btn-primary {
  background-color: #FFD700; /* Gold primary button */
  color: #0A192F; /* Dark text for gold background */
  border: 2px solid #FFD700;
}

.page-fishing-games__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text for secondary button */
  border: 2px solid #FFD700;
}

.page-fishing-games__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
  z-index: 1;
  pointer-events: none;
}

/* Section specific styles */
.page-fishing-games__dark-bg {
  background-color: #0A192F;
  color: #f0f0f0;
}

.page-fishing-games__light-bg {
  background-color: #1a2a40; /* Slightly lighter dark background for contrast */
  color: #f0f0f0;
}

/* About Section */
.page-fishing-games__about-section {
  padding: 80px 0;
}

.page-fishing-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-fishing-games__feature-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for items */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__feature-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px; /* Limit max width for smaller images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-fishing-games__feature-description {
  font-size: 16px;
  color: #cccccc;
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
  padding: 80px 0;
}

.page-fishing-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

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

.page-fishing-games__step-description {
  font-size: 16px;
  color: #cccccc;
}

.page-fishing-games__step-description a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-fishing-games__step-description a:hover {
  text-decoration: underline;
}

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

/* Tips Section */
.page-fishing-games__tips-section {
  padding: 80px 0;
}

.page-fishing-games__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-fishing-games__tip-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-fishing-games__tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__tip-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-fishing-games__tip-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-fishing-games__tip-description {
  font-size: 16px;
  color: #cccccc;
}

.page-fishing-games__read-more-tips {
  text-align: center;
  margin-top: 40px;
  font-size: 17px;
  color: #f0f0f0;
}

.page-fishing-games__read-more-tips a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-fishing-games__read-more-tips a:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 80px 0;
}

.page-fishing-games__promotions-intro {
  text-align: center;
  font-size: 18px;
  margin-bottom: 50px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-fishing-games__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__promo-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-fishing-games__promo-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-fishing-games__promo-description {
  font-size: 16px;
  color: #cccccc;
  flex-grow: 1; /* Allow description to take available space */
  margin-bottom: 25px;
}

.page-fishing-games__promo-description a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-fishing-games__promo-description a:hover {
  text-decoration: underline;
}

.page-fishing-games__promo-button {
  margin-top: auto; /* Push button to bottom of card */
}

/* Call to Action Section */
.page-fishing-games__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(45deg, #0A192F 0%, #000000 100%);
}

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


/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 80px 0;
}

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

/* FAQ container style */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger border-radius */
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05); /* Light background for items */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* FAQ default state - answer hidden */
.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px; /* Adjust padding for consistency */
  opacity: 0;
  color: #cccccc; /* Light text for answer */
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use!important to ensure priority, value large enough for any content */
  padding: 20px !important; /* Adjust padding for consistency */
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.02); /* Slightly darker for expanded answer */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px; /* Adjust padding for consistency */
  background-color: rgba(255, 255, 255, 0.08); /* Darker background for question */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-fishing-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-fishing-games__faq-question:active {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Question title style */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger font size */
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for FAQ question titles */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-fishing-games__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger hit area */
  height: 32px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: #f0f0f0; /* White when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 48px;
  }
  .page-fishing-games__section-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 30px 15px;
  }

  .page-fishing-games__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-fishing-games__main-title {
    font-size: 38px;
    margin-bottom: 15px;
  }

  .page-fishing-games__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__cta-button {
    width: 100% !important; /* Full width for mobile buttons */
    max-width: 100% !important;
    padding: 15px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fishing-games__section-title {
    font-size: 30px;
    margin-bottom: 40px;
  }

  .page-fishing-games__about-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__cta-section,
  .page-fishing-games__faq-section {
    padding: 60px 0;
  }

  .page-fishing-games__features-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__tips-grid,
  .page-fishing-games__promo-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 25px;
  }

  .page-fishing-games__feature-title,
  .page-fishing-games__step-title,
  .page-fishing-games__tip-title,
  .page-fishing-games__promo-title {
    font-size: 20px;
  }

  .page-fishing-games__feature-description,
  .page-fishing-games__step-description,
  .page-fishing-games__tip-description,
  .page-fishing-games__promotions-intro,
  .page-fishing-games__promo-description,
  .page-fishing-games__cta-description {
    font-size: 15px;
  }

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

  /* All containers with images */
  .page-fishing-games__container,
  .page-fishing-games__hero-container,
  .page-fishing-games__features-grid,
  .page-fishing-games__feature-item,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__steps-grid,
  .page-fishing-games__step-item,
  .page-fishing-games__tips-grid,
  .page-fishing-games__tip-card,
  .page-fishing-games__promo-grid,
  .page-fishing-games__promo-card,
  .page-fishing-games__faq-list,
  .page-fishing-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Ensure content has side padding */
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-fishing-games__hero-image {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-fishing-games__feature-item,
  .page-fishing-games__step-item,
  .page-fishing-games__tip-card,
  .page-fishing-games__promo-card {
    padding-left: 20px; /* Adjust card padding */
    padding-right: 20px;
  }

  /* FAQ mobile */
  .page-fishing-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
    border-radius: 6px;
  }
  
  .page-fishing-games__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px); /* Adjust for toggle icon */
  }
  
  .page-fishing-games__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-fishing-games__faq-answer {
    padding: 0 15px;
  }
  
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px !important;
  }
}