/* style/fishing-games.css */

/* Variables from custom palette */
:root {
  --ax88-win-primary: #11A84E;
  --ax88-win-secondary: #22C768;
  --ax88-win-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --ax88-win-card-bg: #11271B;
  --ax88-win-background: #08160F;
  --ax88-win-text-main: #F2FFF6;
  --ax88-win-text-secondary: #A7D9B8;
  --ax88-win-border: #2E7A4E;
  --ax88-win-glow: #57E38D;
  --ax88-win-gold: #F2C14E;
  --ax88-win-divider: #1E3A2A;
  --ax88-win-deep-green: #0A4B2C;
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: var(--ax88-win-text-main); /* Default text color for the page */
  background-color: var(--ax88-win-background); /* Overall page background */
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles header offset, small top padding for aesthetic */
  background-color: var(--ax88-win-background);
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

.page-fishing-games__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  color: var(--ax88-win-text-main);
  margin-top: -80px; /* Adjust as needed to overlap slightly with image for visual flow */
  background: rgba(8, 22, 15, 0.8); /* Slightly transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--ax88-win-gold);
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
  /* No fixed font-size, rely on clamp() or relative units if needed, but per instruction, avoid fixed large */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-fishing-games__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--ax88-win-text-secondary);
}

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

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

.page-fishing-games__btn-primary {
  background: var(--ax88-win-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-fishing-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: var(--ax88-win-primary);
  border: 2px solid var(--ax88-win-primary);
  box-shadow: 0 0 10px rgba(17, 168, 78, 0.3);
}

.page-fishing-games__btn-secondary:hover {
  background-color: var(--ax88-win-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

/* Section Titles and Descriptions */
.page-fishing-games__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: bold;
  color: var(--ax88-win-gold);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-fishing-games__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ax88-win-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section (Light BG) */
.page-fishing-games__about-section {
  background-color: var(--ax88-win-background);
  padding: 60px 0;
  color: var(--ax88-win-text-main);
}

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

.page-fishing-games__card {
  background-color: var(--ax88-win-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--ax88-win-text-main);
  border: 1px solid var(--ax88-win-border);
}

.page-fishing-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-fishing-games__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--ax88-win-primary);
  margin-bottom: 15px;
}

.page-fishing-games__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ax88-win-text-secondary);
}

/* Games Showcase Section (Dark BG) */
.page-fishing-games__games-showcase {
  background-color: var(--ax88-win-deep-green);
  padding: 60px 0;
}

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

.page-fishing-games__game-card {
  background-color: var(--ax88-win-card-bg);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--ax88-win-text-main);
  border: 1px solid var(--ax88-win-border);
}

.page-fishing-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__game-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--ax88-win-gold);
  margin-bottom: 10px;
}

.page-fishing-games__game-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ax88-win-text-secondary);
  margin-bottom: 20px;
}

/* Guide Section (Light BG) */
.page-fishing-games__guide-section {
  background-color: var(--ax88-win-background);
  padding: 60px 0;
}

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

.page-fishing-games__step-card {
  background-color: var(--ax88-win-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--ax88-win-text-main);
  border: 1px solid var(--ax88-win-border);
}

.page-fishing-games__step-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__step-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--ax88-win-primary);
  margin-bottom: 10px;
}

.page-fishing-games__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ax88-win-text-secondary);
  margin-bottom: 20px;
}

/* Strategy Section (Dark BG) */
.page-fishing-games__strategy-section {
  background-color: var(--ax88-win-deep-green);
  padding: 60px 0;
}

.page-fishing-games__strategy-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--ax88-win-text-main);
}

.page-fishing-games__strategy-subtitle {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--ax88-win-gold);
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-fishing-games__strategy-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ax88-win-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

/* Promotions Section (Light BG) */
.page-fishing-games__promotions-section {
  background-color: var(--ax88-win-background);
  padding: 60px 0;
}

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

/* Security Section (Dark BG) */
.page-fishing-games__security-section {
  background-color: var(--ax88-win-deep-green);
  padding: 60px 0;
}

.page-fishing-games__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-fishing-games__security-item {
  background-color: var(--ax88-win-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--ax88-win-text-main);
  border: 1px solid var(--ax88-win-border);
}

.page-fishing-games__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size for all images */
  min-height: 200px;
}

.page-fishing-games__security-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--ax88-win-primary);
  margin-bottom: 10px;
}

.page-fishing-games__security-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ax88-win-text-secondary);
}

/* FAQ Section (Light BG) */
.page-fishing-games__faq-section {
  background-color: var(--ax88-win-background);
  padding: 60px 0;
}

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

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

.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: bold;
  color: var(--ax88-win-primary);
  background-color: var(--ax88-win-card-bg);
  list-style: none; /* For details/summary */
}

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

.page-fishing-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ax88-win-gold);
  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: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ax88-win-text-secondary);
}

/* Call to Action Section */
.page-fishing-games__cta-section {
  background-color: var(--ax88-win-deep-green);
  padding: 60px 0;
  text-align: center;
}

.page-fishing-games__cta-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: bold;
  color: var(--ax88-win-gold);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-fishing-games__cta-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ax88-win-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Global image rules for content area to prevent small images */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Ensure minimum size for all content images */
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 0 15px;
  }

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

  .page-fishing-games__hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-fishing-games__hero-description,
  .page-fishing-games__section-description,
  .page-fishing-games__card-text,
  .page-fishing-games__game-text,
  .page-fishing-games__step-text,
  .page-fishing-games__strategy-text,
  .page-fishing-games__security-text,
  .page-fishing-games__faq-answer p,
  .page-fishing-games__cta-description {
    font-size: 1rem;
    line-height: 1.5;
  }

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

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

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

  .page-fishing-games__card-image,
  .page-fishing-games__game-image,
  .page-fishing-games__step-image,
  .page-fishing-games__security-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: contain; /* Use contain for icons/steps to avoid cropping */
  }

  .page-fishing-games__about-section,
  .page-fishing-games__games-showcase,
  .page-fishing-games__guide-section,
  .page-fishing-games__strategy-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__security-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    padding: 40px 0;
  }

  .page-fishing-games__card,
  .page-fishing-games__game-card,
  .page-fishing-games__step-card,
  .page-fishing-games__security-item {
    padding: 20px;
  }

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

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

  /* Ensure all containers holding images/videos/buttons are responsive */
  .page-fishing-games__hero-section,
  .page-fishing-games__about-section .page-fishing-games__container,
  .page-fishing-games__games-showcase .page-fishing-games__container,
  .page-fishing-games__guide-section .page-fishing-games__container,
  .page-fishing-games__strategy-section .page-fishing-games__container,
  .page-fishing-games__promotions-section .page-fishing-games__container,
  .page-fishing-games__security-section .page-fishing-games__container,
  .page-fishing-games__faq-section .page-fishing-games__container,
  .page-fishing-games__cta-section .page-fishing-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-fishing-games__feature-cards,
  .page-fishing-games__game-cards,
  .page-fishing-games__steps-grid,
  .page-fishing-games__promotion-cards,
  .page-fishing-games__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .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-section,
  .page-fishing-games__video-container,
  .page-fishing-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}