.page-fishing-games {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-light: #FFFFFF;
  --text-color-dark: #333333;
  --button-login-color: #EA7C07;
  --background-white: #FFFFFF;
  --background-dark: #000000;
  
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark); /* Default text color for light background */
  background-color: var(--background-white);
}

.page-fishing-games__hero-section {
  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%, #1a7bbd 100%);
  color: var(--text-color-light);
  position: relative;
  overflow: hidden;
  padding-top: calc(60px + var(--header-offset, 0px)); /* Adjust for header if it's not handled by body */
}

.page-fishing-games__hero-content {
  max-width: 800px;
  z-index: 10;
}

.page-fishing-games__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
}

.page-fishing-games__intro-text {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

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

.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: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-fishing-games__btn-primary {
  background-color: var(--button-login-color); /* Sử dụng màu login cho primary */
  color: var(--text-color-light);
  border: 2px solid var(--button-login-color);
}

.page-fishing-games__btn-primary:hover {
  background-color: #e06c00;
  border-color: #e06c00;
}

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

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

.page-fishing-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 5;
}

.page-fishing-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-fishing-games__section {
  padding: 80px 20px;
}

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

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

.page-fishing-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
}

.page-fishing-games__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: inherit;
}

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

.page-fishing-games__paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: inherit;
}

.page-fishing-games__text-center {
  text-align: center;
}

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

.page-fishing-games__card {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-fishing-games__card-title {
  font-size: 1.5em;
  margin: 0 15px 15px;
  color: var(--primary-color);
}

.page-fishing-games__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-fishing-games__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-fishing-games__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-fishing-games__list-item {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 10px;
  color: inherit;
}

.page-fishing-games__image-center {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-fishing-games__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f8f8f8;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
  background-color: #eaf6fc;
}

.page-fishing-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
  transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

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

/* Mobile Floating Buttons */
.page-fishing-games__mobile-cta {
  display: none; /* Hidden by default, only shown on mobile */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-fishing-games__main-title {
    font-size: 2.8em;
  }

  .page-fishing-games__section-title {
    font-size: 2em;
  }

  .page-fishing-games__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-fishing-games__hero-section {
    padding: 40px 15px;
    padding-top: calc(40px + var(--header-offset, 120px)); /* Mobile specific header offset */
  }

  .page-fishing-games__main-title {
    font-size: 2.2em;
  }

  .page-fishing-games__intro-text {
    font-size: 1em;
  }

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-fishing-games__section {
    padding: 50px 15px;
  }

  .page-fishing-games__section-title {
    font-size: 1.8em;
  }

  .page-fishing-games__sub-title {
    font-size: 1.4em;
  }

  .page-fishing-games__paragraph,
  .page-fishing-games__list-item,
  .page-fishing-games__card-text {
    font-size: 0.95em;
  }

  .page-fishing-games__game-grid {
    grid-template-columns: 1fr;
  }

  .page-fishing-games__card-image {
    height: 180px;
  }

  /* Mobile images, videos, buttons responsive */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-fishing-games__faq-answer {
    padding: 0 20px;
  }
  .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile Floating Buttons */
  .page-fishing-games__mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 15px;
    justify-content: space-around;
    box-sizing: border-box;
  }

  .page-fishing-games__mobile-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
  }

  .page-fishing-games__mobile-btn--register {
    background-color: var(--primary-color);
    color: var(--text-color-light);
  }

  .page-fishing-games__mobile-btn--register:hover {
    background-color: #1a7bbd;
  }

  .page-fishing-games__mobile-btn--login {
    background-color: var(--button-login-color);
    color: var(--text-color-light);
  }

  .page-fishing-games__mobile-btn--login:hover {
    background-color: #e06c00;
  }
}