/* style/fishing-games.css */

/* Base styles for the page content */
.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: #FFFFFF; /* Explicitly set to match body background */
}

/* Header offset for fixed header */
/* If shared.css sets padding-top on body, this should be 0 or small for content.
   Assuming shared.css does NOT set padding-top on body, so this section needs it. */
.page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop/Mobile controlled by shared --header-offset */
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-fishing-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-fishing-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #FFFFFF; /* White text on dark overlay */
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games a[class*="button"],
.page-fishing-games a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-fishing-games__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
}

/* General section styling */
.page-fishing-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    color: #26A9E0; /* Brand color for titles */
}

.page-fishing-games__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.page-fishing-games__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-fishing-games__dark-bg {
    background-color: #26A9E0; /* Main brand color as background */
    color: #FFFFFF;
}

.page-fishing-games__dark-bg .page-fishing-games__section-title {
    color: #FFFFFF; /* White titles on dark background */
}

.page-fishing-games__dark-bg .page-fishing-games__paragraph {
    color: #FFFFFF;
}

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

.page-fishing-games__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on brand color background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
}

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

.page-fishing-games__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-fishing-games__card-description {
    font-size: 1em;
    color: #FFFFFF;
}

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

.page-fishing-games__game-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

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

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

/* Guide section */
.page-fishing-games__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-fishing-games__guide-step {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    color: #FFFFFF;
}

.page-fishing-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: #26A9E0;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-fishing-games__step-title {
    font-size: 1.3em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

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

.page-fishing-games__guide-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

.page-fishing-games__tip-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

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

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

/* 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;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
}

/* FAQ section */
.page-fishing-games__faq-list {
    margin-top: 30px;
}

.page-fishing-games__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-fishing-games__faq-item summary { /* For native details element */
    list-style: none; /* Hide default marker */
}

.page-fishing-games__faq-item summary::-webkit-details-marker { /* Hide default marker for webkit */
    display: none;
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-fishing-games__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #FFFFFF;
    border-top: 1px solid #e0e0e0;
}

/* CTA section */
.page-fishing-games__cta-section {
    padding: 60px 20px;
    text-align: center;
}

.page-fishing-games__cta-content {
    max-width: 800px;
}

.page-fishing-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

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


/* General image and container responsiveness */
.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__hero-section,
.page-fishing-games__features-section,
.page-fishing-games__game-types-section,
.page-fishing-games__guide-section,
.page-fishing-games__tips-section,
.page-fishing-games__promo-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Ensure no horizontal scroll */
}

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

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

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

    .page-fishing-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

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

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

    .page-fishing-games__container {
        padding: 30px 15px; /* Add padding to prevent content touching edges */
    }

    /* Enforce min image size for content images, and full width */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Still enforce min size for content images */
        min-height: 200px;
    }
    
    /* Specific image sizing for feature cards */
    .page-fishing-games__feature-image {
        height: auto;
        max-height: 200px; /* Limit max height on mobile */
    }

    .page-fishing-games__guide-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }

    .page-fishing-games__features-grid,
    .page-fishing-games__game-list,
    .page-fishing-games__guide-steps,
    .page-fishing-games__tips-list,
    .page-fishing-games__promo-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

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

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

    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* All containers must have max-width: 100% and overflow: hidden */
    .page-fishing-games__section,
    .page-fishing-games__card,
.page-fishing-games__container,
    .page-fishing-games__hero-section,
    .page-fishing-games__features-section,
    .page-fishing-games__game-types-section,
    .page-fishing-games__guide-section,
    .page-fishing-games__tips-section,
    .page-fishing-games__promo-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-fishing-games__container, no need to duplicate here */
        overflow: hidden !important;
    }
    
    /* Ensure any direct image children of .page-fishing-games also adhere */
    .page-fishing-games > img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }

    /* Content area images CSS dimensions must not be less than 200px */
    .page-fishing-games__feature-image,
    .page-fishing-games__guide-image {
        width: 100%; /* Will be constrained by max-width: 100% and container padding */
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 1.8em;
    }

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