/* General Styling for page-fishing-games */
.page-fishing-games {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    background: #F5F7FA; /* Background color from custom palette */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
}

.page-fishing-games__section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: #FFFFFF; /* Card BG from custom palette */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.page-fishing-games__section-title {
    color: #E53935; /* Main brand color */
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Hero Section */
.page-fishing-games__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for small screens, will be row for desktop */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 30px 20px;
    background: linear-gradient(135deg, #FF5A4F 0%, #E53935 100%); /* Gradient from brand colors */
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
}

.page-fishing-games__hero-content {
    order: 2; /* Content below image on mobile */
    margin-top: 20px;
}

.page-fishing-games__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    color: #ffffff;
}

.page-fishing-games__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.6;
}

.page-fishing-games__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-fishing-games__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient from custom palette */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__hero-image-wrapper {
    order: 1; /* Image above content on mobile */
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* General content styling */
.page-fishing-games p {
    margin-bottom: 1em;
    color: #333333;
}

.page-fishing-games__list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5em;
}

.page-fishing-games__list li {
    background: #F5F7FA;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-left: 4px solid #FF5A4F; /* Auxiliary brand color */
    border-radius: 4px;
    color: #333333;
}

.page-fishing-games__list li strong {
    color: #E53935;
}

/* Game Types Grid */
.page-fishing-games__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-fishing-games__card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0; /* Border color from custom palette */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
}

.page-fishing-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-fishing-games__card-title {
    font-size: 1.5em;
    color: #E53935;
    margin: 0 15px 10px;
    line-height: 1.3;
}

.page-fishing-games__card-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px;
    flex-grow: 1; /* Push button to bottom */
}

.page-fishing-games__card-button {
    margin: 20px auto 0;
    width: calc(100% - 30px); /* Adjust width for padding */
}

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

.page-fishing-games__promo-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
}

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

.page-fishing-games__promo-title {
    font-size: 1.4em;
    color: #E53935;
    margin: 0 15px 10px;
    line-height: 1.3;
}

.page-fishing-games__promo-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px;
    flex-grow: 1;
}

/* Platform Features List */
.page-fishing-games__features-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-fishing-games__features-list li {
    background: #F5F7FA;
    padding: 20px;
    border-left: 5px solid #E53935;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
    font-size: 1em;
    line-height: 1.5;
}

.page-fishing-games__features-list li strong {
    color: #E53935;
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.page-fishing-games__mobile-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.page-fishing-games__mobile-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.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; /* Ensure contrast */
}
.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: #333333; /* Ensure contrast */
}

/* --- Responsive Design --- */

/* Desktop / Tablet Layout for Hero */
@media (min-width: 769px) {
    .page-fishing-games__hero-section {
        flex-direction: row; /* Image and content side-by-side */
        text-align: left;
        padding: 40px;
        gap: 40px;
    }

    .page-fishing-games__hero-content {
        order: 1; /* Content on left */
        margin-top: 0;
        flex: 1;
    }

    .page-fishing-games__hero-image-wrapper {
        order: 2; /* Image on right */
        margin-bottom: 0;
        flex: 1;
        max-width: 600px; /* Adjust max-width for side-by-side */
    }

    .page-fishing-games__cta-buttons {
        justify-content: flex-start; /* Align buttons to left */
    }
}

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

    .page-fishing-games__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-fishing-games__hero-section {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

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

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

    /* Buttons */
    .page-fishing-games__cta-buttons,
    .page-fishing-games__card-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; /* Add padding for inner content */
        padding-right: 15px;
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
    }

    /* Images */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-fishing-games__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__card-image,
    .page-fishing-games__promo-image {
        height: 180px; /* Adjust height for mobile */
    }

    /* Grids */
    .page-fishing-games__grid,
    .page-fishing-games__promo-grid,
    .page-fishing-games__features-list {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 15px;
    }

    .page-fishing-games__card,
    .page-fishing-games__promo-card,
    .page-fishing-games__features-list li {
        margin: 0;
    }

    /* FAQ */
    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; }

    /* For general content containers */
    .page-fishing-games__content-area,
    .page-fishing-games__text-block,
    .page-fishing-games__box {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

/* Specific CSS for fixed homepage trial layout (as required by prompt, even if this is not the 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;
  }
}

/* Fixed from prompt - generic for trial overlay */
.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;}

/* Placeholder for remaining required @media (max-width: 768px) blocks for homepage elements, even if not directly used here */
/* 2. Ưu đãi __promo-strip: grid repeat(4,1fr) không ngang trượt; overflow-x:hidden; card bên trong ảnh trên văn bản; nút width:100% */
@media (max-width:768px){
  /* Although this page doesn't have a __promo-strip, this block is included as per the prompt's explicit requirement for 768px media queries. */
  .page-fishing-games__promo-strip {
    overflow-x: hidden;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-fishing-games__promo-strip-track { /* Assuming an inner track for items */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjusted for mobile cards */
    gap: 15px;
  }
  .page-fishing-games__promo-card {
    flex-direction: column;
    text-align: center;
  }
  .page-fishing-games__promo-image {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: cover;
  }
  .page-fishing-games__promo-card .page-fishing-games__btn-primary {
    width: 100% !important;
  }
}
/* 3. Hot games __hot-games: 2 cột; ẩn name/rtp/desc; img 100% rộng */
@media (max-width:768px){
  /* Although this page doesn't have a __hot-games, this block is included as per the prompt's explicit requirement for 768px media queries. */
  .page-fishing-games__hot-games {
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-fishing-games__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-fishing-games__hot-games-item {
    text-align: center;
  }
  .page-fishing-games__hot-games-image {
    width: 100% !important;
    height: auto !important;
  }
  .page-fishing-games__hot-games-name,
  .page-fishing-games__hot-games-rtp,
  .page-fishing-games__hot-games-desc {
    display: none;
  }
}
/* 4. Brand intro __brand-intro (≤768px hiển thị) */
@media (max-width:768px){
  /* Although this page doesn't have a __brand-intro, this block is included as per the prompt's explicit requirement for 768px media queries. */
  .page-fishing-games__brand-intro {
    display: block; /* Ensure it's visible if it exists on mobile */
    padding: 20px 15px;
    text-align: center;
  }
  .page-fishing-games__brand-intro-content {
    flex-direction: column;
  }
  .page-fishing-games__brand-intro-text {
    margin-bottom: 15px;
  }
}
/* 5. Winner ticker __winner-ticker: fixed bottom bar; body/main bottom padding */
@media (max-width:768px){
  /* Although this page doesn't have a __winner-ticker, this block is included as per the prompt's explicit requirement for 768px media queries. */
  .page-fishing-games__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 15px;
    z-index: 999;
    box-sizing: border-box;
  }
  /* Adjust body/main padding to prevent content being hidden by fixed ticker */
  body {
    padding-bottom: 50px; /* Example value, adjust based on ticker height */
  }
  main.page-fishing-games {
    padding-bottom: 50px; /* Redundant if body padding is used, but included for safety */
  }
}
/* 6. General image and container rules for 768px */
@media (max-width: 768px) {
  .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__promo-card,
  .page-fishing-games__mobile-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}
/* 7. Button and button container rules for 768px */
@media (max-width: 768px) {
  .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; /* Mobile vertical stacking */
  }
}
/* 8. Other modules' 768px rules (e.g., FAQ) */
@media (max-width: 768px) {
  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; }
}

/* Common modal for rewards/bonuses */
.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:not([hidden]) {
    opacity: 1;
    visibility: visible;
}