:root {
    --color-primary: #113B7A; /* Main color */
    --color-secondary: #1D5FD1; /* Accent color */
    --color-button-gradient-start: #2B73F6;
    --color-button-gradient-end: #1144A6;
    --color-card-bg: #10233F;
    --color-text-main: #F3F8FF;
    --color-text-secondary: #AFC4E8;
    --color-border: #244D84;
    --color-glow: #4FA8FF;
    --color-gold: #F2C14E;
    --color-divider: #1B3357;
    --color-deep-navy: #08162B; /* Body background from shared.css */
}

/* Base Styles for the page content */
.page-fishing-games {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-deep-navy); /* From shared.css, ensures consistency */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section, body handles header offset */
}

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

/* Section Titles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

/* Text Blocks */
.page-fishing-games__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--color-text-secondary);
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Ensure it takes up significant viewport height */
    padding: 20px 0;
    box-sizing: border-box;
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1; /* Ensure image is behind content if needed, but here they are stacked */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-primary); /* Fallback */
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for better text contrast, without changing color */
}

.page-fishing-games__hero-content-wrapper {
    position: relative; /* Relative for normal flow, below image */
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin-top: -100px; /* Pull content up slightly over the bottom of the image for visual cohesion */
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}

.page-fishing-games__hero-content {
    background: linear-gradient(180deg, rgba(17, 59, 122, 0.8) 0%, rgba(8, 22, 43, 0.9) 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
}

.page-fishing-games__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1, no fixed large size */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-fishing-games__hero-description {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-fishing-games__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* White text for dark button */
    box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(43, 115, 246, 0.6);
    opacity: 0.9;
}

.page-fishing-games__btn-secondary {
    background: var(--color-card-bg); /* Dark background for secondary button */
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-fishing-games__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
    background-color: rgba(242, 193, 78, 0.1);
}

/* Intro Section */
.page-fishing-games__intro-section {
    padding: 80px 0;
    background-color: var(--color-primary); /* Dark section background */
}

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

.page-fishing-games__feature-item {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.page-fishing-games__feature-item:hover {
    transform: translateY(-5px);
}

.page-fishing-games__feature-item img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px var(--color-glow)); /* Add a subtle glow without changing color */
    max-width: 200px; /* Ensure min size */
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__feature-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__feature-item p {
    color: var(--color-text-secondary);
}

/* Games Showcase Section */
.page-fishing-games__games-showcase {
    padding: 80px 0;
    background-color: var(--color-deep-navy); /* Ensure dark background */
}

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

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

.page-fishing-games__game-card:hover {
    transform: translateY(-5px);
}

.page-fishing-games__game-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 Aspect Ratio (adjust as needed) */
    height: 0;
    overflow: hidden;
    background-color: var(--color-primary); /* Placeholder background */
}

.page-fishing-games__game-trial-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.page-fishing-games__game-title {
    font-size: 1.6em;
    color: var(--color-gold);
    margin: 20px 15px 10px 15px;
    font-weight: bold;
}

.page-fishing-games__game-description {
    color: var(--color-text-secondary);
    margin: 0 15px 20px 15px;
}

.page-fishing-games__game-card .page-fishing-games__btn-primary {
    margin-bottom: 20px;
    min-width: unset; /* Override min-width for card buttons */
    width: calc(100% - 30px);
}

.page-fishing-games__view-all-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Why Choose Us Section */
.page-fishing-games__why-choose-us {
    padding: 80px 0;
    background-color: var(--color-primary);
}

.page-fishing-games__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-fishing-games__benefit-item {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.page-fishing-games__benefit-item:hover {
    transform: translateY(-5px);
}

.page-fishing-games__benefit-item img {
    width: 100%;
    max-width: 300px; /* Image width for benefit items */
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 200px; /* Ensure min size */
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__benefit-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__benefit-item p {
    color: var(--color-text-secondary);
}

/* How to Play Section */
.page-fishing-games__how-to-play {
    padding: 80px 0;
    background-color: var(--color-deep-navy);
}

.page-fishing-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__step-item {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

.page-fishing-games__step-item:last-child {
    margin-bottom: 0;
}

.page-fishing-games__step-title {
    font-size: 1.8em;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__step-item p {
    color: var(--color-text-secondary);
}

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 80px 0;
    background-color: var(--color-primary);
}

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

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

.page-fishing-games__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-card-bg);
    transition: background-color 0.3s ease;
}

.page-fishing-games__faq-item summary:hover {
    background-color: rgba(16, 35, 63, 0.8);
}

.page-fishing-games__faq-question {
    flex-grow: 1;
    color: var(--color-text-main);
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 25px;
    text-align: center;
    color: var(--color-gold);
}

.page-fishing-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
    max-height: 200px; /* Adjust as needed for content */
    padding-top: 10px;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__hero-content {
        padding: 30px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-fishing-games__hero-description {
        font-size: 1.1em;
    }
    .page-fishing-games__intro-section,
    .page-fishing-games__games-showcase,
    .page-fishing-games__why-choose-us,
    .page-fishing-games__how-to-play,
    .page-fishing-games__faq-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-fishing-games__container {
        padding: 0 15px;
    }

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

    .page-fishing-games__hero-section {
        min-height: unset;
        padding: 10px 0;
    }

    .page-fishing-games__hero-content-wrapper {
        margin-top: -60px; /* Adjust for mobile */
        padding: 0 15px;
    }

    .page-fishing-games__hero-content {
        padding: 25px;
    }

    .page-fishing-games__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-fishing-games__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-fishing-games__features-grid,
    .page-fishing-games__game-grid,
    .page-fishing-games__benefits-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    
    /* Mobile image responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness */
    .page-fishing-games__game-iframe-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-fishing-games__game-trial-frame {
        width: 100% !important;
        height: 100% !important;
    }

    .page-fishing-games__feature-item img,
    .page-fishing-games__benefit-item img {
        max-width: 100% !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
        height: auto !important;
        object-fit: contain; /* Adjust object-fit for smaller screens if needed */
        margin-left: auto;
        margin-right: auto;
    }
    
    .page-fishing-games__intro-section,
    .page-fishing-games__games-showcase,
    .page-fishing-games__why-choose-us,
    .page-fishing-games__how-to-play,
    .page-fishing-games__faq-section {
        padding: 40px 0;
    }

    .page-fishing-games__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-fishing-games__faq-answer {
        padding: 0 20px 15px 20px;
    }
    
    .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;
    }
}

/* Ensure content area images are not too small */
.page-fishing-games__feature-item img,
.page-fishing-games__benefit-item img {
    min-width: 200px;
    min-height: 200px;
}

/* Body background color is deep navy, so text should be light */
.page-fishing-games__dark-section {
  background-color: var(--color-primary);
  color: var(--color-text-main);
}
.page-fishing-games__card {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}
.page-fishing-games__text-block,
.page-fishing-games p,
.page-fishing-games li {
  color: var(--color-text-secondary);
}
.page-fishing-games__main-title,
.page-fishing-games__section-title,
.page-fishing-games__feature-title,
.page-fishing-games__game-title,
.page-fishing-games__benefit-title,
.page-fishing-games__step-title {
  color: var(--color-gold);
}
.page-fishing-games__faq-question {
  color: var(--color-text-main);
}
.page-fishing-games__faq-toggle {
  color: var(--color-gold);
}

/* Ensure no filter is used to change image colors */
.page-fishing-games img {
    /* filter: none; */ /* Ensure no filter property that changes color */
}

/* Explicitly disable filter for hero image, only brightness adjustment allowed */
.page-fishing-games__hero-image {
    filter: brightness(0.7); /* Allowed for contrast, not color change */
}