/* style/fishing-games.css */

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

.page-fishing-games {
  color: var(--kp88-text-light); /* Body background is dark, so text is light */
  background-color: var(--kp88-dark-background); /* Ensure consistent background for main content */
}

.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-fishing-games__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, var(--kp88-dark-background) 30%);
  padding-top: 100px;
}

.page-fishing-games__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--kp88-secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-fishing-games__hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-fishing-games__btn-primary {
  background-color: var(--kp88-primary-color);
  color: var(--kp88-secondary-color);
  border: 2px solid var(--kp88-primary-color);
}

.page-fishing-games__btn-primary:hover {
  background-color: #1e87b6; /* darken(--kp88-primary-color, 10%) */
  border-color: #1e87b6; /* darken(--kp88-primary-color, 10%) */
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: var(--kp88-primary-color);
  border: 2px solid var(--kp88-primary-color);
}

.page-fishing-games__btn-secondary:hover {
  background-color: var(--kp88-primary-color);
  color: var(--kp88-secondary-color);
}

.page-fishing-games__btn-tertiary {
  background-color: var(--kp88-login-color);
  color: var(--kp88-secondary-color);
  border: 2px solid var(--kp88-login-color);
  padding: 10px 20px;
  font-size: 1rem;
}

.page-fishing-games__btn-tertiary:hover {
  background-color: #c06706; /* darken(--kp88-login-color, 10%) */
  border-color: #c06706; /* darken(--kp88-login-color, 10%) */
}

.page-fishing-games__cta-buttons--single {
  margin-top: 30px;
}

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

.page-fishing-games__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--kp88-primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-fishing-games__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.page-fishing-games__about-section,
.page-fishing-games__how-to-play,
.page-fishing-games__tips,
.page-fishing-games__download-app-section {
  padding: 80px 0;
  background-color: var(--kp88-dark-background);
}

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

.page-fishing-games__games-showcase,
.page-fishing-games__promotions,
.page-fishing-games__faq-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-fishing-games__games-showcase .page-fishing-games__section-title,
.page-fishing-games__promotions .page-fishing-games__section-title,
.page-fishing-games__faq-section .page-fishing-games__section-title {
  color: var(--kp88-primary-color);
}

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

.page-fishing-games__game-card,
.page-fishing-games__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--kp88-text-light);
}

.page-fishing-games__game-image,
.page-fishing-games__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-fishing-games__game-title,
.page-fishing-games__promo-title {
  font-size: 1.5rem;
  color: var(--kp88-primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-fishing-games__game-description,
.page-fishing-games__promo-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  color: rgba(255, 255, 255, 0.75);
}

.page-fishing-games__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__step-list li {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--kp88-text-light);
}

.page-fishing-games__step-title {
  font-size: 1.3rem;
  color: var(--kp88-primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-fishing-games__step-list p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-fishing-games__tips-list li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.85);
}

.page-fishing-games__tips-list li::before {
  content: '✓';
  color: var(--kp88-primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
}

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

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--kp88-secondary-color);
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details summary */
}

.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}

.page-fishing-games__faq-qtext {
  flex-grow: 1;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: var(--kp88-primary-color);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  content: '−';
}

.page-fishing-games__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.page-fishing-games__download-app-section {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content {
    margin-top: -80px;
    padding-top: 80px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding-bottom: 40px;
  }

  .page-fishing-games__hero-content {
    margin-top: -60px;
    padding-top: 60px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-fishing-games__hero-description {
    font-size: 1rem;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

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

  .page-fishing-games__container,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card,
  .page-fishing-games__step-list li,
  .page-fishing-games__faq-item {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-fishing-games__game-list,
  .page-fishing-games__promo-list {
    grid-template-columns: 1fr;
  }

  .page-fishing-games__game-image,
  .page-fishing-games__promo-image {
    height: auto;
    max-height: 250px;
  }

  .page-fishing-games__about-section,
  .page-fishing-games__how-to-play,
  .page-fishing-games__tips,
  .page-fishing-games__download-app-section,
  .page-fishing-games__games-showcase,
  .page-fishing-games__promotions,
  .page-fishing-games__faq-section {
    padding: 60px 0;
  }

  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__hero-content {
    margin-top: -40px;
    padding-top: 40px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
}