/* style/fishing-games.css */

/* --- Base Styles & Layout --- */
.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set for content area if body is white */
}

.page-fishing-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-fishing-games__section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

.page-fishing-games__section-title {
    font-size: 3em;
    margin-bottom: 40px;
    color: #017439; /* Brand primary color for titles */
    font-weight: bold;
}

.page-fishing-games__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-fishing-games__hero-section {
    padding: 120px 0 60px; /* Adjust padding-top to account for fixed header, if shared.css doesn't handle body padding */
    padding-top: var(--header-offset, 120px); /* Using CSS variable for header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #ffffff; /* White text for dark background */
    background: linear-gradient(135deg, #017439, #005a2c); /* Darker green gradient */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-fishing-games__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Yellow for key title */
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.page-fishing-games__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-fishing-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Subtly blend background image */
}

/* --- Buttons --- */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Responsive button */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

.page-fishing-games__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.page-fishing-games__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808; /* Text color changes on hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Intro Section --- */
.page-fishing-games__intro-section .page-fishing-games__image {
    max-width: 800px;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px 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;
    margin-top: 50px;
}

.page-fishing-games__feature-item {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-fishing-games__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.page-fishing-games__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.page-fishing-games__feature-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

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

/* --- How to Play Section --- */
.page-fishing-games__how-to-play-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 50px;
}

.page-fishing-games__steps {
    flex: 1;
    min-width: 300px;
}

.page-fishing-games__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.page-fishing-games__step-number {
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 20px;
}

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

.page-fishing-games__step-description {
    font-size: 1em;
    color: #555555;
}

.page-fishing-games__how-to-play-image-wrapper {
    flex: 1;
    min-width: 400px;
}

.page-fishing-games__how-to-play-image-wrapper .page-fishing-games__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* --- Download CTA Section --- */
.page-fishing-games__download-cta-section {
    background: linear-gradient(45deg, #017439, #005a2c);
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 80px 20px;
}

.page-fishing-games__download-cta-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-fishing-games__download-cta-section .page-fishing-games__section-title {
    color: #FFFF00;
}

.page-fishing-games__download-cta-section .page-fishing-games__paragraph {
    color: #f0f0f0;
}

.page-fishing-games__download-image {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- FAQ Section --- */
.page-fishing-games__faq-section {
    background-color: #f8f8f8;
}

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

.page-fishing-games__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
    background-color: #e6e6e6;
}

.page-fishing-games__faq-title {
    font-size: 1.3em;
    color: #017439;
    margin: 0;
}

.page-fishing-games__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
    content: '−'; /* Change to minus sign */
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555;
    background-color: #ffffff;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-fishing-games__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* --- Other Games Section --- */
.page-fishing-games__other-games-section {
    background: linear-gradient(135deg, #005a2c, #017439);
    color: #ffffff;
}

.page-fishing-games__other-games-section .page-fishing-games__section-title {
    color: #FFFF00;
}

.page-fishing-games__other-games-section .page-fishing-games__paragraph {
    color: #f0f0f0;
}

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

.page-fishing-games__game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-fishing-games__game-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-fishing-games__game-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.page-fishing-games__game-card-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-fishing-games__game-card-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-fishing-games__game-card a {
    color: #FFFF00; /* Links within cards */
    text-decoration: underline;
}

.page-fishing-games__game-card a:hover {
    color: #ffffff;
}

/* --- General Image Styles --- */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures images behave well in flow */
    object-fit: cover; /* Default object-fit for content images */
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 3em;
    }
    .page-fishing-games__hero-description {
        font-size: 1.2em;
    }
    .page-fishing-games__section-title {
        font-size: 2.5em;
    }
    .page-fishing-games__how-to-play-content,
    .page-fishing-games__download-cta-section {
        flex-direction: column;
        text-align: center;
    }
    .page-fishing-games__download-cta-content {
        text-align: center;
    }
    .page-fishing-games__hero-image-wrapper {
        display: none; /* Hide hero background image on smaller screens for better readability */
    }
    .page-fishing-games__hero-section {
        background: linear-gradient(135deg, #017439, #005a2c); /* Solid background if image hidden */
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
        padding-bottom: 40px;
    }
    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-fishing-games__paragraph {
        font-size: 0.95em;
    }
    .page-fishing-games__section {
        padding: 60px 0;
    }
    .page-fishing-games__container {
        padding: 0 15px; /* Add padding to container on mobile */
    }

    /* --- Images Responsive Adaption --- */
    .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, /* Assuming cards could be here, though not explicitly defined for .page-fishing-games__card */
    .page-fishing-games__container,
    .page-fishing-games__feature-item,
    .page-fishing-games__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to content containers */
        padding-right: 15px;
    }
    .page-fishing-games__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__how-to-play-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__download-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* --- Buttons Responsive Adaption --- */
    .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; /* Ensure padding on buttons */
        padding-right: 15px;
    }
    .page-fishing-games__hero-cta-buttons,
    .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-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    /* FAQ */
    .page-fishing-games__faq-question {
        padding: 15px 20px;
    }
    .page-fishing-games__faq-title {
        font-size: 1.1em;
    }
}