/* style/fishing-games.css */

/* Base Styles */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background */
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #f8f8f8;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

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

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-fishing-games__hero-content {
  max-width: 900px;
  width: 100%;
  padding: 30px 20px 0;
  box-sizing: border-box;
}

.page-fishing-games__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size */
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-fishing-games__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555555;
}

.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  width: 100%; /* Ensure container width */
  max-width: 100%; /* Ensure container max width */
  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: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button max width */
}

.page-fishing-games__btn-primary {
  background-color: #C30808; /* Custom Login/Register color */
  color: #FFFF00; /* Custom Login/Register font color */
  border: 2px solid #C30808;
}

.page-fishing-games__btn-primary:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
  background-color: #017439; /* Main brand color */
  color: #FFFFFF; /* Auxiliary color */
  border: 2px solid #017439;
}

.page-fishing-games__btn-secondary:hover {
  background-color: #005a2b;
  transform: translateY(-2px);
}

/* General Section Styles */
.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-fishing-games__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

.page-fishing-games__section-title--white {
  color: #FFFFFF;
}

.page-fishing-games__section-description {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

/* Game Showcase Section */
.page-fishing-games__game-showcase {
  background-color: #f9f9f9;
}

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

.page-fishing-games__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-fishing-games__game-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__game-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-fishing-games__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: calc(100% - 30px); /* Adjust for padding */
}

.page-fishing-games__btn-small:hover {
  background-color: #005a2b;
}

/* Advantages Section */
.page-fishing-games__advantages-section {
  background-color: #017439; /* Main brand color for dark background */
  color: #FFFFFF; /* White text for dark background */
  padding: 60px 0;
}

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

.page-fishing-games__advantage-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
  border-radius: 10px;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__advantage-icon {
  width: 100px; /* Example size, ensuring min 200px for actual image */
  height: auto;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__advantage-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00; /* Custom font color for emphasis */
}

.page-fishing-games__advantage-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #f0f0f0;
}

/* How to Play Section */
.page-fishing-games__how-to-play {
  background-color: #ffffff;
}

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

.page-fishing-games__step-item {
  padding: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #fcfcfc;
  transition: box-shadow 0.3s ease;
}

.page-fishing-games__step-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-fishing-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #017439;
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-fishing-games__step-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-fishing-games__step-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666666;
}

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

/* FAQ Section */
.page-fishing-games__faq-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

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

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 25px 20px;
  background: #fcfcfc;
  border-radius: 0 0 8px 8px;
  color: #555555;
  line-height: 1.6;
}
.page-fishing-games__faq-answer p {
  margin: 0;
}


/* General Image Responsive Styles */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure content containers are responsive */
.page-fishing-games__section,
.page-fishing-games__card,
.page-fishing-games__container,
.page-fishing-games__hero-section,
.page-fishing-games__game-showcase,
.page-fishing-games__advantages-section,
.page-fishing-games__how-to-play,
.page-fishing-games__faq-section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-fishing-games__container {
    padding: 30px 20px;
  }

  .page-fishing-games__game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-fishing-games__advantages-grid,
  .page-fishing-games__steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-fishing-games__advantage-icon {
    width: 80px;
  }

  .page-fishing-games__main-title {
    font-size: 2.5rem;
  }
  .page-fishing-games__section-title {
    font-size: 2rem;
  }
  .page-fishing-games__faq-qtext {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-fishing-games__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-fishing-games__hero-content {
    padding: 20px 15px 0;
  }

  .page-fishing-games__main-title {
    font-size: 2rem !important; /* Ensure readable H1 on mobile */
    margin-bottom: 15px;
  }

  .page-fishing-games__intro-text {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* General Section Styles */
  .page-fishing-games__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 15px;
  }

  .page-fishing-games__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* Game Showcase Section */
  .page-fishing-games__game-grid {
    grid-template-columns: 1fr; /* Single column for game cards */
    gap: 20px;
  }

  .page-fishing-games__game-card {
    padding-bottom: 20px;
  }

  .page-fishing-games__game-image {
    height: 200px; /* Adjust image height for mobile */
  }

  .page-fishing-games__game-title {
    font-size: 1.2rem;
  }

  .page-fishing-games__game-text {
    font-size: 0.9rem;
  }

  .page-fishing-games__btn-small {
    max-width: calc(100% - 30px) !important;
    width: auto; /* Allow content to dictate width if short */
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  /* Advantages Section */
  .page-fishing-games__advantages-grid {
    grid-template-columns: 1fr; /* Single column for advantages */
    gap: 20px;
  }

  .page-fishing-games__advantage-item {
    padding: 15px;
  }

  .page-fishing-games__advantage-icon {
    width: 70px;
    height: auto;
  }

  .page-fishing-games__advantage-title {
    font-size: 1.1rem;
  }

  .page-fishing-games__advantage-text {
    font-size: 0.9rem;
  }

  /* How to Play Section */
  .page-fishing-games__steps-grid {
    grid-template-columns: 1fr; /* Single column for steps */
    gap: 20px;
  }

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

  .page-fishing-games__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .page-fishing-games__step-title {
    font-size: 1.1rem;
  }

  .page-fishing-games__step-text {
    font-size: 0.9rem;
  }

  /* FAQ Section */
  .page-fishing-games__faq-list {
    margin-top: 20px;
    padding: 0 10px;
  }

  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px 20px;
  }

  .page-fishing-games__faq-qtext {
    font-size: 1rem !important;
  }

  .page-fishing-games__faq-toggle {
    font-size: 20px;
    width: 24px;
  }

  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* General Image Responsive Styles */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Ensure content containers are responsive */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-section,
  .page-fishing-games__game-showcase,
  .page-fishing-games__advantages-section,
  .page-fishing-games__how-to-play,
  .page-fishing-games__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-fishing-games__container */
  }
}