/* style/fishing-games.css */

/* --- Base 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, default to white */
}

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

/* --- Section Styles --- */
.page-fishing-games__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* Light text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-fishing-games__hero-section .page-fishing-games__container {
    z-index: 2;
    position: relative;
    max-width: 900px;
}

.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.2; /* Subtle overlay */
    filter: brightness(0.7); /* Darken image for better text contrast */
    display: block;
}

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

.page-fishing-games__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Primary color for titles on light background */
}

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

.page-fishing-games__light-bg {
    background-color: #FFFFFF;
    color: #333333;
    padding: 60px 0;
}

.page-fishing-games__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
    padding: 60px 0;
}

.page-fishing-games__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    text-align: justify;
}

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

.page-fishing-games__cta-buttons--center {
    text-align: center;
}

.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;
    box-sizing: border-box; /* Ensures padding doesn't push width */
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

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

.page-fishing-games__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    transform: translateY(-2px);
}

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

.page-fishing-games__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
    transform: translateY(-2px);
}

/* Specific styling for links within text blocks (e.g., in lists, paragraphs) */
.page-fishing-games__text-block a,
.page-fishing-games__list-item a,
.page-fishing-games__card-link {
    color: #C30808; /* Use a distinct color for links */
    text-decoration: underline;
    font-weight: bold;
}

.page-fishing-games__text-block a:hover,
.page-fishing-games__list-item a:hover,
.page-fishing-games__card-link:hover {
    color: #e02020;
    text-decoration: none;
}

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

.page-fishing-games__feature-card,
.page-fishing-games__promo-card,
.page-fishing-games__game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-fishing-games__light-bg .page-fishing-games__feature-card,
.page-fishing-games__light-bg .page-fishing-games__promo-card,
.page-fishing-games__light-bg .page-fishing-games__game-card {
    background-color: #FFFFFF; /* White for light background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

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

.page-fishing-games__feature-icon,
.page-fishing-games__promo-image,
.page-fishing-games__game-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-height: 200px; /* Ensure minimum size */
}

.page-fishing-games__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFFFF; /* Default for dark cards */
    flex-grow: 1; /* Allow title to take available space */
}

.page-fishing-games__light-bg .page-fishing-games__card-title {
    color: #017439; /* Primary color for light cards */
}

.page-fishing-games__card-description {
    font-size: 1em;
    color: #f0f0f0; /* Default for dark cards */
}

.page-fishing-games__light-bg .page-fishing-games__card-description {
    color: #555555; /* Darker grey for light cards */
}

/* --- How To Play / Tips & Strategies List --- */
.page-fishing-games__steps-list,
.page-fishing-games__strategy-list,
.page-fishing-games__security-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-fishing-games__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #FFFF00; /* Accent color */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__light-bg .page-fishing-games__list-item {
    background-color: #f9f9f9;
    border-left-color: #017439; /* Primary color accent */
}

.page-fishing-games__list-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #FFFF00; /* Accent color for titles on dark background */
}

.page-fishing-games__light-bg .page-fishing-games__list-title {
    color: #017439; /* Primary color for titles on light background */
}

.page-fishing-games__list-item p {
    color: #f0f0f0; /* Light grey for text on dark background */
}

.page-fishing-games__light-bg .page-fishing-games__list-item p {
    color: #555555; /* Darker grey for text on light background */
}

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

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

.page-fishing-games__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-fishing-games__faq-qtext {
    flex-grow: 1;
    color: #FFFF00; /* Accent color for question text */
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    color: #FFFF00; /* Accent color for toggle */
}

.page-fishing-games__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-fishing-games__faq-answer p {
    margin: 0;
}

/* --- Final CTA Box --- */
.page-fishing-games__cta-box {
    background-color: #017439;
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    color: #FFFFFF;
}

.page-fishing-games__cta-box .page-fishing-games__section-title {
    color: #FFFFFF;
}

.page-fishing-games__cta-box .page-fishing-games__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

@media (max-width: 768px) {
    .page-fishing-games__main-title {
        font-size: 2.2em;
    }
    .page-fishing-games__description {
        font-size: 1em;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }
    .page-fishing-games__cta-buttons a:last-child {
        margin-bottom: 0;
    }

    .page-fishing-games__container {
        padding: 0 15px;
    }

    /* Fixed header offset for mobile */
    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }

    /* Mobile image responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__cta-box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for sections/containers to prevent content touching edges */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure card images are properly sized */
    .page-fishing-games__feature-icon,
    .page-fishing-games__promo-image,
    .page-fishing-games__game-image {
        min-height: auto; /* Allow height to adjust naturally */
    }
    
    /* Ensure FAQ items handle padding */
    .page-fishing-games__faq-item summary,
    .page-fishing-games__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__main-title {
        font-size: 1.8em;
    }
    .page-fishing-games__section-title {
        font-size: 1.5em;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        font-size: 0.95em;
        padding: 10px 15px;
    }
}