/* style/fishing-games.css */

/* Custom properties (if needed, but shared.css usually handles these) */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --btn-login: #EA7C07; /* Color for login button */
}

/* Base styles for the page content */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Assuming body background is light */
  background-color: var(--background-color, var(--secondary-color)); /* Use shared variable or default to white */
}

/* Section styling */
.page-fishing-games__section {
  padding: 60px 0;
  background-color: var(--secondary-color); /* Default light background */
  border-bottom: 1px solid #eee;
}

.page-fishing-games__section:nth-of-type(even) {
  background-color: var(--bg-light); /* Slightly different background for alternating sections */
}

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

.page-fishing-games__section-title {
  font-size: 32px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* 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 space for fixed header */
  background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Gradient background */
  color: var(--text-light); /* Light text on gradient background */
}

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

.page-fishing-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-fishing-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image slightly for visual effect */
}

.page-fishing-games__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-light);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.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.4);
}

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

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-primary:hover {
  background: #1e87b7; /* Manually darkened */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

/* Login specific button color */
.page-fishing-games__hero-cta-buttons a[href*="login.html"],
.page-fishing-games__hero-cta-buttons a[href*="plink_id"] {
    background: var(--btn-login);
    border-color: var(--btn-login);
    color: var(--text-light);
}

.page-fishing-games__hero-cta-buttons a[href*="login.html"]:hover,
.page-fishing-games__hero-cta-buttons a[href*="plink_id"]:hover {
    background: #c26506; /* Manually darkened */
}


/* Content Wrapper for image and text side-by-side */
.page-fishing-games__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-fishing-games__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-fishing-games__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-fishing-games__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__text-content {
  flex: 2;
  min-width: 300px;
}

.page-fishing-games__text-content p {
  margin-bottom: 15px;
  font-size: 16px;
}

/* Card Grid for Advantages and Promotions */
.page-fishing-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__card,
.page-fishing-games__promo-card {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-fishing-games__card img,
.page-fishing-games__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
  object-fit: cover;
  min-width: 200px; /* Min image size for cards */
  min-
}

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

.page-fishing-games__card p,
.page-fishing-games__promo-card p {
  font-size: 15px;
  color: #555;
  flex-grow: 1; /* Allow paragraph to take available space */
}

/* How to Play Steps */
.page-fishing-games__step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-fishing-games__step-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.page-fishing-games__step-number {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  background-color: #e6f7ff; /* Light blue background for numbers */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__step-item h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 5px;
}

.page-fishing-games__step-item p {
  font-size: 16px;
  margin-bottom: 0;
}

.page-fishing-games__tips {
  margin-top: 60px;
  background-color: #f0f8ff; /* Very light blue background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__tips-title {
  font-size: 24px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-fishing-games__tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-fishing-games__tips li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 16px;
}

.page-fishing-games__tips li::before {
  content: "✅";
  position: absolute;
  left: 0;
  color: green;
  font-size: 18px;
  line-height: 1;
}

/* Other Games Section */
.page-fishing-games__other-games .page-fishing-games__content-wrapper {
  align-items: flex-start;
}

.page-fishing-games__game-list {
  margin-top: 20px;
}

.page-fishing-games__game-item {
  margin-bottom: 25px;
  padding: 15px;
  background-color: var(--secondary-color);
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__game-item h3 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-fishing-games__game-item h3 a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-fishing-games__game-item p {
  font-size: 15px;
  color: #555;
}

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

/* FAQ container style */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.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 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-light); /* Light background for answer */
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.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(--text-dark);
}

/* Toggle icon */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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-item.active .page-fishing-games__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* Responsive Design */
@media (max-width: 992px) {
  .page-fishing-games__hero-title {
    font-size: 40px;
  }
  .page-fishing-games__hero-description {
    font-size: 18px;
  }
  .page-fishing-games__section-title {
    font-size: 28px;
  }
  .page-fishing-games__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-fishing-games__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-fishing-games__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding for header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-fishing-games__hero-image img {
    border-radius: 4px;
  }

  .page-fishing-games__hero-content {
    margin-top: -60px; /* Adjust overlap for mobile */
    padding: 15px;
  }

  .page-fishing-games__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-fishing-games__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-fishing-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Limit button group width on small screens */
    margin: 0 auto;
  }
}