:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-button-bg: #C30808; /* Custom color for Register/Login buttons */
  --register-login-button-text: #000000; /* Prioritizing WCAG AA contrast (6.0:1) over specified #FFFF00 (2.8:1) */
  --body-text-color: #333333; /* Default text color for light backgrounds */
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--body-text-color);
  background-color: var(--secondary-color); /* Matches body background */
}

.page-fishing-games__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-fishing-games__center-content {
  text-align: center;
}

.page-fishing-games__center-text {
  text-align: center;
}

.page-fishing-games__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-fishing-games__section-subtitle {
  font-size: 20px;
  color: var(--body-text-color);
  margin-bottom: 40px;
}

.page-fishing-games__sub-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: left;
}

.page-fishing-games__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: left;
  color: var(--body-text-color);
}

.page-fishing-games__keyword {
  color: var(--primary-color);
  font-weight: bold;
}

/* HERO Section Styles */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color), #3498db); /* Example gradient, can be adjusted */
  overflow: hidden;
}

.page-fishing-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-fishing-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-fishing-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--secondary-color);
}

.page-fishing-games__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

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

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

/* General Button Styles */
.page-fishing-games__cta-button,
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensures button adapts to container width */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__cta-button:hover,
.page-fishing-games__btn-primary:hover,
.page-fishing-games__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Specific Button Colors */
.page-fishing-games__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid transparent;
}

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

.page-fishing-games__btn-register,
.page-fishing-games__btn-login {
  background: var(--register-login-button-bg);
  color: var(--register-login-button-text);
  border: 2px solid transparent;
}

.page-fishing-games__btn-register:hover,
.page-fishing-games__btn-login:hover {
  background: darken(var(--register-login-button-bg), 10%); /* Darken on hover */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Game Grid Section */
.page-fishing-games__popular-games {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-fishing-games__popular-games .page-fishing-games__section-title,
.page-fishing-games__popular-games .page-fishing-games__section-subtitle,
.page-fishing-games__popular-games .page-fishing-games__text-block {
  color: var(--secondary-color);
}

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

.page-fishing-games__game-card {
  background: var(--secondary-color);
  color: var(--body-text-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-fishing-games__game-card img {
  width: 100%;
  height: auto;
  min-height: 200px; /* Minimum size requirement */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-fishing-games__card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-fishing-games__card-description {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Play Section */
.page-fishing-games__how-to-play .page-fishing-games__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-fishing-games__how-to-play .page-fishing-games__list-item {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__how-to-play .page-fishing-games__list-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-fishing-games__how-to-play .page-fishing-games__list-item p {
  font-size: 16px;
  color: var(--body-text-color);
}

/* Promotions Section */
.page-fishing-games__promotions {
  background-color: var(--secondary-color);
}