/* style/fishing-games.css */

/* Variables from shared.css:
   --primary-color: #017439;
   --secondary-color: #FFFFFF;
   --text-color-dark: #333333;
   --text-color-light: #ffffff;
   --header-offset: ...;
*/

.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark, #333333); /* Default text color for light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensure page background matches body if needed */
}

/* --- Hero Section --- */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color), #004d20); /* Darker green gradient */
  color: var(--text-color-light, #ffffff);
  overflow: hidden; /* Prevent content overflow */
}

.page-fishing-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure container takes full width for responsive padding */
}

.page-fishing-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-fishing-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-fishing-games__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-color-light, #ffffff);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  font-weight: bold;
}

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

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color); /* Default primary button */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__cta-button:hover {
  background: #004d20; /* Darker shade on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Custom button styles based on color scheme */
.page-fishing-games__btn-primary {
  background: #C30808; /* Red for primary action */
  color: #FFFF00; /* Yellow text for primary action */
}
.page-fishing-games__btn-primary:hover {
  background: #a30606; /* Darker red on hover */
}

.page-fishing-games__btn-secondary {
  background: var(--secondary-color); /* White for secondary action */
  color: var(--primary-color); /* Dark green text for secondary action */
  border: 2px solid var(--primary-color);
}
.page-fishing-games__btn-secondary:hover {
  background: #e0e0e0; /* Light gray on hover */
}

/* --- General Section Styles --- */
.page-fishing-games__section {
  padding: 60px 20px;
  text-align: center;
  overflow: hidden; /* Prevent horizontal scroll */
}

.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-fishing-games__container--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: bold;
}

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

/* Background specific styles for contrast */
.page-fishing-games__light-bg {
  background-color: var(--secondary-color, #FFFFFF);
  color: var(--text-color-dark, #333333);
}
.page-fishing-games__light-bg .page-fishing-games__section-title {
  color: var(--primary-color);
}
.page-fishing-games__light-bg .page-fishing-games__section-description {
  color: #555555;
}
.page-fishing-games__light-bg a {
  color: var(--primary-color);
  text-decoration: underline;
}
.page-fishing-games__light-bg a:hover {
  color: #004d20;
}

.page-fishing-games__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-light, #ffffff);
}
.page-fishing-games__dark-bg .page-fishing-games__section-title {
  color: var(--text-color-light, #ffffff);
}
.page-fishing-games__dark-bg .page-fishing-games__section-description {
  color: #f0f0f0;
}
.page-fishing-games__dark-bg a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}
.page-fishing-games__dark-bg a:hover {
  color: #ffd700;
}


/* --- Content Wrappers for Image/Text Layout --- */
.page-fishing-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-bottom: 40px;
}

.page-fishing-games__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-fishing-games__content-wrapper p,
.page-fishing-games__content-wrapper ul,
.page-fishing-games__content-wrapper ol {
  flex: 1;
  font-size: 1.1em;
}

.page-fishing-games__image-content {
  flex: 1;
  max-width: 50%; /* Adjust as needed */
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* --- List Styles --- */
.page-fishing-games__list-numbered,
.page-fishing-games__list-bullet {
  text-align: left;
  margin: 0 auto 40px;
  max-width: 800px;
  list-style-position: inside;
  font-size: 1.1em;
  padding-left: 0; /* Reset default padding */
}

.page-fishing-games__list-numbered li,
.page-fishing-games__list-bullet li {
  margin-bottom: 10px;
  padding-left: 25px; /* Indent for bullet/number */
  position: relative;
}

.page-fishing-games__list-bullet {
  list-style-type: none; /* Remove default bullet */
}
.page-fishing-games__list-bullet li:before {
  content: "•"; /* Custom bullet */
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* --- Card Grid --- */
.page-fishing-games__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-fishing-games__card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 300px; /* Ensure cards have similar height */
  color: var(--text-color-dark, #333333);
}

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

.page-fishing-games__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-fishing-games__card-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow */
}

/* --- Button Group --- */
.page-fishing-games__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: hidden;
}

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

/* FAQ container style */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 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 15px;
  opacity: 0;
  color: var(--text-color-dark, #333333);
}

/* 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 for any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
}

/* Question style */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-color-dark, #333333);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #d0d0d0;
}

.page-fishing-games__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--primary-color); /* FAQ questions use primary color */
}

/* Toggle icon */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: var(--primary-color);
  transform: rotate(45deg); /* Change to X or rotate */
}

/* --- General Text Block --- */
.page-fishing-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: left;
  color: var(--text-color-dark, #333333);
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 2.8em;
  }
  .page-fishing-games__section-title {
    font-size: 2em;
  }
  .page-fishing-games__hero-description {
    font-size: 1.1em;
  }
  .page-fishing-games__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-fishing-games__content-wrapper--reverse {
    flex-direction: column; /* Keep consistent on smaller screens */
  }
  .page-fishing-games__image-content {
    max-width: 80%;
    margin-bottom: 30px;
  }
  .page-fishing-games__list-numbered,
  .page-fishing-games__list-bullet {
    padding-left: 20px;
  }
  .page-fishing-games__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-fishing-games__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-fishing-games__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-fishing-games__section {
    padding: 40px 15px;
  }
  .page-fishing-games__container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-fishing-games__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-fishing-games__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-fishing-games__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .page-fishing-games__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
    border-radius: 4px;
  }
  
  /* Images within content sections */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-fishing-games__card {
    padding: 20px;
    min-height: auto;
  }
  .page-fishing-games__card-image {
    height: 180px;
    border-radius: 4px;
  }
  .page-fishing-games__card-title {
    font-size: 1.3em;
  }
  .page-fishing-games__card-text {
    font-size: 0.95em;
  }

  /* Button group mobile adaptation */
  .page-fishing-games__button-group {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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