/* style/fishing-games.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --background-light-card: rgba(255, 255, 255, 0.1);
  --border-color: #333333;
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--background-dark); /* Inherited from body */
}

/* 🚨 Fixed header padding - Desktop */
.page-fishing-games__video-section,
.page-fishing-games__title-section,
.page-fishing-games__advantages-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__games-showcase-section,
.page-fishing-games__tips-section,
.page-fishing-games__promotions-section,
.page-fishing-games__app-section,
.page-fishing-games__faq-section {
  padding-top: 100px; /* Adjust based on actual header height */
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure first section has proper padding-top if not video section */
.page-fishing-games__title-section:first-of-type:not(.page-fishing-games__video-section + *) {
    padding-top: 120px; /* Fallback for first content section if no video */
}

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

.page-fishing-games__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-fishing-games__cta-button,
.page-fishing-games__promo-button,
.page-fishing-games__game-card-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__cta-button:hover,
.page-fishing-games__promo-button:hover,
.page-fishing-games__game-card-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-fishing-games__cta-button--secondary:hover {
  background: #000066;
  border-color: #e6c200;
}

/* Video Section */
.page-fishing-games__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Specific padding-top for video section */
}

.page-fishing-games__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-fishing-games__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Prevents video controls from blocking click event */
}

.page-fishing-games__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-fishing-games__video-link:hover .page-fishing-games__video-overlay {
  opacity: 1;
}

.page-fishing-games__video-click-hint {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 12px 25px;
  background: rgba(255, 215, 0, 0.8);
  border-radius: 8px;
  white-space: nowrap;
}

.page-fishing-games__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.page-fishing-games__play-now-button {
  display: inline-block;
  padding: 18px 50px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 10px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__play-now-button:hover {
  background: #e6c200;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* H1 Title Section */
.page-fishing-games__title-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-fishing-games__main-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-fishing-games__title-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Advantages Section */
.page-fishing-games__advantages-section {
  background-color: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-fishing-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-fishing-games__feature-item {
  background: var(--background-light-card);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-fishing-games__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__feature-image {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-fishing-games__feature-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__feature-description {
  font-size: 16px;
  color: #e0e0e0;
  text-align: left;
  flex-grow: 1;
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-fishing-games__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-fishing-games__step-item {
  background: var(--background-light-card);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  counter-increment: step-counter;
  position: relative;
  padding-left: 70px; /* Space for step number */
}

.page-fishing-games__step-item::before {
  content: "0" counter(step-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  background: var(--secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__step-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-fishing-games__step-item p {
  font-size: 16px;
  color: #e0e0e0;
}

/* Games Showcase Section */
.page-fishing-games__games-showcase-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-fishing-games__game-card {
  background: var(--background-light-card);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.page-fishing-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__game-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-fishing-games__game-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 220px); /* Adjust height based on image */
}

.page-fishing-games__game-card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-fishing-games__game-card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-fishing-games__game-card-title a:hover {
  color: #e6c200;
}

.page-fishing-games__game-card-description {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__game-card-button {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 25px;
  font-size: 16px;
}

/* Tips Section */
.page-fishing-games__tips-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-fishing-games__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-fishing-games__tip-item {
  background: var(--background-light-card);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-fishing-games__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__tip-image {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-fishing-games__tip-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__tip-description {
  font-size: 16px;
  color: #e0e0e0;
  text-align: left;
  flex-grow: 1;
}

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

/* Promotions Section */
.page-fishing-games__promotions-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-fishing-games__promo-item {
  background: var(--background-light-card);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-fishing-games__promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__promo-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-fishing-games__promo-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__promo-description {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__promo-button {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 25px;
  font-size: 16px;
}

/* App Section */
.page-fishing-games__app-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-fishing-games__app-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-fishing-games__app-text {
  flex: 1;
}

.page-fishing-games__app-benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-fishing-games__app-benefits-list li {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-fishing-games__app-benefits-list li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 20px;
}

.page-fishing-games__app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-fishing-games__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__cta-buttons--app {
  justify-content: flex-start;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-fishing-games__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

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

.page-fishing-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

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

.page-fishing-games__faq-toggle {
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.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.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #e0e0e0;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 10px 10px;
  border-top: 1px dashed rgba(255, 215, 0, 0.3);
}

.page-fishing-games__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #e0e0e0;
}

/* Global image styles */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

  .page-fishing-games__description {
    font-size: 17px;
  }

  .page-fishing-games__cta-button,
  .page-fishing-games__play-now-button {
    padding: 14px 35px;
    font-size: 17px;
  }

  .page-fishing-games__play-now-button {
    font-size: 20px;
  }

  .page-fishing-games__game-card-image {
    height: 180px;
  }

  .page-fishing-games__app-content {
    flex-direction: column;
  }

  .page-fishing-games__app-text,
  .page-fishing-games__app-image-wrapper {
    flex: none;
    width: 100%;
  }

  .page-fishing-games__cta-buttons--app {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* 🚨 Mobile padding-top for fixed header */
  .page-fishing-games__video-section,
  .page-fishing-games__title-section,
  .page-fishing-games__advantages-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__games-showcase-section,
  .page-fishing-games__tips-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__app-section,
  .page-fishing-games__faq-section {
    padding-top: 10px !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-fishing-games__container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-fishing-games__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Buttons responsive */
  .page-fishing-games__cta-buttons,
  .page-fishing-games__video-cta {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__cta-button,
  .page-fishing-games__play-now-button,
  .page-fishing-games__promo-button,
  .page-fishing-games__game-card-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fishing-games__play-now-button {
    font-size: 18px !important;
    padding: 15px 30px !important;
  }

  /* Video responsive */
  .page-fishing-games__video-container,
  .page-fishing-games__video-link,
  .page-fishing-games__video-wrapper,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 8px;
  }

  .page-fishing-games__video-wrapper {
    padding-bottom: 56.25% !important;
    height: 0 !important;
  }
  
  .page-fishing-games__video {
    height: 100% !important; /* Ensure video fills wrapper */
    object-fit: contain; /* Adjust to contain for better mobile fit */
  }

  .page-fishing-games__video-click-hint {
    font-size: 16px !important;
    padding: 10px 15px !important;
  }

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

  .page-fishing-games__feature-item,
  .page-fishing-games__game-card,
  .page-fishing-games__tip-item,
  .page-fishing-games__promo-item {
    padding: 20px;
  }

  .page-fishing-games__feature-title,
  .page-fishing-games__game-card-title,
  .page-fishing-games__tip-title,
  .page-fishing-games__promo-title {
    font-size: 20px;
  }

  .page-fishing-games__game-card-image {
    height: 150px;
  }

  .page-fishing-games__step-item {
    padding-left: 60px;
  }

  .page-fishing-games__step-item::before {
    font-size: 24px;
    width: 35px;
    height: 35px;
    left: 15px;
    top: 20px;
  }

  .page-fishing-games__step-title {
    font-size: 18px;
  }

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

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

  .page-fishing-games__faq-toggle {
    font-size: 26px;
    width: 30px;
    height: 30px;
    margin-left: 15px;
  }

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

  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px 20px !important;
  }

  .page-fishing-games__app-benefits-list li {
    font-size: 16px;
  }

  .page-fishing-games__app-image {
    border-radius: 8px;
  }
}