/* style/fishing-games.css */

/* Custom Colors */
:root {
    --fishing-games-bg-color: #08160F;
    --fishing-games-card-bg: #11271B;
    --fishing-games-text-main: #F2FFF6;
    --fishing-games-text-secondary: #A7D9B8;
    --fishing-games-border-color: #2E7A4E;
    --fishing-games-glow-color: #57E38D;
    --fishing-games-gold-color: #F2C14E;
    --fishing-games-divider-color: #1E3A2A;
    --fishing-games-deep-green: #0A4B2C;
    --fishing-games-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --fishing-games-primary-color: #11A84E;
    --fishing-games-secondary-color: #22C768;
}

/* Base styles for the page */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--fishing-games-text-main); /* Default text color for dark background */
    background-color: var(--fishing-games-bg-color); /* Matches body background */
    line-height: 1.6;
}

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

.page-fishing-games__section-title {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--fishing-games-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-fishing-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--fishing-games-btn-gradient);
    border-radius: 2px;
}

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

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px 0 60px 0; /* Small top padding, more bottom for content */
    background-color: var(--fishing-games-deep-green);
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px; /* Ensure images are not too small */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: var(--fishing-games-text-main);
}

.page-fishing-games__main-title {
    font-size: clamp(32px, 5vw, 64px);
    color: var(--fishing-games-gold-color);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0,255,0,0.5);
}

.page-fishing-games__hero-description {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--fishing-games-text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.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;
    text-align: center;
}

.page-fishing-games__btn-primary {
    background: var(--fishing-games-btn-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.5);
    opacity: 0.9;
}

.page-fishing-games__btn-secondary {
    background: var(--fishing-games-card-bg);
    color: var(--fishing-games-primary-color);
    border: 2px solid var(--fishing-games-primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--fishing-games-primary-color);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Section styles */
.page-fishing-games__introduction,
.page-fishing-games__popular-games,
.page-fishing-games__promotions,
.page-fishing-games__cta {
    padding: 80px 0;
    background-color: var(--fishing-games-bg-color);
}

.page-fishing-games__dark-section {
    background-color: var(--fishing-games-card-bg);
    color: var(--fishing-games-text-main);
    padding: 80px 0;
}

.page-fishing-games__light-bg {
    background-color: var(--fishing-games-bg-color);
    color: var(--fishing-games-text-secondary);
}

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

.page-fishing-games__advantage-item {
    background-color: var(--fishing-games-bg-color);
    border: 1px solid var(--fishing-games-border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.page-fishing-games__advantage-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px;
}

.page-fishing-games__advantage-title {
    font-size: 1.6em;
    color: var(--fishing-games-gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__advantage-description {
    font-size: 1em;
    color: var(--fishing-games-text-secondary);
}

/* Popular Games Section */
.page-fishing-games__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-fishing-games__game-card {
    background-color: var(--fishing-games-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-fishing-games__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.page-fishing-games__game-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-fishing-games__game-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-fishing-games__game-card-title {
    font-size: 1.8em;
    color: var(--fishing-games-gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__game-card-title a {
    color: inherit;
    text-decoration: none;
}

.page-fishing-games__game-card-title a:hover {
    text-decoration: underline;
}

.page-fishing-games__game-card-description {
    font-size: 1em;
    color: var(--fishing-games-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* How To Play Section */
.page-fishing-games__how-to-play {
    padding: 80px 0;
    background-color: var(--fishing-games-deep-green);
    color: var(--fishing-games-text-main);
}

.page-fishing-games__guide-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.page-fishing-games__guide-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-fishing-games__step-item {
    position: relative;
    padding-left: 60px;
}

.page-fishing-games__step-number {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--fishing-games-btn-gradient);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0,255,0,0.4);
}

.page-fishing-games__step-title {
    font-size: 1.5em;
    color: var(--fishing-games-gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__step-description {
    color: var(--fishing-games-text-secondary);
}

.page-fishing-games__guide-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-fishing-games__guide-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    min-height: 200px;
}

/* Promotions Section */
.page-fishing-games__promotion-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.page-fishing-games__promotion-item {
    background-color: var(--fishing-games-card-bg);
    border-left: 5px solid var(--fishing-games-primary-color);
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: var(--fishing-games-text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-fishing-games__faq {
    padding: 80px 0;
    background-color: var(--fishing-games-card-bg);
    color: var(--fishing-games-text-main);
}

.page-fishing-games__faq-list {
    margin-top: 50px;
}

.page-fishing-games__faq-item {
    background-color: var(--fishing-games-bg-color);
    border: 1px solid var(--fishing-games-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.3em;
    font-weight: bold;
    color: var(--fishing-games-text-main);
    cursor: pointer;
    background-color: var(--fishing-games-card-bg);
    border-bottom: 1px solid transparent; /* default */
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-question {
    border-bottom-color: var(--fishing-games-border-color);
}

.page-fishing-games__faq-question:hover {
    background-color: var(--fishing-games-deep-green);
}

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

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--fishing-games-primary-color);
    font-weight: normal;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    content: '−'; /* Changed by JS for details */
}

.page-fishing-games__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    color: var(--fishing-games-text-secondary);
    background-color: var(--fishing-games-bg-color);
}

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

/* CTA Section */
.page-fishing-games__cta-content {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--fishing-games-card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-fishing-games__guide-content {
        flex-direction: column;
    }

    .page-fishing-games__guide-image-wrapper {
        order: -1; /* Image above steps on smaller screens */
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-fishing-games__main-title {
        font-size: clamp(28px, 8vw, 48px);
    }
    .page-fishing-games__hero-description {
        font-size: clamp(16px, 4vw, 20px);
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-fishing-games__introduction,
    .page-fishing-games__popular-games,
    .page-fishing-games__promotions,
    .page-fishing-games__cta,
    .page-fishing-games__dark-section,
    .page-fishing-games__how-to-play,
    .page-fishing-games__faq {
        padding: 50px 0;
    }
    .page-fishing-games__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 30px;
    }
    .page-fishing-games__text-block {
        font-size: 1em;
    }
    .page-fishing-games__advantages-grid,
    .page-fishing-games__game-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-fishing-games__advantage-item,
    .page-fishing-games__game-card {
        padding: 20px;
    }
    .page-fishing-games__game-card-image {
        height: 200px;
    }
    .page-fishing-games__game-card-title {
        font-size: 1.5em;
    }
    .page-fishing-games__step-title {
        font-size: 1.3em;
    }
    .page-fishing-games__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }
    .page-fishing-games__step-item {
        padding-left: 50px;
    }
    .page-fishing-games__promotion-list {
        grid-template-columns: 1fr;
    }
    .page-fishing-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-fishing-games__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    /* Mobile image/video/button containers and images */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__container,
    .page-fishing-games__hero-section,
    .page-fishing-games__introduction,
    .page-fishing-games__advantages,
    .page-fishing-games__popular-games,
    .page-fishing-games__how-to-play,
    .page-fishing-games__promotions,
    .page-fishing-games__faq,
    .page-fishing-games__cta,
    .page-fishing-games__advantages-grid,
    .page-fishing-games__game-cards-grid,
    .page-fishing-games__guide-content,
    .page-fishing-games__promotion-list,
    .page-fishing-games__faq-list,
    .page-fishing-games__cta-buttons,
    .page-fishing-games__game-card-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-fishing-games__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-fishing-games__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__hero-image {
        min-height: 200px !important;
    }
    .page-fishing-games__advantage-image {
        max-width: 100% !important;
        height: auto !important;
        min-height: 150px !important;
    }
    .page-fishing-games__guide-image {
        max-width: 100% !important;
        height: auto !important;
        min-height: 150px !important;
    }
    .page-fishing-games__game-card-image {
        height: 180px !important;
    }
}

/* Base contrast adjustments for dark background (body is dark) */
.page-fishing-games__light-bg {
    color: var(--fishing-games-text-secondary); /* Text Secondary for light sections */
    background-color: var(--fishing-games-bg-color); /* Matches body background */
}

.page-fishing-games__dark-bg {
    color: var(--fishing-games-text-main); /* Text Main for dark sections */
    background-color: var(--fishing-games-deep-green);
}

.page-fishing-games__dark-section {
    color: var(--fishing-games-text-main);
    background-color: var(--fishing-games-card-bg);
}

/* Ensure all text in content areas has sufficient contrast */
.page-fishing-games p,
.page-fishing-games li,
.page-fishing-games__advantage-description,
.page-fishing-games__game-card-description,
.page-fishing-games__step-description,
.page-fishing-games__faq-answer {
    color: var(--fishing-games-text-secondary); 
}

.page-fishing-games h1, .page-fishing-games h2, .page-fishing-games h3, .page-fishing-games h4, .page-fishing-games h5, .page-fishing-games h6 {
    color: var(--fishing-games-gold-color); /* Titles use gold for contrast */
}

.page-fishing-games__main-title {
    color: var(--fishing-games-gold-color);
}

.page-fishing-games__btn-primary {
    color: #ffffff;
}

.page-fishing-games__btn-secondary {
    color: var(--fishing-games-primary-color);
}

/* HTML img width/height and CSS consistency */
.page-fishing-games img {
    max-width: 100%;
    height: auto; /* Allow height to adjust proportionally */
    display: block;
}

/* Ensure no filter on images */
.page-fishing-games img {
    filter: none; /* Explicitly remove any potential filter */
}