/* Variables for colors */
:root {
    --page-fishing-games-primary-color: #2F6BFF;
    --page-fishing-games-secondary-color: #6FA3FF;
    --page-fishing-games-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-fishing-games-card-bg: #FFFFFF;
    --page-fishing-games-background: #F4F7FB;
    --page-fishing-games-text-main: #1F2D3D;
    --page-fishing-games-text-black: #000000;
    --page-fishing-games-border-color: #D6E2FF;
    --page-fishing-games-glow-color: #A5C4FF;
}

.page-fishing-games {
    background-color: var(--page-fishing-games-background);
    color: var(--page-fishing-games-text-main);
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.page-fishing-games__container {
    max-width: 1200px; /* Aligned with 3WIN style 'boxed' feel */
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.page-fishing-games__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding for first section */
    padding-bottom: 40px;
    background-color: var(--page-fishing-games-background);
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

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

.page-fishing-games__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--page-fishing-games-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-fishing-games__hero-cta-button,
.page-fishing-games__cta-button,
.page-fishing-games__game-card-button,
.page-fishing-games__promotions-button,
.page-fishing-games__final-cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--page-fishing-games-button-gradient);
    color: #FFFFFF; /* Text color for buttons */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure button minimum width */
    text-align: center;
}

.page-fishing-games__hero-cta-button:hover,
.page-fishing-games__cta-button:hover,
.page-fishing-games__game-card-button:hover,
.page-fishing-games__promotions-button:hover,
.page-fishing-games__final-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-fishing-games__section {
    padding: 60px 0;
    background-color: var(--page-fishing-games-background);
}

.page-fishing-games__section-title {
    font-size: 2.5em;
    color: var(--page-fishing-games-text-black);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* About Game Section */
.page-fishing-games__about-game-section .page-fishing-games__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

.page-fishing-games__about-game-section .page-fishing-games__text-content p {
    margin-bottom: 15px;
    color: var(--page-fishing-games-text-main);
}

.page-fishing-games__about-game-section .page-fishing-games__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fishing-games__about-game-section .page-fishing-games__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

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

.page-fishing-games__feature-item {
    background-color: var(--page-fishing-games-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--page-fishing-games-border-color);
}

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

.page-fishing-games__features-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
    display: block;
    margin: 0 auto;
    max-width: 800px;
}

/* How to Play Section */
.page-fishing-games__steps-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-fishing-games__step-item {
    background-color: var(--page-fishing-games-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--page-fishing-games-border-color);
    text-align: center;
    position: relative;
    padding-top: 70px;
}

.page-fishing-games__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--page-fishing-games-primary-color);
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__step-title {
    font-size: 1.3em;
    color: var(--page-fishing-games-text-black);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__cta-wrapper {
    text-align: center;
    margin-top: 30px;
}

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

.page-fishing-games__game-card {
    background-color: var(--page-fishing-games-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--page-fishing-games-border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.page-fishing-games__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-fishing-games__game-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-fishing-games__game-card-title {
    font-size: 1.4em;
    color: var(--page-fishing-games-text-black);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__game-card-description {
    font-size: 0.95em;
    color: var(--page-fishing-games-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-fishing-games__game-card-button {
    margin-top: auto; /* Push button to bottom */
    width: 100%;
    max-width: 200px; /* Constrain button width within card */
    margin-left: auto;
    margin-right: auto;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    text-align: center;
}

.page-fishing-games__promotions-description {
    font-size: 1.1em;
    color: var(--page-fishing-games-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-fishing-games__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-fishing-games__faq-item {
    background-color: var(--page-fishing-games-card-bg);
    border: 1px solid var(--page-fishing-games-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__faq-question {
    padding: 18px 25px;
    font-size: 1.1em;
    color: var(--page-fishing-games-text-black);
    font-weight: bold;
    cursor: pointer;
    display: block; /* Make summary clickable area larger */
    position: relative;
    user-select: none;
}

.page-fishing-games__faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: var(--page-fishing-games-primary-color);
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-fishing-games__faq-answer {
    padding: 0 25px 18px 25px;
    font-size: 1em;
    color: var(--page-fishing-games-text-main);
    line-height: 1.8;
}

/* Final CTA Section */
.page-fishing-games__final-cta-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-fishing-games__final-cta-description {
    font-size: 1.1em;
    color: var(--page-fishing-games-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-fishing-games__hero-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__about-game-section .page-fishing-games__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-fishing-games__about-game-section .page-fishing-games__image-content {
        order: -1; /* Image above text on mobile */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__section {
        padding: 40px 0;
    }
    .page-fishing-games__hero-section {
        padding-bottom: 30px;
    }
    .page-fishing-games__hero-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-fishing-games__features-list,
    .page-fishing-games__steps-list,
    .page-fishing-games__game-cards-grid {
        grid-template-columns: 1fr;
    }
    .page-fishing-games__game-card-image,
    .page-fishing-games__image,
    .page-fishing-games__hero-image,
    .page-fishing-games__features-image {
        max-width: 100%;
        height: auto; /* Essential for mobile anti-overflow */
        min-width: 200px; /* Still maintain minimum image size */
        min-height: 200px;
    }
    .page-fishing-games__hero-cta-button,
    .page-fishing-games__cta-button,
    .page-fishing-games__game-card-button,
    .page-fishing-games__promotions-button,
    .page-fishing-games__final-cta-button {
        padding: 12px 20px;
        font-size: 0.95em;
        min-width: unset; /* Allow button to shrink */
        width: 100%; /* Take full width on small screens */
        max-width: 300px; /* Max width for buttons */
    }
    .page-fishing-games__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-fishing-games__faq-question::after {
        right: 20px;
    }
    .page-fishing-games__faq-answer {
        padding: 0 20px 15px 20px;
    }
    /* Ensure content area images don't cause overflow and maintain min-size */
    .page-fishing-games img {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px;
    }
}

/* Ensure color contrast for text */
.page-fishing-games p, .page-fishing-games li {
    color: var(--page-fishing-games-text-main);
}
.page-fishing-games h1, .page-fishing-games h2, .page-fishing-games h3 {
    color: var(--page-fishing-games-text-black);
}
.page-fishing-games__hero-title {
    color: var(--page-fishing-games-primary-color);
}

/* Specific check for content area images (min 200px) */
.page-fishing-games__about-game-section .page-fishing-games__image,
.page-fishing-games__features-image,
.page-fishing-games__game-card-image {
    min-width: 200px;
    min-height: 200px;
}