/* CSS Cho Trang Bắn Cá */

/* Homepage Trial Layout CSS (STRICTLY INCLUDED AS PER PROMPT, EVEN FOR NON-HOMEPAGE) */
@media (max-width: 1023px) {
  .page-fishing-games__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-fishing-games__hero-brand,
  .page-fishing-games__hero-jackpot {
    display: none !important;
  }
  .page-fishing-games__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial-topbar,
  .page-fishing-games__game-trial-bottombar {
    display: none !important;
  }
  .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;
  }
}

@media (min-width: 1024px) {
  .page-fishing-games__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-fishing-games__hero-brand,
  .page-fishing-games__hero-jackpot,
  .page-fishing-games__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-fishing-games__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-fishing-games__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-fishing-games__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-fishing-games__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}
/* END Homepage Trial Layout CSS */

/* General Page Styles */
.page-fishing-games {
  color: #333333; /* Default dark text for light body background */
  background: #FFFFFF;
}

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

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

.page-fishing-games__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-fishing-games__section-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-fishing-games__text-block {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-fishing-games__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-fishing-games__dark-section .page-fishing-games__section-title,
.page-fishing-games__dark-section .page-fishing-games__section-subtitle {
  color: #ffffff;
}

/* Hero Section */
.page-fishing-games__hero-section {
  padding: 10px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

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

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

.page-fishing-games__main-title {
  font-weight: 800;
  color: #FFFF00;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-fishing-games__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #ffffff;
}

/* Buttons */
.page-fishing-games__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-fishing-games__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid transparent;
}

.page-fishing-games__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-fishing-games__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Game Showcase */
.page-fishing-games__games-showcase {
  background-color: #f8f8f8;
}

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

.page-fishing-games__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-fishing-games__game-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__game-card-description {
  font-size: 15px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Guide Section */
.page-fishing-games__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-fishing-games__guide-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
}

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

.page-fishing-games__guide-item p {
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.7;
}

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

.page-fishing-games__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-fishing-games__promo-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__promo-card-description {
  font-size: 15px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* FAQ Section */
details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-fishing-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Why Choose Section */
.page-fishing-games__why-choose-section {
  background-color: #017439;
  color: #ffffff;
}

.page-fishing-games__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-fishing-games__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
}

.page-fishing-games__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-fishing-games__feature-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-fishing-games__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-fishing-games__section-title {
    font-size: 24px;
  }

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

  .page-fishing-games__game-grid,
  .page-fishing-games__promo-grid,
  .page-fishing-games__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__cta-button {
    padding: 12px 20px;
    font-size: 16px;
    width: 100% !important;
  }

  .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 {
    font-size: 20px;
  }

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

  details.page-fishing-games__faq-item summary.page-fishing-games__faq-question { padding: 15px; }
  .page-fishing-games__faq-qtext { font-size: 15px; }
  details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 15px 15px;
  }

  /* Image and Container Responsive */
  .page-fishing-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-fishing-games__section,
  .page-fishing-games__container,
  .page-fishing-games__game-card,
  .page-fishing-games__promo-card,
  .page-fishing-games__guide-item,
  .page-fishing-games__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button and Button Container Responsive */
  .page-fishing-games__cta-button,
  .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__cta-buttons {
    display: flex;
    flex-direction: column; /* Ensure vertical stacking on mobile */
  }
}

/* Additional general styles for homepage trial elements, if present */
.page-fishing-games__game-trial-overlay{
  z-index:5;
  pointer-events:auto;
}
.page-fishing-games__game-trial-overlay.is-hidden{
  display:none!important;
  pointer-events:none!important;
}
.page-fishing-games__game-trial-start{
  z-index:6;
  pointer-events:auto;
  touch-action:manipulation;
}
.page-fishing-games__game-trial-shell{
  border:1px solid rgba(212,175,55,.45);
  border-radius:10px;
  overflow:hidden;
}
.page-fishing-games__reward-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
}
.page-fishing-games__reward-modal[hidden] {
    display: none;
}
.page-fishing-games__reward-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    position: relative;
}
.page-fishing-games__reward-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}