/* style/fishing-games.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-color: #C30808;
  --login-button-color: #C30808;
  --text-on-dark-bg: #FFFFFF;
  --text-on-light-bg: #333333;
  --link-color: #017439;
  --register-login-font-color: #FFFF00;
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-light-bg); /* Default text color for light backgrounds */
  background-color: var(--background-color, #f8f8f8); /* Inherit from shared or default light gray */
}

/* Ensure text on dark sections is white */
.page-fishing-games__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-on-dark-bg);
}

.page-fishing-games__dark-bg .page-fishing-games__text-link {
  color: var(--text-on-dark-bg);
  text-decoration: underline;
}

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

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

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

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

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

.page-fishing-games__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-on-light-bg);
}

.page-fishing-games__dark-bg .page-fishing-games__section-description {
  color: var(--text-on-dark-bg);
}

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

.page-fishing-games__text-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
}

.page-fishing-games__text-link:hover {
  text-decoration: underline;
}

/* HERO Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  overflow: hidden;
}

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

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

.page-fishing-games__hero-image {
  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__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* Use clamp for H1 font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-on-dark-bg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-on-dark-bg);
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--register-button-color); /* Use specific register color */
  color: var(--register-login-font-color); /* Specific font color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-fishing-games__cta-button:hover {
  background: darken(var(--register-button-color), 10%); /* Darken on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Buttons */
.page-fishing-games__btn-primary {
  background: var(--register-button-color);
  color: var(--register-login-font-color);
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.page-fishing-games__btn-primary:hover {
  background: darken(var(--register-button-color), 10%);
  transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--primary-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Intro Section */
.page-fishing-games__intro-section {
  background-color: var(--secondary-color);
  color: var(--text-on-light-bg);
}

/* Featured Games Section */
.page-fishing-games__featured-games {
  background-color: var(--primary-color);
  color: var(--text-on-dark-bg);
}

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

.page-fishing-games__game-card {
  background-color: var(--secondary-color);
  color: var(--text-on-light-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  text-align: center;
}

.page-fishing-games__game-card:hover {
  transform: translateY(-8px);
}

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

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

.page-fishing-games__card-text {
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Play Section */
.page-fishing-games__how-to-play {
  background-color: var(--secondary-color);
  color: var(--text-on-light-bg);
}

.page-fishing-games__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__list-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease;
}

.page-fishing-games__list-item:hover {
  background-color: #f0f0f0;
}

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

.page-fishing-games__list-text {
  font-size: 16px;
  line-height: 1.7;
}

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

/* Strategy Section */
.page-fishing-games__strategy-section {
  background-color: var(--primary-color);
  color: var(--text-on-dark-bg);
}

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

.page-fishing-games__strategy-card {
  background-color: var(--secondary-color);
  color: var(--text-on-light-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  text-align: center;
}

.page-fishing-games__strategy-card:hover {
  transform: translateY(-8px);
}

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

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

.page-fishing-games__promotion-card {
  background-color: var(--primary-color);
  color: var(--text-on-dark-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  text-align: center;
}

.page-fishing-games__promotion-card:hover {
  transform: translateY(-8px);
}

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

.page-fishing-games__advantage-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__advantage-item {
  background-color: var(--secondary-color);
  color: var(--text-on-light-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

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

.page-fishing-games__advantage-text {
  font-size: 16px;
  line-height: 1.7;
}

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

.page-fishing-games__faq-list {
  margin-top: 40px;
}

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px 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 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--primary-color);
  font-weight: bold;
}

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: 18px;
  line-height: 1.5;
  text-align: left;
  color: var(--text-on-light-bg);
}

details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover .page-fishing-games__faq-qtext {
  color: var(--primary-color);
}

.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-on-light-bg);
}

/* Global Image Styles */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-image-wrapper {
    border-radius: 8px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

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

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-fishing-games__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-fishing-games__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fishing-games__section {
    padding: 40px 15px;
  }

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

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

  .page-fishing-games__game-list,
  .page-fishing-games__strategy-grid,
  .page-fishing-games__promotion-list,
  .page-fishing-games__advantage-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-fishing-games__card-title {
    font-size: 20px;
  }

  .page-fishing-games__list-title {
    font-size: 20px;
  }

  .page-fishing-games__advantage-title {
    font-size: 20px;
  }

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

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

  .page-fishing-games__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

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

  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-fishing-games__container,
  .page-fishing-games__game-card,
  .page-fishing-games__strategy-card,
  .page-fishing-games__promotion-card,
  .page-fishing-games__advantage-item,
  .page-fishing-games__list-item,
  .page-fishing-games__cta-wrapper,
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games a[class*="button"],
  .page-fishing-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .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-direction: column !important;
    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"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}