/* style/fishing-games.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --accent-color: #C30808; /* For Register/Login buttons */
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --button-text-color-login-register: #FFFF00;
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light-bg);
  background-color: var(--secondary-color); /* Default body background is white, so text is dark */
}

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

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

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

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

/* Color contrast management */
.page-fishing-games__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-fishing-games__dark-bg .page-fishing-games__section-title,
.page-fishing-games__dark-bg h3 {
  color: var(--text-color-dark-bg);
}

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

/* 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); /* Fixed header offset */
  overflow: hidden; /* Ensure content doesn't overflow */
}

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

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

.page-fishing-games__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
}

.page-fishing-games__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-color-dark-bg);
}

.page-fishing-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-fishing-games__cta-button {
  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;
  white-space: normal;
  word-wrap: break-word;
  min-width: 200px; /* Ensure buttons are not too small */
}

.page-fishing-games__btn-primary {
  background: var(--accent-color); /* Register/Login color */
  color: var(--button-text-color-login-register);
  border: 2px solid transparent;
}

.page-fishing-games__btn-primary:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px 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 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* How to Download Section */
.page-fishing-games__download-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.page-fishing-games__download-card {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(50% - 30px);
  min-width: 300px;
  max-width: 500px;
  text-align: center;
  color: var(--text-color-light-bg);
}

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

.page-fishing-games__download-card .page-fishing-games__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-fishing-games__list {
  list-style: decimal;
  text-align: left;
  padding-left: 20px;
  margin-top: 20px;
  font-size: 16px;
}

.page-fishing-games__list li {
  margin-bottom: 10px;
}

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

.page-fishing-games__game-card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-color-light-bg);
}

.page-fishing-games__game-card .page-fishing-games__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-fishing-games__game-card .page-fishing-games__card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin: 0 15px 10px;
}

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

.page-fishing-games__game-card .page-fishing-games__card-title a:hover {
  text-decoration: underline;
}

.page-fishing-games__game-card .page-fishing-games__card-description {
  font-size: 15px;
  margin: 0 15px 20px;
  color: #666;
}

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

.page-fishing-games__btn-play:hover {
  background: #005a2d;
}

/* Promotions Section */
.page-fishing-games__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__promotion-list li {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 18px;
  color: var(--text-color-dark-bg);
}

.page-fishing-games__promotion-list li .page-fishing-games__list-icon {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 20px;
  flex-shrink: 0;
  min-width: 80px; /* Ensure minimum size */
  min-height: 80px;
}

/* Security & Support Section */
.page-fishing-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-fishing-games__feature-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-color-light-bg);
}

.page-fishing-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 100px; /* Ensure minimum size */
  min-height: 100px;
}

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

.page-fishing-games__feature-description {
  font-size: 15px;
  color: #666;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 60px 0;
}

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

.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: 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;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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;
}

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

.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;
  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); /* Changed from '-' to '+' with rotation for visual effect */
}

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

.page-fishing-games__news-card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--text-color-light-bg);
}

.page-fishing-games__news-card .page-fishing-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-fishing-games__news-card .page-fishing-games__card-title {
  font-size: 20px;
  color: var(--primary-color);
  margin: 20px 15px 10px;
}

.page-fishing-games__news-card .page-fishing-games__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-fishing-games__news-card .page-fishing-games__card-title a:hover {
  text-decoration: underline;
}

.page-fishing-games__news-card .page-fishing-games__card-description {
  font-size: 15px;
  margin: 0 15px 20px;
  color: #666;
}

.page-fishing-games__btn-read-more {
  display: inline-block;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 15px 20px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 42px;
  }
  .page-fishing-games__hero-description {
    font-size: 18px;
  }
  .page-fishing-games__section-title {
    font-size: 32px;
  }
  .page-fishing-games__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
}

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