/* style/fishing-games.css */

:root {
  --qq88-main-color: #11A84E;
  --qq88-secondary-color: #22C768;
  --qq88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --qq88-card-bg: #11271B;
  --qq88-bg-dark: #08160F;
  --qq88-text-main: #F2FFF6;
  --qq88-text-secondary: #A7D9B8;
  --qq88-border-color: #2E7A4E;
  --qq88-glow-color: #57E38D;
  --qq88-gold-color: #F2C14E;
  --qq88-divider-color: #1E3A2A;
  --qq88-deep-green: #0A4B2C;
}

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

.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  background-color: var(--qq88-deep-green);
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit image height */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: -200px; /* Pull content up over the image */
  color: var(--qq88-text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__main-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--qq88-gold-color);
  line-height: 1.2;
}

.page-fishing-games__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  color: var(--qq88-text-secondary);
}

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

.page-fishing-games__cta-buttons--compact {
  gap: 10px;
}

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

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

.page-fishing-games__btn-primary {
  background: var(--qq88-button-gradient);
  color: var(--qq88-text-main);
  border: 2px solid var(--qq88-glow-color);
  box-shadow: 0 0 15px var(--qq88-glow-color);
}

.page-fishing-games__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--qq88-glow-color);
}

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

.page-fishing-games__btn-secondary:hover {
  background-color: var(--qq88-glow-color);
  color: var(--qq88-deep-green);
  transform: translateY(-2px);
}

.page-fishing-games__section {
  padding: 60px 20px;
  background-color: var(--qq88-bg-dark);
  border-bottom: 1px solid var(--qq88-divider-color);
}

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

.page-fishing-games__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--qq88-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-fishing-games__section-title--center {
  text-align: center;
}

.page-fishing-games__text-block {
  font-size: 1.1rem;
  color: var(--qq88-text-secondary);
  text-align: justify;
  margin-bottom: 30px;
}

.page-fishing-games__text-block--center {
  text-align: center;
}

.page-fishing-games__highlight {
  color: var(--qq88-gold-color);
  font-weight: 600;
}

.page-fishing-games__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__content-card {
  background-color: var(--qq88-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--qq88-border-color);
  height: 100%;
  box-sizing: border-box;
}

.page-fishing-games__card-title {
  font-size: 1.8rem;
  color: var(--qq88-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-fishing-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--qq88-border-color);
}

.page-fishing-games__card-text {
  font-size: 1rem;
  color: var(--qq88-text-secondary);
  text-align: justify;
  flex-grow: 1;
}

.page-fishing-games__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.page-fishing-games__list--bullet {
  list-style-type: disc;
  padding-left: 20px;
}

.page-fishing-games__list-item {
  font-size: 1rem;
  color: var(--qq88-text-secondary);
  margin-bottom: 10px;
}

.page-fishing-games__ordered-list {
  list-style-type: decimal;
  padding-left: 20px;
  text-align: left;
  width: 100%;
}

.page-fishing-games__video-section {
  padding: 60px 20px;
  background-color: var(--qq88-deep-green);
  text-align: center;
}

.page-fishing-games__video-container {
  width: 100%; /* Desktop: width: 100% must be here */
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-fishing-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--qq88-glow-color);
  margin-top: 40px;
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-fishing-games__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1;
}

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

.page-fishing-games__game-card {
  background-color: var(--qq88-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--qq88-border-color);
  height: 100%;
  box-sizing: border-box;
}

.page-fishing-games__game-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--qq88-border-color);
}

.page-fishing-games__game-card-title {
  font-size: 1.6rem;
  color: var(--qq88-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-fishing-games__game-card-description {
  font-size: 0.95rem;
  color: var(--qq88-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__sub-section-title {
  font-size: 1.5rem;
  color: var(--qq88-text-main);
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px dashed var(--qq88-divider-color);
  padding-bottom: 15px;
}

.page-fishing-games__promotions .page-fishing-games__section-title {
  color: var(--qq88-gold-color);
}

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

.page-fishing-games__promo-card {
  background-color: var(--qq88-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--qq88-border-color);
  height: 100%;
  box-sizing: border-box;
}

.page-fishing-games__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--qq88-border-color);
}

.page-fishing-games__promo-card-title {
  font-size: 1.7rem;
  color: var(--qq88-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-fishing-games__promo-card-description {
  font-size: 1rem;
  color: var(--qq88-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__faq-section {
  padding: 60px 20px;
  background-color: var(--qq88-bg-dark);
}

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

.page-fishing-games__faq-item {
  background-color: var(--qq88-card-bg);
  border: 1px solid var(--qq88-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--qq88-text-main);
}

.page-fishing-games__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  list-style: none;
  color: var(--qq88-text-main);
}

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-fishing-games__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: var(--qq88-gold-color);
}

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

.page-fishing-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--qq88-text-secondary);
  text-align: justify;
}

.page-fishing-games__conclusion {
  padding: 80px 20px;
  background-color: var(--qq88-deep-green);
  text-align: center;
}

.page-fishing-games__conclusion-content {
  max-width: 900px;
  margin: 0 auto;
}

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

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

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

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

  .page-fishing-games__subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

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

  .page-fishing-games__container {
    padding: 0 15px; /* Add padding to container on mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 30px;
  }

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

  .page-fishing-games__grid-2-cols,
  .page-fishing-games__game-cards-grid,
  .page-fishing-games__promotion-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__content-card,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card {
    padding: 20px;
  }

  .page-fishing-games__card-image,
  .page-fishing-games__game-card-image,
  .page-fishing-games__promo-card-image {
    height: auto;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
  }

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

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

  .page-fishing-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-fishing-games__video-section {
    padding-top: 10px !important;
  }

  .page-fishing-games__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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

  .page-fishing-games__conclusion {
    padding: 60px 15px;
  }
}

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

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

  .page-fishing-games__subtitle {
    font-size: clamp(0.85rem, 3vw, 1rem);
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    padding: 10px 15px;
  }

  .page-fishing-games__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .page-fishing-games__card-title {
    font-size: 1.5rem;
  }

  .page-fishing-games__game-card-title {
    font-size: 1.4rem;
  }
}