.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

.page-fishing-games__dark-bg {
  background-color: #0a0a0a; /* Matches body background */
  color: #ffffff;
}

.page-fishing-games__light-bg {
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light background */
}

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

.page-fishing-games__section {
  padding: 60px 0;
}

/* Hero Section */
.page-fishing-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-fishing-games__hero-content {
  z-index: 2;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-fishing-games__hero-title {
  font-size: 3.5em;
  color: #FFFF00; /* Custom font color for title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-fishing-games__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-fishing-games__btn-register,
.page-fishing-games__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-register {
  background-color: #C30808; /* Custom register color */
  color: #FFFF00; /* Custom register font color */
}

.page-fishing-games__btn-login {
  background-color: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
}

.page-fishing-games__btn-register:hover,
.page-fishing-games__btn-login:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.page-fishing-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

/* General Section Styling */
.page-fishing-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFFF00; /* Default title color */
}

.page-fishing-games__section-title--dark {
  color: #017439; /* Title color for light backgrounds */
}

.page-fishing-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Feature Grid */
.page-fishing-games__feature-grid,
.page-fishing-games__promotion-grid,
.page-fishing-games__game-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  color: #ffffff;
}

.page-fishing-games__light-bg .page-fishing-games__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-fishing-games__feature-icon,
.page-fishing-games__promotion-image,
.page-fishing-games__game-type-image {
  width: 100%;
  max-width: 400px; /* Recommended for content images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-fishing-games__feature-title,
.page-fishing-games__promotion-title,
.page-fishing-games__game-type-title {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-fishing-games__light-bg .page-fishing-games__feature-title,
.page-fishing-games__light-bg .page-fishing-games__game-type-title {
  color: #017439;
}

.page-fishing-games__feature-description,
.page-fishing-games__promotion-description,
.page-fishing-games__game-type-description {
  font-size: 1em;
  color: #f0f0f0;
  text-align: justify;
}

.page-fishing-games__light-bg .page-fishing-games__feature-description,
.page-fishing-games__light-bg .page-fishing-games__game-type-description {
  color: #555555;
}

/* How-To-Play & Strategy Lists */
.page-fishing-games__step-list,
.page-fishing-games__strategy-list,
.page-fishing-games__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__step-item,
.page-fishing-games__strategy-item,
.page-fishing-games__benefit-item {
  background: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #017439;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #ffffff;
}

.page-fishing-games__light-bg .page-fishing-games__step-item,
.page-fishing-games__light-bg .page-fishing-games__strategy-item,
.page-fishing-games__light-bg .page-fishing-games__benefit-item {
  background: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-fishing-games__step-title,
.page-fishing-games__strategy-title,
.page-fishing-games__benefit-title {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-fishing-games__light-bg .page-fishing-games__step-title,
.page-fishing-games__light-bg .page-fishing-games__strategy-title,
.page-fishing-games__light-bg .page-fishing-games__benefit-title {
  color: #017439;
}

.page-fishing-games__step-description,
.page-fishing-games__strategy-description,
.page-fishing-games__benefit-description {
  font-size: 1em;
  color: #f0f0f0;
  text-align: justify;
}

.page-fishing-games__light-bg .page-fishing-games__step-description,
.page-fishing-games__light-bg .page-fishing-games__strategy-description,
.page-fishing-games__light-bg .page-fishing-games__benefit-description {
  color: #555555;
}

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

.page-fishing-games__btn-primary {
  background-color: #017439;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary:hover {
  background-color: #005f2f;
  transform: translateY(-3px);
}

.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

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

.page-fishing-games__light-bg .page-fishing-games__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-fishing-games__light-bg .page-fishing-games__faq-question {
  background-color: #017439;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-fishing-games__faq-question:hover {
  opacity: 0.9;
}

.page-fishing-games__faq-title {
  margin: 0;
  color: inherit;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-fishing-games__light-bg .page-fishing-games__faq-answer {
  color: #555555;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

/* Responsive Design */
@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 {
    flex-direction: column;
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__hero-content {
    margin-bottom: 30px;
  }

  .page-fishing-games__hero-title {
    font-size: 2.2em;
  }

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

  .page-fishing-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-fishing-games__btn-register,
  .page-fishing-games__btn-login {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-fishing-games__section {
    padding: 40px 0;
  }

  .page-fishing-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-fishing-games__text-block {
    font-size: 0.95em;
  }

  .page-fishing-games__feature-grid,
  .page-fishing-games__promotion-grid,
  .page-fishing-games__game-type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__card {
    padding: 20px;
  }

  .page-fishing-games__feature-icon,
  .page-fishing-games__promotion-image,
  .page-fishing-games__game-type-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-fishing-games__step-title,
  .page-fishing-games__strategy-title,
  .page-fishing-games__benefit-title {
    font-size: 1.2em;
  }

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

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

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

  .page-fishing-games__btn-primary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .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-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }
}