/* style/fishing-games.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-color: #C30808;
  --login-btn-color: #C30808;
  --register-login-font-color: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --bg-light-grey: #f9f9f9;
}

.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(--secondary-color); /* Body background from shared.css is white */
}

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

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

.page-fishing-games__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-fishing-games__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-fishing-games__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-fishing-games__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 40px;
  color: inherit;
}

.page-fishing-games__sub-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit;
}

.page-fishing-games__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 900px;
  text-align: left;
}

.page-fishing-games__numbered-list {
  list-style: decimal;
  padding-left: 25px;
  margin: 0 auto 30px auto;
  max-width: 900px;
  text-align: left;
}

.page-fishing-games__list-item {
  font-size: 18px;
  margin-bottom: 10px;
  padding-left: 10px;
  position: relative;
}

.page-fishing-games__list-item::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.page-fishing-games__numbered-list .page-fishing-games__list-item::before {
  content: none;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  min-height: 600px;
  overflow: hidden;
}

.page-fishing-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-fishing-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly darken image for better text contrast */
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-fishing-games__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-fishing-games__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__btn-secondary:hover {
  background: var(--register-btn-color);
  color: var(--register-login-font-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Feature Grid */
.page-fishing-games__features-grid,
.page-fishing-games__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-fishing-games__feature-card,
.page-fishing-games__promotion-card {
  background: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__feature-card:hover,
.page-fishing-games__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.page-fishing-games__feature-card .page-fishing-games__card-title,
.page-fishing-games__promotion-card .page-fishing-games__card-title {
  font-size: 22px;
  font-weight: bold;
  padding: 20px 25px 10px;
  margin: 0;
  color: var(--primary-color);
}

.page-fishing-games__feature-card .page-fishing-games__card-description,
.page-fishing-games__promotion-card .page-fishing-games__card-description {
  font-size: 16px;
  padding: 0 25px 25px;
  color: var(--text-dark);
}

.page-fishing-games__image-full-width {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 40px auto 0;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* App Download Section */
.page-fishing-games__app-download-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  text-align: left;
}

.page-fishing-games__app-text {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-fishing-games__app-image {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.page-fishing-games__app-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-fishing-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-fishing-games__faq-question:hover {
  background: var(--bg-light-grey);
  border-color: #d0d0d0;
}

.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--primary-color);
}

.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 25px;
  opacity: 0;
  background: var(--bg-light-grey);
  color: var(--text-dark);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary-color);
  background-color: var(--bg-light-grey);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* Ensure it expands sufficiently */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
  border-left: 1px solid var(--primary-color);
  border-right: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--primary-color);
  transform: rotate(0deg);
}

.page-fishing-games__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Final CTA */
.page-fishing-games__final-cta {
  margin-top: 50px;
}

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

  .page-fishing-games__section-title {
    font-size: 32px;
  }

  .page-fishing-games__text-block,
  .page-fishing-games__list-item {
    font-size: 17px;
  }

  .page-fishing-games__hero-section {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    min-height: 400px;
  }

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

  .page-fishing-games__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-fishing-games__section {
    padding: 40px 0;
  }

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

  .page-fishing-games__sub-title {
    font-size: 24px;
  }

  .page-fishing-games__text-block,
  .page-fishing-games__list-item {
    font-size: 16px;
  }

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

  .page-fishing-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-fishing-games__app-download-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-fishing-games__app-text,
  .page-fishing-games__app-image {
    min-width: unset;
    max-width: 100%;
  }

  .page-fishing-games__card-image {
    height: 200px;
  }

  .page-fishing-games__feature-card .page-fishing-games__card-title,
  .page-fishing-games__promotion-card .page-fishing-games__card-title {
    font-size: 18px;
    padding: 15px 20px 8px;
  }

  .page-fishing-games__feature-card .page-fishing-games__card-description,
  .page-fishing-games__promotion-card .page-fishing-games__card-description {
    font-size: 15px;
    padding: 0 20px 20px;
  }

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

  .page-fishing-games__faq-question h3 {
    font-size: 16px;
  }

  .page-fishing-games__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-fishing-games__faq-answer {
    padding: 0 20px;
  }

  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Ensure all images are responsive on mobile */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-fishing-games__container,
  .page-fishing-games__hero-container,
  .page-fishing-games__features-grid,
  .page-fishing-games__promotions-grid,
  .page-fishing-games__app-download-content,
  .page-fishing-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__list,
  .page-fishing-games__numbered-list {
    padding-left: 20px;
  }
}