/* style/fishing-games.css */

:root {
  --page-fishing-games-primary-color: #017439;
  --page-fishing-games-secondary-color: #FFFFFF;
  --page-fishing-games-register-color: #C30808;
  --page-fishing-games-login-color: #C30808;
  --page-fishing-games-text-color-dark: #333333;
  --page-fishing-games-text-color-light: #ffffff;
  --page-fishing-games-register-login-font-color: #FFFF00;
}

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

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

.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  overflow: hidden;
}

.page-fishing-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

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

.page-fishing-games__hero-content {
  position: relative;
  z-index: 3;
  color: var(--page-fishing-games-text-color-light);
  max-width: 800px;
}

.page-fishing-games__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--page-fishing-games-text-color-light);
}

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

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

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background-color: var(--page-fishing-games-register-color); /* #C30808 */
  color: var(--page-fishing-games-register-login-font-color); /* #FFFF00 */
  border: 2px solid var(--page-fishing-games-register-color);
}

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

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: var(--page-fishing-games-register-login-font-color); /* #FFFF00 */
  border: 2px solid var(--page-fishing-games-register-color); /* #C30808 */
}

.page-fishing-games__btn-secondary:hover {
  background-color: var(--page-fishing-games-register-color);
  color: var(--page-fishing-games-register-login-font-color);
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
}

.page-fishing-games__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-fishing-games__intro-section,
.page-fishing-games__strategy-section,
.page-fishing-games__faq-section,
.page-fishing-games__video-section {
  padding: 80px 0;
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-text-color-dark);
}

.page-fishing-games__popular-games-section,
.page-fishing-games__how-to-start-section,
.page-fishing-games__cta-section {
  padding: 80px 0;
  background-color: var(--page-fishing-games-primary-color); /* #017439 */
  color: var(--page-fishing-games-text-color-light); /* White text for dark background */
}

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

.page-fishing-games__feature-item,
.page-fishing-games__game-card,
.page-fishing-games__strategy-item,
.page-fishing-games__step-item {
  background-color: var(--page-fishing-games-secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--page-fishing-games-text-color-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games__game-card {
  overflow: hidden;
}

.page-fishing-games__game-image,
.page-fishing-games__strategy-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-fishing-games__feature-title,
.page-fishing-games__game-title,
.page-fishing-games__strategy-title,
.page-fishing-games__step-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__game-title a {
  color: var(--page-fishing-games-primary-color);
  text-decoration: none;
}

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

.page-fishing-games__game-description {
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-fishing-games__step-icon {
  background-color: var(--page-fishing-games-register-color);
  color: var(--page-fishing-games-register-login-font-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

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

.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: 40px;
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.page-fishing-games__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  cursor: pointer;
}

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

.page-fishing-games__faq-item {
  background-color: var(--page-fishing-games-secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-fishing-games-text-color-dark);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details tag */
}

.page-fishing-games__faq-item[open] > .page-fishing-games__faq-question {
  border-bottom: 1px solid transparent;
}

.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-fishing-games__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #555;
}

.page-fishing-games__faq-item:not([open]) .page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
  max-height: 2000px; /* Arbitrary large value */
  transition: max-height 0.3s ease-in, padding 0.3s ease-in;
}

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

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

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

@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-fishing-games__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-fishing-games__hero-buttons, 
  .page-fishing-games__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-fishing-games__text-block {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-fishing-games__intro-section,
  .page-fishing-games__popular-games-section,
  .page-fishing-games__strategy-section,
  .page-fishing-games__how-to-start-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section,
  .page-fishing-games__video-section {
    padding: 50px 0;
  }

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

  .page-fishing-games__features-grid,
  .page-fishing-games__game-cards-grid,
  .page-fishing-games__strategy-grid,
  .page-fishing-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-fishing-games__feature-item,
  .page-fishing-games__game-card,
  .page-fishing-games__strategy-item,
  .page-fishing-games__step-item {
    padding: 25px;
  }

  .page-fishing-games__game-image,
  .page-fishing-games__strategy-image {
    height: 200px;
  }

  .page-fishing-games__feature-title,
  .page-fishing-games__game-title,
  .page-fishing-games__strategy-title,
  .page-fishing-games__step-title {
    font-size: 1.3em;
  }

  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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 {
    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__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-fishing-games__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
    height: 0 !important;
  }

  .page-fishing-games video,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Ensure contrast for text on primary background */
.page-fishing-games__dark-bg {
  color: var(--page-fishing-games-text-color-light); /* White text */
  background: var(--page-fishing-games-primary-color); /* Primary color background */
}

/* Ensure contrast for text on secondary background */
.page-fishing-games__light-bg {
  color: var(--page-fishing-games-text-color-dark); /* Dark text */
  background: var(--page-fishing-games-secondary-color); /* Secondary color background (white) */
}

/* Ensure card text contrast */
.page-fishing-games__card,
.page-fishing-games__feature-item,
.page-fishing-games__game-card,
.page-fishing-games__strategy-item,
.page-fishing-games__step-item,
.page-fishing-games__faq-item {
  background: var(--page-fishing-games-secondary-color); /* White background */
  color: var(--page-fishing-games-text-color-dark); /* Dark text */
}

.page-fishing-games__faq-question {
  background-color: #f9f9f9;
  border-bottom-color: #e0e0e0;
}

.page-fishing-games__faq-item[open] > .page-fishing-games__faq-question {
  border-bottom-color: transparent;
}