.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-fishing-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

.page-fishing-games__hero-section .page-fishing-games__container {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.page-fishing-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff; /* White title for dark background */
  font-weight: bold;
}

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff; /* Default white for dark body background */
  font-weight: bold;
}

.page-fishing-games__introduction-section,
.page-fishing-games__guide-section,
.page-fishing-games__promotions-section,
.page-fishing-games__advantages-section,
.page-fishing-games__faq-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Inherit from body or use transparent */
}

.page-fishing-games__dark-section {
  background-color: #017439; /* Brand primary color for sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-fishing-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-fishing-games__dark-section .page-fishing-games__text-block,
.page-fishing-games__dark-section .page-fishing-games__section-title {
  color: #ffffff;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-fishing-games__btn-secondary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-fishing-games__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

.page-fishing-games__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-fishing-games__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

.page-fishing-games__game-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.1); /* Light background for cards */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-fishing-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-fishing-games__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff;
}

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

.page-fishing-games__guide-list,
.page-fishing-games__strategy-list,
.page-fishing-games__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-fishing-games__guide-list li,
.page-fishing-games__strategy-list li,
.page-fishing-games__advantages-list li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
  border-left: 5px solid #017439;
}

.page-fishing-games__guide-list li strong,
.page-fishing-games__strategy-list li strong,
.page-fishing-games__advantages-list li strong {
  color: #ffffff;
}

.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: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-fishing-games__video-section {
  padding: 60px 0;
  background-color: #1a1a2e;
  text-align: center;
}

.page-fishing-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 1000px; /* Max width for the video player */
  width: 100%;
  box-sizing: border-box;
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure video does not overflow */
  height: auto; /* Maintain aspect ratio */
  display: block;
}

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

.page-fishing-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  color: #ffffff;
}

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

.page-fishing-games__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  transform: rotate(45deg);
}

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

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px;
}

.page-fishing-games__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 3em;
  }
  .page-fishing-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-fishing-games__hero-title {
    font-size: 2.5em;
  }
  .page-fishing-games__hero-description {
    font-size: 1.1em;
  }
  .page-fishing-games__section-title {
    font-size: 1.8em;
  }
  .page-fishing-games__text-block,
  .page-fishing-games__card-text,
  .page-fishing-games__guide-list li,
  .page-fishing-games__strategy-list li,
  .page-fishing-games__advantages-list li,
  .page-fishing-games__faq-title {
    font-size: 1em;
  }
  
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !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-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-fishing-games__game-grid,
  .page-fishing-games__promotion-cards {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  
  .page-fishing-games__image-wrapper,
  .page-fishing-games__video-wrapper {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games video,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section padding is correct on mobile */
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-fishing-games__faq-question {
    padding: 15px;
  }
  .page-fishing-games__faq-answer {
    padding: 0 15px;
  }
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__hero-title {
    font-size: 2em;
  }
  .page-fishing-games__hero-description {
    font-size: 0.95em;
  }
  .page-fishing-games__section-title {
    font-size: 1.5em;
  }
}