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

.page-fishing-games {
  background-color: var(--background-color-page);
  color: var(--text-main-color);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-fishing-games__section-spacing {
  padding: 80px 0;
}

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

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit hero image height */
}

.page-fishing-games__hero-content {
  position: relative; /* Ensure content is above image */
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -150px; /* Adjust to pull content slightly over image bottom */
  background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-fishing-games__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-fishing-games__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--text-secondary-color);
  margin-bottom: 30px;
}

.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: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-fishing-games__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid transparent;
}

.page-fishing-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.4);
}

.page-fishing-games__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.4);
}

.page-fishing-games__btn-large {
  min-width: 200px;
}

.page-fishing-games__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-fishing-games__section-description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.page-fishing-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.page-fishing-games__text-block {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-fishing-games__text-block p {
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-fishing-games__image-right,
.page-fishing-games__image-left {
  flex-shrink: 0;
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  object-fit: cover;
}

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

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

.page-fishing-games__card,
.page-fishing-games__game-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__card:hover,
.page-fishing-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

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

.page-fishing-games__card p,
.page-fishing-games__game-description {
  color: var(--text-secondary-color);
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-fishing-games__card-image,
.page-fishing-games__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-fishing-games__deep-green-bg {
  background-color: var(--deep-green-bg);
}

.page-fishing-games__deep-green-bg .page-fishing-games__section-title {
  color: var(--gold-color);
}

.page-fishing-games__steps-list {
  list-style: none;
  padding: 0;
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-fishing-games__step-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  counter-increment: step-counter;
  position: relative;
  padding-left: 60px;
}

.page-fishing-games__step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  background: var(--primary-color);
  color: var(--text-main-color);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2em;
}

.page-fishing-games__step-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-fishing-games__step-item p {
  color: var(--text-secondary-color);
  font-size: 0.95em;
}

.page-fishing-games__sub-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-fishing-games__dark-section {
  background-color: var(--deep-green-bg);
}

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

.page-fishing-games__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  overflow: hidden;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-fishing-games__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.1);
}

.page-fishing-games__faq-item[open] > .page-fishing-games__faq-question {
  border-bottom-color: transparent;
}

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

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--gold-color);
  margin-left: 20px;
  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 25px 20px;
  color: var(--text-secondary-color);
  font-size: 1em;
}

.page-fishing-games__faq-answer p {
  margin-top: 15px;
}

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

.page-fishing-games__section-title--cta {
  color: var(--gold-color);
  font-size: clamp(2em, 4vw, 3em);
}

.page-fishing-games__cta-container {
  text-align: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

@media (max-width: 768px) {
  .page-fishing-games__section-spacing {
    padding: 60px 0;
  }

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

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

  .page-fishing-games__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .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 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-fishing-games__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

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

  .page-fishing-games__text-block,
  .page-fishing-games__image-right,
  .page-fishing-games__image-left,
  .page-fishing-games__steps-list {
    max-width: 100%;
    width: 100%;
  }

  .page-fishing-games__grid-3-col,
  .page-fishing-games__grid-2-col {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-fishing-games__card,
  .page-fishing-games__game-card,
  .page-fishing-games__step-item,
  .page-fishing-games__faq-item,
  .page-fishing-games__cta-container {
    padding: 25px;
    border-radius: 10px;
  }

  .page-fishing-games__card-image,
  .page-fishing-games__game-image {
    height: 200px;
  }

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

  .page-fishing-games__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9em;
  }

  /* Mobile specific image rules */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-section,
  .page-fishing-games__intro-section,
  .page-fishing-games__advantages-section,
  .page-fishing-games__popular-games-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__tips-strategies-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-fishing-games__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

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

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

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

  .page-fishing-games__step-item {
    padding-left: 50px;
  }

  .page-fishing-games__step-item::before {
    left: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    font-size: 1em;
  }
}