/* style/fishing-games.css */

/* Custom properties for colors */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg: #17191F;
    --background-dark: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

/* Base styles for the page content */
.page-fishing-games {
    background-color: var(--background-dark); /* Ensure body background is respected for text color */
    color: var(--text-main); /* Light text on dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on desktop too */
}

/* Section common styles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-fishing-games__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-main); /* Ensure light text */
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 0; /* Adjust padding as needed, but not var(--header-offset) */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-dark);
    overflow: hidden; /* Prevent content overflow */
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    margin-bottom: 30px; /* Space between image and content */
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-fishing-games__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-fishing-games__hero-title {
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    /* Using clamp for responsive H1 font size */
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

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

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

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-fishing-games__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: var(--text-main); /* Light text on dark button */
    border: none;
}

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

.page-fishing-games__btn-secondary {
    background: var(--card-bg); /* Dark background for secondary button */
    color: var(--primary-color); /* Primary color text on dark button */
    border: 2px solid var(--primary-color);
}

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

.page-fishing-games__btn-center {
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    display: block; /* Make it a block to center with margin auto */
    width: fit-content; /* Ensure it doesn't take full width */
}

/* About Section */
.page-fishing-games__about-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__why-choose-us-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-final-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.page-fishing-games__image-inline {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 8px;
    object-fit: cover;
}

/* 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: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-fishing-games__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__feature-description {
    color: var(--text-main);
}

/* 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: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-fishing-games__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    text-align: center;
    padding-bottom: 20px;
}

.page-fishing-games__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-fishing-games__game-card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
    font-weight: bold;
}

.page-fishing-games__game-card-description {
    color: var(--text-main);
    font-size: 0.95em;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Why Choose Us Section */
.page-fishing-games__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

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

.page-fishing-games__benefit-item strong {
    color: var(--primary-color);
}

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

.page-fishing-games__promo-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

.page-fishing-games__promo-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__promo-description {
    color: var(--text-main);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
}

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

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

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.page-fishing-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Slight hover effect */
}

.page-fishing-games__faq-qtext {
    flex-grow: 1;
    color: var(--text-main); /* Ensure text is light */
}

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

.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 20px 20px;
    color: var(--text-main);
    font-size: 1.05em;
}

/* CTA Final Section */
.page-fishing-games__cta-final-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-fishing-games__hero-section {
        padding: 40px 0;
        padding-top: 10px;
    }

    .page-fishing-games__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-fishing-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__container {
        padding: 0 15px !important; /* Add padding for mobile containers */
    }

    .page-fishing-games__hero-section {
        padding: 30px 0;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-fishing-games__hero-image-wrapper {
        margin-bottom: 20px;
    }

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

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

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

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

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

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

    .page-fishing-games__image-inline,
    .page-fishing-games__hero-image,
    .page-fishing-games__game-card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__about-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__why-choose-us-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-final-section {
        padding: 40px 0;
    }

    .page-fishing-games__feature-card,
    .page-fishing-games__step-card,
    .page-fishing-games__game-card,
    .page-fishing-games__promo-card {
        padding: 20px;
        margin: 0 15px;
        box-sizing: border-box !important;
        max-width: calc(100% - 30px) !important;
        width: 100% !important;
    }

    .page-fishing-games__features-grid,
    .page-fishing-games__steps-grid,
    .page-fishing-games__game-cards-grid,
    .page-fishing-games__promo-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px !important;
    }

    .page-fishing-games__faq-item {
        margin: 0 15px 15px;
        max-width: calc(100% - 30px) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-fishing-games__faq-answer {
        padding: 0 15px 15px;
        font-size: 1em;
    }

    /* Ensure all image/card/container elements are responsive */
    .page-fishing-games__hero-image-wrapper,
    .page-fishing-games__container,
    .page-fishing-games__game-card,
    .page-fishing-games__promo-card,
    .page-fishing-games__feature-card,
    .page-fishing-games__step-card,
    .page-fishing-games__faq-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }
}

/* Ensure content area images are at least 200px wide for desktop */
.page-fishing-games__image-inline,
.page-fishing-games__game-card-image {
    min-width: 200px;
    min-height: 200px;
}

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