/* style/fishing-games.css */
/* Base styles for the fishing games page */
.page-fishing-games {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body or shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section padding */
.page-fishing-games__hero-section,
.page-fishing-games__about-section,
.page-fishing-games__features-section,
.page-fishing-games__games-showcase,
.page-fishing-games__how-to-play-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-section {
  padding: 60px 20px;
  position: relative;
  overflow: hidden; /* Ensure no content overflow */
}

/* Specific padding for hero section to avoid double padding with body */
.page-fishing-games__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-fishing-games__dark-section {
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color background */
  color: #ffffff;
}

/* Container for content */
.page-fishing-games__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Inner padding for smaller screens */
  box-sizing: border-box;
}

/* Titles */
.page-fishing-games__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-fishing-games__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 800px; /* Constrain H1 width */
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

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

.page-fishing-games__text-block {
  margin-bottom: 20px;
  font-size: 1em;
  color: #f0f0f0;
}

/* Images */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below images */
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no filter on images */
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Match container max-width */
  margin-bottom: 30px;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  min-height: 300px; /* Ensure minimum size */
}

.page-fishing-games__feature-icon {
  width: 100%; /* Ensure it fills card width */
  height: 200px; /* Minimum height for feature icons */
  min-width: 200px; /* Minimum width for content images */
  min-height: 200px; /* Minimum height for content images */
  margin-bottom: 15px;
}

.page-fishing-games__game-image {
  width: 100%;
  height: 250px; /* Fixed height for game cards */
  min-width: 200px; /* Minimum width for content images */
  min-height: 200px; /* Minimum height for content images */
  margin-bottom: 15px;
}

/* Buttons */
.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__card-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box; /* Include padding in width calculation */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  min-width: 150px; /* Ensure buttons are not too small */
}

.page-fishing-games__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-fishing-games__btn-primary:hover {
  background-color: #1e87b5;
  border-color: #1e87b5;
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: #EA7C07; /* Login button specific color */
  border: 2px solid #EA7C07;
}

.page-fishing-games__btn-secondary:hover {
  background-color: #EA7C07;
  color: #ffffff;
}

.page-fishing-games__card-btn {
  background-color: #26A9E0;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-fishing-games__card-btn:hover {
  background-color: #1e87b5;
}

.page-fishing-games__cta-buttons--large .page-fishing-games__btn-primary,
.page-fishing-games__cta-buttons--large .page-fishing-games__btn-secondary {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* 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-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for contrast */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-fishing-games__feature-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-fishing-games__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

.page-fishing-games__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  color: #ffffff;
}

.page-fishing-games__game-title {
  font-size: 1.3em;
  margin: 15px 15px 10px;
  color: #26A9E0;
}

.page-fishing-games__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-fishing-games__game-title a:hover {
  text-decoration: underline;
}

.page-fishing-games__game-description {
  font-size: 0.9em;
  color: #f0f0f0;
  padding: 0 15px;
  margin-bottom: 15px;
}

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

.page-fishing-games__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-fishing-games__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
  display: block;
}

.page-fishing-games__step-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-fishing-games__step-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-fishing-games__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-fishing-games__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-fishing-games__promo-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-fishing-games__promo-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

.page-fishing-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-qtext {
  flex-grow: 1;
  padding-right: 10px;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #ffffff;
}

.page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: #f0f0f0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

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

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

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

/* Responsive styles */
@media (max-width: 768px) {
  .page-fishing-games__hero-section,
  .page-fishing-games__about-section,
  .page-fishing-games__features-section,
  .page-fishing-games__games-showcase,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    padding: 30px 0; /* Adjust overall section padding */
  }

  /* Ensure containers have padding on mobile */
  .page-fishing-games__container {
    padding: 0 15px;
  }

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

  .page-fishing-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for mobile */
  }

  .page-fishing-games__hero-description {
    font-size: 1em;
  }

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__card-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__cta-buttons,
  .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;
  }

  /* Mobile image responsiveness */
  .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 {
    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 */
  }

  /* Adjust grid layouts for mobile */
  .page-fishing-games__features-grid,
  .page-fishing-games__games-grid,
  .page-fishing-games__steps-grid,
  .page-fishing-games__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__feature-icon {
    height: auto; /* Allow height to adjust on mobile */
    min-height: 150px;
  }
  .page-fishing-games__game-image {
    height: auto; /* Allow height to adjust on mobile */
    min-height: 200px;
  }

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

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