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

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

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

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

.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Nhỏ, không dùng var(--header-offset) */
  padding-bottom: 60px;
  background-color: var(--fcb88-deep-green);
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-fishing-games__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1;
  margin-top: -100px; /* Kéo lên một chút để gần hình ảnh */
}

.page-fishing-games__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--fcb88-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-fishing-games__description {
  font-size: 1.15rem;
  color: var(--fcb88-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.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.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-fishing-games__btn-primary {
  background: var(--fcb88-button-gradient);
  color: var(--fcb88-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-fishing-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  opacity: 0.9;
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: var(--fcb88-gold-color);
  border: 2px solid var(--fcb88-gold-color);
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.2);
}

.page-fishing-games__btn-secondary:hover {
  background-color: var(--fcb88-gold-color);
  color: var(--fcb88-background-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
  opacity: 0.9;
}

.page-fishing-games__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--fcb88-gold-color);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-fishing-games__sub-section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--fcb88-text-main);
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  font-weight: 600;
}

.page-fishing-games__text-block {
  font-size: 1.05rem;
  color: var(--fcb88-text-secondary);
  text-align: justify;
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-fishing-games__intro-section,
.page-fishing-games__why-choose-section,
.page-fishing-games__guide-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-bottom-section {
  padding: 60px 0;
}

.page-fishing-games__intro-section .page-fishing-games__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__featured-games-section {
  padding: 80px 0;
  background-color: var(--fcb88-card-background);
}

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

.page-fishing-games__game-card {
  background-color: var(--fcb88-background-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  border: 1px solid var(--fcb88-border-color);
  transition: transform 0.3s ease;
}

.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;
  min-width: 200px;
  min-height: 200px;
}

.page-fishing-games__card-title {
  font-size: 1.6rem;
  color: var(--fcb88-primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-fishing-games__card-description {
  font-size: 1rem;
  color: var(--fcb88-text-secondary);
  margin-bottom: 25px;
  line-height: 1.6;
}

.page-fishing-games__card-button {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 6px;
  text-transform: uppercase;
}

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

.page-fishing-games__feature-item {
  background-color: var(--fcb88-card-background);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid var(--fcb88-border-color);
}

.page-fishing-games__feature-heading {
  font-size: 1.5rem;
  color: var(--fcb88-primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-fishing-games__feature-description {
  font-size: 1rem;
  color: var(--fcb88-text-secondary);
  line-height: 1.6;
}

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

.page-fishing-games__guide-step {
  background-color: var(--fcb88-card-background);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid var(--fcb88-border-color);
  text-align: center;
}

.page-fishing-games__step-title {
  font-size: 1.4rem;
  color: var(--fcb88-primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-fishing-games__step-description {
  font-size: 1rem;
  color: var(--fcb88-text-secondary);
  margin-bottom: 25px;
  line-height: 1.6;
}

.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-fishing-games__tips-item {
  background-color: var(--fcb88-card-background);
  padding: 15px 20px;
  border-left: 4px solid var(--fcb88-primary-color);
  border-radius: 8px;
  color: var(--fcb88-text-secondary);
  font-size: 1rem;
}

.page-fishing-games__tips-item strong {
  color: var(--fcb88-text-main);
}

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

.page-fishing-games__promotion-item {
  background-color: var(--fcb88-card-background);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid var(--fcb88-border-color);
}

.page-fishing-games__promotion-heading {
  font-size: 1.5rem;
  color: var(--fcb88-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-fishing-games__promotion-description {
  font-size: 1rem;
  color: var(--fcb88-text-secondary);
  line-height: 1.6;
}

.page-fishing-games__video-section {
  padding: 60px 0;
  background-color: var(--fcb88-deep-green);
  text-align: center;
}

.page-fishing-games__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%; /* Đảm bảo video wrapper không tràn */
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  box-sizing: border-box;
}

.page-fishing-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Đảm bảo video là block element */
  max-width: 100%;
}

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

.page-fishing-games__faq-item {
  background-color: var(--fcb88-card-background);
  border: 1px solid var(--fcb88-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-fishing-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fcb88-text-main);
  cursor: pointer;
  background-color: var(--fcb88-deep-green);
  border-bottom: 1px solid var(--fcb88-divider-color);
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-item summary:hover {
  background-color: var(--fcb88-primary-color);
}

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

.page-fishing-games__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Ngăn chặn sự kiện click trên text */
}

.page-fishing-games__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn sự kiện click trên toggle */
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
  content: '−';
}

.page-fishing-games__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--fcb88-text-secondary);
  line-height: 1.6;
  background-color: var(--fcb88-background-color);
}

.page-fishing-games__btn-text-link {
  color: var(--fcb88-gold-color);
  text-decoration: underline;
  font-weight: 600;
  margin-top: 10px;
  display: inline-block;
}

.page-fishing-games__btn-text-link:hover {
  color: var(--fcb88-primary-color);
}

.page-fishing-games__cta-bottom-section {
  text-align: center;
  background-color: var(--fcb88-deep-green);
  padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content {
    margin-top: -60px;
  }
  .page-fishing-games__game-cards,
  .page-fishing-games__feature-list,
  .page-fishing-games__guide-steps,
  .page-fishing-games__promotion-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding-bottom: 40px;
  }
  .page-fishing-games__hero-content {
    padding: 20px;
    margin-top: -40px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-fishing-games__description {
    font-size: 1rem;
  }
  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-top: 40px;
    margin-bottom: 30px;
  }
  .page-fishing-games__sub-section-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  .page-fishing-games__text-block {
    font-size: 0.95rem;
  }
  .page-fishing-games__intro-section,
  .page-fishing-games__why-choose-section,
  .page-fishing-games__guide-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-bottom-section {
    padding: 40px 0;
  }
  .page-fishing-games__game-cards,
  .page-fishing-games__feature-list,
  .page-fishing-games__guide-steps,
  .page-fishing-games__promotion-list {
    grid-template-columns: 1fr;
  }
  .page-fishing-games__card-image,
  .page-fishing-games__intro-section .page-fishing-games__image-content,
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container,
  .page-fishing-games__game-card,
  .page-fishing-games__feature-item,
  .page-fishing-games__guide-step,
  .page-fishing-games__promotion-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__video-section {
    padding-top: 10px !important;
  }
  .page-fishing-games video,
  .page-fishing-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-fishing-games__video-section,
  .page-fishing-games__video-container,
  .page-fishing-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-fishing-games__video-wrapper {
    padding-bottom: 56.25% !important; /* Đảm bảo tỷ lệ khung hình */
  }
}

@media (max-width: 480px) {
  .page-fishing-games__hero-content {
    margin-top: -20px;
  }
  .page-fishing-games__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-fishing-games__section-title {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }
  .page-fishing-games__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-fishing-games__faq-answer {
    padding: 15px 20px;
  }
}