/* style/fishing-games.css */

/* Base styles for the page content */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background is white */
}

/* Fixed header offset for main content */
.page-fishing-games__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #ffffff; /* White text for dark overlay */
}

.page-fishing-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: none; /* No CSS filters */
}

.page-fishing-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-fishing-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for emphasis */
}

.page-fishing-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

/* General Section Styling */
.page-fishing-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand primary color for titles */
}

.page-fishing-games__dark-section .page-fishing-games__section-title {
  color: #FFFFFF; /* White text for dark background sections */
}

.page-fishing-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-fishing-games__dark-section .page-fishing-games__text-block {
  color: #f0f0f0; /* Light text for dark background sections */
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-fishing-games__btn-primary {
  background-color: #C30808; /* Custom Register/Login color */
  color: #FFFF00; /* Custom Register/Login font color */
  border: 2px solid #C30808;
}

.page-fishing-games__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: #FFFFFF; /* White text for secondary button on dark background */
  border: 2px solid #FFFFFF;
}

.page-fishing-games__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.page-fishing-games__light-bg .page-fishing-games__btn-secondary {
  color: #017439; /* Brand primary color for secondary button on light background */
  border: 2px solid #017439;
}

.page-fishing-games__light-bg .page-fishing-games__btn-secondary:hover {
  background-color: rgba(1, 116, 57, 0.1);
  color: #017439;
}

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

.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}


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

.page-fishing-games__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-fishing-games__dark-section .page-fishing-games__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-fishing-games__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none; /* No CSS filters */
}

.page-fishing-games__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFFF00; /* Emphasize titles */
}

.page-fishing-games__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-fishing-games__game-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-fishing-games__game-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  filter: none; /* No CSS filters */
}

.page-fishing-games__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-fishing-games__game-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

.page-fishing-games__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
}

/* How-to-Play Steps */
.page-fishing-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-fishing-games__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #C30808;
  color: #FFFF00;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #017439; /* Add some border for visual pop */
}

.page-fishing-games__step-card .page-fishing-games__card-title {
  color: #FFFF00;
  margin-top: 15px;
}

.page-fishing-games__step-card .page-fishing-games__card-description {
  color: #f0f0f0;
}

.page-fishing-games__step-card .page-fishing-games__card-description a {
  color: #FFFF00; /* Link color within step description */
  text-decoration: underline;
}

/* Video Section */
.page-fishing-games__video-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-fishing-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 30px;
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  height: auto; /* Ensure responsiveness */
  display: block; /* Remove extra space below video */
  filter: none; /* No CSS filters */
}

.page-fishing-games__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10; /* Make sure the link is clickable over the video */
}

/* Promotions Section */
.page-fishing-games__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-fishing-games__promo-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  color: #ffffff;
}

.page-fishing-games__promo-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-fishing-games__promo-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-fishing-games__faq-list {
  margin-top: 40px;
}

.page-fishing-games__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.page-fishing-games__faq-question:hover {
  background-color: #f0f0f0;
}

.page-fishing-games__faq-title {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  background-color: #ffffff;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 15px 20px;
}

.page-fishing-games__faq-answer p {
  margin: 0;
}

/* Color contrast enforcement */
.page-fishing-games__dark-bg {
  color: #ffffff; /* Deep text color for dark backgrounds */
  background: #017439; /* Brand primary color as background */
}

.page-fishing-games__light-bg {
  background: #ffffff;
  color: #333333; /* Dark text color for light backgrounds */
}

.page-fishing-games__dark-section {
  background: #017439;
  color: #ffffff;
}

/* Content area img CSS size lower limit */
.page-fishing-games img:not(.page-fishing-games__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure all links within content areas have sufficient contrast */
.page-fishing-games__text-block a,
.page-fishing-games__card-description a,
.page-fishing-games__faq-answer a {
  color: #017439; /* Brand color for links */
  text-decoration: underline;
}
.page-fishing-games__text-block a:hover,
.page-fishing-games__card-description a:hover,
.page-fishing-games__faq-answer a:hover {
  color: #005a2b; /* Darker shade on hover */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 3em;
  }
  .page-fishing-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    height: 500px;
  }
  .page-fishing-games__hero-title {
    font-size: 2.5em;
  }
  .page-fishing-games__hero-description {
    font-size: 1em;
  }
  .page-fishing-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important; /* Ensure full width */
  }

  .page-fishing-games__container {
    padding: 20px 15px;
  }

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

  .page-fishing-games__text-block {
    font-size: 1em;
  }

  /* Mobile image and video responsiveness */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-fishing-games video,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games__feature-image,
  .page-fishing-games__game-thumbnail {
    height: 180px;
  }

  /* Ensure containers wrap images/videos/buttons correctly */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__video-section,
  .page-fishing-games__video-container,
  .page-fishing-games__video-wrapper,
  .page-fishing-games__cta-buttons,
  .page-fishing-games__button-group,
  .page-fishing-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-fishing-games__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}