/* style/fishing-games.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color: #333333;
  --light-bg: #f5f5f5;
  --dark-bg-text: #ffffff;
  --btn-register-bg: #C30808;
  --btn-register-text: #FFFF00;
  --btn-login-bg: #C30808;
  --btn-login-text: #FFFF00;
}

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

.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);
  background: linear-gradient(135deg, var(--primary-color) 0%, #004d2b 100%); /* Darker green gradient */
  color: var(--dark-bg-text);
  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 {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.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__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--dark-bg-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

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

.page-fishing-games__btn-register,
.page-fishing-games__btn-login {
  display: inline-block;
  padding: 15px 40px;
  background: var(--btn-register-bg);
  color: var(--btn-register-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--btn-register-text);
}

.page-fishing-games__btn-register:hover,
.page-fishing-games__btn-login:hover {
  background: #a80707;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: #ffe000;
}

.page-fishing-games__section {
  padding: 80px 20px;
  text-align: center;
}

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

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

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

.page-fishing-games__section--advantages {
  background-color: var(--primary-color);
  color: var(--dark-bg-text);
}

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

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

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

.page-fishing-games__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: 700;
  color: inherit;
}

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

.page-fishing-games__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--primary-color);
}

.page-fishing-games__section--features .page-fishing-games__sub-title,
.page-fishing-games__section--advantages .page-fishing-games__sub-title {
  color: var(--dark-bg-text);
}

.page-fishing-games__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: left;
}

.page-fishing-games__paragraph a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-fishing-games__section--features .page-fishing-games__paragraph,
.page-fishing-games__section--advantages .page-fishing-games__paragraph {
  color: #e0e0e0;
}

.page-fishing-games__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.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-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--dark-bg-text);
}

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

.page-fishing-games__game-item img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--dark-bg-text);
}

.page-fishing-games__game-description {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
  text-align: left;
}

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

.page-fishing-games__step-item {
  background: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

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

.page-fishing-games__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-color);
}

.page-fishing-games__tips-section {
  margin-top: 60px;
  text-align: left;
  background: var(--secondary-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-fishing-games__bullet-list {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
  font-size: 1.05em;
  color: var(--text-color);
}

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

.page-fishing-games__list-highlight {
  color: var(--primary-color);
}

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

.page-fishing-games__advantages-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
  color: var(--dark-bg-text);
}

.page-fishing-games__advantages-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.page-fishing-games__advantages-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--dark-bg-text);
  font-weight: 600;
}

.page-fishing-games__advantages-description {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-fishing-games__advantages-description a {
  color: #ffff00;
  text-decoration: underline;
}

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

.page-fishing-games__promotion-item {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-fishing-games__promotion-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

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

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

.page-fishing-games__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--dark-bg-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-primary:hover {
  background: #005f33;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* FAQ容器样式 */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.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;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height đảm bảo có thể mở rộng */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

/* Vùng câu hỏi */
.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;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-fishing-games__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
  background: #eeeeee;
}

/* Tiêu đề câu hỏi */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện click */
  color: var(--primary-color);
}

/* Biểu tượng chuyển đổi */
.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; /* Ngăn chặn biểu tượng chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0f0;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Xoay để tạo dấu X */
  background: var(--light-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 2.8em;
  }
  .page-fishing-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    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: 2.2em;
    margin-bottom: 15px;
  }

  .page-fishing-games__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-fishing-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .page-fishing-games__btn-register,
  .page-fishing-games__btn-login {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-fishing-games__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

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

  .page-fishing-games__paragraph {
    font-size: 0.95em;
    text-align: justify;
  }

  .page-fishing-games__image-wrapper {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-fishing-games__image-wrapper img,
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-fishing-games__game-item,
  .page-fishing-games__step-item,
  .page-fishing-games__advantages-item,
  .page-fishing-games__promotion-item {
    padding: 20px;
  }

  .page-fishing-games__game-item img {
    
  }

  .page-fishing-games__game-title,
  .page-fishing-games__step-title,
  .page-fishing-games__advantages-title,
  .page-fishing-games__promotion-title {
    font-size: 1.25em;
  }

  .page-fishing-games__tips-section {
    padding: 30px 20px;
  }

  .page-fishing-games__bullet-list {
    margin-left: 20px;
    font-size: 1em;
  }
  
  .page-fishing-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-fishing-games__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-fishing-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-fishing-games__faq-answer {
    padding: 0 15px;
  }
  
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px !important;
  }
  
  .page-fishing-games__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__main-title {
    font-size: 1.8em;
  }
  .page-fishing-games__section-title {
    font-size: 1.6em;
  }
  .page-fishing-games__hero-section {
    padding: 30px 10px !important;
    padding-top: var(--header-offset, 120px) !important;
  }
}