/* General Styles for Fishing Games Page */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--deep-navy);
  line-height: 1.6;
}

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-fishing-games__section-subtitle {
  font-size: 1.2em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

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

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-fishing-games__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
}

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

.page-fishing-games__btn-secondary:hover {
  background: var(--gold);
  color: var(--deep-navy);
}

.page-fishing-games__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-fishing-games__card-title {
  font-size: 1.5em;
  color: var(--gold);
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-fishing-games__card-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
}

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

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: -200px auto 0;
  background: linear-gradient(0deg, var(--deep-navy) 0%, rgba(8, 22, 43, 0.8) 100%);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

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

/* About Section */
.page-fishing-games__about-section {
  padding: 60px 0;
}

.page-fishing-games__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-fishing-games__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Features Section */
.page-fishing-games__features-section {
  padding: 60px 0;
  background: var(--card-bg);
}

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

.page-fishing-games__feature-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 15px;
  border-radius: 8px;
}

/* Games Showcase Section */
.page-fishing-games__games-showcase-section {
  padding: 60px 0;
}

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

.page-fishing-games__game-iframe {
  border: none;
  border-radius: 8px;
  width: 100%;
  height: 200px; /* Adjust height as needed */
}

.page-fishing-games__card-button {
  margin-top: 20px;
  width: 80%;
}

/* Guide Section */
.page-fishing-games__guide-section {
  padding: 60px 0;
  background: var(--card-bg);
}

.page-fishing-games__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: guide-step;
}

.page-fishing-games__guide-item {
  background: var(--deep-navy);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 80px;
}

.page-fishing-games__guide-item::before {
  counter-increment: guide-step;
  content: "0" counter(guide-step);
  position: absolute;
  left: 20px;
  top: 25px;
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
}

.page-fishing-games__guide-step-title {
  font-size: 1.8em;
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 10px;
}

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

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 60px 0;
}

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

.page-fishing-games__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* FAQ Section */
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg);
}
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: rgba(var(--card-bg-rgb), 0.8);
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
  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: rgba(var(--card-bg-rgb), 0.6);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary);
}

/* CTA Section */
.page-fishing-games__cta-section {
  padding: 60px 0 80px;
  text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-fishing-games__home-hero { /* This is an inner page, so home-hero might not apply directly, but including for consistency if a similar structure were used */
    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;
  }
}

@media (min-width: 1024px) {
  .page-fishing-games__home-hero { /* Inner page, so this section's layout might differ from index */
    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; /* Adjust padding for inner page context */
    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;
  }
  .page-fishing-games__promo-strip {
    margin-top: 16px;
  }
  /* Specific adjustments for inner page content for larger screens */
  .page-fishing-games__hero-section .page-fishing-games__hero-image-wrapper {
    height: 600px;
  }
  .page-fishing-games__hero-section .page-fishing-games__hero-content {
    margin-top: -250px;
    padding: 50px 30px;
  }
  .page-fishing-games__about-section .page-fishing-games__content-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 15px;
  }

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

  .page-fishing-games__section-subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* Hero Section */
  .page-fishing-games__hero-section {
    padding-top: 8px;
    margin-bottom: 20px;
  }
  .page-fishing-games__hero-image-wrapper {
    height: 300px;
  }
  .page-fishing-games__hero-content {
    margin-top: -100px;
    padding: 25px 15px;
  }
  .page-fishing-games__main-title {
    font-size: 1.8em;
  }
  .page-fishing-games__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-fishing-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* About Section */
  .page-fishing-games__about-section {
    padding: 40px 0;
  }
  .page-fishing-games__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Features Section */
  .page-fishing-games__features-section {
    padding: 40px 0;
  }
  .page-fishing-games__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Games Showcase Section */
  .page-fishing-games__games-showcase-section {
    padding: 40px 0;
  }
  .page-fishing-games__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-fishing-games__game-iframe {
    height: 180px;
  }

  /* Guide Section */
  .page-fishing-games__guide-section {
    padding: 40px 0;
  }
  .page-fishing-games__guide-item {
    padding: 20px 15px 20px 60px;
  }
  .page-fishing-games__guide-item::before {
    font-size: 2em;
    left: 15px;
    top: 20px;
  }
  .page-fishing-games__guide-step-title {
    font-size: 1.4em;
  }

  /* Promotions Section */
  .page-fishing-games__promotions-section {
    padding: 40px 0;
  }
  .page-fishing-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* CTA Section */
  .page-fishing-games__cta-section {
    padding: 40px 0 60px;
  }
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile image and button adaptation (REQUIRED) */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-cta-buttons,
  .page-fishing-games__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games a[class*="button"],
  .page-fishing-games a[class*="btn"] {
    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;
  }
  .page-fishing-games__cta-buttons,
  .page-fishing-games__button-group,
  .page-fishing-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-fishing-games__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile buttons stack vertically */
  }
}

/* Color Contrast & Custom Colors */
.page-fishing-games {
  color: var(--text-main); /* #F3F8FF for dark body background #08162B */
}

.page-fishing-games__dark-section {
  background: var(--deep-navy);
  color: var(--text-main);
}

.page-fishing-games__card {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.page-fishing-games__card-title {
  color: var(--gold);
}

.page-fishing-games__card-description,
.page-fishing-games__hero-description,
.page-fishing-games__section-subtitle,
.page-fishing-games__faq-answer {
  color: var(--text-secondary);
}

.page-fishing-games__faq-toggle {
  color: var(--gold);
}

/* Variables for custom colors */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --card-bg: #10233F;
  --card-bg-rgb: 16, 35, 63; /* RGB equivalent for rgba usage */
  --border: #244D84;
  --glow: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B;
}

/* General image styles */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* No filter on images (REQUIRED) */
.page-fishing-games img {
  filter: none; /* Ensure no CSS filters are applied */
}