/* style/fishing-games.css */

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

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff;
  font-weight: bold;
}

.page-fishing-games__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-fishing-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-fishing-games__list-item {
  margin-bottom: 10px;
  color: #ffffff;
}

.page-fishing-games__text-dark {
  color: #333333;
}

/* Section backgrounds and text colors based on body background */
.page-fishing-games__dark-section {
  background-color: #1a1a2e; /* Inherit from body or specific dark tone */
  color: #ffffff;
  padding: 60px 0;
}

.page-fishing-games__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

/* Buttons */
.page-fishing-games__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-fishing-games__btn-primary:hover {
  background-color: #a30606;
}

.page-fishing-games__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  text-align: center;
}

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

.page-fishing-games__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-fishing-games__btn-large {
  padding: 18px 35px;
  font-size: 1.1em;
}

/* Hero Section */
.page-fishing-games__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0; /* Ensures no double padding with shared header offset */
  min-height: 600px;
  background: linear-gradient(135deg, #017439, #1a1a2e);
  gap: 40px;
}

.page-fishing-games__hero-content {
  flex: 1;
  padding-left: 20px;
  padding-right: 20px;
  text-align: left;
}

.page-fishing-games__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 20px;
}

.page-fishing-games__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

/* Logo Carousel Section */
.page-fishing-games__logo-carousel-section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.page-fishing-games__logo-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.page-fishing-games__logo-item {
  width: 80px;
  height: 80px;
  background-color: #f5f5f5;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__logo-item img {
  max-width: 100%;
  max-height: 100%;
  height: auto; /* Ensure aspect ratio */
}

/* About Section */
.page-fishing-games__about-section .page-fishing-games__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-fishing-games__about-section .page-fishing-games__guide-text,
.page-fishing-games__about-section .page-fishing-games__image-content {
  flex: 1;
}

.page-fishing-games__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Games Section */
.page-fishing-games__section-description {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1em;
}

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

.page-fishing-games__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-fishing-games__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games__game-card-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-fishing-games__game-card-title a {
  color: #FFFF00;
  text-decoration: none;
}

.page-fishing-games__game-card-title a:hover {
  text-decoration: underline;
}

.page-fishing-games__game-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__cta-center {
  text-align: center;
}

/* Guide Section */
.page-fishing-games__guide-section .page-fishing-games__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-fishing-games__guide-section .page-fishing-games__guide-text,
.page-fishing-games__guide-section .page-fishing-games__image-content {
  flex: 1;
}

/* Promotions Section */
.page-fishing-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-fishing-games__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-fishing-games__promo-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__promo-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games__promo-card-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-fishing-games__promo-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-fishing-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-fishing-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.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;
  font-size: 1em;
}

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

.page-fishing-games__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* CTA Section */
.page-fishing-games__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(45deg, #017439, #1a1a2e);
}

.page-fishing-games__cta-content {
  max-width: 800px;
}

.page-fishing-games__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-fishing-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 40px; /* Adjust for tablet if needed */
  }

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

  .page-fishing-games__hero-image-wrapper {
    padding-right: 0;
    margin-top: 30px;
  }

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

  .page-fishing-games__about-section .page-fishing-games__content-wrapper,
  .page-fishing-games__guide-section .page-fishing-games__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-fishing-games__image-content {
    order: -1; /* Image above text on smaller screens */
  }

  .page-fishing-games__games-grid,
  .page-fishing-games__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-fishing-games__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-fishing-games__hero-section {
    padding-top: 0; /* Ensure no double padding */
    min-height: auto;
    padding-bottom: 40px;
  }

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

  .page-fishing-games__hero-image-wrapper {
    padding-right: 15px;
    padding-left: 15px;
  }

  .page-fishing-games__hero-title {
    font-size: 2em !important;
  }

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

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

  /* LOGO 轮播区域 */
  .page-fishing-games__logo-carousel-section {
    padding: 30px 0;
  }

  .page-fishing-games__logo-carousel {
    gap: 20px;
  }

  .page-fishing-games__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }

  /* 游戏展示区域 */
  .page-fishing-games__games-section {
    padding: 40px 0;
  }

  .page-fishing-games__games-grid,
  .page-fishing-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__game-card,
  .page-fishing-games__promo-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 400px; /* Constrain card width for better readability */
  }

  .page-fishing-games__game-card-image,
  .page-fishing-games__promo-card-image {
    height: 200px;
  }

  .page-fishing-games__game-card-title,
  .page-fishing-games__promo-card-title {
    font-size: 1.3em !important;
  }

  .page-fishing-games__game-card-description,
  .page-fishing-games__promo-card-description {
    font-size: 0.9em !important;
  }

  /* 通用图片与容器 */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Exclude logo-item from general image width:100% rule */
  .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__image-content {
    width: 100% !important;
  }

  /* 按钮与按钮容器 */
  .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 !important; /* Stack buttons vertically */
  }

  /* Other content modules */
  .page-fishing-games__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px;
  }

  .page-fishing-games__sub-title {
    font-size: 1.5em !important;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-fishing-games__text-block,
  .page-fishing-games__list-item,
  .page-fishing-games__hero-description,
  .page-fishing-games__section-description,
  .page-fishing-games__cta-description {
    font-size: 1em !important;
  }

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

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

  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 10px 20px;
  }

  .page-fishing-games__cta-title {
    font-size: 2em !important;
  }

  .page-fishing-games__dark-section, .page-fishing-games__light-bg, .page-fishing-games__cta-section {
    padding: 40px 0;
  }
}