/* style/fishing-games.css */

/* Base styles for the fishing games page */
.page-fishing-games {
  background-color: #121212; /* Dark body background */
  color: #ffffff; /* Light text color for contrast */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-fishing-games__section-title {
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* General button styles */
.page-fishing-games__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-fishing-games__btn--secondary:hover {
  background-color: #FFD700;
  color: #0A2E5B;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A2E5B, #1a4d8c);
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

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

.page-fishing-games__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

/* Intro Section */
.page-fishing-games__intro-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-fishing-games__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-fishing-games__feature-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-fishing-games__feature-item h3 {
  color: #FFD700;
  font-size: 24px;
  margin-bottom: 15px;
}

.page-fishing-games__feature-item p {
  color: #e0e0e0;
  font-size: 16px;
}

/* Popular Games Section */
.page-fishing-games__popular-games-section {
  padding: 80px 0;
  background-color: #0A2E5B;
}

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

.page-fishing-games__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #FFD700;
  text-align: center;
  padding-bottom: 20px;
}

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

.page-fishing-games__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 2px solid #FFD700;
  margin-bottom: 20px;
}

.page-fishing-games__game-card h3 {
  color: #FFD700;
  font-size: 22px;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__game-card p {
  color: #e0e0e0;
  font-size: 15px;
  margin-bottom: 20px;
  padding: 0 15px;
}

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

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

.page-fishing-games__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-fishing-games__step-icon {
  width: 60px;
  height: 60px;
  background-color: #FFD700;
  color: #0A2E5B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-fishing-games__step-item h3 {
  color: #FFD700;
  font-size: 24px;
  margin-bottom: 15px;
}

.page-fishing-games__step-item p {
  color: #e0e0e0;
  font-size: 16px;
}

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

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

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

.page-fishing-games__tip-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #FFD700;
  text-align: center;
  padding-bottom: 20px;
}

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

.page-fishing-games__tip-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 2px solid #FFD700;
  margin-bottom: 20px;
}

.page-fishing-games__tip-card h3 {
  color: #FFD700;
  font-size: 22px;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__tip-card p {
  color: #e0e0e0;
  font-size: 15px;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-fishing-games__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-fishing-games__promo-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-fishing-games__promo-card h3 {
  color: #FFD700;
  font-size: 24px;
  margin-bottom: 15px;
}

.page-fishing-games__promo-card p {
  color: #e0e0e0;
  font-size: 16px;
}

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

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

/* FAQ container styles */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for FAQ item */
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* 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;
  padding: 0 20px;
  opacity: 0;
  color: #e0e0e0;
  font-size: 16px;
}

/* 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 ensure priority, value large enough to accommodate any content */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 8px 8px;
}

/* Question styles */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: 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;
  color: #FFD700; /* Gold text for question */
}

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

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

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

/* Toggle icon */
.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: 30px;
  height: 30px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 44px;
  }
  .page-fishing-games__hero-description {
    font-size: 20px;
  }
  .page-fishing-games__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-fishing-games__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    min-height: 500px;
  }

  .page-fishing-games__hero-title {
    font-size: 36px;
  }

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

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

  .page-fishing-games__btn,
  .page-fishing-games__btn--primary,
  .page-fishing-games__btn--secondary,
  .page-fishing-games a[class*="button"],
  .page-fishing-games a[class*="btn"] {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fishing-games__section-title {
    font-size: 28px;
  }

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

  .page-fishing-games__intro-section, 
  .page-fishing-games__popular-games-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section {
    padding: 40px 0;
  }

  .page-fishing-games__intro-features,
  .page-fishing-games__games-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__tips-grid,
  .page-fishing-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__feature-item,
  .page-fishing-games__game-card,
  .page-fishing-games__step-item,
  .page-fishing-games__tip-card,
  .page-fishing-games__promo-card {
    padding: 20px;
  }

  .page-fishing-games__feature-item h3,
  .page-fishing-games__game-card h3,
  .page-fishing-games__step-item h3,
  .page-fishing-games__tip-card h3,
  .page-fishing-games__promo-card h3 {
    font-size: 20px;
  }

  .page-fishing-games__feature-item p,
  .page-fishing-games__game-card p,
  .page-fishing-games__step-item p,
  .page-fishing-games__tip-card p,
  .page-fishing-games__promo-card p {
    font-size: 15px;
  }

  .page-fishing-games__game-card img,
  .page-fishing-games__tip-card img {
    
  }

  .page-fishing-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-fishing-games__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
}