/* style/fishing-games.css */
.page-fishing-games {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is #1a1a1a (dark), so text should be light */
    background-color: #1a1a1a; /* Matches body background set in shared.css */
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-fishing-games__hero-section .page-fishing-games__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-fishing-games__hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 1;
}

.page-fishing-games__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for title */
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.page-fishing-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* For mobile responsiveness */
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    cursor: pointer;
}

.page-fishing-games__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom color for register/login font */
    border: 2px solid #C30808;
}

.page-fishing-games__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom color for register/login font */
    border: 2px solid #FFFF00;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-fishing-games__hero-image {
    width: 100%;
    max-width: 800px; 
    margin-top: 40px;
}

.page-fishing-games__hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* General Section Styling */
.page-fishing-games__intro-section,
.page-fishing-games__game-showcase-section,
.page-fishing-games__tips-section,
.page-fishing-games__faq-section {
    padding: 60px 0;
    color: #ffffff; 
    background-color: #1a1a1a; /* Matches body background */
}

.page-fishing-games__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 60px 0;
}

.page-fishing-games__light-bg {
    background-color: #1a1a1a; /* Matches body background */
    color: #ffffff;
}

.page-fishing-games__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Custom color for titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.page-fishing-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #f0f0f0;
}

/* Why Choose 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-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-fishing-games__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__feature-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

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

/* Game Showcase Section */
.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-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

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

.page-fishing-games__game-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin: 20px 20px 10px;
}

.page-fishing-games__game-title a {
    color: inherit;
    text-decoration: none;
}

.page-fishing-games__game-title a:hover {
    text-decoration: underline;
}

.page-fishing-games__game-description {
    font-size: 1em;
    color: #f0f0f0;
    padding: 0 20px 20px;
}

.page-fishing-games__cta-buttons--center {
    text-align: center;
    margin-top: 40px;
}

/* 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-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-fishing-games__step-icon {
    width: 60px;
    height: 60px;
    background-color: #FFFF00;
    color: #017439;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.page-fishing-games__step-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-fishing-games__step-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-fishing-games__step-description a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-fishing-games__step-description a:hover {
    color: #e02020;
}

.page-fishing-games__video-wrapper {
    margin-top: 50px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.page-fishing-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
    cursor: pointer;
}

.page-fishing-games__video-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #f0f0f0;
}


/* Tips Section */
.page-fishing-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-fishing-games__tips-list li {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #017439;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-fishing-games__tips-list li strong {
    color: #FFFF00;
}

/* 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: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

.page-fishing-games__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-fishing-games__promo-title {
    font-size: 1.6em;
    color: #FFFF00;
    margin: 0 20px 15px;
}

.page-fishing-games__promo-description {
    font-size: 1em;
    color: #f0f0f0;
    padding: 0 20px 20px;
}

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

.page-fishing-games__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFF00;
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg);
}

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

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px; /* Restore padding when active */
}

.page-fishing-games__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some spacing at the bottom of the paragraph */
}

/* Final CTA Section */
.page-fishing-games__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

.page-fishing-games__cta-content {
    max-width: 900px;
}

.page-fishing-games__btn-primary--large,
.page-fishing-games__btn-secondary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

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

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

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

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

    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100%;
        max-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__section-title {
        font-size: 1.8em;
    }

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

    .page-fishing-games__feature-item,
    .page-fishing-games__game-card,
    .page-fishing-games__step-item,
    .page-fishing-games__promo-card {
        padding: 20px;
    }

    .page-fishing-games__game-card img,
    .page-fishing-games__promo-card img {
         /* Adjust card image height for mobile */
    }

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

    .page-fishing-games__section, /* General section wrapper */
    .page-fishing-games__card, /* Specific card component */
    .page-fishing-games__container, /* General container */
    .page-fishing-games__video-section, /* If there's a dedicated video section */
    .page-fishing-games__video-container, /* Video wrapper container */
    .page-fishing-games__video-wrapper, /* Specific video wrapper for aspect ratio */
    .page-fishing-games__cta-buttons, /* Button group */
    .page-fishing-games__button-group, /* Another possible button group */
    .page-fishing-games__btn-container /* Generic button container */
     {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !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-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio on mobile */
        height: 0 !important;
        overflow: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }

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

    .page-fishing-games__faq-answer {
        padding: 0 15px;
    }

    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px !important;
    }
}

/* Color Contrast Fixes (as per instructions) */
.page-fishing-games__dark-bg {
  color: #ffffff; /* Deep background with light text */
}

.page-fishing-games__light-bg {
  color: #ffffff; /* Light background with dark text, but here body is dark so text remains light */
}

.page-fishing-games__medium-bg {
  color: #ffffff; /* Defaulting to light text for medium backgrounds on a dark body */
}

/* Ensure strong text contrast in content areas */
.page-fishing-games__content-area,
.page-fishing-games__text-block {
  color: #f0f0f0; /* Ensure visibility on dark body background */
}

.page-fishing-games p,
.page-fishing-games li {
  color: #f0f0f0; /* Ensure visibility on dark body background */
}

.page-fishing-games__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for cards on dark body */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2); 
}

.page-fishing-games__dark-section {
  background: #017439;
  color: #ffffff; /* Enforce white text on brand primary background */
}

/* Button text contrast is handled by specific button styles with #FFFF00 text */