/* style/fishing-games.css */

/* General page styling */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

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

.page-fishing-games__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #26A9E0; /* Primary color for titles */
}

.page-fishing-games__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Color contrast classes */
.page-fishing-games__dark-bg {
    background-color: #26A9E0; /* Primary color as dark background */
    color: #FFFFFF;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 80px;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-fishing-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-fishing-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-fishing-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-fishing-games__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #FFFFFF; /* White text for dark background */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #F0F0F0; /* Slightly off-white for description */
    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 wrapping on small screens */
}

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
}

.page-fishing-games__btn-primary {
    background: #EA7C07; /* Login color for primary CTA */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-fishing-games__btn-primary:hover {
    background: #FF8C00;
    border-color: #FF8C00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-secondary {
    background: #FFFFFF;
    color: #26A9E0; /* Primary color for secondary CTA */
    border: 2px solid #26A9E0;
}

.page-fishing-games__btn-secondary:hover {
    background: #F0F8FF;
    color: #1a7fb0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Image blocks */
.page-fishing-games__image-block {
    margin: 40px auto;
    max-width: 1000px; /* Adjust max-width for content images */
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__image-block--center {
    text-align: center;
}

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

/* Feature grid */
.page-fishing-games__feature-grid,
.page-fishing-games__strategy-grid,
.page-fishing-games__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-fishing-games__card {
    background: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px; /* Ensure cards have a minimum height */
}

.page-fishing-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__feature-title,
.page-fishing-games__strategy-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-fishing-games__feature-item p,
.page-fishing-games__strategy-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

/* How to Play */
.page-fishing-games__step-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    max-width: 800px;
    text-align: left;
}

.page-fishing-games__step-item {
    background: #F8F8F8;
    border-left: 5px solid #26A9E0;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__step-title {
    font-size: 20px;
    font-weight: bold;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-fishing-games__step-item p {
    font-size: 16px;
    color: #555555;
}

.page-fishing-games__step-item a {
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
}

.page-fishing-games__step-item a:hover {
    text-decoration: underline;
}

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

/* Promotions */
.page-fishing-games__promo-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    max-width: 900px;
    text-align: left;
}

.page-fishing-games__promo-item {
    background: #F8F8F8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__promo-title {
    font-size: 20px;
    font-weight: bold;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-fishing-games__promo-item p {
    font-size: 16px;
    color: #555555;
}

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

.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #FFFFFF; /* White background for FAQ item */
    color: #333333; /* Dark text for white background */
}

.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, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    background: #f9f9f9;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    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-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

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

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

.page-fishing-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
    color: #26A9E0; /* Primary color when active */
}

/* News Section */
.page-fishing-games__news-card {
    padding: 0;
    overflow: hidden;
    text-align: left;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__news-card img {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.page-fishing-games__news-content {
    padding: 25px;
}

.page-fishing-games__news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-fishing-games__news-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-fishing-games__news-title a:hover {
    color: #1a7fb0;
    text-decoration: underline;
}

.page-fishing-games__news-excerpt {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.page-fishing-games__read-more {
    display: inline-block;
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-fishing-games__read-more:hover {
    color: #FF8C00;
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 42px;
    }
    .page-fishing-games__hero-description {
        font-size: 18px;
    }
    .page-fishing-games__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    /* Ensure no overflow */
    .page-fishing-games,
    .page-fishing-games__container,
    .page-fishing-games__hero-section,
    .page-fishing-games__hero-container,
    .page-fishing-games__section,
    .page-fishing-games__feature-grid,
    .page-fishing-games__strategy-grid,
    .page-fishing-games__news-grid,
    .page-fishing-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 50px;
    }

    .page-fishing-games__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-fishing-games__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-fishing-games__cta-button {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-fishing-games__section {
        padding: 40px 0;
    }

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

    .page-fishing-games__text-block {
        font-size: 16px;
    }

    .page-fishing-games__feature-grid,
    .page-fishing-games__strategy-grid,
    .page-fishing-games__news-grid {
        grid-template-columns: 1fr;
        padding: 0; /* Remove horizontal padding from grid, container handles it */
    }

    .page-fishing-games__card {
        padding: 25px;
        min-height: auto;
    }

    .page-fishing-games__feature-title,
    .page-fishing-games__strategy-title,
    .page-fishing-games__promo-title,
    .page-fishing-games__news-title {
        font-size: 18px;
    }

    .page-fishing-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-fishing-games__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-fishing-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px !important;
    }

    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-fishing-games__news-card img {
         /* Adjust height for mobile news cards */
    }
    .page-fishing-games__news-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 28px;
    }
    .page-fishing-games__section-title {
        font-size: 24px;
    }
}