/* Shared body padding-top handled by shared.css */

:root {
  --sh88-primary-color: #C61F1F;
  --sh88-secondary-color: #E53030;
  --sh88-card-bg: #2A1212;
  --sh88-bg-color: #140C0C;
  --sh88-text-main: #FFF1E8;
  --sh88-border-color: #6A1E1E;
  --sh88-gold-color: #F3C54D;
  --sh88-deep-red: #7E0D0D;
  --sh88-button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-fishing-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--sh88-text-main); /* Default text color for dark body bg */
  background-color: var(--sh88-bg-color); /* Main background */
}

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

.page-fishing-games__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--sh88-gold-color); /* Gold color for titles */
  line-height: 1.2;
}

.page-fishing-games__section-title--white {
  color: var(--sh88-text-main);
}

.page-fishing-games__subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: rgba(255, 241, 232, 0.8);
}

.page-fishing-games__subtitle--white {
  color: rgba(255, 241, 232, 0.8);
}

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

.page-fishing-games__btn-primary {
  background: var(--sh88-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
  background: transparent;
  color: var(--sh88-gold-color);
  border: 2px solid var(--sh88-gold-color);
  box-shadow: none;
}

.page-fishing-games__btn-secondary:hover {
  background: var(--sh88-gold-color);
  color: var(--sh88-bg-color);
  transform: translateY(-2px);
}

/* Hero Section */
.page-fishing-games__hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-fishing-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-fishing-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__main-title {
  font-size: 48px;
  color: var(--sh88-gold-color);
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-fishing-games__hero-description {
  font-size: 18px;
  color: var(--sh88-text-main);
  margin-bottom: 30px;
}

/* About Section */
.page-fishing-games__about-sh88 {
  padding: 60px 0;
  background-color: #1a1a1a; /* Lighter dark background for contrast */
  color: #f0f0f0;
}

.page-fishing-games__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-fishing-games__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-fishing-games__text-content {
  flex: 1;
}

.page-fishing-games__text-content p {
  margin-bottom: 15px;
  font-size: 16px;
  color: rgba(255, 241, 232, 0.9);
}

.page-fishing-games__text-content .page-fishing-games__btn-secondary {
  margin-top: 20px;
}

.page-fishing-games__image-content {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-fishing-games__features-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-fishing-games__features-list li {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--sh88-gold-color);
}

.page-fishing-games__features-list li strong {
  color: var(--sh88-text-main);
}

/* Game Showcase Section */
.page-fishing-games__game-showcase {
  padding: 60px 0;
  background-color: var(--sh88-primary-color);
}

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

.page-fishing-games__game-card {
  background-color: var(--sh88-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid var(--sh88-border-color);
}

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

.page-fishing-games__game-name {
  font-size: 24px;
  font-weight: bold;
  color: var(--sh88-gold-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-fishing-games__game-description {
  font-size: 15px;
  color: rgba(255, 241, 232, 0.7);
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Tips & Strategy Section */
.page-fishing-games__tips-strategy {
  padding: 60px 0;
  background-color: #1a1a1a; /* Lighter dark background for contrast */
  color: #f0f0f0;
}

.page-fishing-games__sub-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--sh88-gold-color);
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-fishing-games__tips-strategy p {
  font-size: 16px;
  color: rgba(255, 241, 232, 0.9);
}

.page-fishing-games__tips-strategy .page-fishing-games__btn-primary {
  margin-top: 30px;
}

/* Call to Action Section */
.page-fishing-games__cta-section {
  padding: 60px 0;
  background-color: var(--sh88-secondary-color);
  text-align: center;
}

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

/* FAQ Section */
.page-fishing-games__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Lighter dark background for contrast */
  color: #f0f0f0;
}

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

details.page-fishing-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--sh88-border-color);
  overflow: hidden;
  background: var(--sh88-card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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;
}

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(var(--sh88-primary-color), 0.2);
}

.page-fishing-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--sh88-gold-color);
}

.page-fishing-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--sh88-gold-color);
  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(var(--sh88-card-bg), 0.8);
  border-radius: 0 0 10px 10px;
  color: rgba(255, 241, 232, 0.8);
  font-size: 15px;
}

/* Contact Section */
.page-fishing-games__contact-us {
  padding: 60px 0;
  background-color: var(--sh88-deep-red);
  text-align: center;
}

.page-fishing-games__contact-us .page-fishing-games__btn-primary {
  margin-top: 30px;
}

/* --- Responsive Styles --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-fishing-games__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-fishing-games__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-fishing-games__subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Hero Section */
  .page-fishing-games__hero-section {
    min-height: 400px;
    padding-top: 10px;
  }

  .page-fishing-games__hero-content {
    padding: 20px;
    max-width: 95%;
  }

  .page-fishing-games__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-fishing-games__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* About/Tips Sections */
  .page-fishing-games__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-fishing-games__content-wrapper--reversed {
    flex-direction: column;
  }

  .page-fishing-games__text-content p,
  .page-fishing-games__features-list li,
  .page-fishing-games__tips-strategy p {
    font-size: 15px;
  }

  .page-fishing-games__sub-title {
    font-size: 20px;
    margin-top: 20px;
  }

  /* Game Showcase */
  .page-fishing-games__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-fishing-games__game-card {
    padding-bottom: 15px;
  }

  .page-fishing-games__game-name {
    font-size: 20px;
  }

  .page-fishing-games__game-description {
    font-size: 14px;
  }

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

  .page-fishing-games__btn-primary,
  .page-fishing-games__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 20px;
  }

  /* FAQ Section */
  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;
    width: 25px;
  }

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

  /* Images & Containers Mobile Adaptations */
  .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__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; /* For button groups */
  }
}

/* Generic image responsive rules (non-!important for desktop) */
.page-fishing-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Specific homepage trial CSS from prompt, kept for compliance */
@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;
  }
}

/* Additional homepage blocks from prompt, if applicable to this page's content. */
/* Given this is fishing-games.html, these are generally not needed, but kept for strict compliance if the prompt implies global inclusion. */
@media (max-width:768px){
  .page-fishing-games__promo-strip-track{
    grid-template-columns:repeat(4,1fr); /* Ensure it doesn't cause horizontal scroll */
    overflow-x:hidden;
  }
  .page-fishing-games__hot-games-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* Global utility classes for JS interaction */
.is-hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Reward Modal styles */
.page-fishing-games__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-fishing-games__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.page-fishing-games__reward-modal-content {
  background: var(--sh88-card-bg);
  border: 2px solid var(--sh88-gold-color);
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
}

.page-fishing-games__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: var(--sh88-gold-color);
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}

.page-fishing-games__reward-modal-close:hover {
  color: var(--sh88-text-main);
}

.page-fishing-games__reward-modal h3 {
  font-size: 32px;
  color: var(--sh88-gold-color);
  margin-bottom: 20px;
}

.page-fishing-games__reward-modal p {
  font-size: 18px;
  color: var(--sh88-text-main);
  margin-bottom: 30px;
}

.page-fishing-games__reward-modal .page-fishing-games__btn-primary {
  width: auto;
  padding: 12px 30px;
}

/* Ensure body padding for fixed header when modal is open */
body.page-fishing-games--reward-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0);
}

/* Responsive for modal */
@media (max-width: 480px) {
  .page-fishing-games__reward-modal-content {
    padding: 30px 20px;
  }
  .page-fishing-games__reward-modal h3 {
    font-size: 24px;
  }
  .page-fishing-games__reward-modal p {
    font-size: 16px;
  }
}