.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Main content background will inherit from body or be set per section */
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

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

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

.page-fishing-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 30px;
    border-radius: 10px;
    color: #ffffff;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff; /* Ensure white text on dark overlay */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-fishing-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for contrast */
}

.page-fishing-games__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Section Styles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand color for titles on light backgrounds */
}

.page-fishing-games__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #333333; /* Dark text on light backgrounds */
}

.page-fishing-games__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text on light background */
    padding: 60px 0;
}

.page-fishing-games__light-bg .page-fishing-games__section-title,
.page-fishing-games__light-bg .page-fishing-games__card-title {
    color: #017439;
}

.page-fishing-games__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text on brand primary color */
    padding: 60px 0;
}

.page-fishing-games__dark-section .page-fishing-games__section-title,
.page-fishing-games__dark-section .page-fishing-games__card-title {
    color: #ffffff; /* White text on dark background */
}

/* About Section */
.page-fishing-games__about-section .page-fishing-games__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-fishing-games__about-section .page-fishing-games__text-block {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-fishing-games__about-section .page-fishing-games__image-right {
    flex-shrink: 0;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px 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: 40px;
}

.page-fishing-games__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark section */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff; /* White text on dark card background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-fishing-games__feature-card:hover {
    transform: translateY(-10px);
}

.page-fishing-games__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-height: 200px; /* Limit height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-fishing-games__game-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text on light card background */
    transition: transform 0.3s ease;
}

.page-fishing-games__game-card:hover {
    transform: translateY(-10px);
}

.page-fishing-games__game-card .page-fishing-games__card-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-fishing-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* How To Play Section */
.page-fishing-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__step-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark section */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff; /* White text on dark card background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: #C30808; /* Register/Login color for numbers */
    color: #FFFF00; /* Register/Login font color */
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 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: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text on light card background */
    transition: transform 0.3s ease;
}

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

.page-fishing-games__promo-card .page-fishing-games__card-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-fishing-games__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Why Us Section */
.page-fishing-games__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__advantages-list li {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark section */
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #ffffff;
}

.page-fishing-games__advantages-list li::before {
    content: '✓';
    color: #FFFF00; /* Yellow checkmark */
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.page-fishing-games__list-item-title {
    color: #FFFF00; /* Yellow for titles in list items */
}

/* FAQ Section */
.page-fishing-games__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-fishing-games__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: #017439; /* Brand color for question text */
    background-color: #e6ffe6; /* Light green background for questions */
    border-bottom: 1px solid #ccebcc;
}

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

.page-fishing-games__faq-item.active .page-fishing-games__faq-question {
    border-bottom: 1px solid transparent; /* Remove border when active */
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff; /* White background for answers */
    color: #333333; /* Dark text for answers */
}

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

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

/* Buttons */
.page-fishing-games__btn-primary {
    display: inline-block;
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for contrast */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #017439;
    cursor: pointer;
}

.page-fishing-games__btn-primary:hover {
    background-color: #005f2e; /* Darker green on hover */
    transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #017439; /* Brand color for text */
    padding: 15px 30px;
    border: 2px solid #017439; /* Brand color border */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #017439; /* Brand color background on hover */
    color: #ffffff; /* White text on hover */
    transform: translateY(-2px);
}

.page-fishing-games__btn-tertiary {
    display: inline-block;
    background-color: #C30808; /* Custom Register/Login button color */
    color: #FFFF00; /* Custom Register/Login font color */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

.page-fishing-games__btn-tertiary:hover {
    background-color: #a30606; /* Darker red on hover */
    transform: translateY(-2px);
}

.page-fishing-games__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-fishing-games__cta-center {
    text-align: center;
    margin-top: 50px;
}

.page-fishing-games__cta-final-section {
    padding-bottom: 80px;
}

/* Image optimization rules */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Video optimization rules */
.page-fishing-games video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-fishing-games__video-section,
.page-fishing-games__video-container,
.page-fishing-games__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 3em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__about-section .page-fishing-games__content-wrapper {
        flex-direction: column;
    }
    .page-fishing-games__about-section .page-fishing-games__image-right {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-fishing-games__hero-section {
        height: auto;
        min-height: 450px;
        padding: 40px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

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

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__btn-tertiary,
    .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;
        padding-right: 15px;
    }

    .page-fishing-games__hero-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to button container */
        flex-wrap: wrap !important;
        gap: 10px;
    }

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

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

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

    .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,
    .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 video,
    .page-fishing-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-fishing-games__video-section,
    .page-fishing-games__video-container,
    .page-fishing-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-fishing-games__faq-item {
        padding: 0; /* Remove padding from item, add to question/answer */
    }
    .page-fishing-games__faq-question {
        padding: 15px;
    }
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px;
    }
}