/* style/fishing-games.css */

/* Biến màu */
:root {
  --page-fishing-games-primary-color: #26A9E0;
  --page-fishing-games-secondary-color: #FFFFFF;
  --page-fishing-games-text-dark: #333333;
  --page-fishing-games-text-light: #ffffff;
  --page-fishing-games-login-button-color: #EA7C07;
  --page-fishing-games-background-color: #FFFFFF;
  --page-fishing-games-black-color: #000000;
}

.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-fishing-games-text-dark); /* Mặc định dùng màu tối cho văn bản */
  background-color: var(--page-fishing-games-background-color); /* Mặc định nền trắng */
}

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

.page-fishing-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  color: var(--page-fishing-games-text-dark);
  background-color: var(--page-fishing-games-background-color);
}

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

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

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

.page-fishing-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body đã padding-top, đây chỉ là khoảng cách nhỏ */
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao cho ảnh hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Đảm bảo ảnh cover toàn bộ khu vực */
}

.page-fishing-games__hero-content {
  position: relative; /* Không absolute để tránh chồng lên ảnh */
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  text-align: center;
  color: var(--page-fishing-games-text-light);
}

.page-fishing-games__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-fishing-games-secondary-color);
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-fishing-games__description {
  font-size: 1.15rem;
  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;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-fishing-games__btn-primary {
  background-color: var(--page-fishing-games-login-button-color); /* Màu đăng nhập */
  color: var(--page-fishing-games-secondary-color);
  border: 2px solid var(--page-fishing-games-login-button-color);
}

.page-fishing-games__btn-primary:hover {
  background-color: darken(var(--page-fishing-games-login-button-color), 10%);
  border-color: darken(var(--page-fishing-games-login-button-color), 10%);
}

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

.page-fishing-games__btn-secondary:hover {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit;
}

.page-fishing-games__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-fishing-games__text-block {
  text-align: left;
}

.page-fishing-games__text-block p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.page-fishing-games__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-fishing-games__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  text-align: left;
  align-items: center;
}

.page-fishing-games__list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-fishing-games__list-item {
  background-color: #f9f9f9;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--page-fishing-games-text-dark);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-fishing-games__list-item strong {
  color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.page-fishing-games__step-card {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: left;
}

.page-fishing-games__step-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__step-card p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.page-fishing-games__step-image {
  margin-top: 20px;
  border: 1px solid #eee;
}

.page-fishing-games__note {
  font-style: italic;
  font-size: 1rem;
  margin-top: 30px;
  color: var(--page-fishing-games-text-light);
}

.page-fishing-games__game-cards-grid,
.page-fishing-games__promo-cards-grid,
.page-fishing-games__strategy-grid,
.page-fishing-games__support-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.page-fishing-games__game-card,
.page-fishing-games__promo-card,
.page-fishing-games__strategy-item,
.page-fishing-games__support-payment-item {
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-text-dark);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: left;
}

.page-fishing-games__game-card-image,
.page-fishing-games__promo-card-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định cho hình ảnh thẻ */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-fishing-games__game-card-title,
.page-fishing-games__promo-card-title,
.page-fishing-games__strategy-title,
.page-fishing-games__support-payment-title {
  font-size: 1.35rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__game-card-description,
.page-fishing-games__promo-card-description {
  font-size: 1rem;
  margin-bottom: 15px;
}

.page-fishing-games__btn-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--page-fishing-games-primary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

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

.page-fishing-games__faq-section {
  text-align: left;
}

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

.page-fishing-games__faq-item {
  background-color: #f9f9f9;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
  background-color: var(--page-fishing-games-primary-color);
  color: var(--page-fishing-games-text-light);
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--page-fishing-games-secondary-color);
  color: var(--page-fishing-games-text-dark);
  transition: background-color 0.3s ease, color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-fishing-games__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-fishing-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--page-fishing-games-text-dark);
}

.page-fishing-games__faq-answer p {
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-content {
    padding: 0 40px;
  }
  .page-fishing-games__grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-fishing-games__grid-2-cols .page-fishing-games__image-block {
    order: -1; /* Đẩy ảnh lên trên trong mobile */
  }
}

@media (max-width: 768px) {
  .page-fishing-games__section {
    padding: 40px 15px !important;
  }

  .page-fishing-games__hero-section {
    padding: 10px 0 40px 0 !important;
  }

  .page-fishing-games__hero-content {
    padding: 0 15px !important;
    margin-top: 30px;
  }

  .page-fishing-games__main-title {
    font-size: clamp(2rem, 8vw, 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: 2rem;
  }

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

  .page-fishing-games__grid-2-cols {
    gap: 30px;
    margin: 30px auto;
  }

  .page-fishing-games__list-item {
    font-size: 1rem;
  }

  .page-fishing-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__game-cards-grid,
  .page-fishing-games__promo-cards-grid,
  .page-fishing-games__strategy-grid,
  .page-fishing-games__support-payment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__game-card-image,
  .page-fishing-games__promo-card-image {
    height: 180px;
  }

  .page-fishing-games__game-card-title,
  .page-fishing-games__promo-card-title,
  .page-fishing-games__strategy-title,
  .page-fishing-games__support-payment-title {
    font-size: 1.2rem;
  }

  .page-fishing-games__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-fishing-games__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Mobile image responsiveness */
  .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__hero-image-wrapper,
  .page-fishing-games__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-fishing-games__hero-image-wrapper,
  .page-fishing-games__image-block {
    padding-left: 0;
    padding-right: 0;
  }
}