:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --bg-color: #0D0E12;
    --card-bg-color: #17191F;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
    --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    --header-offset: 122px; /* Default value, will be overridden by shared.css if present */
}

/* Base styles for the page */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Light text for dark body background */
    background-color: var(--bg-color);
    line-height: 1.6;
    padding-bottom: 60px; /* Space for footer */
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image above text */
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    overflow: hidden;
}

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

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop hero */
}

.page-fishing-games__hero-content {
    position: relative; /* No absolute positioning to overlap image */
    z-index: 1;
    max-width: 800px;
    margin-top: 30px; /* Space below image */
    padding: 0 20px;
}

.page-fishing-games__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 165, 58, 0.5);
}

.page-fishing-games__description {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General button styles */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__game-btn,
.page-fishing-games__btn-small,
.page-fishing-games a[class*="button"],
.page-fishing-games a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-fishing-games__cta-buttons,
.page-fishing-games__button-group,
.page-fishing-games__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-fishing-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

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

.page-fishing-games__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(255, 165, 58, 0.2);
}

.page-fishing-games__btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 165, 58, 0.1);
    box-shadow: 0 6px 15px rgba(255, 165, 58, 0.4);
}

.page-fishing-games__btn-small {
    font-size: 0.9em;
    padding: 8px 15px;
    border-radius: 5px;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    margin-top: 10px;
}
.page-fishing-games__btn-small:hover {
    opacity: 0.9;
}


/* Section titles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    position: relative;
    text-shadow: 0 0 8px rgba(255, 165, 58, 0.3);
}

.page-fishing-games__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-fishing-games__text-block {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    text-align: justify;
}

.page-fishing-games__keyword {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Intro Section */
.page-fishing-games__intro-section {
    padding: 40px 0;
    background-color: var(--card-bg-color); /* Darker background for contrast */
}


/* Game Showcase Section */
.page-fishing-games__game-showcase-section {
    padding: 60px 0;
}

.page-fishing-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-fishing-games__game-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.page-fishing-games__game-image {
    width: 100%;
    height: 250px; /* Fixed height for square look */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-fishing-games__game-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin: 15px 10px 5px;
    flex-grow: 1; /* Make title take available space */
}

.page-fishing-games__game-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-fishing-games__game-title a:hover {
    color: var(--primary-color);
}

.page-fishing-games__game-description {
    font-size: 0.95em;
    color: var(--text-main-color);
    padding: 0 15px 15px;
    flex-grow: 1;
}

.page-fishing-games__game-btn {
    background: var(--button-gradient);
    color: #ffffff;
    padding: 10px 20px;
    margin: 0 15px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    display: block; /* Make button full width of card content area */
}

.page-fishing-games__game-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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


/* Guide Section */
.page-fishing-games__guide-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr)); /* Two columns for guide */
    gap: 30px;
}

.page-fishing-games__guide-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__guide-subtitle {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.page-fishing-games__guide-subtitle::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background: var(--button-gradient);
    color: #ffffff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.page-fishing-games__guide-list {
    counter-reset: step-counter;
}

.page-fishing-games__link {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-fishing-games__link:hover {
    color: var(--primary-color);
}


/* Promotions Section */
.page-fishing-games__promotions-section {
    padding: 60px 0;
}

.page-fishing-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-fishing-games__promo-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__promo-icon {
    width: 100%; /* Ensure large images, not icons */
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
}

.page-fishing-games__promo-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-fishing-games__promo-description {
    font-size: 0.95em;
    color: var(--text-main-color);
    flex-grow: 1;
}


/* Why Choose Section */
.page-fishing-games__why-choose-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

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

.page-fishing-games__advantage-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-fishing-games__advantage-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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


/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 60px 0;
}

.page-fishing-games__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-fishing-games__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-fishing-games__faq-question:hover {
    background-color: rgba(255, 140, 26, 0.1);
}

.page-fishing-games__faq-item[open] > .page-fishing-games__faq-question {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-fishing-games__faq-item[open] > .page-fishing-games__faq-question .page-fishing-games__faq-qtext {
    color: #ffffff; /* Ensure text is white when open */
}

.page-fishing-games__faq-item[open] > .page-fishing-games__faq-question .page-fishing-games__faq-toggle {
    color: #ffffff; /* Ensure toggle is white when open */
}


.page-fishing-games__faq-qtext {
    flex-grow: 1;
    color: var(--primary-color); /* Default color */
}

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

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    content: '−';
}

.page-fishing-games__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: var(--text-main-color);
    background-color: var(--card-bg-color);
    border-top: 1px solid var(--border-color);
}

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

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

    .page-fishing-games__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-fishing-games__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile as well */
        padding-bottom: 30px;
    }

    .page-fishing-games__hero-image-wrapper {
        max-height: none;
    }

    .page-fishing-games__hero-image {
        object-fit: contain !important; /* Contain for mobile hero, prevent cropping */
        aspect-ratio: unset !important;
        max-height: none !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

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

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

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

    /* General buttons */
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__game-btn,
    .page-fishing-games__btn-small,
    .page-fishing-games a[class*="button"],
    .page-fishing-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .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 !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Section titles */
    .page-fishing-games__section-title {
        font-size: 2em;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    /* Game Grid */
    .page-fishing-games__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__game-image {
        height: auto !important;
        aspect-ratio: 16/9;
        object-fit: cover;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
    }

    /* Guide Section */
    .page-fishing-games__guide-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__guide-item {
        padding: 20px;
    }

    .page-fishing-games__guide-subtitle {
        font-size: 1.2em;
    }

    /* Promotions Section */
    .page-fishing-games__promo-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__promo-item {
        padding: 20px;
    }

    .page-fishing-games__promo-icon {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Why Choose Section */
    .page-fishing-games__advantage-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__advantage-item {
        padding: 20px;
    }

    /* FAQ Section */
    .page-fishing-games__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-fishing-games__faq-toggle {
        font-size: 1.2em;
    }

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

    /* General image responsiveness for content areas */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}