:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #017439; /* Using primary color as dark background for contrast */
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-font-color: #FFFF00;
  --header-offset: 122px; /* Default, will be overridden by shared.css or adjusted if shared doesn't exist */
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--bg-light); /* Default light background */
}

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Button styles */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-fishing-games__btn-primary:hover {
  background-color: #a40707; /* Darken C30808 */
  border-color: #a40707;
  color: var(--text-light);
}

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

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

/* CTA Buttons group */
.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  padding-top: 0; /* Important: Rely on body padding-top from shared.css */
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-dark); /* Dark background for hero */
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Responsive height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  box-sizing: border-box;
  color: var(--text-light); /* Light text for dark hero background */
}

.page-fishing-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: var(--btn-font-color); /* Custom font color for register/login */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-fishing-games__intro-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* Features Section */
.page-fishing-games__features-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

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

.page-fishing-games__feature-icon {
  width: 100%; /* Ensure large images for cards */
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-fishing-games__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-fishing-games__feature-text {
  font-size: 1em;
  color: var(--text-dark);
}

/* Games Section */
.page-fishing-games__games-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-fishing-games__games-section .page-fishing-games__section-title {
  color: var(--btn-font-color); /* Light text for dark background */
}

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

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

.page-fishing-games__game-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-fishing-games__game-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--btn-font-color); /* Light text for dark background */
  margin-bottom: 10px;
}

.page-fishing-games__game-title a {
  color: var(--btn-font-color); /* Link color */
  text-decoration: none;
}

.page-fishing-games__game-title a:hover {
  text-decoration: underline;
}

.page-fishing-games__game-description {
  font-size: 0.95em;
  color: var(--text-light);
  flex-grow: 1; /* Push button to bottom */
  margin-bottom: 20px;
}

.page-fishing-games__game-btn {
  width: 100%;
  margin-top: auto;
}

/* Strategy Section */
.page-fishing-games__strategy-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-fishing-games__strategy-content {
  display: grid;
  grid-template-columns: 1fr; /* Single column for strategy items */
  gap: 40px;
  margin-top: 40px;
}

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

.page-fishing-games__strategy-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  margin-bottom: 25px;
  border-radius: 8px;
}

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

.page-fishing-games__strategy-text {
  font-size: 1.05em;
  color: var(--text-dark);
  text-align: left; /* Align text left for better readability */
  max-width: 800px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-fishing-games__promotions-section .page-fishing-games__section-title {
  color: var(--btn-font-color);
}

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

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

.page-fishing-games__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-fishing-games__promo-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--btn-font-color);
  margin-bottom: 10px;
}

.page-fishing-games__promo-text {
  font-size: 0.95em;
  color: var(--text-light);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Security Section */
.page-fishing-games__security-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

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

.page-fishing-games__security-icon {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-fishing-games__security-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-fishing-games__security-text {
  font-size: 1em;
  color: var(--text-dark);
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-fishing-games__faq-section .page-fishing-games__section-title {
  color: var(--btn-font-color);
}

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

.page-fishing-games__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--btn-font-color);
  cursor: pointer;
  outline: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-fishing-games__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-fishing-games__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar for open state */
}

.page-fishing-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-light);
  line-height: 1.6;
}

/* Final CTA Section */
.page-fishing-games__cta-final-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
  text-align: center;
}

.page-fishing-games__cta-final-content {
  max-width: 800px;
}

/* --- Responsive Styles (Mobile First Approach with Desktop Overrides) --- */

/* General mobile settings */
@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-fishing-games__container {
    padding: 0 15px; /* Smaller padding for mobile */
  }

  .page-fishing-games__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-fishing-games__section-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* 1. LOGO Carousel (Not present in this page, but keeping for checklist) */
  /* If it were present, it would be like: */
  /* .page-fishing-games__logo-carousel-section { padding: 10px 15px 20px; } */
  /* .page-fishing-games__logo-item { width: 80px !important; height: 80px !important; max-width: 80px !important; } */

  /* 2. HERO Section */
  .page-fishing-games__hero-section {
    min-height: auto;
    padding-top: 0 !important; /* Ensure no extra padding from body offset */
    padding-bottom: 40px;
  }

  .page-fishing-games__hero-content {
    padding: 30px 15px;
  }

  .page-fishing-games__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-fishing-games__intro-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* 3. Game Display Area, Feature/Promo/Security Cards */
  .page-fishing-games__features-grid,
  .page-fishing-games__games-grid,
  .page-fishing-games__promotions-grid,
  .page-fishing-games__security-content {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
  }

  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card,
  .page-fishing-games__security-item {
    padding: 20px;
  }

  .page-fishing-games__feature-icon,
  .page-fishing-games__game-image,
  .page-fishing-games__promo-image,
  .page-fishing-games__security-icon {
    height: 150px; /* Adjust image height for mobile cards */
  }

  /* 4. Universal Images & Containers */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Containers that hold images or content and need full width */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__strategy-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Strategy section specific adjustments */
  .page-fishing-games__strategy-item {
    padding: 20px;
  }

  .page-fishing-games__strategy-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .page-fishing-games__strategy-title {
    font-size: 1.5em;
  }

  .page-fishing-games__strategy-text {
    font-size: 0.95em;
  }

  /* 5. Buttons & Button Containers */
  .page-fishing-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }
}