/* style/fishing-games.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-bg: #C30808; /* Màu đỏ cho nút đăng ký/đăng nhập */
  --register-login-text: #FFFFFF; /* Màu vàng #FFFF00 bị thay thế bằng trắng để đảm bảo tương phản WCAG AA */
  --text-color-light-bg: #333333;
  --text-color-dark-bg: #FFFFFF;
  --background-color: #FFFFFF;
}

.page-fishing-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light-bg); /* Mặc định chữ đen trên nền trắng */
  background-color: var(--background-color);
}

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

/* 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;
  padding-top: 10px; /* Theo yêu cầu, chỉ 10px padding-top, body đã có header-offset */
  background-color: var(--primary-color); /* Nền xanh đậm cho hero section */
  color: var(--text-color-dark-bg);
  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-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-image {
  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__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Sử dụng clamp để linh hoạt kích thước */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-dark-bg);
}

.page-fishing-games__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên di động */
}

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

.page-fishing-games__btn-primary {
  background: var(--register-login-bg); /* Màu đỏ */
  color: var(--register-login-text); /* Màu trắng để đảm bảo tương phản */
  border: 2px solid var(--register-login-bg);
}

.page-fishing-games__btn-primary:hover {
  background: #a80707;
  border-color: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

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

/* Section Styling */
.page-fishing-games__section {
  padding: 80px 0;
}

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

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

.page-fishing-games__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-fishing-games__section-description {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-fishing-games__text-block {
  margin-bottom: 20px;
  font-size: 1.05rem;
  text-align: justify;
}

.page-fishing-games__text-block:last-child {
  margin-bottom: 0;
}

/* Game Cards Grid */
.page-fishing-games__games-showcase .page-fishing-games__section-title {
  color: var(--text-color-dark-bg);
}
.page-fishing-games__games-showcase .page-fishing-games__section-description {
  color: var(--text-color-dark-bg);
}

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

.page-fishing-games__card {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 25px;
}

.page-fishing-games__card-image {
  width: 100%;
  height: 200px; /* Kích thước cố định cho ảnh thẻ */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-fishing-games__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-fishing-games__card-text {
  font-size: 1rem;
  margin-bottom: 25px;
  flex-grow: 1;
  padding: 0 20px;
}

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

.page-fishing-games__guide-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__guide-step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-fishing-games__guide-step-text {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-fishing-games__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.page-fishing-games__image-margin-top {
  margin-top: 60px;
}

/* Promotions Section */
.page-fishing-games__promotions-section .page-fishing-games__section-title,
.page-fishing-games__promotions-section .page-fishing-games__section-description {
  color: var(--text-color-dark-bg);
}

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

.page-fishing-games__promotion-card {
  padding: 30px;
}

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

.page-fishing-games__benefit-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-fishing-games__benefit-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-fishing-games__benefit-text {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-fishing-games__faq-section .page-fishing-games__section-title,
.page-fishing-games__faq-section .page-fishing-games__section-description {
  color: var(--text-color-dark-bg);
}

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

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color-dark-bg);
}

details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
}

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

details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-fishing-games__faq-qtext {
  flex: 1;
  text-align: left;
  color: var(--text-color-dark-bg);
}

.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color-dark-bg);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 10px 10px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color-dark-bg);
}

.page-fishing-games__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-fishing-games__faq-answer .page-fishing-games__btn-secondary {
  margin-top: 15px;
}

/* General Image Styling */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-fishing-games__hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }
  .page-fishing-games__section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 15px;
  }
  .page-fishing-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-fishing-games__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-fishing-games__hero-description {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-bottom: 30px;
  }
  .page-fishing-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .page-fishing-games__section {
    padding: 40px 0;
  }
  .page-fishing-games__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .page-fishing-games__section-description {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-bottom: 30px;
  }
  .page-fishing-games__text-block {
    font-size: 0.95rem;
  }
  .page-fishing-games__game-cards-grid,
  .page-fishing-games__guide-steps,
  .page-fishing-games__promotions-grid,
  .page-fishing-games__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-fishing-games__card-image {
    height: 180px;
  }
  .page-fishing-games__card-title {
    font-size: 1.2rem;
  }
  .page-fishing-games__card-text {
    font-size: 0.9rem;
  }
  .page-fishing-games__guide-item,
  .page-fishing-games__promotion-card,
  .page-fishing-games__benefit-item {
    padding: 25px;
  }
  .page-fishing-games__guide-step-title,
  .page-fishing-games__benefit-title {
    font-size: 1.1rem;
  }
  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-fishing-games__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__section,
  .page-fishing-games__card,
  .page-fishing-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}