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

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_main:1920x1080:fishing_game,underwater,treasure,cpc4]') no-repeat center center/cover;
  color: #ffffff;
}

.page-fishing-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-fishing-games__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-fishing-games__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-fishing-games__light-bg .page-fishing-games__section-subtitle,
.page-fishing-games__light-bg .page-fishing-games__text-block p,
.page-fishing-games__light-bg .page-fishing-games__advantage-item p,
.page-fishing-games__light-bg .page-fishing-games__list li {
  color: #333333;
}

.page-fishing-games__light-bg .page-fishing-games__card-title,
.page-fishing-games__light-bg .page-fishing-games__advantage-title,
.page-fishing-games__light-bg .page-fishing-games__section-title {
  color: #26A9E0;
}

/* Buttons */
.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.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, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

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

/* About Section */
.page-fishing-games__about-section {
  padding: 80px 0;
}

.page-fishing-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-fishing-games__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-fishing-games__image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-fishing-games__text-block {
  flex: 1;
}

.page-fishing-games__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

/* Features Section */
.page-fishing-games__features-section {
  padding: 80px 0;
}

.page-fishing-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-fishing-games__card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #ffffff;
}

.page-fishing-games__light-bg .page-fishing-games__card {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-fishing-games__card:hover {
  transform: translateY(-5px);
}

.page-fishing-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-fishing-games__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-fishing-games__card p {
  font-size: 1em;
  line-height: 1.5;
  flex-grow: 1; /* Allow paragraph to grow and push button to bottom */
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
  padding: 80px 0;
}

.page-fishing-games__list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-fishing-games__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-fishing-games__list li strong {
  color: #26A9E0;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 80px 0;
}

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

.page-fishing-games__promo-card .page-fishing-games__btn-primary {
  margin-top: 20px;
}

/* Why Choose Us Section */
.page-fishing-games__why-choose-us-section {
  padding: 80px 0;
}

.page-fishing-games__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-fishing-games__advantage-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
}

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

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 80px 0;
}

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

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

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

.page-fishing-games__faq-question:hover {
  background-color: #1e87b8;
}

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

.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; /* Sufficiently large to show all content */
  padding: 20px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-question {
  background-color: #1e87b8;
}

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

/* CTA Section */
.page-fishing-games__cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 3em;
  }
  .page-fishing-games__section-title {
    font-size: 2em;
  }
  .page-fishing-games__content-wrapper {
    flex-direction: column;
  }
  .page-fishing-games__content-wrapper--reversed {
    flex-direction: column;
  }
  .page-fishing-games__image {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    min-height: 400px;
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-fishing-games__hero-title {
    font-size: 2.2em;
  }
  .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 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-fishing-games__section-title {
    font-size: 1.8em;
  }
  .page-fishing-games__about-section, 
  .page-fishing-games__features-section, 
  .page-fishing-games__how-to-play-section, 
  .page-fishing-games__promotions-section, 
  .page-fishing-games__why-choose-us-section, 
  .page-fishing-games__faq-section, 
  .page-fishing-games__cta-section {
    padding: 40px 0;
  }
  .page-fishing-games__container {
    padding: 0 15px;
  }
  .page-fishing-games__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__content-wrapper,
  .page-fishing-games__features-grid,
  .page-fishing-games__promotions-grid,
  .page-fishing-games__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-fishing-games__card {
    padding: 20px;
  }
  .page-fishing-games__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-fishing-games__faq-answer {
    padding: 0 15px;
  }
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px !important;
  }
  /* Ensure all content area images are responsive */
  .page-fishing-games img {
    max-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__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-fishing-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !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__cta-button,
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games a[class*="button"],
  .page-fishing-games a[class*="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;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__hero-title {
    font-size: 1.8em;
  }
  .page-fishing-games__section-title {
    font-size: 1.5em;
  }
  .page-fishing-games__card-title {
    font-size: 1.3em;
  }
}