/* style/fishing-games.css */

/* Base styles for the page content, assuming a dark body background */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color, #F2FFF6); /* Main text color for dark background */
    background-color: var(--background-color, #08160F); /* Page background color */
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

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

.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--background-color, #08160F);
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    height: auto;
    max-height: 500px; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum size requirement */
}

.page-fishing-games__hero-content {
    position: relative; /* Ensure content is above the image if needed, though structure is image-above-text */
    z-index: 2;
    margin-top: 40px;
    padding: 0 20px;
    max-width: 900px;
}

.page-fishing-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold-color, #F2C14E); /* Gold color for main title */
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.2;
}

.page-fishing-games__description {
    font-size: 1.2rem;
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-fishing-games__cta-buttons--center {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none; /* Remove default button border */
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-fishing-games__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-fishing-games__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
    transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    border: 2px solid var(--gold-color, #F2C14E); /* Gold border for secondary */
    color: var(--gold-color, #F2C14E);
}

.page-fishing-games__btn-secondary:hover {
    background-color: var(--gold-color, #F2C14E);
    color: #000000; /* Dark text on gold hover */
    transform: translateY(-2px);
}

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

.page-fishing-games__btn-tertiary:hover {
    background-color: var(--main-color, #11A84E);
    border-color: var(--main-color, #11A84E);
}

.page-fishing-games__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold-color, #F2C14E);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-fishing-games__intro-section,
.page-fishing-games__popular-games-section,
.page-fishing-games__tips-section,
.page-fishing-games__cta-final-section {
    padding: 80px 0;
    background-color: var(--background-color, #08160F); /* Dark background sections */
    color: var(--text-main-color, #F2FFF6);
}

.page-fishing-games__why-choose-section,
.page-fishing-games__guide-section,
.page-fishing-games__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg-color, #11271B); /* Lighter dark background for contrast */
    color: var(--text-main-color, #F2FFF6);
}

/* Text block styles */
.page-fishing-games__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary-color, #A7D9B8);
}

/* Feature Grid */
.page-fishing-games__feature-grid,
.page-fishing-games__game-list,
.page-fishing-games__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__feature-card,
.page-fishing-games__game-card,
.page-fishing-games__tip-card {
    background-color: var(--card-bg-color, #11271B); /* Card background color */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color, #2E7A4E);
}

.page-fishing-games__feature-image,
.page-fishing-games__game-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px; /* Minimum image size */
    display: block;
}

.page-fishing-games__card-title {
    font-size: 1.4rem;
    color: var(--gold-color, #F2C14E);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__card-text {
    font-size: 1rem;
    color: var(--text-secondary-color, #A7D9B8);
    flex-grow: 1;
}

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

.page-fishing-games__guide-step {
    background-color: var(--card-bg-color, #11271B);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color, #2E7A4E);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__step-title {
    font-size: 1.5rem;
    color: var(--gold-color, #F2C14E);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__step-text {
    font-size: 1rem;
    color: var(--text-secondary-color, #A7D9B8);
    flex-grow: 1;
}

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

.page-fishing-games__faq-item {
    background-color: var(--card-bg-color, #11271B);
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color, #F2FFF6);
}

.page-fishing-games__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main-color, #F2FFF6);
    background-color: var(--deep-green-color, #0A4B2C);
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-item summary:hover {
    background-color: var(--main-color, #11A84E);
}

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

.page-fishing-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color, #F2C14E);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-fishing-games__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary-color, #A7D9B8);
    border-top: 1px solid var(--divider-color, #1E3A2A);
}

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

.page-fishing-games__faq-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-fishing-games__cta-final-content {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

    .page-fishing-games__hero-section {
        padding-bottom: 40px;
    }

    .page-fishing-games__hero-content {
        margin-top: 20px;
        padding: 0 15px;
    }

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

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

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

    .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;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-fishing-games__cta-buttons,
    .page-fishing-games__faq-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-fishing-games__cta-buttons {
        display: flex;
        flex-direction: column; /* Mobile vertical stacking */
    }

    .page-fishing-games__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-fishing-games__intro-section,
    .page-fishing-games__why-choose-section,
    .page-fishing-games__popular-games-section,
    .page-fishing-games__guide-section,
    .page-fishing-games__tips-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-final-section {
        padding: 40px 0;
    }

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

    .page-fishing-games__feature-grid,
    .page-fishing-games__game-list,
    .page-fishing-games__tips-grid,
    .page-fishing-games__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__feature-card,
    .page-fishing-games__game-card,
    .page-fishing-games__tip-card,
    .page-fishing-games__guide-step {
        padding: 20px;
    }

    .page-fishing-games__feature-image,
    .page-fishing-games__game-image {
        min-height: 200px; /* Adjust min-height for mobile if needed, but keep >= 200px */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-fishing-games__card-title {
        font-size: 1.2rem;
    }

    .page-fishing-games__step-title {
        font-size: 1.3rem;
    }

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

    .page-fishing-games__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    
    /* Ensure all images inside content sections are responsive */
    .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;
    }
    
    /* Video responsiveness - if a video element were present */
    .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;
    }
}

/* Custom Color Variables - based on the provided color scheme */
:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Ensure contrast for text on dark backgrounds */
.page-fishing-games__dark-bg {
    background-color: var(--background-color);
    color: var(--text-main-color);
}

.page-fishing-games__light-bg {
    background-color: var(--card-bg-color); /* This is a dark background, but slightly lighter than main background */
    color: var(--text-main-color);
}

/* Contrast fix for any potentially problematic areas */
.page-fishing-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-fishing-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* No CSS filter on images */
.page-fishing-games img {
    filter: none;
}