/* style/fishing-games.css */

/* Custom Colors */
:root {
  --ae555-color-primary: #11A84E;
  --ae555-color-secondary: #22C768;
  --ae555-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --ae555-card-bg: #11271B;
  --ae555-background: #08160F;
  --ae555-text-main: #F2FFF6;
  --ae555-text-secondary: #A7D9B8;
  --ae555-border: #2E7A4E;
  --ae555-glow: #57E38D;
  --ae555-gold: #F2C14E;
  --ae555-divider: #1E3A2A;
  --ae555-deep-green: #0A4B2C;
}

/* Base styles for the page */
.page-fishing-games {
  background-color: var(--ae555-background);
  color: var(--ae555-text-main); /* Default text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-fishing-games__dark-bg {
  background-color: var(--ae555-background);
  color: var(--ae555-text-main);
}

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

.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added for mobile safety */
  box-sizing: border-box; /* Added for mobile safety */
}

.page-fishing-games__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: var(--ae555-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-fishing-games__section-description {
  font-size: 1.1em;
  color: var(--ae555-text-secondary);
  margin-bottom: 40px;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of hero image */
  overflow: hidden;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over image slightly for visual flow */
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text block */
  border-radius: 10px;
}

.page-fishing-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  color: var(--ae555-gold);
  margin-bottom: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__subtitle {
  font-size: clamp(1.1em, 2vw, 1.4em);
  color: var(--ae555-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-fishing-games__btn-primary {
  background: var(--ae555-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: var(--ae555-gold);
  border: 2px solid var(--ae555-gold);
}

.page-fishing-games__btn-secondary:hover {
  background-color: var(--ae555-gold);
  color: var(--ae555-background);
  transform: translateY(-3px);
}

/* About Fishing Section */
.page-fishing-games__about-fishing .page-fishing-games__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-fishing-games__about-fishing .page-fishing-games__text-block {
  flex: 2;
  min-width: 300px;
}

.page-fishing-games__about-fishing .page-fishing-games__text-block p {
  margin-bottom: 15px;
  color: #333333;
}

.page-fishing-games__about-fishing .page-fishing-games__text-block a {
  color: var(--ae555-color-primary);
  text-decoration: underline;
}

.page-fishing-games__about-fishing .page-fishing-games__image-block {
  flex: 1;
  min-width: 250px;
}

.page-fishing-games__about-fishing .page-fishing-games__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure image behaves as a block element */
}

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

.page-fishing-games__game-card.page-fishing-games__card {
  background-color: var(--ae555-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: var(--ae555-text-main);
}

.page-fishing-games__game-card .page-fishing-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-fishing-games__game-card .page-fishing-games__card-title {
  font-size: 1.5em;
  color: var(--ae555-gold);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__game-card .page-fishing-games__card-text {
  font-size: 0.95em;
  color: var(--ae555-text-secondary);
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__game-card .page-fishing-games__btn-primary {
  margin-top: auto;
  align-self: center;
}

.page-fishing-games__cta-more {
  margin-top: 50px;
}

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

.page-fishing-games__guide-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-fishing-games__guide-item .page-fishing-games__guide-step-title {
  font-size: 1.3em;
  color: var(--ae555-color-primary);
  margin-bottom: 10px;
}

.page-fishing-games__guide-item p {
  font-size: 0.95em;
  color: #555555;
}

.page-fishing-games__guide-item a {
  color: var(--ae555-color-primary);
  text-decoration: underline;
}

.page-fishing-games__cta-full-guide {
  margin-top: 50px;
}

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

.page-fishing-games__promotion-card.page-fishing-games__card {
  background-color: var(--ae555-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: var(--ae555-text-main);
}

.page-fishing-games__promotion-card .page-fishing-games__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-fishing-games__promotion-card .page-fishing-games__card-title {
  font-size: 1.4em;
  color: var(--ae555-gold);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-fishing-games__promotion-card .page-fishing-games__card-text {
  font-size: 0.95em;
  color: var(--ae555-text-secondary);
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__promotion-card .page-fishing-games__btn-secondary {
  margin-top: auto;
  align-self: flex-start;
  margin-left: 20px;
}

.page-fishing-games__cta-all-promotions {
  margin-top: 50px;
}

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

.page-fishing-games__feature-item.page-fishing-games__card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: #333333;
}

.page-fishing-games__feature-item .page-fishing-games__feature-title {
  font-size: 1.4em;
  color: var(--ae555-color-primary);
  margin-bottom: 10px;
}

.page-fishing-games__feature-item .page-fishing-games__feature-text {
  font-size: 0.95em;
  color: #555555;
}

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

.page-fishing-games__faq-item.page-fishing-games__card {
  background-color: var(--ae555-card-bg);
  border: 1px solid var(--ae555-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--ae555-text-main);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: var(--ae555-text-main);
  position: relative;
  user-select: none; /* Prevent text selection on click */
}

.page-fishing-games__faq-question::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none; /* Make sure click goes to summary */
}

.page-fishing-games__faq-qtext {
  flex-grow: 1;
  color: var(--ae555-gold);
}

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

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

.page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: var(--ae555-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding-top: 10px;
}

/* For details/summary, hide default marker */
.page-fishing-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-fishing-games__faq-item summary {
  list-style: none;
}

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

.page-fishing-games__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-fishing-games__faq-answer a {
  color: var(--ae555-color-primary);
  text-decoration: underline;
}

/* Final CTA Section */
.page-fishing-games__cta-final {
  padding: 80px 20px;
  background-color: var(--ae555-deep-green);
  color: var(--ae555-text-main);
}

.page-fishing-games__cta-final .page-fishing-games__section-title {
  color: var(--ae555-gold);
}

.page-fishing-games__cta-final .page-fishing-games__section-description {
  color: var(--ae555-text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General text styling */
.page-fishing-games p {
  color: var(--ae555-text-secondary);
}

.page-fishing-games__light-bg p {
  color: #555555;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

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

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

  .page-fishing-games__hero-section {
    padding-top: 10px !important;
  }

  .page-fishing-games__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    border-radius: 0;
  }

  .page-fishing-games__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-fishing-games__subtitle {
    font-size: clamp(1em, 3.5vw, 1.2em);
  }

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
    margin-left: 0 !important;
    margin-right: 0 !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__section-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }

  .page-fishing-games__about-fishing .page-fishing-games__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-fishing-games__about-fishing .page-fishing-games__text-block,
  .page-fishing-games__about-fishing .page-fishing-games__image-block {
    min-width: unset;
    width: 100%;
  }

  .page-fishing-games__game-list,
  .page-fishing-games__guide-steps,
  .page-fishing-games__promotion-list,
  .page-fishing-games__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-fishing-games__card-image,
  .page-fishing-games__content-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
  }

  .page-fishing-games__game-card.page-fishing-games__card,
  .page-fishing-games__promotion-card.page-fishing-games__card,
  .page-fishing-games__feature-item.page-fishing-games__card,
  .page-fishing-games__guide-item,
  .page-fishing-games__faq-item.page-fishing-games__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__promotion-card .page-fishing-games__btn-secondary {
    align-self: center;
    margin-left: 0;
    width: calc(100% - 30px) !important; /* Adjust for card padding */
  }

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

  .page-fishing-games__faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__hero-content {
    margin-top: -40px;
  }
}