:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color: #333333;
  --bg-light: #f8f8f8;
  --bg-dark-section: #26A9E0;
  --btn-login-color: #EA7C07;
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-light);
}

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

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

.page-fishing-games__section--intro {
  background-color: var(--secondary-color);
}

.page-fishing-games__section--features {
  background-color: var(--bg-light);
}

.page-fishing-games__section--popular-games {
  background-color: var(--bg-dark-section);
  color: var(--secondary-color);
}

.page-fishing-games__section--guide {
  background-color: var(--secondary-color);
}

.page-fishing-games__section--tips {
  background-color: var(--bg-light);
}

.page-fishing-games__section--promotions {
  background-color: var(--bg-light);
}

.page-fishing-games__section--safety {
  background-color: var(--secondary-color);
}

.page-fishing-games__section--faq {
  background-color: var(--bg-light);
}

.page-fishing-games__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-color);
  line-height: 1.2;
}

.page-fishing-games__dark-section .page-fishing-games__section-title {
  color: var(--secondary-color);
}

.page-fishing-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-color);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-fishing-games__description--white {
  color: var(--secondary-color);
}

.page-fishing-games__text-block {
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 20px;
}

/* 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: 10px; /* As per fixed header spacing rule */
  overflow: hidden; /* Ensure no overflow from images */
}

.page-fishing-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

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

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

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

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

.page-fishing-games__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-fishing-games__btn-primary:hover {
  background: #2087b3; /* Darken primary color */
  border-color: #2087b3; /* Darken primary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

/* Feature Grid */
.page-fishing-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-fishing-games__feature-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-fishing-games__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-fishing-games__feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
}

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

.page-fishing-games__game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-fishing-games__game-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-fishing-games__game-card .page-fishing-games__card-title {
  color: var(--secondary-color);
}

.page-fishing-games__btn-play {
  display: inline-block;
  background: var(--btn-login-color);
  color: var(--secondary-color);
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 150px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-play:hover {
  background: #c36906; /* Darken login color */
  transform: translateY(-2px);
}

/* Guide Section */
.page-fishing-games__guide-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

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

.page-fishing-games__guide-text ol {
  list-style: decimal;
  padding-left: 20px;
  margin-top: 20px;
}

.page-fishing-games__guide-text ol li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.7;
}

.page-fishing-games__guide-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fishing-games__guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  min-height: 200px; /* Minimum size requirement */
}

/* Tips Section */
.page-fishing-games__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
  text-align: left;
}

.page-fishing-games__tip-item {
  background: var(--secondary-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.page-fishing-games__tip-item:hover {
  transform: translateY(-5px);
}

.page-fishing-games__tip-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-fishing-games__tip-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
}

/* Promotions Section */
.page-fishing-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-fishing-games__promo-card .page-fishing-games__card-title {
  color: var(--primary-color);
}

.page-fishing-games__promo-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-fishing-games__btn-view {
  display: inline-block;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 120px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-view:hover {
  background: #2087b3; /* Darken primary color */
  transform: translateY(-2px);
}

/* Safety Section */
.page-fishing-games__safety-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__safety-item {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-fishing-games__safety-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-fishing-games__safety-item p {
  font-size: 16px;
  line-height: 1.6;
}

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

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover {
  background: #f5f5f5;
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color);
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color);
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer p {
  margin: 0;
  line-height: 1.7;
  font-size: 16px;
  text-align: left;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-image {
    margin-bottom: 20px;
  }
  .page-fishing-games__section {
    padding: 50px 0;
  }
  .page-fishing-games__section-title {
    font-size: clamp(24px, 3.5vw, 32px);
    margin-bottom: 25px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-fishing-games__description {
    font-size: 17px;
    margin-bottom: 25px;
  }
  .page-fishing-games__text-block {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding-top: 10px !important; /* Fixed header spacing, small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__hero-image img {
    border-radius: 8px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem); /* Smaller H1 for mobile */
    margin-bottom: 15px;
  }
  .page-fishing-games__description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-fishing-games__cta-button,
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games a[class*="button"],
  .page-fishing-games a[class*="btn"],
  .page-fishing-games__btn-play,
  .page-fishing-games__btn-view {
    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;
  }

  /* Button containers */
  .page-fishing-games__cta-buttons,
  .page-fishing-games__button-group,
  .page-fishing-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-fishing-games__section {
    padding: 40px 0;
  }
  .page-fishing-games__section-title {
    font-size: clamp(22px, 5vw, 28px);
    margin-bottom: 20px;
  }
  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card,
  .page-fishing-games__safety-item {
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
  }
  .page-fishing-games__feature-card img,
  .page-fishing-games__game-card img,
  .page-fishing-games__guide-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 6px;
  }
  .page-fishing-games__guide-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-fishing-games__guide-text,
  .page-fishing-games__guide-image {
    width: 100%;
    flex: none;
  }
  .page-fishing-games__tips-grid {
    gap: 20px;
  }
  .page-fishing-games__tip-item {
    padding: 20px;
    border-radius: 8px;
  }
  .page-fishing-games__faq-list {
    margin-top: 30px;
    padding: 0 15px;
  }
  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question { padding: 15px; }
  .page-fishing-games__faq-qtext { font-size: 15px; }
  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 15px 15px;
  }

  /* Image containers for responsiveness */
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card,
  .page-fishing-games__safety-item,
  .page-fishing-games__tip-item,
  .page-fishing-games__guide-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no filter is applied to images */
.page-fishing-games img {
  filter: none !important;
}

/* Contrast Fixes - if needed */
.page-fishing-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-fishing-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}