/* style/fishing-games.css */

/* Base styles for the page content, ensuring contrast with body background #1a1a1a */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

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

/* Hero Content Section - Top of the page, text-based */
.page-fishing-games__hero-content-section {
  padding-top: 0; /* shared.css should handle body padding-top for header offset */
  padding-bottom: 80px;
  text-align: center;
  background-color: #2C2F4C; /* Main brand color for dark section */
}

.page-fishing-games__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Auxiliary color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Section Styling */
.page-fishing-games__section {
  padding: 60px 0;
}

.page-fishing-games__dark-section {
  background-color: #2C2F4C; /* Main brand color */
  color: #ffffff;
}

.page-fishing-games__light-bg {
  background-color: #1a1a1a; /* Using body background color from shared to keep consistency */
  color: #ffffff; /* Ensure text is light on this dark background */
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  text-align: center;
  color: #FFD700; /* Auxiliary color for section titles */
  margin-bottom: 40px;
}

.page-fishing-games__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Image styles */
.page-fishing-games__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark bg */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Ensure light text on card background */
}

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

.page-fishing-games__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-top: 15px;
  margin-bottom: 15px;
}

.page-fishing-games__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 5px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
  object-fit: cover;
}

.page-fishing-games__card-description {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-fishing-games__advantage-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-fishing-games__advantage-icon {
  width: 200px; /* Enforce min image size */
  height: 200px; /* Enforce min image size */
  margin-bottom: 15px;
  object-fit: contain; /* Ensure full icon is visible */
}

.page-fishing-games__advantage-title {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-fishing-games__advantage-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Guide List */
.page-fishing-games__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__guide-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-fishing-games__guide-step-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-fishing-games__guide-step-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

/* Promotions List */
.page-fishing-games__promotions-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__promotion-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-fishing-games__promotion-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-fishing-games__promotion-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Buttons */
.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button adapts to container width */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-fishing-games__btn-primary {
  background-color: #FFD700; /* Auxiliary color */
  color: #2C2F4C; /* Main brand color for text */
  border: 2px solid #FFD700;
}

.page-fishing-games__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-fishing-games__btn-secondary:hover {
  background-color: #FFD700;
  color: #2C2F4C;
  transform: translateY(-2px);
}

.page-fishing-games__btn-text {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-fishing-games__btn-text:hover {
  color: #e6c200;
  text-decoration: underline;
}


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

.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08); /* Card background for FAQ items */
}

.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; /* Initial padding matches question */
  opacity: 0;
  color: #f0f0f0;
}

/* FAQ expanded state - ensure !important is used for max-height and padding */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* Sufficiently large value */
  padding: 20px !important; /* Adjusted padding */
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for expanded answer */
  border-radius: 0 0 5px 5px;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1); /* Slightly lighter background for question */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  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: rgba(255, 255, 255, 0.15);
  border-color: #FFD700;
}

.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Auxiliary color for question text */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-fishing-games__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change to X or rotate */
}

/* News Cards */
.page-fishing-games__news-card {
  text-align: left;
}

.page-fishing-games__news-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
  border-radius: 5px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
  object-fit: cover;
}

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

.page-fishing-games__news-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-fishing-games__news-excerpt {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

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

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 30px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

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

  .page-fishing-games__intro-text {
    font-size: 1em;
  }

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

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__game-cards-grid,
  .page-fishing-games__advantages-grid,
  .page-fishing-games__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__card,
  .page-fishing-games__advantage-item,
  .page-fishing-games__guide-item,
  .page-fishing-games__promotion-item {
    padding: 20px;
  }
}