/* style/fishing-games.css */

/* Base styles for the fishing games page */
.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body or shared */
}

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

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

.page-fishing-games__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
}

.page-fishing-games__section-title {
  font-size: 38px;
  font-weight: bold;
  color: #FFD700; /* Gold color for titles */
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-fishing-games__section-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Red to Gold gradient */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 60px;
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  color: #ffffff;
}

.page-fishing-games__hero-title {
  font-size: 56px;
  font-weight: 900;
  color: #ffffff; /* White text for contrast on gradient */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-fishing-games__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-fishing-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Subtle background image */
}

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

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-fishing-games__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #121212; /* Dark text for gold background */
  border: 2px solid #FFD700;
}

.page-fishing-games__btn-primary:hover {
  background-color: #e6c200;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-fishing-games__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-fishing-games__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-fishing-games__btn-tertiary {
  background-color: #8B0000; /* Dark Red */
  color: #ffffff;
  border: 2px solid #8B0000;
}

.page-fishing-games__btn-tertiary:hover {
  background-color: #a00000;
  border-color: #a00000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

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

/* Overview Section */
.page-fishing-games__overview-section {
  background-color: #121212;
}

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

.page-fishing-games__feature-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-fishing-games__feature-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-fishing-games__feature-item p {
  color: #f0f0f0;
  font-size: 16px;
}

/* Games Section */
.page-fishing-games__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-fishing-games__game-card {
  background-color: #121212;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #8B0000; /* Dark Red border */
}

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

.page-fishing-games__game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__game-info {
  padding: 20px;
}

.page-fishing-games__game-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-fishing-games__game-desc {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-fishing-games__tips-section {
  margin-top: 60px;
  padding: 40px;
  background-color: #1a1a1a;
  border-radius: 10px;
  text-align: left;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-fishing-games__tips-title {
  font-size: 28px;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
}

.page-fishing-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-fishing-games__tips-list li {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-fishing-games__tips-list li::before {
  content: '🐟'; /* Fish emoji as bullet */
  position: absolute;
  left: 0;
  color: #FFD700;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  background-color: #121212;
}

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

.page-fishing-games__promo-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(139, 0, 0, 0.4);
}

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

.page-fishing-games__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-fishing-games__promo-info {
  padding: 20px;
}

.page-fishing-games__promo-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-fishing-games__promo-desc {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

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

.page-fishing-games__step-item {
  background-color: #121212;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 2px solid #FFD700;
  transition: transform 0.3s ease;
}

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

.page-fishing-games__step-icon {
  width: 60px;
  height: 60px;
  background-color: #FFD700;
  color: #121212;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-fishing-games__step-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-fishing-games__step-item p {
  color: #f0f0f0;
  font-size: 16px;
  margin-bottom: 20px;
}

/* Security Section */
.page-fishing-games__security-section {
  background-color: #1a1a1a;
}

.page-fishing-games__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-fishing-games__security-text {
  flex: 1;
  min-width: 300px;
}

.page-fishing-games__security-subtitle {
  font-size: 28px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-fishing-games__security-text p {
  color: #f0f0f0;
  font-size: 16px;
  margin-bottom: 20px;
}

.page-fishing-games__security-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-fishing-games__security-image img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  background-color: #121212;
}

.page-fishing-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* 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;
  color: #f0f0f0;
  text-align: left;
}

/* FAQ展开状态 - 🚨 使用!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: #2a2a2a; /* Slightly different background for expanded answer */
  border-radius: 0 0 5px 5px;
}

/* Vấn đề phong cách */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  text-align: left;
}

.page-fishing-games__faq-question:hover {
  background: #2a2a2a;
  border-color: #FFD700;
}

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

/* Vấn đề tiêu đề phong cách */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
}

/* Chuyển đổi biểu tượng */
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: #8B0000;
  transform: rotate(45deg); /* Thay đổi thành X hoặc xoay */
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: 48px;
  }

  .page-fishing-games__hero-description {
    font-size: 20px;
  }

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

  .page-fishing-games__guide-steps,
  .page-fishing-games__security-content {
    gap: 20px;
  }
}

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

  .page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

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

  .page-fishing-games__hero-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-fishing-games__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

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

  /* Buttons mobile responsive */
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary,
  .page-fishing-games__btn-tertiary,
  .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 !important;
    padding-right: 15px !important;
  }
}