/* style/fishing-games.css */

/* Base Styles */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

.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;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-fishing-games__subtitle {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 20px;
}

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

/* 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;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-fishing-games__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* 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: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-fishing-games__btn-secondary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

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

.page-fishing-games__text-link:hover {
  color: #005a2d;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background-color: #017439;
}

.page-fishing-games__hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.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;
  color: #FFFFFF;
  max-width: 900px;
  padding: 20px;
}

.page-fishing-games__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-fishing-games__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Section Styling */
.page-fishing-games__introduction-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__security-section,
.page-fishing-games__cta-section {
  background-color: #FFFFFF; /* Light background */
  padding: 80px 0;
  color: #333333;
}

.page-fishing-games__game-types-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section {
  background-color: #017439; /* Dark background */
  padding: 80px 0;
  color: #FFFFFF;
}

.page-fishing-games__game-types-section .page-fishing-games__section-title,
.page-fishing-games__promotions-section .page-fishing-games__section-title,
.page-fishing-games__faq-section .page-fishing-games__section-title {
  color: #FFFFFF;
}

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

.page-fishing-games__card {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-fishing-games__card:hover {
  transform: translateY(-5px);
}

.page-fishing-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__card-title {
  font-size: 1.4em;
  padding: 15px;
  margin: 0;
  color: #017439;
}

.page-fishing-games__card-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-fishing-games__card-description {
  padding: 0 15px 15px;
  font-size: 0.95em;
  flex-grow: 1;
}

/* How to Play Section */
.page-fishing-games__steps-list,
.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-fishing-games__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-fishing-games__list-item strong {
  color: #017439;
}

.page-fishing-games__list-item p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Security Section */
.page-fishing-games__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-fishing-games__feature-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-fishing-games__feature-icon {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-fishing-games__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-fishing-games__feature-description {
  font-size: 1em;
  color: #555555;
}

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

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-fishing-games__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #FFFFFF;
}

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

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  transform: rotate(45deg); /* For '-' symbol */
}

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

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px;
}

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

/* CTA Section */
.page-fishing-games__cta-section {
  text-align: center;
}

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

/* Images */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-fishing-games__hero-description {
    font-size: 1.2em;
  }

  .page-fishing-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    height: 60vh;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-fishing-games__hero-title {
    font-size: 2.5em;
  }

  .page-fishing-games__hero-description {
    font-size: 1.1em;
  }

  .page-fishing-games__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100%;
    max-width: 300px; /* Constrain width for better look on small screens */
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-fishing-games__game-grid,
  .page-fishing-games__promo-grid,
  .page-fishing-games__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Ensure images are responsive and do not overflow */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-fishing-games__card-image,
  .page-fishing-games__feature-icon {
    height: auto !important; /* Override fixed height for responsiveness */
    max-height: 200px !important;
    object-fit: contain !important; /* Ensure image fits without cropping */
  }

  /* Video responsiveness */
  .page-fishing-games__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-fishing-games__hero-section,
  .page-fishing-games__introduction-section,
  .page-fishing-games__game-types-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__security-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    padding: 40px 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__faq-question h3 {
    font-size: 1.1em;
  }

  .page-fishing-games__faq-toggle {
    font-size: 1.5em;
  }
}