/* style/fishing-games.css */

/* Variables from shared.css will be available, e.g., --deep-navy-color, --text-main-color */
/* Body padding-top is handled by shared.css */

:root {
  --nn8-primary-blue: #113B7A;
  --nn8-secondary-blue: #1D5FD1;
  --nn8-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --nn8-card-bg: #10233F;
  --nn8-text-main: #F3F8FF;
  --nn8-text-secondary: #AFC4E8;
  --nn8-border-color: #244D84;
  --nn8-glow-color: #4FA8FF;
  --nn8-gold-color: #F2C14E;
  --nn8-divider-color: #1B3357;
  --nn8-deep-navy: #08162B; /* This is likely the body background from shared.css */
}

/* Base styles for the page, ensuring text contrast against --deep-navy-color (dark background) */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: var(--nn8-text-main); /* Light text for dark background */
  background-color: var(--nn8-deep-navy); /* Ensure consistency if body bg is not fully applied here */
  line-height: 1.6;
  font-size: 16px;
}

/* Ensure all links within the main content are visible */
.page-fishing-games a {
  color: var(--nn8-gold-color); /* Gold color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-fishing-games a:hover {
  color: var(--nn8-glow-color); /* Lighter gold on hover */
}

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

.page-fishing-games__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--nn8-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-fishing-games__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--nn8-gold-color);
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.page-fishing-games__text-block {
  color: var(--nn8-text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

.page-fishing-games__text-block:last-child {
  margin-bottom: 0;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--nn8-deep-navy);
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and content */
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-fishing-games__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Using clamp for responsive H1 */
  color: var(--nn8-gold-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-fishing-games__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--nn8-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-fishing-games__btn-primary {
  background: var(--nn8-button-gradient);
  color: var(--nn8-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-fishing-games__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
  transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
  background: transparent;
  color: var(--nn8-gold-color);
  border: 2px solid var(--nn8-gold-color);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-fishing-games__btn-secondary:hover {
  background: var(--nn8-gold-color);
  color: var(--nn8-primary-blue);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
  transform: translateY(-2px);
}

.page-fishing-games__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

/* Introduction Section */
.page-fishing-games__introduction-section {
  padding: 80px 0;
  background-color: var(--nn8-deep-navy);
}

.page-fishing-games__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-fishing-games__content-image {
  flex: 1;
  min-width: 300px; /* Ensure image doesn't get too small */
  max-width: 50%; /* Adjust for flexible layout */
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__text-content {
  flex: 1;
  min-width: 300px;
}

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

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

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

.page-fishing-games__feature-list li::before {
  content: '★'; /* Star icon */
  color: var(--nn8-gold-color);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 20px;
  line-height: 1;
}

/* Popular Games Section */
.page-fishing-games__popular-games-section {
  padding: 80px 0;
  background-color: var(--nn8-primary-blue); /* Slightly different background */
}

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

.page-fishing-games__game-card {
  background-color: var(--nn8-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-fishing-games__game-title {
  font-size: 24px;
  color: var(--nn8-gold-color);
  margin-bottom: 10px;
  font-weight: 700;
  padding: 0 15px;
}

.page-fishing-games__game-description {
  color: var(--nn8-text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1; /* Push button to bottom */
}

/* How To Play Section */
.page-fishing-games__how-to-play-section {
  padding: 80px 0;
  background-color: var(--nn8-deep-navy);
}

.page-fishing-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 30px auto;
  max-width: 800px;
  counter-reset: step-counter; /* Initialize counter */
}

.page-fishing-games__steps-list li {
  background-color: var(--nn8-card-bg);
  border: 1px solid var(--nn8-border-color);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--nn8-text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 50px;
}

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

.page-fishing-games__steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--nn8-gold-color);
  color: var(--nn8-primary-blue);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

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

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 80px 0;
  background-color: var(--nn8-primary-blue); /* Dark background for this section */
  color: var(--nn8-text-main);
}

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

.page-fishing-games__promo-card {
  background-color: var(--nn8-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
}

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

.page-fishing-games__promo-title {
  font-size: 24px;
  color: var(--nn8-gold-color);
  margin-bottom: 10px;
  font-weight: 700;
  padding: 0 15px;
}

.page-fishing-games__promo-description {
  color: var(--nn8-text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 80px 0;
  background-color: var(--nn8-deep-navy);
}

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

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--nn8-gold-color);
  cursor: pointer;
  background-color: var(--nn8-primary-blue);
  border-bottom: 1px solid var(--nn8-divider-color);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
  background-color: var(--nn8-card-bg); /* Change background when open */
  border-bottom-color: transparent; /* Hide border when open */
}

.page-fishing-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-fishing-games__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: var(--nn8-text-secondary);
}

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

.page-fishing-games__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-fishing-games__text-link {
  color: var(--nn8-gold-color);
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-fishing-games__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-fishing-games__hero-content {
    padding: 0 15px;
  }
  .page-fishing-games__main-title {
    margin-bottom: 15px;
  }
  .page-fishing-games__hero-description {
    margin-bottom: 25px;
  }
  .page-fishing-games__hero-cta-buttons {
    gap: 15px;
  }
  .page-fishing-games__content-image {
    max-width: 100%; /* Full width on smaller screens */
  }
  .page-fishing-games__image-text-block {
    flex-direction: column;
    align-items: center;
  }
  .page-fishing-games__text-content {
    text-align: center;
    margin-top: 30px;
  }
  .page-fishing-games__feature-list li {
    padding-left: 0;
    text-align: left; /* Align list items left */
  }
  .page-fishing-games__feature-list li::before {
    position: static;
    margin-right: 10px;
  }
}

@media (max-width: 768px) {
  /* General mobile padding */
  .page-fishing-games__container {
    padding: 0 15px !important;
  }

  /* Sections padding */
  .page-fishing-games__hero-section,
  .page-fishing-games__introduction-section,
  .page-fishing-games__popular-games-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section {
    padding: 40px 0 !important;
  }
  .page-fishing-games__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  /* Images */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__content-image,
  .page-fishing-games__game-image,
  .page-fishing-games__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons */
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__hero-cta-buttons,
  .page-fishing-games__cta-center,
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important; /* Consistent gap */
  }

  /* Ensure content containers don't overflow */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__game-list,
  .page-fishing-games__promo-grid,
  .page-fishing-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-fishing-games__steps-list li {
    padding-left: 20px; /* Adjust padding for smaller screens */
  }
  .page-fishing-games__steps-list li::before {
    left: 5px; /* Adjust position for smaller screens */
    top: 15px; /* Adjust vertical alignment */
    transform: none; /* Reset transform */
  }

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

/* Color contrast enforcement (already integrated through variable usage for text and background) */
.page-fishing-games__dark-section {
  background-color: var(--nn8-primary-blue);
  color: var(--nn8-text-main);
}

/* No CSS filters on images */
.page-fishing-games img {
  filter: none !important;
}

/* No video CSS, as no video is included in this HTML for now. */