/* style/fishing-games.css */

/* Variables (if needed, otherwise rely on shared.css) */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login: #EA7C07;
  --bg-light: #f9f9f9; /* Light background for sections */
}

/* Base styles for the page content */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background: var(--secondary-color); /* Body background is white, so default text is dark */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

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

.page-fishing-games__section:nth-of-type(even) {
  background-color: var(--bg-light);
}

.page-fishing-games__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-fishing-games__dark-section .page-fishing-games__section-title,
.page-fishing-games__dark-section .page-fishing-games__text-block,
.page-fishing-games__dark-section .page-fishing-games__highlight {
  color: var(--text-light);
}

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

.page-fishing-games__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

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

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

.page-fishing-games__dark-section .page-fishing-games__section-title::after {
  background-color: var(--text-light);
}

.page-fishing-games__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__highlight {
  font-weight: bold;
  color: var(--primary-color);
}

.page-fishing-games__dark-section .page-fishing-games__highlight {
  color: var(--text-light);
}

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

.page-fishing-games a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #6dd5ed 100%); /* Light blue gradient */
  color: var(--text-light);
  overflow: hidden; /* Ensure no overflow from hero image */
}

.page-fishing-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-fishing-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-fishing-games__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__description {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure buttons have a decent minimum width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-fishing-games__cta-button--primary {
  background: var(--button-login); /* Use login color for primary CTA */
  color: var(--text-light);
  border: 2px solid var(--button-login);
}

.page-fishing-games__cta-button--primary:hover {
  background: #d46e00; /* Darker orange */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__cta-button--secondary {
  background: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--text-light);
}

.page-fishing-games__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #1a88b5; /* Darker primary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Image wrappers */
.page-fishing-games__image-wrapper {
  margin: 40px auto;
  max-width: 1000px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

/* Features Grid */
.page-fishing-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-fishing-games__feature-item {
  background: rgba(255, 255, 255, 0.1); /* Light background for features on dark section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-fishing-games__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--text-light);
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__feature-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-light);
}

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

/* Step-by-step Guide */
.page-fishing-games__step-by-step {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-fishing-games__step-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--primary-color);
}

.page-fishing-games__step-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-fishing-games__step-item p {
  font-size: 17px;
}

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

.page-fishing-games__promo-item {
  background: var(--secondary-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games__promo-item img {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-fishing-games__promo-item p {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow paragraph to take up available space */
}

.page-fishing-games__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  align-self: flex-start; /* Align button to start of flex item */
}

.page-fishing-games__btn-secondary:hover {
  background: #1a88b5; /* Darker primary */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__promo-footer {
  margin-top: 30px;
  font-size: 17px;
}

/* Security Section */
.page-fishing-games__security-content {
  text-align: left;
}

/* FAQ Section */
.page-fishing-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

/* FAQ容器样式 */
.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 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 20px;
  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 !important;
  opacity: 1;
  background: var(--bg-light); /* Use light background for answer */
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Question styles */
.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  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;
}

/* Question title style */
.page-fishing-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  color: var(--button-login); /* Highlight toggle when active */
  transform: rotate(45deg); /* Change to X or rotate */
}

/* Bottom CTA */
.page-fishing-games__cta-bottom {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #007bff 100%);
  color: var(--text-light);
}

.page-fishing-games__cta-bottom .page-fishing-games__section-title {
  color: var(--text-light);
}

.page-fishing-games__cta-bottom .page-fishing-games__section-title::after {
  background-color: var(--text-light);
}

.page-fishing-games__cta-bottom .page-fishing-games__text-block {
  color: var(--text-light);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .page-fishing-games {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

  .page-fishing-games__container {
    padding: 0 15px;
  }

  .page-fishing-games__section {
    padding: 40px 0;
  }

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