:root {
    --page-fishing-games-primary-color: #017439; /* Main color */
    --page-fishing-games-secondary-color: #FFFFFF; /* Auxiliary color */
    --page-fishing-games-register-login-bg: #C30808; /* Register/Login button background */
    --page-fishing-games-background-color: #FFFFFF; /* Page background */
    --page-fishing-games-register-login-text: #FFFFFF; /* Changed from #FFFF00 for WCAG AA contrast (4.54:1) */
    --page-fishing-games-text-color-dark: #333333; /* For text on light backgrounds */
    --page-fishing-games-text-color-light: #FFFFFF; /* For text on dark backgrounds */
}

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

.page-fishing-games__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: var(--page-fishing-games-primary-color);
    color: var(--page-fishing-games-text-color-light);
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding for first section */
}

.page-fishing-games__hero-visual {
    width: 100%;
    margin: 0 0 20px 0; /* Space below image on mobile */
}

.page-fishing-games__hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/5;
    border-radius: 8px;
}

.page-fishing-games__hero-content {
    max-width: 900px;
    margin-bottom: 30px; /* Space below content on mobile */
    z-index: 1;
}

.page-fishing-games__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--page-fishing-games-secondary-color);
    letter-spacing: -0.02em;
}

.page-fishing-games__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__cta-button {
    display: inline-block;
    background-color: var(--page-fishing-games-register-login-bg);
    color: var(--page-fishing-games-register-login-text);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-fishing-games__cta-button:hover {
    background-color: #a00606; /* Slightly darker red on hover */
}

.page-fishing-games__about-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__popular-games-section,
.page-fishing-games__why-choose-section,
.page-fishing-games__faq-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-fishing-games__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--page-fishing-games-primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.page-fishing-games__section-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__content-wrapper {
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    gap: 30px;
    align-items: center;
}

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

.page-fishing-games__text-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.page-fishing-games__about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    gap: 25px;
}

.page-fishing-games__guide-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.page-fishing-games__guide-title {
    font-size: 1.35rem;
    color: var(--page-fishing-games-primary-color);
    margin-bottom: 10px;
}

.page-fishing-games__guide-item p {
    font-size: 1rem;
}

.page-fishing-games__guide-item a {
    color: var(--page-fishing-games-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-fishing-games__guide-item a:hover {
    text-decoration: underline;
}

.page-fishing-games__guide-link {
    display: inline-block;
    background-color: var(--page-fishing-games-primary-color);
    color: var(--page-fishing-games-secondary-color);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    transition: background-color 0.3s ease;
}

.page-fishing-games__guide-link:hover {
    background-color: #005a2e;
}

.page-fishing-games__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Desktop: at least 250px wide */
    gap: 20px;
    margin-top: 30px;
}

.page-fishing-games__game-tile {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-fishing-games__game-tile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/2; /* Maintain aspect ratio for game tiles */
    min-width: 200px; /* Ensure images are not displayed smaller than 200px */
    min- /* Corresponding height for 3:2 aspect ratio */
}

.page-fishing-games__register-promo {
    background-color: var(--page-fishing-games-primary-color);
    color: var(--page-fishing-games-text-color-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 50px;
}

.page-fishing-games__register-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
}

.page-fishing-games__register-button {
    display: inline-block;
    background-color: var(--page-fishing-games-register-login-bg);
    color: var(--page-fishing-games-register-login-text);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-fishing-games__register-button:hover {
    background-color: #a00606;
}

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

.page-fishing-games__benefit-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-fishing-games__benefit-title {
    font-size: 1.3rem;
    color: var(--page-fishing-games-primary-color);
    margin-bottom: 10px;
}

.page-fishing-games__benefit-item p {
    font-size: 1rem;
}

.page-fishing-games__faq-list {
    margin-top: 30px;
}

.page-fishing-games__faq-item {
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.page-fishing-games__faq-question {
    padding: 18px 25px;
    font-size: 1.15rem;
    color: var(--page-fishing-games-primary-color);
    cursor: pointer;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.page-fishing-games__faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-fishing-games__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-fishing-games__faq-answer p {
    padding-bottom: 18px;
    margin: 0;
    font-size: 1rem;
}

/* General image rules for content area to prevent small icons */
.page-fishing-games img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* All content images must be at least 200x200px. Initial HTML attributes are set larger. */
    /* CSS rules should not force them smaller. max-width: 100% allows shrinking but not forcing small size. */
    min-width: 200px; /* Enforce minimum display width */
    min- /* Adjust based on aspect ratio, e.g., 200px width at 4:3 ratio is 150px height */
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-fishing-games__hero-section {
        flex-direction: row-reverse; /* Image on right, content on left */
        text-align: left;
        padding: 60px 40px;
        gap: 40px;
    }

    .page-fishing-games__hero-visual {
        flex: 1;
        margin: 0;
    }

    .page-fishing-games__hero-content {
        flex: 1;
        margin-bottom: 0;
    }

    .page-fishing-games__main-title,
    .page-fishing-games__hero-description {
        margin-left: 0;
        margin-right: 0;
    }

    .page-fishing-games__hero-visual img {
        aspect-ratio: 16/9; /* Wider aspect ratio for desktop hero */
        height: auto;
        width: 100%;
    }

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

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

    .page-fishing-games__about-image {
        flex: 1;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding: 20px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .page-fishing-games__hero-description {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }
    .page-fishing-games__games-grid {
        grid-template-columns: 1fr; /* Single column on mobile to ensure minimum image width */
        gap: 15px;
    }
    .page-fishing-games__guide-list {
        grid-template-columns: 1fr;
    }
    .page-fishing-games__benefits-list {
        grid-template-columns: 1fr;
    }
    /* Ensure content area images are responsive without causing overflow */
    .page-fishing-games img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
        max-width: 100%;
        height: auto;
        /* min-width/min-height handled by the general rule, ensuring they don't shrink below 200px */
    }
    /* Ensure main content area does not cause horizontal scroll */
    .page-fishing-games {
        overflow-x: hidden;
    }
    .page-fishing-games > section {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 1024px) {
    .page-fishing-games__hero-section {
        padding: 80px 60px;
    }
    .page-fishing-games__section-title {
        font-size: 2.8rem;
    }
}