:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login: #EA7C07;
}

.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Matches body background */
}

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

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

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-fishing-games__section-title--white {
  color: var(--text-light);
}

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

.page-fishing-games__text-block--white {
  color: var(--text-light);
}

/* HERO Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  background: linear-gradient(135deg, #26A9E0, #FFFFFF);
  overflow: hidden;
}

.page-fishing-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-fishing-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-fishing-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-fishing-games__hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-fishing-games__hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-login); /* Use specific login color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__cta-button:hover {
  background: darken(var(--button-login), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-fishing-games__introduction-section {
  background-color: var(--secondary-color);
}

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

.page-fishing-games__feature-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-fishing-games__feature-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-fishing-games__feature-item h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-fishing-games__feature-item p {
  font-size: 16px;
  color: var(--text-dark);
}

/* Game Types Section */
.page-fishing-games__game-types-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.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: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-fishing-games__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-fishing-games__card-content {
  padding: 25px;
  text-align: center;
}

.page-fishing-games__card-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-fishing-games__card-title a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-fishing-games__card-title a:hover {
  color: var(--secondary-color);
}

.page-fishing-games__game-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.page-fishing-games__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--button-login);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary:hover {
  background: darken(var(--button-login), 10%);
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
  background-color: var(--secondary-color);
}

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

.page-fishing-games__step-card {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-fishing-games__step-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-fishing-games__step-card h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-fishing-games__step-card p {
  font-size: 16px;
  color: var(--text-dark);
}

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

/* Promotions Section */
.page-fishing-games__promotions-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-fishing-games__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-fishing-games__promo-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-fishing-games__promo-card .page-fishing-games__card-content {
  padding: 25px;
  text-align: center;
}

.page-fishing-games__promo-card .page-fishing-games__card-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-fishing-games__promo-card .page-fishing-games__card-title--white {
  color: var(--text-light);
}

.page-fishing-games__promo-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-secondary:hover {
  background: darken(var(--secondary-color), 10%);
  color: var(--primary-color);
}

/* FAQ Section */
.page-fishing-games__faq-section {
  background-color: var(--secondary-color);
}

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

/* FAQ item styles */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e0e0e0; /* Add border for better visual separation */
}

/* FAQ default state - answer hidden */
.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - use !important and sufficiently large max-height */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, value large enough for any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border-bottom: 1px solid transparent; /* Hide bottom border initially */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-question {
  border-bottom-color: #e0e0e0; /* Show bottom border when active */
  border-radius: 5px 5px 0 0;
}

.page-fishing-games__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--button-login);
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change text */
}

/* News Section */
.page-fishing-games__news-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-fishing-games__news-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-fishing-games__news-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-fishing-games__news-card .page-fishing-games__card-content {
  padding: 25px;
  text-align: center;
}

.page-fishing-games__news-card .page-fishing-games__card-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.page-fishing-games__news-card .page-fishing-games__card-title a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-fishing-games__news-card .page-fishing-games__card-title a:hover {
  color: var(--secondary-color);
}

.page-fishing-games__news-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content h1 {
    font-size: 40px;
  }
  .page-fishing-games__hero-content p {
    font-size: 18px;
  }
  .page-fishing-games__section-title {
    font-size: 30px;
  }
  .page-fishing-games__text-block {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__hero-content h1 {
    font-size: 32px;
  }
  .page-fishing-games__hero-content p {
    font-size: 16px;
  }
  .page-fishing-games__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
  }
  .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: 28px;
    margin-bottom: 30px;
  }
  .page-fishing-games__text-block {
    font-size: 15px;
  }
  .page-fishing-games__features, .page-fishing-games__game-grid, .page-fishing-games__steps-grid, .page-fishing-games__promo-grid, .page-fishing-games__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-fishing-games__feature-item, .page-fishing-games__game-card, .page-fishing-games__step-card, .page-fishing-games__promo-card, .page-fishing-games__news-card {
    padding: 20px;
  }
  .page-fishing-games__feature-item h3, .page-fishing-games__step-card h3 {
    font-size: 20px;
  }
  .page-fishing-games__game-card img, .page-fishing-games__promo-card img, .page-fishing-games__news-card img {
    
    min-width: 200px !important;
    min-
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-fishing-games__btn-primary, .page-fishing-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 20px;
    font-size: 15px;
  }
}