/* Base styles */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D;
  background-color: #F4F7FB;
  line-height: 1.6;
}

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

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

.page-fishing-games__section-subtitle {
  font-size: 18px;
  color: #555;
  text-align: center;
  margin-bottom: 40px;
}

.page-fishing-games__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #2F6BFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid #2F6BFF;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-fishing-games__dark-bg {
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-fishing-games__light-bg {
  background-color: #ffffff;
  color: #1F2D3D;
}

/* Hero Section */
.page-fishing-games__hero-section {
  padding-top: 10px; /* Rely on body for header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-fishing-games__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.page-fishing-games__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-fishing-games__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* Game Trial Section */
.page-fishing-games__game-trial {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  width: 100%;
  max-width: 900px; /* Default for non-grid layout */
  margin: 0 auto;
}

.page-fishing-games__game-trial-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #D4AF3773; /* Gold border */
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-fishing-games__game-title {
  font-weight: 700;
  font-size: 18px;
  color: #FFD700; /* Gold */
}

.page-fishing-games__btn-download, .page-fishing-games__btn-register {
  background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
  color: #1F2D3D;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-download:hover, .page-fishing-games__btn-register:hover {
  opacity: 0.9;
}

.page-fishing-games__game-trial-viewport {
  flex: 1;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Default aspect ratio */
  min-height: 300px;
  overflow: hidden;
}

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

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

.page-fishing-games__game-trial-overlay.is-hidden {
  opacity: 0;
  pointer-events: none !important;
  display: none !important; /* Ensure it's hidden */
}

.page-fishing-games__game-trial-start {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 30px;
  background: linear-gradient(180deg, #4CAF50 0%, #2E7D32 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  z-index: 6;
  transition: transform 0.3s ease, background 0.3s ease;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-fishing-games__game-trial-start:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.page-fishing-games__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: 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-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 500px;
  width: 90%;
}

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

.page-fishing-games__reward-modal-close:hover {
  color: #2F6BFF;
}

.page-fishing-games__reward-icon {
  font-size: 60px;
  color: #FFD700; /* Gold */
  margin-bottom: 20px;
}

.page-fishing-games__reward-title {
  font-size: 28px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-fishing-games__reward-message {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.page-fishing-games__btn-claim-reward {
  background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
  color: #1F2D3D;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-claim-reward:hover {
  opacity: 0.9;
}

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

.page-fishing-games__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-fishing-games__image-left {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-fishing-games__text-block {
  flex: 2;
  min-width: 300px;
}

.page-fishing-games__text-block p {
  margin-bottom: 15px;
  color: #1F2D3D;
}

/* Benefits Section */
.page-fishing-games__benefits-section {
  padding: 80px 0;
  background-color: #F4F7FB;
}

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

.page-fishing-games__benefit-card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF;
}

.page-fishing-games__benefit-card:hover {
  transform: translateY(-10px);
}

.page-fishing-games__benefit-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
}

.page-fishing-games__benefit-card p {
  font-size: 15px;
  color: #555555;
}

/* Popular Games Section */
.page-fishing-games__popular-games-section {
  padding: 80px 0;
}

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

.page-fishing-games__game-card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF;
}

.page-fishing-games__game-card:hover {
  transform: translateY(-10px);
}

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

.page-fishing-games__game-card .page-fishing-games__card-title {
  padding: 15px 15px 5px;
  font-size: 20px;
}

.page-fishing-games__game-card p {
  padding: 0 15px 15px;
  font-size: 14px;
  color: #555555;
}

.page-fishing-games__btn-play {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: opacity 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-play:hover {
  opacity: 0.9;
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
  padding: 80px 0;
}

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

.page-fishing-games__step-card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  border: 1px solid #D6E2FF;
  position: relative;
  overflow: hidden;
}

.page-fishing-games__step-number {
  position: absolute;
  top: -10px;
  left: -10px;
  background: #2F6BFF;
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-25deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__step-card .page-fishing-games__card-title {
  margin-top: 40px;
}

.page-fishing-games__step-card p {
  color: #555555;
  margin-bottom: 20px;
}