/* style/fishing-games.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --dark-bg-color: #121212;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --light-bg-color: #f8f8f8;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

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

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

/* --- General Section Styling --- */
.page-fishing-games__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--light-text-color);
}

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

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

/* --- Buttons --- */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-fishing-games__btn-primary {
  background: var(--primary-color);
  color: var(--dark-text-color); /* Ensure contrast with gold */
}

.page-fishing-games__btn-primary:hover {
  background: darken(var(--primary-color), 10%); /* Example of darkening, actual implementation might use a specific color */
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--dark-text-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

.page-fishing-games__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
}

/* --- Hero Section --- */
.page-fishing-games__hero-section {
  padding: 150px 20px 80px 20px;
  background: url('[GALLERY:hero:ban ca nhat vip, online betting, game fishing, promotion, background]') no-repeat center center/cover;
  text-align: center;
  position: relative;
  z-index: 1;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
}

.page-fishing-games__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.page-fishing-games__hero-title {
  font-size: 52px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
}

.page-fishing-games__hero-description {
  font-size: 22px;
  color: var(--light-text-color);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

/* --- Intro Section --- */
.page-fishing-games__intro-section {
  padding: 80px 0;
  background-color: var(--light-bg-color);
  color: var(--dark-text-color);
}

.page-fishing-games__intro-section .page-fishing-games__section-title {
    color: var(--secondary-color);
}

.page-fishing-games__intro-section .page-fishing-games__section-description {
    color: var(--dark-text-color);
}

.page-fishing-games__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-fishing-games__image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__image {
  width: 100%;
  height: auto;
  display: block;
}

.page-fishing-games__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

.page-fishing-games__light-bg .page-fishing-games__text-block p {
    color: var(--dark-text-color);
}

/* --- Features Section --- */
.page-fishing-games__features-section {
  padding: 80px 0;
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

.page-fishing-games__features-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

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

.page-fishing-games__card {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-fishing-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-fishing-games__card p {
  font-size: 16px;
  color: var(--light-text-color);
}

/* --- Game Types Section --- */
.page-fishing-games__game-types-section {
  padding: 80px 0;
  background-color: var(--light-bg-color);
  color: var(--dark-text-color);
}

.page-fishing-games__game-types-section .page-fishing-games__section-title {
    color: var(--secondary-color);
}

.page-fishing-games__game-types-section .page-fishing-games__section-description {
    color: var(--dark-text-color);
}

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

.page-fishing-games__game-card {
  background: var(--card-bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.page-fishing-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-fishing-games__game-info {
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
}

.page-fishing-games__game-title {
  font-size: 26px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-fishing-games__game-description {
  font-size: 16px;
  color: var(--dark-text-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- Login Bonus Section --- */
.page-fishing-games__login-bonus-section {
  padding: 80px 0;
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

.page-fishing-games__login-bonus-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

.page-fishing-games__ordered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-fishing-games__ordered-list li {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--light-text-color);
}

.page-fishing-games__ordered-list li strong {
    color: var(--primary-color);
}

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

.page-fishing-games__strategy-section .page-fishing-games__section-title {
    color: var(--secondary-color);
}

.page-fishing-games__strategy-section .page-fishing-games__section-description {
    color: var(--dark-text-color);
}

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

.page-fishing-games__strategy-item {
  background: var(--card-bg-light);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__strategy-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.page-fishing-games__strategy-item p {
  font-size: 16px;
  color: var(--dark-text-color);
}

/* --- Promotions Section --- */
.page-fishing-games__promotions-section {
  padding: 80px 0;
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

.page-fishing-games__promotions-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

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

.page-fishing-games__promo-card {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

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

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

.page-fishing-games__promo-card p {
  font-size: 16px;
  color: var(--light-text-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- FAQ Section --- */
.page-fishing-games__faq-section {
  padding: 80px 0;
  background-color: var(--light-bg-color);
  color: var(--dark-text-color);
}

.page-fishing-games__faq-section .page-fishing-games__section-title {
    color: var(--secondary-color);
}

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

/* FAQ mặc định - ẩn câu trả lời */
.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;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ trạng thái mở rộng - 🚨 Sử dụng !important và max-height đủ lớn để đảm bảo 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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--dark-text-color);
}

/* Kiểu dáng câu hỏi */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-light);
  border: 1px solid var(--border-color);
  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;
}

/* Kiểu dáng tiêu đề câu hỏi */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
  color: var(--dark-text-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 biểu tượng chặn sự kiện click */
  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(--secondary-color);
  transform: rotate(180deg);
}

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

.page-fishing-games__cta-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

/* --- General Text Block Styles --- */
.page-fishing-games__text-block {
    color: var(--light-text-color);
}

.page-fishing-games__light-bg .page-fishing-games__text-block {
    color: var(--dark-text-color);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 44px;
  }
  .page-fishing-games__hero-description {
    font-size: 20px;
  }
  .page-fishing-games__section-title {
    font-size: 32px;
  }
  .page-fishing-games__section-description {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding: 100px 15px 60px 15px;
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
  }
  .page-fishing-games__hero-title {
    font-size: 36px;
  }
  .page-fishing-games__hero-description {
    font-size: 18px;
  }
  .page-fishing-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-large,
  .page-fishing-games__btn-small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 20px !important;
    font-size: 17px !important;
  }

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

  .page-fishing-games__intro-section,
  .page-fishing-games__features-section,
  .page-fishing-games__game-types-section,
  .page-fishing-games__login-bonus-section,
  .page-fishing-games__strategy-section,
  .page-fishing-games__promotions-section,
  .page-fishing-games__faq-section,
  .page-fishing-games__cta-section {
    padding: 60px 0;
  }
  .page-fishing-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-fishing-games__content-grid .page-fishing-games__image-wrapper:first-child {
      order: 2; /* Image below text on mobile for login bonus */
  }
  .page-fishing-games__login-bonus-section .page-fishing-games__content-grid .page-fishing-games__image-wrapper:first-child {
      order: 1;
  }
  .page-fishing-games__text-block p,
  .page-fishing-games__ordered-list li,
  .page-fishing-games__card p,
  .page-fishing-games__game-description,
  .page-fishing-games__promo-card p,
  .page-fishing-games__strategy-item p {
    font-size: 15px;
  }

  /* Image responsive rules */
  .page-fishing-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-fishing-games__image-wrapper,
  .page-fishing-games__game-image,
  .page-fishing-games__card-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* FAQ mobile */
  .page-fishing-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-fishing-games__faq-question h3 {
    font-size: 16px;
    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;
  }
}

@media (max-width: 480px) {
  .page-fishing-games__hero-title {
    font-size: 30px;
  }
  .page-fishing-games__hero-description {
    font-size: 16px;
  }
  .page-fishing-games__section-title {
    font-size: 24px;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }
  .page-fishing-games__card-title,
  .page-fishing-games__game-title,
  .page-fishing-games__promo-title,
  .page-fishing-games__strategy-item-title {
    font-size: 20px;
  }
}