/* style/fishing-games.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E; /* Main */
    --color-secondary: #22C768; /* Aux */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #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;
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-fishing-games {
    background-color: var(--color-background); /* Explicitly set for main content area */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

.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%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    text-align: center;
    overflow: hidden;
    background-color: var(--color-deep-green); /* A darker green for the hero section background */
}

.page-fishing-games__hero-image {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    object-fit: cover;
    display: block;
    margin-bottom: 40px; /* Space between image and content */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above any background effects */
    max-width: 800px;
    padding: 0 20px;
}

.page-fishing-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    color: var(--color-gold); /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Subtle glow */
}

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

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__btn-primary {
    background: var(--color-button-gradient-start);
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* Light text for dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: var(--color-glow); /* Greenish glow color */
    border: 2px solid var(--color-glow);
}

.page-fishing-games__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    transform: translateY(-2px);
}

.page-fishing-games__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
}

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

/* General Section Styles */
.page-fishing-games__introduction-section,
.page-fishing-games__advantages-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__tips-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--color-divider);
}

.page-fishing-games__introduction-section {
    background-color: var(--color-deep-green); /* Slightly different dark green */
}

.page-fishing-games__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

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

/* Advantages Grid */
.page-fishing-games__advantages-grid,
.page-fishing-games__tips-grid,
.page-fishing-games__promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-fishing-games__card {
    background-color: var(--color-card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    color: var(--color-text-main); /* Light text for dark card */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure image is block level */
}

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

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

.page-fishing-games__steps-list li {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--color-text-main);
}

.page-fishing-games__step-title {
    font-size: 1.6rem;
    color: var(--color-glow);
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-fishing-games__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--color-text-main);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: rgba(0,0,0,0.2); /* Slightly darker background for question */
    border-bottom: 1px solid transparent; /* default */
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
    border-bottom-color: var(--color-border);
    background-color: var(--color-deep-green); /* Darker green when open */
}

.page-fishing-games__faq-question:hover {
    background-color: rgba(0,0,0,0.3);
}

.page-fishing-games__faq-qtext {
    flex-grow: 1;
}

.page-fishing-games__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-glow);
}

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

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

/* CTA Section */
.page-fishing-games__cta-section {
    background-color: var(--color-deep-green); /* Dark green background for CTA */
    text-align: center;
    border-bottom: none; /* No border for the last section */
}

.page-fishing-games__cta-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-image {
        max-height: 500px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-fishing-games__hero-description {
        font-size: 1.1rem;
    }
    .page-fishing-games__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-fishing-games__card-title {
        font-size: 1.3rem;
    }
    .page-fishing-games__step-title {
        font-size: 1.4rem;
    }
    .page-fishing-games__faq-question {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-bottom: 40px;
    }
    .page-fishing-games__hero-image {
        max-height: 350px;
        margin-bottom: 30px;
    }
    .page-fishing-games__hero-content {
        padding: 0 15px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-fishing-games__hero-description {
        font-size: 1rem;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px; /* Add padding to container */
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-fishing-games__introduction-section,
    .page-fishing-games__advantages-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__tips-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-section {
        padding: 40px 0;
    }
    .page-fishing-games__container {
        padding: 0 15px;
    }
    .page-fishing-games__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }
    .page-fishing-games__text-block {
        font-size: 0.95rem;
    }
    .page-fishing-games__card {
        padding: 25px;
    }
    .page-fishing-games__card-image {
        height: 180px;
    }
    .page-fishing-games__card-title {
        font-size: 1.2rem;
    }
    .page-fishing-games__step-title {
        font-size: 1.3rem;
    }
    .page-fishing-games__faq-question {
        font-size: 1rem;
        padding: 18px 20px;
    }
    .page-fishing-games__faq-answer {
        padding: 0 20px 18px 20px;
    }

    /* Mobile image responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness (if any, though none currently) */
    .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__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* All containers with images/buttons/videos must ensure no overflow */
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__cta-buttons,
    .page-fishing-games__button-group,
    .page-fishing-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden; /* Prevent overflow */
    }

    /* For multiple buttons in a group, allow wrapping */
    .page-fishing-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
}