/* style/fishing-games.css */

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

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

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  color: var(--kc88-text-light);
  background-color: var(--kc88-dark-bg);
  overflow: hidden;
}

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

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-content {
  z-index: 1;
  max-width: 800px;
}

.page-fishing-games__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--kc88-secondary-color);
  margin-bottom: 15px;
}

.page-fishing-games__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--kc88-text-light);
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-tertiary,
.page-fishing-games__link-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

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

.page-fishing-games__btn-primary:hover {
  background-color: #2087b7;
  transform: translateY(-2px);
}

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

.page-fishing-games__btn-secondary:hover {
  background-color: var(--kc88-primary-color);
  color: var(--kc88-secondary-color);
  transform: translateY(-2px);
}

.page-fishing-games__btn-tertiary {
  background-color: var(--kc88-login-color);
  color: var(--kc88-secondary-color);
  border: 2px solid var(--kc88-login-color);
  font-size: 0.9em;
  padding: 8px 15px;
}

.page-fishing-games__btn-tertiary:hover {
  background-color: #c96606;
  transform: translateY(-1px);
}

.page-fishing-games__link-button {
  background-color: var(--kc88-secondary-color);
  color: var(--kc88-primary-color);
  border: 1px solid var(--kc88-primary-color);
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 10px;
}

.page-fishing-games__link-button:hover {
  background-color: var(--kc88-primary-color);
  color: var(--kc88-secondary-color);
}

/* General Section Styles */
.page-fishing-games__section {
  padding: 60px 0;
  background-color: var(--kc88-dark-bg);
  color: var(--kc88-text-light);
}

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

.page-fishing-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-fishing-games__text-block strong {
  color: var(--kc88-primary-color);
}

/* Intro Section */
.page-fishing-games__intro-section {
  background-color: var(--kc88-dark-bg);
}

/* Game Types Section */
.page-fishing-games__game-types-section {
  background-color: #0e0e1a; /* Slightly darker for contrast */
}

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

.page-fishing-games__game-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-fishing-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-fishing-games__card-title {
  font-size: 1.5em;
  color: var(--kc88-primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__card-description {
  font-size: 0.95em;
  color: var(--kc88-text-light);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Features Section */
.page-fishing-games__features-section {
  background-color: var(--kc88-dark-bg);
}

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

.page-fishing-games__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-fishing-games__feature-title {
  font-size: 1.6em;
  color: var(--kc88-primary-color);
  margin-bottom: 15px;
}

.page-fishing-games__feature-item p {
  font-size: 1em;
  color: var(--kc88-text-light);
  line-height: 1.7;
  text-align: justify;
}

/* Strategy Section */
.page-fishing-games__strategy-section {
  background-color: #0e0e1a;
}

.page-fishing-games__strategy-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-fishing-games__strategy-text {
  flex: 2;
  min-width: 300px;
}

.page-fishing-games__strategy-subtitle {
  font-size: 1.8em;
  color: var(--kc88-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-fishing-games__strategy-text p {
  font-size: 1.1em;
  margin-bottom: 15px;
  line-height: 1.8;
  text-align: justify;
}

.page-fishing-games__strategy-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
}

.page-fishing-games__strategy-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  background-color: var(--kc88-dark-bg);
}

.page-fishing-games__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  font-size: 1.1em;
  color: var(--kc88-text-light);
}

.page-fishing-games__promo-list li {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid var(--kc88-primary-color);
  border-radius: 5px;
  line-height: 1.7;
}

.page-fishing-games__promo-list li strong {
  color: var(--kc88-primary-color);
}

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

/* FAQ Section */
.page-fishing-games__faq-section {
  background-color: #0e0e1a;
}

.page-fishing-games__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--kc88-secondary-color);
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.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.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
  padding: 15px 25px;
  color: var(--kc88-text-light);
  font-size: 1em;
  line-height: 1.7;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-fishing-games__faq-answer p {
  margin-bottom: 10px;
}

.page-fishing-games__faq-answer a {
  color: var(--kc88-primary-color);
  text-decoration: underline;
}

.page-fishing-games__faq-answer a:hover {
  color: #2087b7;
}

/* CTA Bottom Section */
.page-fishing-games__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--kc88-primary-color);
  color: var(--kc88-secondary-color);
}

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

.page-fishing-games__cta-bottom-section .page-fishing-games__section-title {
  color: var(--kc88-secondary-color);
  margin-bottom: 25px;
}

.page-fishing-games__cta-bottom-section .page-fishing-games__text-block {
  color: var(--kc88-secondary-color);
  margin-bottom: 40px;
}

.page-fishing-games__cta-bottom-section .page-fishing-games__btn-primary {
  background-color: var(--kc88-secondary-color);
  color: var(--kc88-primary-color);
  border-color: var(--kc88-secondary-color);
}

.page-fishing-games__cta-bottom-section .page-fishing-games__btn-primary:hover {
  background-color: #f0f0f0;
  color: var(--kc88-primary-color);
}

.page-fishing-games__cta-bottom-section .page-fishing-games__btn-secondary {
  background-color: transparent;
  color: var(--kc88-secondary-color);
  border-color: var(--kc88-secondary-color);
}

.page-fishing-games__cta-bottom-section .page-fishing-games__btn-secondary:hover {
  background-color: var(--kc88-secondary-color);
  color: var(--kc88-primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 2.8em;
  }

  .page-fishing-games__section-title {
    font-size: 2em;
  }
}

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

  .page-fishing-games__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-fishing-games__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

  .page-fishing-games__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-tertiary,
  .page-fishing-games__link-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-fishing-games__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-fishing-games__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-fishing-games__text-block {
    font-size: 1em;
  }

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

  .page-fishing-games__game-card {
    min-height: auto;
  }

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

  .page-fishing-games__feature-title {
    font-size: 1.4em;
  }

  .page-fishing-games__strategy-content {
    flex-direction: column;
  }

  .page-fishing-games__strategy-text,
  .page-fishing-games__strategy-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-fishing-games__strategy-subtitle {
    font-size: 1.5em;
  }

  .page-fishing-games__promo-list li {
    padding: 10px 15px;
    font-size: 1em;
  }

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

  .page-fishing-games__faq-answer {
    padding: 10px 20px;
    font-size: 0.95em;
  }

  .page-fishing-games__cta-bottom-section {
    padding: 50px 15px;
  }

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

@media (max-width: 480px) {
  .page-fishing-games__main-title {
    font-size: 1.8em;
  }

  .page-fishing-games__section-title {
    font-size: 1.6em;
  }
}