.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-fishing-games__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

.page-fishing-games__hero-section {
  text-align: center;
  padding: 80px 20px;
  background-image: url('[GALLERY:hero_main:1920x1080:shbett,fishing_games,hero,ocean,treasure,green_theme]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-fishing-games__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 116, 57, 0.7); /* Overlay for readability */
  z-index: -1;
}

.page-fishing-games__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Special color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-fishing-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.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: #a00606;
  border-color: #a00606;
}

.page-fishing-games__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from parent section */
}

.page-fishing-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px auto;
}

.page-fishing-games__about-section, 
.page-fishing-games__guide-section, 
.page-fishing-games__promotions-section, 
.page-fishing-games__security-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-section {
  padding: 80px 0;
}

.page-fishing-games__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-fishing-games__grid-layout--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-fishing-games__grid-layout--reverse .page-fishing-games__content-block {
  order: 2;
}

.page-fishing-games__grid-layout--reverse .page-fishing-games__image-wrapper {
  order: 1;
}

.page-fishing-games__image-wrapper {
  text-align: center;
}

.page-fishing-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__content-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-fishing-games__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439; /* Brand primary color for sub-titles on light background */
}

.page-fishing-games__dark-bg .page-fishing-games__sub-title {
  color: #ffffff;
}

.page-fishing-games__games-showcase {
  padding: 80px 0;
}

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

.page-fishing-games__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-fishing-games__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-fishing-games__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__card-button {
  margin-top: auto;
}

.page-fishing-games__guide-section ul {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-fishing-games__guide-section li {
  margin-bottom: 10px;
}

.page-fishing-games__strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__strategy-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-fishing-games__strategy-item p {
  font-size: 1.05em;
}

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

.page-fishing-games__security-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-fishing-games__faq-list {
  margin-top: 40px;
}

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  color: #017439;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  transform: rotate(45deg);
}

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

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 2.8em;
  }

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

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

  .page-fishing-games__grid-layout {
    grid-template-columns: 1fr;
  }
  
  .page-fishing-games__grid-layout--reverse .page-fishing-games__content-block {
    order: initial;
  }
  
  .page-fishing-games__grid-layout--reverse .page-fishing-games__image-wrapper {
    order: initial;
  }

  .page-fishing-games__game-cards, 
  .page-fishing-games__strategy-grid, 
  .page-fishing-games__security-features {
    grid-template-columns: 1fr;
  }
  
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-fishing-games__btn-primary, .page-fishing-games__btn-secondary {
    width: 100%;
  }
}

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

  .page-fishing-games__hero-section, 
  .page-fishing-games__about-section, 
  .page-fishing-games__games-showcase, 
  .page-fishing-games__guide-section, 
  .page-fishing-games__strategy-section, 
  .page-fishing-games__promotions-section, 
  .page-fishing-games__security-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    padding: 40px 0;
  }

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

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

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

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

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

  .page-fishing-games__sub-title {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  /* Force responsive images */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min size */
    min-height: 200px !important; /* Enforce min size */
  }

  .page-fishing-games__image-wrapper, 
  .page-fishing-games__card, 
  .page-fishing-games__strategy-item, 
  .page-fishing-games__feature-item,
  .page-fishing-games__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure buttons wrap and are full width */
  .page-fishing-games__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

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

  /* FAQ specific mobile adjustments */
  .page-fishing-games__faq-question {
    padding: 15px;
    font-size: 1em;
  }
  .page-fishing-games__faq-answer {
    padding: 0 15px;
  }
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px !important;
  }
}