:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f8f8; /* A very light grey for contrast with dark text */
    --background-dark: #1a1a1a; /* A dark background for light text */
    --btn-login-color: #EA7C07;
}

/* Base styles for the page content */
.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background from shared.css */
}

/* Ensure main content is below header */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, var(--primary-color), var(--background-light)); /* Gradient for hero */
    color: var(--text-light); /* Light text on gradient */
}

.page-fishing-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-fishing-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-fishing-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no filter changes image color */
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-fishing-games__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: var(--text-light); /* Light text on gradient */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light); /* Light text on gradient */
}

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

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

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

.page-fishing-games__btn-primary:hover {
    background: #1e87b9; /* A darker shade of #26A9E0 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-secondary {
    background: var(--btn-login-color); /* Using the login color for secondary CTA */
    color: var(--text-light);
    border: 2px solid var(--btn-login-color);
}

.page-fishing-games__btn-secondary:hover {
    background: #c76706; /* A darker shade of #EA7C07 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-fishing-games__section {
    padding: 80px 20px;
    text-align: center;
}

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

.page-fishing-games__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
    color: var(--primary-color);
}

.page-fishing-games__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark); /* Default text color */
}

/* Background variations for sections */
.page-fishing-games__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-fishing-games__light-bg .page-fishing-games__section-title {
    color: var(--primary-color);
}

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

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

.page-fishing-games__dark-bg .page-fishing-games__section-title {
    color: var(--text-light);
}

.page-fishing-games__dark-bg .page-fishing-games__section-text {
    color: var(--text-light);
}

/* Image content within sections */
.page-fishing-games__image-content {
    margin: 40px auto;
    max-width: 900px;
    border-radius: 8px;
    overflow: hidden;
}

.page-fishing-games__image-content img {
    width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no filter changes image color */
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

.page-fishing-games__game-card,
.page-fishing-games__promo-card,
.page-fishing-games__feature-item {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-fishing-games__game-card:hover,
.page-fishing-games__promo-card:hover,
.page-fishing-games__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__game-card img,
.page-fishing-games__feature-item img {
    width: 100%;
    max-width: 400px; /* Constrain card image width */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* Ensure no filter changes image color */
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-fishing-games__game-card-title,
.page-fishing-games__promo-card-title,
.page-fishing-games__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-fishing-games__game-card-description,
.page-fishing-games__promo-card-description,
.page-fishing-games__feature-description {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.page-fishing-games__guide-item {
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__guide-item-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__guide-item p {
    color: var(--text-dark);
}

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

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

.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    background: var(--background-light); /* Light background for answer */
    color: var(--text-dark); /* Dark text for answer */
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: var(--background-light);
    border-radius: 0 0 5px 5px;
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-dark); /* Dark text for question */
}

.page-fishing-games__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
    background: #eeeeee;
}

.page-fishing-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-fishing-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change from '-' to 'x' visually */
}

/* Final CTA Section */
.page-fishing-games__cta-final-section {
    padding-bottom: 80px;
}

.page-fishing-games__cta-final-content {
    background: linear-gradient(135deg, var(--background-light), var(--secondary-color));
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

/* Floating CTA (Register/Login) */
.page-fishing-games__floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-fishing-games__floating-btn {
    display: block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-fishing-games__floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-fishing-games__floating-login {
    background-color: var(--btn-login-color); /* Using the login color */
    color: var(--text-light);
}

/* Responsive Design */
@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 {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-fishing-games__cta-button {
        padding: 12px 25px;
        font-size: 0.95em;
        width: 100% !important; /* Button responsive */
        max-width: 100% !important; /* Button responsive */
        box-sizing: border-box !important; /* Button responsive */
        white-space: normal !important; /* Button responsive */
        word-wrap: break-word !important; /* Button responsive */
    }
    .page-fishing-games__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-fishing-games__section {
        padding: 50px 15px;
    }

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

    .page-fishing-games__section-text {
        font-size: 0.95em;
    }

    .page-fishing-games__game-grid,
    .page-fishing-games__promo-grid,
    .page-fishing-games__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__game-card,
    .page-fishing-games__promo-card,
    .page-fishing-games__feature-item {
        padding: 20px;
    }

    .page-fishing-games__game-card img,
    .page-fishing-games__feature-item img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Min image size */
        min-height: 200px; /* Min image size */
    }
    
    .page-fishing-games img { /* Global image responsive for content area */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-fishing-games__guide-item {
        padding: 15px;
    }

    .page-fishing-games__guide-item-title {
        font-size: 1.1em;
    }
    
    .page-fishing-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-fishing-games__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px);
    }
    
    .page-fishing-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-fishing-games__faq-answer {
        padding: 0 15px;
    }
    
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px !important;
    }

    .page-fishing-games__cta-final-content {
        padding: 30px 15px;
    }

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

    .page-fishing-games__floating-cta {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    .page-fishing-games__floating-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* General image styling to prevent filters */
.page-fishing-games img {
    filter: none;
}