:root {
  --main-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --background-color: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

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

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

.page-fishing-games__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  background: var(--background-color);
}

.page-fishing-games__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 675px; /* Limit max height for image */
  overflow: hidden;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Keep original color, only adjust brightness for text contrast */
}

.page-fishing-games__hero-content {
  position: relative;
  padding-top: 40px;
  color: var(--text-main);
  max-width: 900px;
  margin: 0 auto;
}

.page-fishing-games__hero-title {
  font-size: clamp(2.2em, 4vw, 2.8em);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-fishing-games__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-main);
}

.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-fishing-games__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

.page-fishing-games__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.page-fishing-games__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
}

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

.page-fishing-games__game-showcase {
  padding: 60px 0;
  background-color: var(--background-color);
}

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

.page-fishing-games__game-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-fishing-games__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-fishing-games__game-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
  padding: 0 15px;
}
.page-fishing-games__game-title a {
  color: inherit;
  text-decoration: none;
}
.page-fishing-games__game-title a:hover {
  color: var(--main-color);
}

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

.page-fishing-games__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: all 0.3s ease;
  margin-top: auto; /* Push to bottom */
  max-width: calc(100% - 30px); /* Account for padding */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__btn-small:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.page-fishing-games__how-to-play {
  padding: 60px 0;
  background-color: var(--card-bg); /* Use card-bg as lighter background for this section */
  color: var(--text-main);
}

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

.page-fishing-games__guide-text {
  flex: 1;
  text-align: left;
}

.page-fishing-games__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-fishing-games__guide-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  position: relative;
  padding-left: 30px;
  color: var(--text-main);
}

.page-fishing-games__guide-list li::before {
  content: counter(list-item) ".";
  counter-increment: list-item;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: var(--main-color);
}

.page-fishing-games__guide-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fishing-games__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-fishing-games__why-choose {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-fishing-games__features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__feature-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-fishing-games__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 15px;
}

.page-fishing-games__feature-text {
  font-size: 0.95em;
  color: var(--text-main);
}

.page-fishing-games__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-fishing-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.05); /* Lighter hover for dark card */
}

.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--main-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.2); /* Slightly darker background for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-main);
}

.page-fishing-games__call-to-action {
  padding: 80px 0;
  text-align: center;
  background-color: var(--background-color);
}

/* Global image styles */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-fishing-games__game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-fishing-games__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-fishing-games__hero-title {
    font-size: clamp(2em, 5vw, 2.5em);
  }
  .page-fishing-games__guide-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-fishing-games__guide-text, .page-fishing-games__guide-image-wrapper {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* General padding and text size */
  .page-fishing-games__container {
    padding: 0 15px !important;
  }
  .page-fishing-games {
    font-size: 15px;
  }
  
  /* Hero Section */
  .page-fishing-games__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }
  .page-fishing-games__hero-title {
    font-size: clamp(1.8em, 6vw, 2.2em) !important;
    margin-bottom: 10px;
  }
  .page-fishing-games__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-fishing-games__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .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;
  }

  /* Section Titles and Descriptions */
  .page-fishing-games__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-fishing-games__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Game Showcase Grid */
  .page-fishing-games__game-showcase {
    padding: 40px 0;
  }
  .page-fishing-games__game-grid {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px;
  }
  .page-fishing-games__game-image {
    height: 200px !important; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-fishing-games__btn-small {
    padding: 8px 15px;
    font-size: 0.85em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* How-To-Play Section */
  .page-fishing-games__how-to-play {
    padding: 40px 0;
  }
  .page-fishing-games__guide-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-fishing-games__guide-text,
  .page-fishing-games__guide-image-wrapper {
    flex: none;
    width: 100%;
  }
  .page-fishing-games__guide-list li {
    font-size: 1em;
    padding-left: 25px;
  }
  .page-fishing-games__guide-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Why Choose Section */
  .page-fishing-games__why-choose {
    padding: 40px 0;
  }
  .page-fishing-games__features-grid {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px;
  }
  .page-fishing-games__feature-item {
    padding: 25px;
  }
  .page-fishing-games__feature-title {
    font-size: 1.2em;
  }

  /* FAQ Section */
  .page-fishing-games__faq-section {
    padding: 40px 0;
  }
  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px !important;
  }
  .page-fishing-games__faq-qtext {
    font-size: 1em !important;
  }
  .page-fishing-games__faq-toggle {
    font-size: 20px !important;
    width: 24px !important;
  }
  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 15px 15px !important;
  }

  /* Call to Action Section */
  .page-fishing-games__call-to-action {
    padding: 60px 0;
  }

  /* Universal image and container sizing for mobile */
  .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__game-card,
  .page-fishing-games__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}