/* style/fishing-games.css */

/* Base Styles for the page */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: var(--primary-color, #0A1931); /* Inherit from shared or default */
    padding-bottom: 60px; /* Space above footer */
}

/* Color Contrast Helpers */
.page-fishing-games__dark-bg {
    background-color: #0A1931;
    color: #ffffff;
}

.page-fishing-games__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-fishing-games__medium-bg {
    background-color: #FFD700;
    color: #000000;
}

/* Shared Container for sections */
.page-fishing-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section Styling */
.page-fishing-games__section {
    padding: 60px 0;
    text-align: center;
}

.page-fishing-games__section:nth-of-type(odd) {
    background-color: #0A1931; /* Primary color for dark sections */
}

.page-fishing-games__section:nth-of-type(even) {
    background-color: #1a2a46; /* Slightly lighter dark for contrast */
}

.page-fishing-games__section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for titles */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__section-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    color: #e0e0e0;
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-fishing-games__btn-primary {
    background-color: #FFD700; /* Gold button */
    color: #0A1931; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

.page-fishing-games__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text for dark background */
    border: 2px solid #FFD700;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A1931;
    transform: translateY(-2px);
}

.page-fishing-games__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    padding-bottom: 80px;
    background: linear-gradient(135deg, #0A1931, #1A2A46); /* Dark gradient */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 0;
    text-align: center;
}

.page-fishing-games__hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 25px;
    color: #FFD700; /* Gold for main title */
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.page-fishing-games__hero-description {
    font-size: 22px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-fishing-games__hero-cta-buttons .page-fishing-games__btn-primary,
.page-fishing-games__hero-cta-buttons .page-fishing-games__btn-secondary {
    min-width: 200px;
    flex-grow: 1;
    max-width: calc(50% - 10px); /* Adjust for gap */
}

.page-fishing-games__hero-image-wrapper {
    position: relative;
    z-index: 1;
    margin-top: 50px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Features Grid */
.page-fishing-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-fishing-games__feature-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFD700; /* Gold */
}

.page-fishing-games__feature-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333333; /* Dark text for light background */
}

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

.page-fishing-games__game-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

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

.page-fishing-games__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-fishing-games__game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area */
    display: block;
}

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

.page-fishing-games__game-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-fishing-games__game-title a {
    color: #FFD700; /* Gold for game titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-fishing-games__game-title a:hover {
    color: #e6c200;
}

.page-fishing-games__game-description {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 20px;
}

/* Guide List */
.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    text-align: left;
}

.page-fishing-games__guide-item {
    background-color: #1a2a46; /* Slightly lighter dark */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__guide-step-title {
    font-size: 26px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-fishing-games__guide-step-description {
    font-size: 17px;
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    background-color: #1a2a46; /* Lighter dark for this section */
}

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

.page-fishing-games__promo-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__promo-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-fishing-games__promo-description {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 20px;
}

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

.page-fishing-games__support-item {
    padding: 30px;
    border-radius: 10px;
    background-color: #1a2a46;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__support-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-fishing-games__support-text {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-fishing-games__faq-section {
    background-color: #f8f9fa; /* Light background for FAQ */
    color: #333333; /* Dark text for light background */
}

.page-fishing-games__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

/* FAQ container style */
.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* FAQ default state - answer hidden */
.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 20px; /* Adjusted padding */
    opacity: 0;
    color: #555555; /* Darker text for answer */
    background-color: #f9f9f9;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough to contain any content */
    padding: 20px !important; /* Adjusted padding */
    opacity: 1;
    background-color: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* Question style */
.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #FFD700; /* Highlight active question */
}

.page-fishing-games__faq-question:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
    background-color: #eeeeee;
}

/* Question title style */
.page-fishing-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333; /* Dark text for question */
    pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-fishing-games__faq-toggle {
    font-size: 28px; /* Larger icon */
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Larger hit area */
    height: 32px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    color: #0A1931; /* Darker when active */
    transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 48px;
    }
    .page-fishing-games__hero-description {
        font-size: 20px;
    }
    .page-fishing-games__section-title {
        font-size: 32px;
    }
    .page-fishing-games__section-description {
        font-size: 17px;
    }
    .page-fishing-games__features-grid,
    .page-fishing-games__game-list,
    .page-fishing-games__promotions-grid,
    .page-fishing-games__support-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .page-fishing-games__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Hero Section Mobile */
    .page-fishing-games__hero-section {
        padding-top: 0 !important; /* Ensure no double padding if shared handles body */
        padding-bottom: 60px;
    }
    .page-fishing-games__hero-content {
        padding: 40px 15px 0;
    }
    .page-fishing-games__hero-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    .page-fishing-games__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-fishing-games__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-fishing-games__hero-cta-buttons .page-fishing-games__btn-primary,
    .page-fishing-games__hero-cta-buttons .page-fishing-games__btn-secondary {
        min-width: unset;
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 16px;
    }

    /* Section Titles Mobile */
    .page-fishing-games__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-fishing-games__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Images Mobile */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-fishing-games__hero-image-wrapper {
        margin-top: 30px;
        border-radius: 0;
        box-shadow: none;
    }
    .page-fishing-games__game-image {
        height: 200px; /* Adjust fixed height for mobile */
    }
    
    /* FAQ Mobile */
    .page-fishing-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-fishing-games__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-fishing-games__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-fishing-games__faq-answer {
        padding: 0 15px;
    }
    
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px !important;
    }
}