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

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

.page-fishing-games__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-fishing-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FF5A4F, #E53935);
  border-radius: 2px;
}

.page-fishing-games__text-block {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
}

.page-fishing-games__text-block a {
  color: #E53935;
  text-decoration: underline;
}

/* Hero Section */
.page-fishing-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 50px;
  background: #E53935; /* Dark background */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-fishing-games__main-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__lead-text {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-fishing-games__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-fishing-games__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
  border-color: #FF5A4F;
  transform: translateY(-2px);
}

.page-fishing-games__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Intro Section */
.page-fishing-games__intro-section {
  padding: 50px 0;
  background: #F5F7FA;
  color: #333333;
}

/* Features Section */
.page-fishing-games__features-section {
  padding: 50px 0;
  background: #E53935;
  color: #ffffff;
}

.page-fishing-games__features-section .page-fishing-games__section-title {
  color: #ffffff;
}

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

.page-fishing-games__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-fishing-games__feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

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

.page-fishing-games__feature-description {
  font-size: 16px;
  color: #f0f0f0;
}

.page-fishing-games__feature-image-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  box-shadow: none;
}

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

/* Game Trial Section */
.page-fishing-games__game-trial-section {
  padding: 50px 0;
  background: #F5F7FA;
  color: #333333;
}

.page-fishing-games__game-trial-wrapper {
  max-width: 900px;
  margin: 30px auto 0;
}

.page-fishing-games__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
  height: 600px; /* Default height for trial frame */
}

.page-fishing-games__game-trial-topbar, .page-fishing-games__game-trial-bottombar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #222;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

.page-fishing-games__game-title {
  font-weight: bold;
  color: #FF5A4F;
}

.page-fishing-games__trial-login-btn, .page-fishing-games__trial-register-btn {
  background: #FF5A4F;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.3s ease;
}

.page-fishing-games__trial-login-btn:hover, .page-fishing-games__trial-register-btn:hover {
  background: #E53935;
}

.page-fishing-games__game-trial-viewport {
  flex: 1;
  position: relative;
  width: 100%;
  min-height: 400px; /* Minimum height for iframe area */
}

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

.page-fishing-games__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 5;
  pointer-events: auto;
}

.page-fishing-games__game-trial-overlay.is-hidden {
  opacity: 0;
  display: none !important;
  pointer-events: none !important;
}

.page-fishing-games__overlay-text {
  font-size: 24px;
  margin-bottom: 20px;
}

.page-fishing-games__game-trial-start {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-fishing-games__game-trial-start:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Reward Modal (for JS) */
.page-fishing-games__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.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: 500px;
  width: 90%;
  position: relative;
}

.page-fishing-games__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.page-fishing-games__reward-modal-title {
  color: #E53935;
  font-size: 28px;
  margin-bottom: 15px;
}

.page-fishing-games__reward-modal-text {
  font-size: 16px;
  margin-bottom: 25px;
}

/* Popular Games Section */
.page-fishing-games__popular-games {
  padding: 50px 0;
  background: #F5F7FA;
  color: #333333;
}

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

.page-fishing-games__game-card {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-fishing-games__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-fishing-games__game-card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 15px 15px 10px;
  color: #E53935;
}

.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-description {
  font-size: 15px;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-fishing-games__game-card-button {
  margin: 0 15px 15px;
  text-align: center;
  padding: 10px 15px;
  font-size: 16px;
}

/* How to Play Section */
.page-fishing-games__how-to-play {
  padding: 50px 0;
  background: #E53935;
  color: #ffffff;
}

.page-fishing-games__how-to-play .page-fishing-games__section-title {
  color: #ffffff;
}

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

.page-fishing-games__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-fishing-games__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.page-fishing-games__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #FF5A4F;
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

.page-fishing-games__step-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 5px;
}

.page-fishing-games__step-description {
  font-size: 15px;
  color: #f0f0f0;
  margin-top: 0;
}

.page-fishing-games__step-description a {
  color: #FF5A4F;
  text-decoration: underline;
}

.page-fishing-games__guide-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Promotions Section */
.page-fishing-games__promotions {
  padding: 50px 0;
  background: #F5F7FA;
  color: #333333;
}

.page-fishing-games__promo-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 25px;
  font-size: 16px;
}

.page-fishing-games__promo-list li {
  margin-bottom: 10px;
  color: #333333;
}

.page-fishing-games__promo-list li a {
  color: #E53935;
  text-decoration: underline;
}

/* Tips and Strategies Section */
.page-fishing-games__tips-strategies {
  padding: 50px 0;
  background: #E53935;
  color: #ffffff;
}

.page-fishing-games__tips-strategies .page-fishing-games__section-title {
  color: #ffffff;
}

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

.page-fishing-games__tips-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-fishing-games__tips-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

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

.page-fishing-games__tips-description {
  font-size: 16px;
  color: #f0f0f0;
}

.page-fishing-games__tips-image-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  box-shadow: none;
}

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

/* Responsible Gaming Section */
.page-fishing-games__responsible-gaming {
  padding: 50px 0;
  background: #F5F7FA;
  color: #333333;
  text-align: center;
}

.page-fishing-games__responsible-gaming .page-fishing-games__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
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(255, 255, 255, 0.15);
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FF5A4F;
  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(0, 0, 0, 0.2);
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-fishing-games__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-fishing-games__faq-answer a {
  color: #FF5A4F;
  text-decoration: underline;
}

.page-fishing-games__faq-section {
  padding: 50px 0;
  background: #E53935;
  color: #ffffff;
}

.page-fishing-games__faq-section .page-fishing-games__section-title {
  color: #ffffff;
}

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

/* CTA Section */
.page-fishing-games__cta-section {
  padding: 50px 0;
  background: #F5F7FA;
  color: #333333;
  text-align: center;
}

/* General Image styles */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1023px) {
  .page-fishing-games__hero-section {
    padding-bottom: 30px;
  }
  .page-fishing-games__main-title {
    font-size: 38px;
  }
  .page-fishing-games__lead-text {
    font-size: 18px;
  }
  .page-fishing-games__guide-grid {
    grid-template-columns: 1fr;
  }
  .page-fishing-games__guide-image-wrapper {
    order: -1;
  }
  .page-fishing-games__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-fishing-games__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-fishing-games__game-trial-shell {
    height: auto;
  }
  .page-fishing-games__game-trial-viewport {
    aspect-ratio: 16 / 9; /* Adjusted for common mobile video aspect ratio */
    min-height: 240px;
  }
  .page-fishing-games__game-trial-topbar, .page-fishing-games__game-trial-bottombar {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-fishing-games__section-title {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }
  .page-fishing-games__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-fishing-games__lead-text {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-fishing-games__cta-button,
  .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: 12px 20px;
    font-size: 16px;
  }
  .page-fishing-games__button-group {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__hero-section,
  .page-fishing-games__intro-section,
  .page-fishing-games__features-section,
  .page-fishing-games__game-trial-section,
  .page-fishing-games__popular-games,
  .page-fishing-games__how-to-play,
  .page-fishing-games__promotions,
  .page-fishing-games__tips-strategies,
  .page-fishing-games__responsible-gaming,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    padding: 30px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-fishing-games__feature-grid, .page-fishing-games__game-cards-grid, .page-fishing-games__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-fishing-games__game-card-image {
    height: 180px;
  }
  .page-fishing-games__game-card-title {
    font-size: 18px;
  }
  .page-fishing-games__game-card-description {
    font-size: 14px;
  }
  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; }
  .page-fishing-games__game-trial-viewport {
    min-height: 200px;
  }
}