/* style/fishing-games.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --btn-register: #C30808;
    --btn-login: #C30808;
    --font-register-login: #FFFF00;
    --body-bg: var(--secondary-color); /* Assuming shared.css sets body background to secondary-color */
}

.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark); /* Default text color for light background */
    line-height: 1.6;
    background-color: var(--body-bg);
}

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

.page-fishing-games__section {
    padding: 60px 0;
    text-align: center;
}

.page-fishing-games__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-fishing-games__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-fishing-games__section-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: inherit; /* Inherits from section, either text-dark or text-light */
}

.page-fishing-games__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

/* Hero Section */
.page-fishing-games__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Adjust based on desired hero image height */
    overflow: hidden;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensures image covers area without distortion */
}

.page-fishing-games__hero-content {
    position: relative; /* Ensure content is above image if z-index is used, but we avoid overlay */
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content slightly over image for visual flow, without text overlaying image */
    background: rgba(1, 116, 57, 0.9); /* Semi-transparent background for text readability */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1;
    color: var(--text-light);
}

.page-fishing-games__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

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

.page-fishing-games__hero-link {
    color: var(--font-register-login); /* Yellow for emphasis */
    text-decoration: none;
}

.page-fishing-games__link-underline {
    text-decoration: underline;
}

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

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

.page-fishing-games__btn-primary {
    background-color: var(--btn-register);
    color: var(--font-register-login);
    border: 2px solid var(--btn-register);
}

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

.page-fishing-games__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-fishing-games__cta-center {
    margin-top: 40px;
}

/* Feature Grid */
.page-fishing-games__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    color: var(--text-light);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-fishing-games__feature-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-fishing-games__feature-text {
    font-size: 1em;
    line-height: 1.6;
}

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

.page-fishing-games__game-tile {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    color: var(--text-light);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__game-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.page-fishing-games__game-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-fishing-games__game-description {
    font-size: 0.95em;
    line-height: 1.5;
}

/* Guide Section */
.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-fishing-games__guide-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    text-align: left;
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-fishing-games__guide-step-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--font-register-login);
}

.page-fishing-games__guide-item p {
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-light);
}

.page-fishing-games__guide-item a {
    color: var(--font-register-login);
    text-decoration: underline;
}

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

.page-fishing-games__strategy-item {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    color: var(--text-light);
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-fishing-games__strategy-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--font-register-login);
}

.page-fishing-games__strategy-text {
    font-size: 1em;
    line-height: 1.6;
}

/* Promotions Section */
.page-fishing-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

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

.page-fishing-games__promo-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
}

.page-fishing-games__promo-title {
    font-size: 1.4em;
    font-weight: bold;
    padding: 15px 20px 0;
    color: var(--font-register-login);
}

.page-fishing-games__promo-text {
    font-size: 1em;
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* Download Section */
.page-fishing-games__download-flex-container {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.page-fishing-games__download-content {
    flex: 1;
}

.page-fishing-games__download-content .page-fishing-games__section-title {
    text-align: left;
    color: var(--text-dark);
}

.page-fishing-games__download-content .page-fishing-games__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    color: var(--text-dark);
}

.page-fishing-games__download-benefits {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
    font-size: 1.05em;
    color: var(--text-dark);
}

.page-fishing-games__download-benefits li {
    margin-bottom: 10px;
}

.page-fishing-games__download-image-wrapper {
    flex-shrink: 0;
    max-width: 400px;
}

.page-fishing-games__download-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.page-fishing-games__download-content .page-fishing-games__cta-buttons {
    justify-content: flex-start;
}

/* FAQ Section */
.page-fishing-games__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__faq-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    color: var(--font-register-login);
}

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

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.page-fishing-games__faq-qtext {
    flex-grow: 1;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    width: 20px;
    text-align: center;
}

.page-fishing-games__faq-answer {
    padding: 20px;
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--text-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    transition: max-height 0.5s ease-in;
}

.page-fishing-games__faq-answer p {
    color: var(--text-light);
}

/* Conclusion Section */
.page-fishing-games__conclusion-section .page-fishing-games__section-title {
    color: var(--text-dark);
}

.page-fishing-games__conclusion-section .page-fishing-games__section-description {
    color: var(--text-dark);
}

/* General image and container responsive styles */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-fishing-games__section,
.page-fishing-games__card,
.page-fishing-games__container,
.page-fishing-games__download-flex-container,
.page-fishing-games__feature-item,
.page-fishing-games__game-tile,
.page-fishing-games__promo-card,
.page-fishing-games__guide-item,
.page-fishing-games__strategy-item,
.page-fishing-games__faq-item {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__container {
        padding: 20px 30px;
    }

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

    .page-fishing-games__hero-content {
        margin-top: -80px;
        padding: 30px;
    }

    .page-fishing-games__main-title {
        font-size: clamp(1.8em, 4vw, 2.8em);
    }

    .page-fishing-games__download-flex-container {
        flex-direction: column;
        text-align: center;
    }

    .page-fishing-games__download-content .page-fishing-games__section-title,
    .page-fishing-games__download-content .page-fishing-games__section-description {
        text-align: center;
    }

    .page-fishing-games__download-benefits {
        text-align: left;
        margin: 0 auto 30px;
        max-width: 400px;
    }

    .page-fishing-games__download-content .page-fishing-games__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__container {
        padding: 15px;
    }

    .page-fishing-games__section {
        padding: 40px 0;
    }

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

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

    /* Hero Section - Mobile */
    .page-fishing-games__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 40px;
    }

    .page-fishing-games__hero-image {
        object-fit: contain !important; /* Mobile hero image: contain, not cover */
        max-height: none !important;
        aspect-ratio: unset !important;
    }

    .page-fishing-games__hero-content {
        margin-top: -60px; /* Adjust pull-up for mobile */
        padding: 20px;
        width: calc(100% - 30px); /* Account for container padding */
    }

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

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

    /* Buttons - Mobile */
    .page-fishing-games__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .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: 12px 15px !important;
        font-size: 1em !important;
    }

    /* Feature Grid - Mobile */
    .page-fishing-games__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__feature-image {
        max-width: 100%;
    }

    /* Game Grid - Mobile */
    .page-fishing-games__game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        overflow-x: hidden;
    }

    .page-fishing-games__game-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .page-fishing-games__game-title {
        font-size: 1.2em;
    }

    .page-fishing-games__game-description {
        font-size: 0.85em;
    }

    /* Guide Section - Mobile */
    .page-fishing-games__guide-item {
        padding: 20px;
    }

    .page-fishing-games__guide-step-title {
        font-size: 1.4em;
    }

    /* Strategy Section - Mobile */
    .page-fishing-games__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Promotions Section - Mobile */
    .page-fishing-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__promo-image {
        height: 180px;
    }

    /* Download Section - Mobile */
    .page-fishing-games__download-flex-container {
        flex-direction: column;
        gap: 30px;
    }

    .page-fishing-games__download-image-wrapper {
        max-width: 100%;
    }

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

    .page-fishing-games__faq-toggle {
        font-size: 1.3em;
    }

    .page-fishing-games__faq-answer {
        font-size: 0.95em;
        padding: 15px;
    }

    /* General Images and Containers - Mobile */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__download-flex-container,
    .page-fishing-games__feature-item,
    .page-fishing-games__game-tile,
    .page-fishing-games__promo-card,
    .page-fishing-games__guide-item,
    .page-fishing-games__strategy-item,
    .page-fishing-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}