/* CSS chung cho trang Bắn Cá */
.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-color);
}

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

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__paragraph {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

.page-fishing-games__note-text {
  font-size: 16px;
  font-style: italic;
  opacity: 0.8;
  margin-top: 30px;
  color: var(--text-main);
}

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

.page-fishing-games__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-fishing-games__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-fishing-games__btn-secondary {
  background: #17191F;
  color: #FFF3E6;
  border: 2px solid #A84F0C;
  margin-left: 15px;
}

.page-fishing-games__btn-secondary:hover {
  background: #2a2d34;
  border-color: #FFB04D;
}

.page-fishing-games__btn-center {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 300px;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

.page-fishing-games__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
  color: #FFF3E6;
}

.page-fishing-games__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFB04D;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__hero-description {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #FFF3E6;
}

/* Intro Section */
.page-fishing-games__intro-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.page-fishing-games__intro-section .page-fishing-games__section-title,
.page-fishing-games__intro-section .page-fishing-games__paragraph {
  color: #333333;
}

/* Features Section */
.page-fishing-games__features-section {
  padding: 80px 0;
  background-color: #0D0E12;
  color: #FFF3E6;
}

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

.page-fishing-games__feature-item {
  background-color: #17191F;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
  border: 1px solid #A84F0C;
}

.page-fishing-games__feature-icon {
  width: 100%;
  height: auto;
  max-width: 120px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

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

.page-fishing-games__feature-description {
  font-size: 16px;
  line-height: 1.7;
  color: #FFF3E6;
}

/* Game Trial Section */
.page-fishing-games__game-trial-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.page-fishing-games__game-trial-section .page-fishing-games__section-title,
.page-fishing-games__game-trial-section .page-fishing-games__paragraph {
  color: #333333;
}

.page-fishing-games__game-trial-wrapper {
  max-width: 960px;
  margin: 40px auto;
  position: relative;
  background-color: #0D0E12;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__game-trial-shell {
  border: 2px solid #A84F0C;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-fishing-games__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 768; /* Fixed aspect ratio */
  background-color: #000;
  overflow: hidden;
}

.page-fishing-games__game-trial-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.page-fishing-games__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  cursor: pointer;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

.page-fishing-games__game-trial-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important;
}

.page-fishing-games__game-trial-start {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  padding: 15px 40px;
  font-size: 22px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 140, 26, 0.6);
  transition: all 0.3s ease;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-fishing-games__game-trial-start:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 140, 26, 0.8);
}

.page-fishing-games__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.page-fishing-games__reward-modal-content {
  background-color: #17191F;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
  border: 2px solid #FFB04D;
  color: #FFF3E6;
}

.page-fishing-games__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: #FFF3E6;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.page-fishing-games__reward-modal-close:hover {
  color: #FFB04D;
}

.page-fishing-games__reward-modal-title {
  font-size: 30px;
  color: #FFB04D;
  margin-bottom: 20px;
}

.page-fishing-games__reward-modal-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF3E6;
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
  padding: 80px 0;
  background-color: #0D0E12;
  color: #FFF3E6;
}

.page-fishing-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-fishing-games__step-item {
  background-color: #17191F;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C;
  color: #FFF3E6;
}

.page-fishing-games__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFB04D;
}

.page-fishing-games__step-description {
  font-size: 16px;
  line-height: 1.7;
  color: #FFF3E6;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.page-fishing-games__promotions-section .page-fishing-games__section-title,
.page-fishing-games__promotions-section .page-fishing-games__paragraph {
  color: #333333;
}

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

.page-fishing-games__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-fishing-games__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-fishing-games__promo-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FF8C1A;
}

.page-fishing-games__promo-description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: left;
  color: #333333;
}

.page-fishing-games__promo-content .page-fishing-games__btn-secondary {
  margin-left: 0;
  align-self: flex-start;
  max-width: 180px;
}

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 80px 0;
  background-color: #0D0E12;
  color: #FFF3E6;
}

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

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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;
  color: #FFF3E6;
}

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: #2a2d34;
}

.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D;
}

.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFF3E6;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 25px 25px;
  background: #0D0E12;
  border-radius: 0 0 10px 10px;
  color: #FFF3E6;
}

details.page-fishing-games__faq-item .page-fishing-games__faq-answer p {
  text-align: left;
  font-size: 16px;
  line-height: 1.7;
  color: #FFF3E6;
}

/* Responsive Styles */

/* All images */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Game trial specific overrides for desktop */
@media (min-width: 1024px) {
  .page-fishing-games__game-trial-wrapper {
    max-width: 960px;
    margin: 40px auto;
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-fishing-games__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-fishing-games__paragraph {
    font-size: 16px;
    line-height: 1.7;
  }

  .page-fishing-games__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

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

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-fishing-games__btn-center {
    max-width: 100%;
  }

  .page-fishing-games__features-grid,
  .page-fishing-games__steps-list,
  .page-fishing-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-fishing-games__feature-item,
  .page-fishing-games__step-item,
  .page-fishing-games__promo-card {
    padding: 25px;
  }

  .page-fishing-games__feature-title,
  .page-fishing-games__step-title {
    font-size: 20px;
  }

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

  .page-fishing-games__promo-title {
    font-size: 20px;
  }

  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    padding: 15px 20px;
  }

  .page-fishing-games__faq-qtext {
    font-size: 16px;
  }

  .page-fishing-games__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }

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

  /* General image and container responsive rules */
  .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,
  .page-fishing-games__game-trial-wrapper,
  .page-fishing-games__game-trial-shell,
  .page-fishing-games__game-trial-viewport,
  .page-fishing-games__reward-modal-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-fishing-games__game-trial-wrapper {
    margin-left: 0;
    margin-right: 0;
  }
  .page-fishing-games__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Game trial specific overrides for mobile/tablet */
@media (max-width: 1023px) {
  .page-fishing-games__game-trial-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 40px auto;
    padding: 0;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial-shell {
    height: auto !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-fishing-games__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-fishing-games__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}