/* style/fishing-games.css */

/* --- General Styles --- */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared.css or default white */
}

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

.page-fishing-games__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-fishing-games__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff; /* White text for dark backgrounds */
    padding: 80px 0;
}

.page-fishing-games__light-bg {
    background-color: #ffffff; /* Auxiliary brand color for light sections */
    color: #333333; /* Dark text for light backgrounds */
    padding: 80px 0;
}

/* Ensure text in dark sections is white */
.page-fishing-games__dark-bg .page-fishing-games__section-title,
.page-fishing-games__dark-bg p,
.page-fishing-games__dark-bg h3,
.page-fishing-games__dark-bg li {
    color: #ffffff;
}

/* --- Buttons --- */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-tertiary,
.page-fishing-games__btn-inline {
    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;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-fishing-games__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-fishing-games__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: #C30808; /* Register/Login button color */
    border: 2px solid #C30808;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFF00;
}

.page-fishing-games__btn-tertiary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-fishing-games__btn-tertiary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

.page-fishing-games__btn-inline {
    background-color: transparent;
    color: #017439; /* Primary brand color */
    border: 1px solid #017439;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-fishing-games__btn-inline:hover {
    background-color: #017439;
    color: #ffffff;
}

/* --- Hero Section --- */
.page-fishing-games__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    position: relative;
    overflow: hidden;
}

.page-fishing-games__hero-content {
    flex: 1;
    max-width: 50%;
    padding-left: 15px;
    text-align: left;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #ffffff;
}

.page-fishing-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-fishing-games__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-fishing-games__hero-image-wrapper {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 15px;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* --- About Section --- */
.page-fishing-games__about-section .page-fishing-games__section-title {
    color: #017439;
}

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

.page-fishing-games__text-block {
    flex: 1;
    padding-right: 20px;
}

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

.page-fishing-games__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-fishing-games__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-fishing-games__feature-icon {
    width: 100%; /* Ensure it's not a small icon */
    max-width: 200px; /* Adjust as needed */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-fishing-games__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff;
}

.page-fishing-games__feature-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* --- How to Play Section --- */
.page-fishing-games__how-to-play .page-fishing-games__section-title {
    color: #017439;
}

.page-fishing-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-fishing-games__step-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #017439;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__step-card p {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Tips Section --- */
.page-fishing-games__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-fishing-games__tip-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-fishing-games__tip-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-fishing-games__tip-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__tip-card p {
    color: #f0f0f0;
    flex-grow: 1;
}

.page-fishing-games__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

.page-fishing-games__cta-bottom p {
    font-size: 1.3em;
    margin-bottom: 25px;
    font-weight: bold;
}

/* --- Promotions Section --- */
.page-fishing-games__promotions-section .page-fishing-games__section-title {
    color: #017439;
}

.page-fishing-games__promotions-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    color: #555555;
}

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

.page-fishing-games__promo-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-fishing-games__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for visual consistency */
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-fishing-games__promo-card .page-fishing-games__promo-title {
    font-size: 1.3em;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    color: #017439;
}

.page-fishing-games__promo-card .page-fishing-games__promo-title a {
    color: #017439;
    text-decoration: none;
}

.page-fishing-games__promo-card .page-fishing-games__promo-title a:hover {
    text-decoration: underline;
}

.page-fishing-games__promo-description {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-fishing-games__promo-card .page-fishing-games__btn-inline {
    margin: 0 20px 20px 20px;
    align-self: flex-start;
}

.page-fishing-games__cta-all-promos {
    text-align: center;
    margin-top: 50px;
}

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

.page-fishing-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-fishing-games__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
    font-weight: bold;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an 'x' or 'minus' visually */
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    padding-top: 0; /* Adjust to avoid double padding with question */
}

.page-fishing-games__faq-answer p {
    margin-bottom: 0;
    color: #f0f0f0;
}

/* --- CTA Section --- */
.page-fishing-games__cta-section .page-fishing-games__section-title {
    color: #017439;
}

.page-fishing-games__cta-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 2.8em;
    }

    .page-fishing-games__hero-description {
        font-size: 1.1em;
    }

    .page-fishing-games__section-title {
        font-size: 2em;
    }

    .page-fishing-games__content-grid {
        flex-direction: column;
    }
    
    .page-fishing-games__hero-content,
    .page-fishing-games__hero-image-wrapper {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-fishing-games__hero-image-wrapper {
        justify-content: center;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-fishing-games__dark-bg,
    .page-fishing-games__light-bg {
        padding: 50px 0;
    }

    .page-fishing-games__hero-section {
        flex-direction: column;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
        text-align: center;
    }

    .page-fishing-games__hero-content {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
    }
    
    .page-fishing-games__hero-image-wrapper {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 30px;
        justify-content: center;
    }

    .page-fishing-games__hero-title {
        font-size: 2em;
        line-height: 1.2;
    }

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

    .page-fishing-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__btn-tertiary,
    .page-fishing-games__btn-inline,
    .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: 15px; /* Adjust gap for mobile */
        flex-direction: column; /* Stack buttons vertically */
    }

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

    .page-fishing-games__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .page-fishing-games__text-block {
        padding-right: 0;
    }

    .page-fishing-games__feature-card,
    .page-fishing-games__step-card,
    .page-fishing-games__tip-card,
    .page-fishing-games__promo-card {
        padding: 20px;
    }

    .page-fishing-games__feature-title,
    .page-fishing-games__step-title,
    .page-fishing-games__tip-title,
    .page-fishing-games__promo-title {
        font-size: 1.2em;
    }

    .page-fishing-games__cta-bottom p {
        font-size: 1.1em;
    }

    .page-fishing-games__faq-question {
        padding: 15px;
    }

    .page-fishing-games__faq-title {
        font-size: 1.1em;
    }
    
    /* Images responsive rules */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__hero-section,
    .page-fishing-games__about-section,
    .page-fishing-games__features-section,
    .page-fishing-games__how-to-play,
    .page-fishing-games__tips-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    /* Specific for sections that might have grid/flex children */
    .page-fishing-games__features-grid,
    .page-fishing-games__steps-grid,
    .page-fishing-games__tips-grid,
    .page-fishing-games__promo-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }
    
    .page-fishing-games__tip-image,
    .page-fishing-games__promo-image {
        height: auto; /* Allow height to adjust */
        min-height: 200px; /* Ensure minimum size */
    }
}

/* Image styles - no filter allowed */
.page-fishing-games img {
    filter: none; /* Explicitly ensure no filter is applied */
}

/* Ensure content area images are not too small */
.page-fishing-games__hero-image,
.page-fishing-games__image,
.page-fishing-games__feature-icon,
.page-fishing-games__tip-image,
.page-fishing-games__promo-image {
    min-width: 200px;
    min-height: 200px;
}