/* style/fishing-games.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

:root {
  --page-fishing-games-primary-color: #11A84E;
  --page-fishing-games-secondary-color: #22C768;
  --page-fishing-games-text-main: #F2FFF6;
  --page-fishing-games-text-secondary: #A7D9B8;
  --page-fishing-games-bg-dark: #08160F;
  --page-fishing-games-card-bg: #11271B;
  --page-fishing-games-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-fishing-games-border-color: #2E7A4E;
  --page-fishing-games-glow-color: #57E38D;
  --page-fishing-games-gold-color: #F2C14E;
  --page-fishing-games-divider-color: #1E3A2A;
  --page-fishing-games-deep-green: #0A4B2C;
}

.page-fishing-games {
  background-color: var(--page-fishing-games-bg-dark);
  color: var(--page-fishing-games-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  color: var(--page-fishing-games-gold-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-fishing-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-fishing-games-btn-gradient);
  border-radius: 2px;
}

.page-fishing-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--page-fishing-games-text-secondary);
  text-align: justify;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(87, 227, 141, 0.4);
}

.page-fishing-games__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-fishing-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: var(--page-fishing-games-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.6);
}

.page-fishing-games__description {
  font-size: 1.2em;
  color: var(--page-fishing-games-text-main);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
}

.page-fishing-games__btn-primary {
  background: var(--page-fishing-games-btn-gradient);
  color: #ffffff;
  border: none;
}

.page-fishing-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

.page-fishing-games__btn-secondary {
  background: var(--page-fishing-games-card-bg);
  color: var(--page-fishing-games-gold-color);
  border: 2px solid var(--page-fishing-games-border-color);
}

.page-fishing-games__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--page-fishing-games-deep-green);
  box-shadow: 0 6px 20px rgba(46, 122, 78, 0.4);
}

/* About Section */
.page-fishing-games__about-section {
  padding: 80px 0;
  background-color: var(--page-fishing-games-card-bg);
}

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

.page-fishing-games__grid-item {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.page-fishing-games__features-section {
  padding: 80px 0;
  background-color: var(--page-fishing-games-deep-green);
}

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

.page-fishing-games__feature-card {
  background-color: var(--page-fishing-games-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-fishing-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(87, 227, 141, 0.3);
}

.page-fishing-games__card-title {
  font-size: 1.5em;
  color: var(--page-fishing-games-gold-color);
  margin-bottom: 15px;
}

.page-fishing-games__card-text {
  color: var(--page-fishing-games-text-secondary);
  font-size: 1em;
}

/* Game List Section */
.page-fishing-games__game-list-section {
  padding: 80px 0;
  background-color: var(--page-fishing-games-bg-dark);
}

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

.page-fishing-games__game-card {
  background-color: var(--page-fishing-games-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-fishing-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(87, 227, 141, 0.3);
}

.page-fishing-games__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-fishing-games__game-card .page-fishing-games__card-title {
  padding: 15px 20px 5px;
  font-size: 1.3em;
  text-align: left;
}

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

.page-fishing-games__game-card .page-fishing-games__card-title a:hover {
  color: var(--page-fishing-games-glow-color);
}

.page-fishing-games__game-card .page-fishing-games__card-text {
  padding: 0 20px 15px;
  text-align: left;
  flex-grow: 1;
}

.page-fishing-games__card-btn {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
  box-sizing: border-box;
}

/* Strategy Section */
.page-fishing-games__strategy-section {
  padding: 80px 0;
  background-color: var(--page-fishing-games-card-bg);
}

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

.page-fishing-games__list-item {
  background-color: var(--page-fishing-games-deep-green);
  border: 1px solid var(--page-fishing-games-border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__list-item h3 {
  color: var(--page-fishing-games-glow-color);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-fishing-games__list-item p {
  color: var(--page-fishing-games-text-secondary);
  font-size: 1em;
  text-align: justify;
}

.page-fishing-games__strategy-cta {
  margin-top: 40px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 80px 0;
  background-color: var(--page-fishing-games-deep-green);
}

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

.page-fishing-games__promo-card {
  background-color: var(--page-fishing-games-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-fishing-games__promo-card .page-fishing-games__card-title {
  padding: 15px 20px 5px;
  font-size: 1.3em;
  text-align: left;
}

.page-fishing-games__promo-card .page-fishing-games__card-text {
  padding: 0 20px 15px;
  text-align: left;
}

/* Guide Section */
.page-fishing-games__guide-section {
  padding: 80px 0;
  background-color: var(--page-fishing-games-bg-dark);
}

.page-fishing-games__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
}

.page-fishing-games__guide-list .page-fishing-games__list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding-left: 70px;
  margin-bottom: 30px;
  background: none;
  border: none;
  box-shadow: none;
  text-align: left;
}

.page-fishing-games__guide-list .page-fishing-games__list-item::before {
  counter-increment: guide-step;
  content: "0" counter(guide-step);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--page-fishing-games-btn-gradient);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__guide-list .page-fishing-games__list-item h3 {
  color: var(--page-fishing-games-gold-color);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-fishing-games__guide-list .page-fishing-games__list-item p {
  color: var(--page-fishing-games-text-secondary);
  font-size: 1.1em;
  margin-bottom: 15px;
}

.page-fishing-games__step-btn {
  width: auto;
  padding: 10px 20px;
  font-size: 1em;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 80px 0;
  background-color: var(--page-fishing-games-deep-green);
}

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

.page-fishing-games__faq-item {
  background-color: var(--page-fishing-games-card-bg);
  border: 1px solid var(--page-fishing-games-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-fishing-games-gold-color);
  cursor: pointer;
  background-color: var(--page-fishing-games-deep-green);
  border-bottom: 1px solid var(--page-fishing-games-divider-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary native styling */
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
  background-color: var(--page-fishing-games-primary-color);
  border-bottom-color: var(--page-fishing-games-primary-color);
}

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

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
  padding: 20px 25px;
  color: var(--page-fishing-games-text-secondary);
  font-size: 1.1em;
  text-align: justify;
}

/* Contact CTA Section */
.page-fishing-games__contact-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-fishing-games-bg-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-section {
    padding: 40px 15px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(2em, 6vw, 3em);
  }

  .page-fishing-games__description {
    font-size: 1.1em;
  }

  .page-fishing-games__section-title {
    font-size: 2em;
  }

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-fishing-games__about-section,
  .page-fishing-games__features-section,
  .page-fishing-games__game-list-section,
  .page-fishing-games__strategy-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__contact-cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 0 15px;
  }

  .page-fishing-games__hero-section {
    padding: 30px 15px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-fishing-games__section-title {
    font-size: 1.8em;
  }

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

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

  /* Mobile image adaptation */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__image-grid,
  .page-fishing-games__game-cards-grid,
  .page-fishing-games__promo-grid,
  .page-fishing-games__features-grid,
  .page-fishing-games__guide-list,
  .page-fishing-games__faq-list,
  .page-fishing-games__cta-buttons,
  .page-fishing-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Override specific grid/flex items to prevent overflow */
  .page-fishing-games__feature-card,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__game-card .page-fishing-games__card-image {
    height: 200px; /* Adjust card image height for mobile */
  }

  .page-fishing-games__list-item {
    padding-left: 60px;
  }

  .page-fishing-games__guide-list .page-fishing-games__list-item::before {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }

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

  .page-fishing-games__faq-answer {
    font-size: 0.95em;
    padding: 15px 20px;
  }
}

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

  .page-fishing-games__section-title {
    font-size: 1.5em;
  }

  .page-fishing-games__text-block {
    font-size: 0.95em;
  }
}