:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-bg: #C30808;
  --register-login-text: #FFFF00;
  --dark-text-color: #333333;
  --light-text-color: #FFFFFF;
  --card-background-color: #FFFFFF;
  --border-color: #e0e0e0;
  --hover-bg-color: #f5f5f5;
  --active-bg-color: #eeeeee;
  --header-offset: 120px; /* Default value, will be overridden by shared.css */
}

/* Base styles for the page content */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-text-color); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Default page background is white */
}

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

.page-fishing-games__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-fishing-games__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  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-color: var(--primary-color);
  border-radius: 2px;
}

.page-fishing-games__section-title--light {
  color: var(--light-text-color);
}
.page-fishing-games__section-title--light::after {
  background-color: var(--light-text-color);
}

.page-fishing-games__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__text-block--light {
  color: var(--light-text-color);
}

/* Hero Section */
.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); /* Fixed header offset */
  background-color: var(--primary-color); /* Fallback background */
}

.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;
  overflow: hidden; /* Ensure image doesn't overflow */
  border-radius: 8px;
}

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

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 30px;
  border-radius: 8px;
  background-color: var(--card-background-color); /* Ensure dark text on light background */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--dark-text-color); /* Ensure dark text on light background */
  margin-top: -80px; /* Overlap with image slightly for better design */
}

.page-fishing-games__main-title {
  font-size: 42px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-fishing-games__intro-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--dark-text-color);
}

.page-fishing-games__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-fishing-games__cta-buttons--centered {
  margin-top: 40px;
}

.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;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-fishing-games__btn-primary {
  background: var(--register-login-bg); /* Red for register/login */
  color: var(--register-login-text); /* Yellow for register/login text */
  border: 2px solid var(--register-login-bg);
}

.page-fishing-games__btn-primary:hover {
  background: #A80707; /* Darken on hover */
  border-color: #A80707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

.page-fishing-games__btn-primary--small {
  padding: 10px 20px;
  font-size: 16px;
}

/* Section Backgrounds */
.page-fishing-games__dark-bg {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.page-fishing-games__light-bg {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

/* Game Types Grid */
.page-fishing-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__game-card {
  background-color: var(--card-background-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-fishing-games__card-text {
  font-size: 15px;
  color: var(--dark-text-color);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 20px;
}

/* Numbered List for How To Play */
.page-fishing-games__numbered-list {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin: 40px 0;
}

.page-fishing-games__numbered-list li {
  counter-increment: item;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  padding-left: 60px;
  position: relative;
}

.page-fishing-games__numbered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.page-fishing-games__numbered-list li h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: var(--primary-color);
}

.page-fishing-games__numbered-list li p {
  margin: 0;
  font-size: 16px;
  color: var(--dark-text-color);
}

.page-fishing-games__list-title {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: var(--primary-color);
}

/* Benefits Grid */
.page-fishing-games__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__benefit-card {
  background-color: var(--card-background-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__benefit-card img {
  width: 100%; /* Make it fill the card width */
  height: 200px; /* Ensure minimum height of 200px */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
}

/* Promotions List */
.page-fishing-games__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.page-fishing-games__promo-list li {
  background-color: var(--card-background-color);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px 30px;
  margin-bottom: 20px;
}

.page-fishing-games__promo-list li h3 {
  color: var(--primary-color);
  font-size: 20px;
  margin-bottom: 10px;
}

.page-fishing-games__promo-list li p {
  color: var(--dark-text-color);
  font-size: 16px;
}

/* FAQ Section */
.page-fishing-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--card-background-color); /* Ensure dark text on light background */
}