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

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

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

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

.page-fishing-games__section-title {
  font-size: 2.8em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-fishing-games__section-subtitle {
  font-size: 1.2em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

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

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

.page-fishing-games__text-block {
  flex: 1;
}

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

.page-fishing-games__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fishing-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.page-fishing-games__cta-button--wide {
  width: 100%;
  text-align: center;
}

.page-fishing-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Rely on body padding for header offset */
  position: relative;
  overflow: hidden;
  background-color: var(--background-color);
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Maintain aspect ratio and cover area */
  border-radius: 0;
  box-shadow: none;
}

.page-fishing-games__hero-content {
  padding: 40px 20px;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.page-fishing-games__hero-title {
  font-size: 3.5em;
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.page-fishing-games__hero-description {
  font-size: 1.3em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__intro-section p .highlight,
.page-fishing-games__game-tile p .highlight,
.page-fishing-games__strategy-list .highlight,
.page-fishing-games__promotion-cards p .highlight,
.page-fishing-games__step-list .highlight,
.page-fishing-games__faq-answer p .highlight {
  color: var(--gold-color);
  font-weight: bold;
}

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

.page-fishing-games__game-tile {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-fishing-games__game-image {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 2px solid var(--gold-color);
}

.page-fishing-games__game-title {
  font-size: 1.8em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-fishing-games__game-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 60px; /* Ensure consistent card height */
}

.page-fishing-games__game-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__game-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-fishing-games__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-fishing-games__benefit-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__benefit-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-fishing-games__benefit-item p {
  color: var(--text-secondary);
}

.page-fishing-games__strategy-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-main);
}

.page-fishing-games__strategy-list li {
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-fishing-games__strategy-list li strong {
  color: var(--gold-color);
}

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

.page-fishing-games__card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.page-fishing-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.page-fishing-games__card-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

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

.page-fishing-games__card-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__card-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-fishing-games__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-fishing-games__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-fishing-games__step-list li {
  counter-increment: step-counter;
  margin-bottom: 20px;
  position: relative;
  padding-left: 40px;
  color: var(--text-main);
}

.page-fishing-games__step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--gold-color);
  color: var(--background-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-fishing-games__step-list li strong {
  color: var(--gold-color);
}

.page-fishing-games__faq-list {
  margin-top: 40px;
}

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.3em;
  font-weight: bold;
  color: var(--gold-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--text-main);
}

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

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

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question .page-fishing-games__faq-toggle {
  content: '−';
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-fishing-games__section-title {
    font-size: 2.2em;
  }
  .page-fishing-games__hero-title {
    font-size: 2.8em;
  }
  .page-fishing-games__hero-description {
    font-size: 1.1em;
  }
  .page-fishing-games__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .page-fishing-games__game-image {
    width: 220px;
    height: 220px;
  }
  .page-fishing-games__promotion-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-fishing-games__section-spacing {
    padding: 40px 0;
  }
  .page-fishing-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-fishing-games__hero-section {
    padding-top: 10px !important; /* Specific top padding */
  }
  .page-fishing-games__hero-image-wrapper {
    max-height: 300px; /* Adjust height for mobile */
  }
  .page-fishing-games__hero-image {
    object-fit: contain !important; /* Prevent cropping sides */
    aspect-ratio: unset !important;
    max-height: none !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__hero-content {
    padding: 30px 15px;
  }
  .page-fishing-games__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-fishing-games__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* General content layout */
  .page-fishing-games__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-fishing-games__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-fishing-games__text-block, .page-fishing-games__image-block {
    flex: none;
    width: 100%;
  }

  /* Images and their containers */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons and their containers */
  .page-fishing-games__cta-button,
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games a[class*="button"],
  .page-fishing-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__button-group,
  .page-fishing-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  /* Game Grid */
  .page-fishing-games__game-grid {
    grid-template-columns: 1fr 1fr; /* Two columns for mobile */
    gap: 15px;
  }
  .page-fishing-games__game-image {
    width: 100%; /* Make images fill their grid slot */
    height: auto;
    aspect-ratio: 1/1; /* Maintain square aspect ratio */
    object-fit: cover;
  }
  .page-fishing-games__game-tile {
    padding: 15px;
  }
  .page-fishing-games__game-title {
    font-size: 1.4em;
  }
  .page-fishing-games__game-description {
    min-height: auto;
  }

  /* Promotion Cards */
  .page-fishing-games__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-fishing-games__card {
    padding: 15px;
  }
  .page-fishing-games__card-image {
    height: 180px;
  }

  /* FAQ Section */
  .page-fishing-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-fishing-games__faq-answer {
    font-size: 0.95em;
    padding: 0 20px 15px;
  }
  .page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
    padding: 0 20px 15px;
  }
}