/* Base styles for page-fishing-games */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #FFFFFF;
}

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

.page-fishing-games__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-fishing-games__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-fishing-games__text-block {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-fishing-games__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-fishing-games__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

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

.page-fishing-games__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

.page-fishing-games__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-fishing-games__card:hover {
  transform: translateY(-5px);
}

.page-fishing-games__card-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-fishing-games__card-title {
  font-size: 20px;
  font-weight: 600;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-fishing-games__card-text {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-fishing-games__card-button {
  margin-top: auto;
  width: 100%;
}

/* Hero Section */
.page-fishing-games__hero-section {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, #017439, #005f2e);
  color: #ffffff;
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-fishing-games__hero-section .page-fishing-games__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-fishing-games__hero-content {
  text-align: center;
  max-width: 800px;
}

.page-fishing-games__main-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for prominence */
}

.page-fishing-games__hero-description {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-fishing-games__hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

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

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

.page-fishing-games__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
  background-color: #000;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-fishing-games__game-trial-title {
  font-weight: 600;
}

.page-fishing-games__game-trial-full-screen-btn {
  background-color: #017439;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.page-fishing-games__game-trial-full-screen-btn:hover {
  background-color: #005f2e;
}

.page-fishing-games__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Default aspect ratio */
  background-color: #000;
}

.page-fishing-games__game-trial-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

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

.page-fishing-games__game-trial-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important; /* Force hide after transition */
}

.page-fishing-games__game-trial-start {
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-fishing-games__game-trial-start:hover {
  background-color: #a30606;
  transform: scale(1.05);
}

.page-fishing-games__game-trial-bottombar {
  padding: 15px;
  background-color: #222;
  text-align: center;
}

.page-fishing-games__game-trial-register-btn {
  width: auto;
  min-width: 200px;
}

/* Intro Section */
.page-fishing-games__intro-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #005f2e, #017439);
  color: #f0f0f0;
}

.page-fishing-games__intro-section .page-fishing-games__section-title {
  color: #FFFF00;
}

.page-fishing-games__intro-section .page-fishing-games__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.page-fishing-games__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Game Types Section */
.page-fishing-games__game-types-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

/* Guide Section */
.page-fishing-games__guide-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #017439, #005f2e);
  color: #f0f0f0;
}

.page-fishing-games__guide-section .page-fishing-games__section-title,
.page-fishing-games__guide-section .page-fishing-games__section-description {
  color: #FFFF00;
}

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

.page-fishing-games__guide-step {
  background-color: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-fishing-games__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFF00;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-fishing-games__guide-step p {
  font-size: 15px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-fishing-games__guide-step p a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-fishing-games__guide-step p a:hover {
  color: #fff;
}

/* Strategy Section */
.page-fishing-games__strategy-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #005f2e, #017439);
  color: #f0f0f0;
  text-align: center;
}

.page-fishing-games__promotions-section .page-fishing-games__section-title,
.page-fishing-games__promotions-section .page-fishing-games__section-description {
  color: #FFFF00;
}

.page-fishing-games__promo-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 800px;
  text-align: left;
}

.page-fishing-games__promo-item {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #f0f0f0;
}

.page-fishing-games__promo-item::before {
  content: '★';
  color: #FFFF00;
  position: absolute;
  left: 0;
  font-size: 18px;
  line-height: 1.8;
}

/* Why Choose Section */
.page-fishing-games__why-choose-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-fishing-games__feature-item {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-fishing-games__feature-item:hover {
  transform: translateY(-5px);
}

.page-fishing-games__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-fishing-games__feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-fishing-games__feature-text {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #017439, #005f2e);
  color: #f0f0f0;
}

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

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

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  color: #f0f0f0;
}
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.1);
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #f0f0f0;
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFF00;
  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.1);
  border-radius: 0 0 5px 5px;
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-fishing-games__hero-section .page-fishing-games__container {
    flex-direction: column;
    gap: 20px;
  }
  .page-fishing-games__hero-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
  .page-fishing-games__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .page-fishing-games__hero-description {
    font-size: 17px;
  }
  .page-fishing-games__section-title {
    font-size: 28px;
  }
  .page-fishing-games__section-description {
    font-size: 16px;
  }

  /* Game Trial Specific Overrides for tablet/small desktop */
  .page-fishing-games__game-trial-section .page-fishing-games__game-trial-shell {
    max-width: 768px;
  }
  .page-fishing-games__game-trial-topbar, .page-fishing-games__game-trial-bottombar {
    display: none !important; /* Hide bars on smaller screens */
  }
  .page-fishing-games__game-trial-viewport {
    aspect-ratio: 1024 / 768; /* Fixed aspect ratio for trial */
    min-height: 240px;
  }
}

@media (min-width: 1024px) {
  .page-fishing-games__hero-section .page-fishing-games__container {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 50px;
  }
  .page-fishing-games__hero-content {
    text-align: left;
  }
  .page-fishing-games__hero-actions {
    justify-content: flex-start;
  }
  .page-fishing-games__game-trial-section .page-fishing-games__game-trial-shell {
    max-width: 1000px;
  }
  .page-fishing-games__game-types-grid,
  .page-fishing-games__guide-steps,
  .page-fishing-games__strategy-grid,
  .page-fishing-games__why-choose-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on larger screens */
  }
  .page-fishing-games__why-choose-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-fishing-games__container {
    padding: 0 15px;
  }
  .page-fishing-games__hero-section {
    padding: 40px 0 30px;
  }
  .page-fishing-games__main-title {
    font-size: 26px;
    margin-bottom: 10px;
  }
  .page-fishing-games__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-fishing-games__hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-fishing-games__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-fishing-games__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-fishing-games__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__game-types-grid,
  .page-fishing-games__guide-steps,
  .page-fishing-games__strategy-grid,
  .page-fishing-games__why-choose-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-fishing-games__card {
    padding: 15px;
  }
  .page-fishing-games__card-image {
    max-height: 150px;
  }
  .page-fishing-games__card-title {
    font-size: 18px;
  }
  .page-fishing-games__promo-list {
    text-align: left;
    padding-left: 0;
    margin-bottom: 30px;
  }
  .page-fishing-games__promo-item {
    font-size: 16px;
    padding-left: 20px;
  }
  .page-fishing-games__feature-item {
    padding: 20px;
  }
  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;
  }
}

/* Ensure all images are responsive and their containers prevent overflow */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-fishing-games__section,
.page-fishing-games__card,
.page-fishing-games__container,
.page-fishing-games__hero-actions {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
@media (max-width: 768px) {
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-actions {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__hero-actions {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Reward Modal (for game trial JS) */
.page-fishing-games__reward-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 15px;
}
.page-fishing-games__reward-modal.is-hidden {
  display: none !important;
}
.page-fishing-games__reward-modal-content {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  max-width: 450px;
  width: 100%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.page-fishing-games__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease;
}
.page-fishing-games__reward-modal-close:hover {
  color: #000;
}
.page-fishing-games__reward-modal-title {
  font-size: 26px;
  color: #017439;
  margin-bottom: 15px;
}
.page-fishing-games__reward-modal-text {
  font-size: 16px;
  color: #333;
  margin-bottom: 25px;
  line-height: 1.6;
}