/* style/fishing-games.css */

/* Custom CSS Variables */
:root {
  --primary-color: #017439;
  --secondary-color: #C30808; /* For buttons like register/login */
  --text-color-light: #FFFFFF;
  --text-color-dark: #333333;
  --bg-color-light: #FFFFFF;
  --bg-color-dark: #017439; /* Using primary color as dark background */
  --link-color: #017439;
  --link-hover-color: #005f2c; /* Darker shade of primary */
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light background */
  background-color: var(--bg-color-light); /* Body background is light */
  padding-bottom: 60px; /* Space before footer */
}

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

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

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

.page-fishing-games__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-dark);
}

/* Dark background sections */
.page-fishing-games__dark-section {
  background-color: var(--bg-color-dark);
  color: var(--text-color-light);
}

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

.page-fishing-games__dark-section .page-fishing-games__section-description {
  color: var(--text-color-light);
}

/* Images within content */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensures no extra space below image */
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Buttons */
.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__cta-button:hover {
  background: #a30606; /* Slightly darker red for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary:hover {
  background: var(--link-hover-color);
  transform: translateY(-1px);
}

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

.page-fishing-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
}

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

/* 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: linear-gradient(135deg, var(--primary-color), #005f2c); /* Gradient background for hero */
  color: var(--text-color-light);
}

.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;
}

.page-fishing-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin: 0 auto; /* Center image */
}

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

.page-fishing-games__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-color-light);
  line-height: 1.2;
}

.page-fishing-games__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

/* Introduction Section */
.page-fishing-games__introduction p {
  font-size: 17px;
  margin-bottom: 15px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__introduction strong {
  color: var(--primary-color);
}

/* Advantages Section */
.page-fishing-games__advantages {
  background-color: var(--bg-color-dark);
}

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

.page-fishing-games__feature-card {
  background-color: var(--bg-color-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

.page-fishing-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__feature-card p {
  font-size: 16px;
  line-height: 1.7;
}

/* Popular Games Section */
.page-fishing-games__popular-games {
  background-color: var(--bg-color-light);
}

.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(--bg-color-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

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

.page-fishing-games__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin: 0; /* Override default img margin */
}

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

.page-fishing-games__game-card p {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.6;
}

/* How to Play Section */
.page-fishing-games__how-to-play {
  background-color: #f9f9f9; /* Slightly off-white background */
}

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