:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-bg: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Dark background, so light text */
    background-color: var(--color-bg); /* Page background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header-offset */
    text-align: center;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-fishing-games__hero-content {
    position: relative; /* Not absolutely positioned over image */
    z-index: 1;
    max-width: 800px;
}

.page-fishing-games__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size constraint */
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-fishing-games__subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* Buttons */
.page-fishing-games__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-fishing-games__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.page-fishing-games__btn-secondary {
    background: none;
    color: var(--color-button-gradient-start);
    border: 2px solid var(--color-button-gradient-start);
}

.page-fishing-games__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background-color: rgba(var(--color-button-gradient-start), 0.1);
    filter: brightness(1.1);
}

.page-fishing-games__btn-tertiary {
    background: var(--color-deep-green);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    font-size: 1rem;
    padding: 10px 20px;
    margin-top: 15px;
}

.page-fishing-games__btn-tertiary:hover {
    background: var(--color-border);
    color: #ffffff;
}

/* Sections */
.page-fishing-games__about-section,
.page-fishing-games__features-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__tips-section,
.page-fishing-games__promotions-section,
.page-fishing-games__security-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-bottom-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-divider);
}

.page-fishing-games__section-title {
    font-size: 2.5rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-fishing-games__text-block {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-fishing-games__text-block--light {
    color: var(--color-text-main);
}

/* Features Section */
.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-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-main); /* Ensure light text on dark card background */
}

.page-fishing-games__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__feature-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}

.page-fishing-games__card-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-fishing-games__card-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    text-align: center;
    flex-grow: 1; /* Make description take available space */
}

/* How to Play Section */
.page-fishing-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-fishing-games__list-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--color-text-main); /* Ensure light text on dark card background */
}

.page-fishing-games__list-title {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-fishing-games__list-item p {
    color: var(--color-text-secondary);
}

.page-fishing-games__list-item a {
    color: var(--color-button-gradient-start);
    text-decoration: underline;
}

.page-fishing-games__list-item a:hover {
    color: var(--color-gold);
}

/* Tips Section */
.page-fishing-games__tips-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-fishing-games__text-column {
    flex: 1;
}

.page-fishing-games__image-column {
    flex: 0 0 400px; /* Fixed width for image column on desktop */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fishing-games__strategy-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
}

.page-fishing-games__bullet-list {
    list-style: disc;
    padding-left: 25px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-fishing-games__bullet-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.page-fishing-games__bullet-list strong {
    color: var(--color-text-main);
}

.page-fishing-games__text-block--center {
    text-align: center;
}

.page-fishing-games__text-block--center a {
    color: var(--color-button-gradient-start);
    text-decoration: underline;
}

.page-fishing-games__text-block--center a:hover {
    color: var(--color-gold);
}

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

.page-fishing-games__promo-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-main); /* Ensure light text on dark card background */
}

.page-fishing-games__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__promo-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}

/* Security Section */
.page-fishing-games__security-section a {
    color: var(--color-button-gradient-start);
    text-decoration: underline;
}

.page-fishing-games__security-section a:hover {
    color: var(--color-gold);
}

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

.page-fishing-games__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: var(--color-text-main); /* Ensure light text on dark card background */
}

.page-fishing-games__faq-item summary {
    list-style: none; /* Remove default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--color-gold);
}

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

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--color-gold);
    margin-left: 15px;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-fishing-games__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

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

.page-fishing-games__faq-answer a {
    color: var(--color-button-gradient-start);
    text-decoration: underline;
}

.page-fishing-games__faq-answer a:hover {
    color: var(--color-gold);
}

/* CTA Bottom Section */
.page-fishing-games__cta-bottom-section .page-fishing-games__container {
    background-color: var(--color-deep-green);
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

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

    .page-fishing-games__tips-content {
        flex-direction: column;
        align-items: center;
    }

    .page-fishing-games__image-column {
        flex: none;
        width: 80%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section,
    .page-fishing-games__about-section,
    .page-fishing-games__features-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__tips-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__security-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-bottom-section {
        padding: 40px 0;
    }

    .page-fishing-games__container {
        padding: 0 15px; /* Add side padding for mobile containers */
    }

    .page-fishing-games__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-fishing-games__subtitle {
        font-size: 1rem;
    }

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

    .page-fishing-games__text-block {
        font-size: 1rem;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to button group */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fishing-games__feature-grid,
    .page-fishing-games__promotion-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-fishing-games__feature-image,
    .page-fishing-games__promo-image,
    .page-fishing-games__strategy-image,
    .page-fishing-games__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__image-column {
        width: 100%; /* Ensure image column takes full width */
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-fishing-games__card-title,
    .page-fishing-games__list-title {
        font-size: 1.3rem;
    }

    .page-fishing-games__faq-item summary {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

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

    .page-fishing-games__cta-bottom-section .page-fishing-games__container {
        padding: 30px 15px;
    }

    /* Ensure all image containers are responsive */
    .page-fishing-games__hero-image-wrapper,
    .page-fishing-games__feature-card,
    .page-fishing-games__promo-card,
    .page-fishing-games__image-column,
    .page-fishing-games__faq-item,
    .page-fishing-games__list-item,
    .page-fishing-games__cta-bottom-section .page-fishing-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-fishing-games__hero-section {
        padding-top: 10px !important;
    }
}