/* style/fishing-games.css */

/* Base styles for the fishing games page */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Use shared background variable, fallback to white */
}

/* Fixed header offset - assuming shared.css does NOT set padding-top on body */
.page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px);
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjusted for visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #FFFFFF;
    background-color: #26A9E0; /* Fallback if image fails */
}

.page-fishing-games__hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image for text readability */
    /* No color filters allowed */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-fishing-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #F0F0F0;
}

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

/* Section titles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

/* Paragraphs */
.page-fishing-games__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Image */
.page-fishing-games__content-image {
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
}

/* Buttons */
.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;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-fishing-games__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.page-fishing-games__btn-center {
    display: block;
    margin: 40px auto 20px auto;
    max-width: 300px;
}

/* Section specific styles */
.page-fishing-games__introduction-section,
.page-fishing-games__game-types-section,
.page-fishing-games__strategy-section,
.page-fishing-games__faq-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background for these sections */
    color: #333333;
}

.page-fishing-games__dark-bg {
    background-color: #26A9E0; /* Brand color as dark background */
    color: #FFFFFF; /* White text for dark background */
    padding: 80px 0;
}

.page-fishing-games__dark-bg .page-fishing-games__section-title {
    color: #FFFFFF; /* Ensure titles are white on dark background */
}
.page-fishing-games__dark-bg .page-fishing-games__paragraph {
    color: #F0F0F0;
}

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

.page-fishing-games__feature-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on brand blue */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #FFFFFF; /* White text */
}

.page-fishing-games__feature-card .page-fishing-games__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-fishing-games__feature-card .page-fishing-games__card-description {
    font-size: 1em;
    color: #F0F0F0;
}

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

.page-fishing-games__game-card {
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-fishing-games__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-fishing-games__game-card-title {
    font-size: 1.3em;
    margin: 15px 15px 10px 15px;
    color: #26A9E0;
}

.page-fishing-games__game-card-description {
    font-size: 0.95em;
    padding: 0 15px 20px 15px;
    color: #555555;
}

/* Lists */
.page-fishing-games__guide-list,
.page-fishing-games__strategy-list,
.page-fishing-games__promotion-list {
    max-width: 900px;
    margin: 40px auto;
    padding-left: 25px; /* For numbered/bullet lists */
}

.page-fishing-games__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    list-style-type: disc; /* Default for ul, decimal for ol */
    color: inherit; /* Inherit from parent section */
}

.page-fishing-games__guide-list .page-fishing-games__list-item {
    list-style-type: decimal;
}


/* FAQ Section */
.page-fishing-games__faq-list {
    max-width: 900px;
    margin: 40px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-fishing-games__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-fishing-games__faq-item:last-child {
    border-bottom: none;
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #F8F8F8;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
    background-color: #EFEFEF;
}

.page-fishing-games__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #FFFFFF;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content, !important for override */
    padding: 20px; /* Expanded padding */
}

.page-fishing-games__faq-answer .page-fishing-games__paragraph {
    margin-bottom: 0;
    font-size: 1em;
    color: #555555;
}

/* CTA Section */
.page-fishing-games__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-fishing-games__cta-container {
    max-width: 800px;
}

.page-fishing-games__cta-section .page-fishing-games__section-title {
    color: #FFFFFF;
}

.page-fishing-games__cta-section .page-fishing-games__paragraph {
    color: #F0F0F0;
    margin-bottom: 40px;
}

.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
    overflow: hidden; /* Prevent overflow */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 3em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-fishing-games__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
        padding-top: 40px;
    }
    .page-fishing-games__features-grid,
    .page-fishing-games__game-cards-grid {
        grid-template-columns: 1fr;
    }
    .page-fishing-games__container {
        padding: 0 15px; /* Add padding for mobile content */
    }
    .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-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__hero-cta,
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile image responsiveness */
    .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;
    }
    .page-fishing-games__game-card-image {
        height: auto; /* Allow height to adjust on mobile */
    }
    /* Mobile video responsiveness - even if no video in HTML, keep rules for future proofing */
    .page-fishing-games__video-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .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;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 1.8em;
    }
    .page-fishing-games__hero-section {
        height: 400px;
    }
    .page-fishing-games__section-title {
        font-size: 1.5em;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}