/* Base styles for the fishing games page */
.page-fishing-games {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #F5F7FA; /* Background color from custom palette */
}

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

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E53935; /* Primary brand color */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-fishing-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FF5A4F, #E53935);
  border-radius: 2px;
}

.page-fishing-games__text-block {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
  color: #333333;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  background-color: #F5F7FA;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: 675px; /* HTML width=1200 height=675 (16:9) */
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.page-fishing-games__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.page-fishing-games__main-title {
  font-size: 52px;
  font-weight: 800;
  color: #E53935; /* Primary brand color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__hero-description {
  font-size: 20px;
  color: #333333;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
}

.page-fishing-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.6);
}

.page-fishing-games__btn-secondary {
  background: #ffffff;
  color: #E53935; /* Primary brand color */
  border: 2px solid #E53935;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.page-fishing-games__btn-secondary:hover {
  transform: translateY(-3px);
  background: #f0f0f0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Intro Section */
.page-fishing-games__intro-section,
.page-fishing-games__tips-section,
.page-fishing-games__advantages-section,
.page-fishing-games__faq-section {
  padding: 60px 0;
  background-color: #F5F7FA;
  color: #333333;
}

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

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

.page-fishing-games__dark-bg .page-fishing-games__section-title::after {
  background: #FF5A4F;
}

/* Game Showcase Section */
.page-fishing-games__game-showcase-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

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

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

.page-fishing-games__game-image {
  width: 100%;
  height: 300px; /* HTML width=400 height=300 (4:3) */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-fishing-games__game-title {
  font-size: 24px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__game-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

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

.page-fishing-games__guide-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-fishing-games__list-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1.5;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-fishing-games__list-item strong {
  color: #FF5A4F;
}

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

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

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

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

.page-fishing-games__promo-image {
  width: 100%;
  height: 225px; /* HTML width=400 height=225 (16:9) */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-fishing-games__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__promo-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

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

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

/* FAQ Section */
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #ffffff;
}

details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
  font-size: 16px;
}

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

/* General button responsiveness */
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__cta-buttons,
.page-fishing-games__button-group,
.page-fishing-games__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-fishing-games__main-title {
    font-size: 44px;
  }

  .page-fishing-games__section-title {
    font-size: 30px;
  }

  .page-fishing-games__hero-image {
    height: 500px;
  }

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

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 15px;
  }

  /* Hero Section (Banner) */
  .page-fishing-games__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .page-fishing-games__hero-image {
    height: 300px; /* Adjusted height for mobile */
    object-fit: contain; /* Ensure image fits */
    margin-bottom: 20px;
  }

  .page-fishing-games__main-title {
    font-size: 32px; /* Smaller H1 for mobile */
    margin-bottom: 15px;
  }

  .page-fishing-games__hero-description {
    font-size: 17px;
    margin-bottom: 30px;
  }

  .page-fishing-games__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

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

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

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

  .page-fishing-games__game-title {
    font-size: 20px;
  }

  .page-fishing-games__game-description {
    font-size: 15px;
  }

  /* How to Play Section */
  .page-fishing-games__guide-list {
    margin-top: 30px;
  }

  .page-fishing-games__list-item {
    padding: 15px 20px;
    font-size: 16px;
    margin-bottom: 10px;
  }

  /* Promotions Section */
  .page-fishing-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-fishing-games__promo-image {
    height: 180px; /* Adjusted image height for mobile cards */
  }

  .page-fishing-games__promo-title {
    font-size: 20px;
  }

  .page-fishing-games__promo-description {
    font-size: 15px;
  }

  /* CTA Section */
  .page-fishing-games__cta-section {
    padding: 50px 0;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* FAQ Section */
  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px;
  }

  .page-fishing-games__faq-qtext {
    font-size: 16px;
  }

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

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

  /* Force all images and image containers to be responsive */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-fishing-games__hero-section,
  .page-fishing-games__intro-section,
  .page-fishing-games__game-showcase-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__advantages-section,
  .page-fishing-games__cta-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

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

  .page-fishing-games__game-grid,
  .page-fishing-games__promo-grid {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-fishing-games__guide-list {
    padding-left: 0;
    padding-right: 0;
  }
}