/* Base styles for the fishing-games page */
.page-fishing-games {
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Page background color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-fishing-games__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.1;
  max-width: 100%;
}

.page-fishing-games__description {
  font-size: 18px;
  color: #333333;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__text-block {
  font-size: 16px;
  color: #333333;
  margin-bottom: 20px;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  margin-bottom: 40px;
  background-color: #F5F7FA;
}

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

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

.page-fishing-games__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

/* Buttons */
.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-fishing-games__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.6);
}

.page-fishing-games__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
  border-color: #FF5A4F;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

/* About Section */
.page-fishing-games__about-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  margin-bottom: 40px;
}

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

.page-fishing-games__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-fishing-games__feature-title {
  font-size: 24px;
  color: #E53935;
  margin-bottom: 15px;
}

.page-fishing-games__feature-description {
  font-size: 15px;
  color: #333333;
}

/* Game Types Section */
.page-fishing-games__game-types-section {
  padding: 60px 0;
  background-color: #E53935;
  color: #ffffff;
  margin-bottom: 40px;
}

.page-fishing-games__game-types-section .page-fishing-games__section-title,
.page-fishing-games__game-types-section .page-fishing-games__description,
.page-fishing-games__game-types-section .page-fishing-games__text-block {
  color: #ffffff;
}

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

.page-fishing-games__game-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
}

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

.page-fishing-games__game-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

.page-fishing-games__game-card-desc {
  font-size: 15px;
  color: #333333;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* How To Play Section */
.page-fishing-games__how-to-play-section {
  padding: 60px 0;
  background-color: #F5F7FA;
  margin-bottom: 40px;
}

.page-fishing-games__steps-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-fishing-games__step-item {
  position: relative;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__step-item::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  top: 0;
  left: 0;
  background: #FF5A4F;
  color: #ffffff;
  font-size: 30px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 10px 0 10px 0;
}

.page-fishing-games__step-title {
  font-size: 22px;
  color: #E53935;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-fishing-games__step-description {
  font-size: 15px;
  color: #333333;
}

/* Tips Section */
.page-fishing-games__tips-section {
  padding: 60px 0;
  background-color: #E53935;
  color: #ffffff;
  margin-bottom: 40px;
}

.page-fishing-games__tips-section .page-fishing-games__section-title,
.page-fishing-games__tips-section .page-fishing-games__description,
.page-fishing-games__tips-section .page-fishing-games__text-block {
  color: #ffffff;
}

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

.page-fishing-games__tip-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__tip-title {
  font-size: 22px;
  color: #FF5A4F;
  margin-bottom: 15px;
}

.page-fishing-games__tip-description {
  font-size: 15px;
  color: #ffffff;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 60px 0;
  background-color: #F5F7FA;
  margin-bottom: 40px;
}

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

.page-fishing-games__promo-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
}

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

.page-fishing-games__promo-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

.page-fishing-games__promo-card-desc {
  font-size: 15px;
  color: #333333;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Trial Game Section */
.page-fishing-games__trial-game-section {
  padding: 60px 0;
  background-color: #E53935;
  color: #ffffff;
  margin-bottom: 40px;
}

.page-fishing-games__trial-game-section .page-fishing-games__section-title,
.page-fishing-games__trial-game-section .page-fishing-games__description {
  color: #ffffff;
}

.page-fishing-games__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 40px;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Default aspect ratio for game iframe */
}

.page-fishing-games__game-trial-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-fishing-games__game-trial-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover {
  background: #f5f5f5;
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* Global image responsiveness */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- HOMEPAGE SPECIFIC CSS BLOCKS (REQUIRED VERBATIM FOR INNER PAGE) --- */
/* This block is typically for homepage, but included as per strict instructions */
@media (max-width: 1023px) {
  .page-fishing-games__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-fishing-games__hero-brand,
  .page-fishing-games__hero-jackpot {
    display: none !important;
  }
  .page-fishing-games__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial-topbar,
  .page-fishing-games__game-trial-bottombar {
    display: none !important;
  }
  .page-fishing-games__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-fishing-games__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-fishing-games__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

/* This block is typically for homepage, but included as per strict instructions */
@media (min-width: 1024px) {
  .page-fishing-games__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-fishing-games__hero-brand,
  .page-fishing-games__hero-jackpot,
  .page-fishing-games__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-fishing-games__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-fishing-games__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-fishing-games__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* --- MOBILE RESPONSIVE STYLES (REQUIRED FOR INNER PAGE) --- */
@media (max-width: 768px) {
  .page-fishing-games__section-title {
    font-size: 28px;
  }

  .page-fishing-games__main-title {
    font-size: 36px;
  }

  .page-fishing-games__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    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-left: 15px;
    padding-right: 15px;
  }

  /* General image responsiveness for content area */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-fishing-games__container,
  .page-fishing-games__hero-section,
  .page-fishing-games__about-section,
  .page-fishing-games__game-types-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__trial-game-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__hero-image-wrapper {
    height: 300px;
  }

  .page-fishing-games__features-list,
  .page-fishing-games__game-grid,
  .page-fishing-games__steps-list,
  .page-fishing-games__tips-list,
  .page-fishing-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px;
  }
  .page-fishing-games__faq-qtext {
    font-size: 15px;
  }
  .page-fishing-games__faq-answer {
    padding: 0 15px 15px;
  }
}

/* Ensure the game trial iframe scales correctly within its container on mobile */
@media (max-width: 768px) {
  .page-fishing-games__game-trial-shell {
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    height: auto; /* Allow height to adjust */
  }
}

/* Default styles for game trial overlay/start (if present and not overridden by homepage blocks) */
.page-fishing-games__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-fishing-games__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-fishing-games__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

/* Reward Modal (if present) */
.page-fishing-games__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-fishing-games__reward-modal:not([hidden]) {
  display: flex; /* Override hidden attribute */
}
.page-fishing-games__reward-modal[aria-hidden='false'] {
  opacity: 1;
  visibility: visible;
}
.page-fishing-games__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #333333;
}
.page-fishing-games__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}
.page-fishing-games__reward-modal-close:hover {
  color: #E53935;
}