/* style/fishing-games.css */

/* Base styles for the fishing-games page */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly white background */
    line-height: 1.6;
}

/* Section common styles */
.page-fishing-games__section {
    padding: 60px 20px;
    text-align: center;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-fishing-games__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
}

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

.page-fishing-games__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section */
    font-weight: bold;
}

.page-fishing-games__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: inherit;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    padding: 100px 20px 60px; /* Adjust padding for content */
    padding-top: var(--header-offset, 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #017439; /* Ensure dark background for hero */
    color: #FFFFFF;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.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.4em;
    margin-bottom: 40px;
    color: #FFFFFF;
}

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

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

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make background image subtle */
}

/* Button styles */
.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: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-fishing-games__btn-primary {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-fishing-games__btn-primary:hover {
    background-color: #005f2f; /* Slightly darker green */
    border-color: #005f2f;
}

.page-fishing-games__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2f;
    border-color: #005f2f;
}

/* Custom colors for Register/Login buttons */
.page-fishing-games__hero-cta .page-fishing-games__btn-primary {
    background-color: #C30808; /* Custom Register color */
    border-color: #C30808;
    color: #FFFF00; /* Custom Register/Login font color */
}
.page-fishing-games__hero-cta .page-fishing-games__btn-primary:hover {
    background-color: #a30606; /* Darker red on hover */
    border-color: #a30606;
}

/* Image block styles */
.page-fishing-games__image-block {
    margin: 40px auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* Text link styles */
.page-fishing-games__text-link {
    color: #017439; /* Brand primary color */
    text-decoration: underline;
    font-weight: bold;
}

.page-fishing-games__text-link:hover {
    color: #005f2f; /* Slightly darker green */
    text-decoration: none;
}

/* Specific section styles */
.page-fishing-games__game-overview .page-fishing-games__section-description {
    color: #333333;
}

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

.page-fishing-games__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Use custom font color for emphasis */
}

.page-fishing-games__feature-text {
    font-size: 1em;
    line-height: 1.6;
}

.page-fishing-games__why-choose-us .page-fishing-games__reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__reason-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.page-fishing-games__reason-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand primary color */
}

.page-fishing-games__reason-text {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

.page-fishing-games__how-to-play .page-fishing-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

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

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

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

.page-fishing-games__cta-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-fishing-games__game-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__game-text {
    font-size: 1em;
    line-height: 1.6;
}

.page-fishing-games__promotions .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;
    text-align: left;
}

.page-fishing-games__promo-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.page-fishing-games__promo-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439;
}

.page-fishing-games__promo-text {
    font-size: 1em;
    color: #555555;
}

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

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

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

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

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

.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); /* Plus to X (minus visual) */
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding matches question */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Important for override */
    padding: 15px 25px 25px; /* Expanded padding */
}

.page-fishing-games__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Conclusion section */
.page-fishing-games__conclusion .page-fishing-games__section-description {
    color: #FFFFFF;
}

/* Global image responsiveness */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 3em;
    }
    .page-fishing-games__hero-description {
        font-size: 1.2em;
    }
    .page-fishing-games__section-title {
        font-size: 2.2em;
    }
    .page-fishing-games__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__section {
        padding: 40px 0; /* Adjust padding for mobile */
    }

    .page-fishing-games__container {
        padding: 0 15px; /* Ensure mobile padding */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .page-fishing-games__hero-section {
        padding: 80px 15px 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

    .page-fishing-games__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    /* All images must be responsive */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers containing images must be constrained */
    .page-fishing-games__image-block,
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__feature-grid,
    .page-fishing-games__reason-grid,
    .page-fishing-games__game-list,
    .page-fishing-games__promo-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Prevent content overflow */
    }

    /* All buttons must be responsive */
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .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; /* Ensure inner padding for text */
        padding-right: 15px;
    }

    /* Button containers for multiple buttons */
    .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;
        padding-right: 15px;
        overflow: hidden !important;
        display: flex; /* Ensure flex for wrapping */
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px; /* Consistent gap */
    }

    .page-fishing-games__feature-grid,
    .page-fishing-games__reason-grid,
    .page-fishing-games__game-list,
    .page-fishing-games__promo-list {
        grid-template-columns: 1fr; /* Single column layout for grids */
        gap: 20px;
    }

    .page-fishing-games__faq-question,
    .page-fishing-games__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-fishing-games {
        font-size: 16px; /* Increase base font size for mobile readability */
        line-height: 1.6;
    }
}

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