/* style/fishing-games.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-bg: #C30808;
  --login-btn-bg: #C30808;
  --register-login-font: #FFFF00; /* Original requested, but overridden for contrast */
  --safe-text-on-dark: #FFFFFF; /* For contrast on dark backgrounds */
  --safe-text-on-light: #333333; /* For contrast on light backgrounds */
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--safe-text-on-light); /* Default text color for light body background */
  background-color: var(--background-color, #FFFFFF);
}

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

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

.page-fishing-games__dark-section {
  background-color: var(--primary-color);
  color: var(--safe-text-on-dark);
}

.page-fishing-games__light-bg {
  background-color: var(--secondary-color);
  color: var(--safe-text-on-light);
}

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

.page-fishing-games__dark-section .page-fishing-games__section-title {
  color: var(--secondary-color);
}

.page-fishing-games p {
  margin-bottom: 20px;
  font-size: 17px;
}

.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); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, #017439, #008000); /* Slightly varied green gradient */
}

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

.page-fishing-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--secondary-color);
  color: var(--safe-text-on-light);
}

.page-fishing-games__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-fishing-games__description {
  font-size: 19px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

.page-fishing-games__btn-register,
.page-fishing-games__btn-login,
.page-fishing-games__btn-primary,
.page-fishing-games__btn-download {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Custom colors for Register/Login buttons, ensuring contrast */
.page-fishing-games__btn-register {
  background: var(--register-btn-bg); /* #C30808 */
  color: var(--safe-text-on-dark); /* #FFFFFF - Overrides #FFFF00 for WCAG AA contrast */
  border: 2px solid var(--register-btn-bg);
}

.page-fishing-games__btn-register:hover {
  background: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-login {
  background: var(--login-btn-bg); /* #C30808 */
  color: var(--safe-text-on-dark); /* #FFFFFF - Overrides #FFFF00 for WCAG AA contrast */
  border: 2px solid var(--login-btn-bg);
}

.page-fishing-games__btn-login:hover {
  background: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-primary {
  background: var(--primary-color);
  color: var(--safe-text-on-dark);
  border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-primary:hover {
  background: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-download {
  background: #3498db; /* A distinct blue for download */
  color: var(--safe-text-on-dark);
  border: 2px solid #3498db;
}

.page-fishing-games__btn-download:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__introduction-section .page-fishing-games__section-title,
.page-fishing-games__benefits-section .page-fishing-games__section-title,
.page-fishing-games__strategy-section .page-fishing-games__section-title,
.page-fishing-games__faq-section .page-fishing-games__section-title {
  color: var(--primary-color);
}

.page-fishing-games__game-types-section .page-fishing-games__section-title,
.page-fishing-games__guide-section .page-fishing-games__section-title,
.page-fishing-games__promotions-section .page-fishing-games__section-title,
.page-fishing-games__cta-final-section .page-fishing-games__section-title {
  color: var(--secondary-color);
}

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

.page-fishing-games__image-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

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

.page-fishing-games__list-item {
  background-color: var(--secondary-color);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--safe-text-on-light);
}

.page-fishing-games__dark-section .page-fishing-games__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--safe-text-on-dark);
}

.page-fishing-games__list-item h3 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-fishing-games__dark-section .page-fishing-games__list-item h3 {
  color: var(--secondary-color);
}

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

.page-fishing-games__benefit-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--safe-text-on-light);
}

.page-fishing-games__benefit-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.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: var(--secondary-color);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: var(--safe-text-on-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-fishing-games__card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  min-height: 200px; /* Enforce min height for content images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-fishing-games__card p {
  flex-grow: 1;
  font-size: 16px;
  margin-bottom: 20px;
}

.page-fishing-games__card .page-fishing-games__btn-primary {
  align-self: flex-end;
}

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

.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: 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.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--safe-text-on-light);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--safe-text-on-light);
}

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

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

.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  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(--primary-color);
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Final CTA Section */
.page-fishing-games__cta-final-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #005a2e, #017439);
  color: var(--safe-text-on-dark);
}

.page-fishing-games__cta-final-section .page-fishing-games__section-title {
  color: var(--secondary-color);
}

.page-fishing-games__cta-final-section p {
  font-size: 18px;
  margin-bottom: 40px;
}

/* Filler for content area to ensure enough length for scrolling */
.page-fishing-games__content-area-filler {
  min-height: 300px;
  background-color: #f0f0f0;
  display: none; /* Hide visually, only for content length */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 40px;
  }
  .page-fishing-games__section-title {
    font-size: 30px;
  }
  .page-fishing-games__list-item h3,
  .page-fishing-games__benefit-card h3,
  .page-fishing-games__card h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .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 {
    padding: 30px 20px;
  }

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

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

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box !important;
  }

  .page-fishing-games__btn-register,
  .page-fishing-games__btn-login,
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-download {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !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: 26px;
    margin-bottom: 30px;
  }

  .page-fishing-games__image-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__benefits-grid,
  .page-fishing-games__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__list-item,
  .page-fishing-games__benefit-card,
  .page-fishing-games__card {
    padding: 20px;
  }

  .page-fishing-games__benefit-card img {
    
  }

  .page-fishing-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-fishing-games__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-fishing-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-fishing-games__faq-answer {
    padding: 0 15px;
  }
  
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}