/* style/fishing-games.css */

/* Global styles for the fishing-games page */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f9f9f9; /* Light background for the main content area */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

.page-fishing-games__section:nth-of-type(even) {
    background-color: #f0f0f0;
}

.page-fishing-games__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439; /* Primary color for titles */
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.2;
}

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

.page-fishing-games__paragraph strong {
    color: #017439;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #017439, #ffffff); /* Gradient background for visual appeal */
    overflow: hidden;
}

.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;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white background for text */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: -80px; /* Overlap with image for better design */
}

.page-fishing-games__main-title {
    font-size: 48px;
    color: #017439; /* Primary color */
    margin-bottom: 15px;
    line-height: 1.1;
}

.page-fishing-games__tagline {
    font-size: 20px;
    color: #333333;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    max-width: 100%; /* Ensure button does not overflow */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-fishing-games__cta-button--register {
    background: #C30808; /* Custom Register color */
    color: #FFFF00; /* Custom Register font color */
    border: 2px solid #C30808;
}

.page-fishing-games__cta-button--register:hover {
    background: #a80707;
    border-color: #a80707;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__cta-button--login {
    background: #C30808; /* Custom Login color */
    color: #FFFF00; /* Custom Login font color */
    border: 2px solid #C30808;
}

.page-fishing-games__cta-button--login:hover {
    background: #a80707;
    border-color: #a80707;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__cta-button--play,
.page-fishing-games__cta-button--final-register,
.page-fishing-games__cta-button--final-login,
.page-fishing-games__cta-button--view-all {
    background: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-fishing-games__cta-button--play:hover,
.page-fishing-games__cta-button--final-register:hover,
.page-fishing-games__cta-button--final-login:hover,
.page-fishing-games__cta-button--view-all:hover {
    background: #005f2e;
    border-color: #005f2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


/* Image styles */
.page-fishing-games__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-fishing-games__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure cards have equal height */
}

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

.page-fishing-games__card-image {
    width: 100%; /* Card images should fill card width */
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%;
}

.page-fishing-games__card-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-fishing-games__card-text {
    font-size: 16px;
    color: #555555;
    text-align: left;
    flex-grow: 1; /* Allow text to grow and push button to bottom */
}

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

.page-fishing-games__game-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: left;
    transition: transform 0.2s ease;
}

.page-fishing-games__game-item:hover {
    transform: translateY(-3px);
}

.page-fishing-games__game-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-fishing-games__game-description {
    font-size: 16px;
    color: #555555;
}

/* How to Play Steps */
.page-fishing-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__step-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-fishing-games__step-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%;
}

.page-fishing-games__step-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-fishing-games__step-text {
    font-size: 16px;
    color: #555555;
    text-align: left;
    flex-grow: 1;
}

.page-fishing-games__step-button {
    display: inline-block;
    padding: 12px 25px;
    background: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    max-width: 100%; /* Ensure button does not overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__step-button:hover {
    background: #005f2e;
}

/* Tips & Tricks List */
.page-fishing-games__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__list-item {
    background: #ffffff;
    border-left: 5px solid #017439;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 17px;
    color: #333333;
}

.page-fishing-games__list-item strong {
    color: #017439;
}

/* Promotions Section */
.page-fishing-games__promotion-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__promo-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

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

.page-fishing-games__promo-description {
    font-size: 16px;
    color: #555555;
    text-align: left;
    flex-grow: 1;
}

.page-fishing-games__promo-button {
    display: inline-block;
    padding: 12px 25px;
    background: #C30808; /* Use promo button color */
    color: #FFFF00; /* Use promo button font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    max-width: 100%; /* Ensure button does not overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__promo-button:hover {
    background: #a80707;
}

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

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

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    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;
    background-color: #f5f5f5;
}

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

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

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

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
    color: #C30808; /* Change color when active */
}

.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.3s ease;
    padding: 0 20px;
    opacity: 0;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #555555;
}

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

.page-fishing-games__faq-answer p {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
}

.page-fishing-games__faq-button {
    display: inline-block;
    padding: 10px 20px;
    background: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    max-width: 100%; /* Ensure button does not overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__faq-button:hover {
    background: #005f2e;
}


/* Conclusion Section */
.page-fishing-games__conclusion .page-fishing-games__paragraph {
    font-size: 19px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__main-title {
        font-size: 40px;
    }

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

    .page-fishing-games__paragraph {
        font-size: 17px;
    }

    .page-fishing-games__card-title,
    .page-fishing-games__game-title,
    .page-fishing-games__step-title,
    .page-fishing-games__promo-title {
        font-size: 22px;
    }

    .page-fishing-games__cta-button {
        padding: 14px 35px;
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        padding-top: var(--header-offset, 120px) !important;
        font-size: 16px;
        line-height: 1.6;
    }

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

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

    .page-fishing-games__hero-section {
        padding: 40px 0; /* Remove horizontal padding here, handled by container */
    }

    .page-fishing-games__hero-container {
        padding: 0 15px; /* Apply horizontal padding here */
    }

    .page-fishing-games__hero-content {
        margin-top: -60px;
        padding: 15px;
    }

    .page-fishing-games__main-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .page-fishing-games__tagline {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-fishing-games__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fishing-games__section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .page-fishing-games__paragraph {
        font-size: 16px;
        text-align: justify;
    }

    .page-fishing-games__grid,
    .page-fishing-games__game-list,
    .page-fishing-games__steps-grid,
    .page-fishing-games__promotion-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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