/* style/fishing-games.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --login-button-color: #EA7C07;
}

/* Base styles for the page content, assuming body has padding-top from shared.css */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Default light background */
}

/* Sections */
.page-fishing-games__hero-section,
.page-fishing-games__introduction-section,
.page-fishing-games__why-choose-section,
.page-fishing-games__game-showcase-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__promotions-section,
.page-fishing-games__safety-support-section,
.page-fishing-games__faq-section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  padding: 0;
  padding-top: 10px; /* Small top padding for visual separation, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(to bottom, var(--primary-color), #1a7fb7);
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it doesn't overflow */
  overflow: hidden;
  position: relative;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-fishing-games__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1;
  position: relative;
  color: var(--text-light);
}

.page-fishing-games__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--text-light);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-fishing-games__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-tertiary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

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

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

.page-fishing-games__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-fishing-games__btn-tertiary:hover {
  background-color: #d86c06;
  border-color: #d86c06;
}

/* Section Titles */
.page-fishing-games__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 40px;
  color: var(--primary-color);
  font-weight: 700;
}

.page-fishing-games__section-title--white {
  color: var(--text-light);
}

/* Introduction Section */
.page-fishing-games__introduction-section {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-fishing-games__text-and-image {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-fishing-games__text-and-image--reverse {
  flex-direction: row-reverse;
}

.page-fishing-games__text-content {
  flex: 1;
  line-height: 1.7;
  font-size: 1.1rem;
}

.page-fishing-games__text-content--white {
  color: var(--text-light);
}

.page-fishing-games__image {
  flex: 1;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Why Choose Section */
.page-fishing-games__why-choose-section {
  background: var(--primary-color);
  color: var(--text-light);
}

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

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

.page-fishing-games__feature-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-fishing-games__feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Game Showcase Section */
.page-fishing-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-fishing-games__game-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: left;
  color: var(--text-dark);
}

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

.page-fishing-games__game-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.page-fishing-games__game-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
  background: linear-gradient(to top, var(--primary-color), #1a7fb7);
  color: var(--text-light);
}

.page-fishing-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-fishing-games__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-fishing-games__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--login-button-color);
  margin-bottom: 15px;
}

.page-fishing-games__step-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-fishing-games__step-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

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

/* Promotions Section */
.page-fishing-games__promotions-section {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-fishing-games__promotions-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.page-fishing-games__promotions-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  font-size: 1.1rem;
  line-height: 1.6;
}

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

/* Safety & Support Section */
.page-fishing-games__safety-support-section {
  background: var(--primary-color);
  color: var(--text-light);
}

/* FAQ Section */
.page-fishing-games__faq-section {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-fishing-games__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

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

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  background-color: #eaf7fd; /* Lighter shade of primary for contrast */
}

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

.page-fishing-games__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--login-button-color);
}

.page-fishing-games__faq-answer {
  padding: 0 25px 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Hide default details marker */
.page-fishing-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-fishing-games__faq-item summary {
  list-style: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-fishing-games__text-and-image,
  .page-fishing-games__text-and-image--reverse {
    flex-direction: column;
  }

  .page-fishing-games__image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-content,
  .page-fishing-games__section-title {
    margin-bottom: 20px;
  }

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-tertiary {
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-fishing-games__hero-section,
  .page-fishing-games__introduction-section,
  .page-fishing-games__why-choose-section,
  .page-fishing-games__game-showcase-section,
  .page-fishing-games__how-to-play-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__safety-support-section,
  .page-fishing-games__faq-section {
    padding: 40px 0;
  }

  .page-fishing-games__image,
  .page-fishing-games__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
  }

  .page-fishing-games__game-card {
    min-width: 200px; /* Ensure card content isn't too small */
  }

  .page-fishing-games__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-fishing-games__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-fishing-games__description {
    font-size: 1rem;
  }

  .page-fishing-games__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-fishing-games__features-grid,
  .page-fishing-games__game-grid,
  .page-fishing-games__steps-grid {
    grid-template-columns: 1fr;
  }
}